Thanks I do it! I have modified ImageColorViewer.cxx deleting the lines for Images and add necessary lines for read a 2D Dicom Serie wich is located in one directory. Thanks for the A) idea.<br><br><div class="gmail_quote">
2008/7/9 Luis Ibanez <<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Kendra,<br>
<br>
Thanks for your Open Source spirit of going after improving an existing<br>
application.<br>
<br>
The modifications in the ImageViewer will require to replace the<br>
ImageFileReader with a SeriesFileReader.<br>
<br>
I would suggest to look at:<br>
<br>
<br>
A)<br>
<br>
Insight/Examples/IO/DicomSeriesReadImageWrite2.cxx<br>
<br>
<br>
<br>
B)<br>
<br>
InsightApplications/LiverTumorSegmentation/<br>
DicomImageReader.h<br>
DicomImageReader.txx<br>
DicomImageReaderBase.cxx<br>
DicomImageReaderBase.h<br>
DicomImageReaderGUI.fl<br>
<br>
<br>
<br>
C) InsighApplications/Auxiliary/vtk<br>
<br>
vtkKWImage.cxx<br>
vtkKWImage.h<br>
vtkKWImageIO.cxx<br>
vtkKWImageIO.h<br>
<br>
<br>
<br>
D) InsightApplications/SNAP<br>
<br>
SNAP will be able to load DICOM series and<br>
to visualize them in 3D orthogonal slices.<br>
<br>
<br>
<br>
<br>
The simplest change, will be to use the code from (A).<br>
<br>
The most modular change will be to use the code from (C) but it<br>
has the disadvantage that then the ImageViewer will depend on VTK<br>
<br>
<br>
Please take a look at the code and let us know if you have<br>
any questions.<br>
<br>
<br>
BTW: If you are simply looking for a good DICOM Viewer,<br>
Slicer may be a better option.<br>
<br>
<br>
<br>
Regards,<br>
<br>
<br>
Luis<br>
<br>
<br>
--------------<br>
Kendra wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
I saw the FLTKImageViewe code and ImageColorViewer code and I would like to add this functionality to move through diferent dcm files of my directory with some free keys. Where I could add this code? In wich font file?<br>
<br></div>
2008/7/9 Kendra <<a href="mailto:kendracorreo@gmail.com" target="_blank">kendracorreo@gmail.com</a> <mailto:<a href="mailto:kendracorreo@gmail.com" target="_blank">kendracorreo@gmail.com</a>>>:<div class="Ih2E3d">
<br>
<br>
The file format is .dcm<br>
Yes I see Dims: 512 x 512 x 1. I have got a directory with 2D<br>
dicom files (.dcm) than forms a dicom serie and an XML file<br>
indicates me the Z coordinate. You are in right. It's impossible for<br>
the application moves trough diferent dcm files in my directory. It<br>
was a confusion of myself.<br>
<br>
2008/7/9 Luis Ibanez <<a href="mailto:luis.ibanez@kitware.com" target="_blank">luis.ibanez@kitware.com</a><br></div><div class="Ih2E3d">
<mailto:<a href="mailto:luis.ibanez@kitware.com" target="_blank">luis.ibanez@kitware.com</a>>>:<br>
<br>
<br>
Hi Kendra,<br>
<br></div><div class="Ih2E3d">
What file format are you passing as input to the ImageViewer ?<br>
<br>
If you have a set of image slices saved in independent DICOM files,<br>
then each file has only one slice, and when you read it in the<br>
ImageViewer you will have a collapsed 3D image of NxMx1 pixels.<br>
<br>
The simply way to know is to look at the Image data that the<br>
ImageViewer displays on the bottom left corner.<br>
<br>
<br>
The second line of that text should day something like:<br>
<br>
<br>
Dims: 512 x 512 x 200<br>
<br>
(if you have a 3D image)<br>
<br>
or something like:<br>
<br>
<br>
(if you have a 2D image)<br>
<br>
<br>
Please take a look at that text and let us know what you find.<br>
<br>
<br>
Thanks<br>
<br>
<br>
<br>
BTW: If you are looking for applications for viewing, you should<br>
consider downloading Slicer:<br>
<br>
<a href="http://www.slicer.org/" target="_blank">http://www.slicer.org/</a><br>
<br>
<br>
<br>
Luis<br>
<br>
<br>
<br>
<br>
---------------<br>
Kendra wrote:<br>
<br>
<br>
<br>
---------- Forwarded message ----------<br>
From: *Kendra* <<a href="mailto:kendracorreo@gmail.com" target="_blank">kendracorreo@gmail.com</a><br>
<mailto:<a href="mailto:kendracorreo@gmail.com" target="_blank">kendracorreo@gmail.com</a>><br></div><div class="Ih2E3d">
<mailto:<a href="mailto:kendracorreo@gmail.com" target="_blank">kendracorreo@gmail.com</a> <mailto:<a href="mailto:kendracorreo@gmail.com" target="_blank">kendracorreo@gmail.com</a>>>><br></div>
<div class="Ih2E3d">
Date: 2008/7/9<br>
Subject: Re: [Insight-users] Fwd: DicomImageViewer and<br>
ImageViewer not visualice Dicom Images in RGB<br>
To: Luis Ibanez <<a href="mailto:luis.ibanez@kitware.com" target="_blank">luis.ibanez@kitware.com</a><br>
<mailto:<a href="mailto:luis.ibanez@kitware.com" target="_blank">luis.ibanez@kitware.com</a>><br>
<mailto:<a href="mailto:luis.ibanez@kitware.com" target="_blank">luis.ibanez@kitware.com</a><br>
<mailto:<a href="mailto:luis.ibanez@kitware.com" target="_blank">luis.ibanez@kitware.com</a>>>><br>
<br>
<br>
How can I check my dicom image has indeed multiple slices? I<br>
save a processed dicom serie, First I have got a 2d dicom<br>
serie, then I convert it in a volume for process it and then<br>
I save each slide separately but ',' and '.' keys not works...<br>
I have got a spanish keyboard.<br>
<br>
2008/7/8 Kendra <<a href="mailto:kendracorreo@gmail.com" target="_blank">kendracorreo@gmail.com</a><br>
<mailto:<a href="mailto:kendracorreo@gmail.com" target="_blank">kendracorreo@gmail.com</a>><br></div>
<mailto:<a href="mailto:kendracorreo@gmail.com" target="_blank">kendracorreo@gmail.com</a><div class="Ih2E3d"><br>
<mailto:<a href="mailto:kendracorreo@gmail.com" target="_blank">kendracorreo@gmail.com</a>>>>:<br>
<br>
<br>
Thanks Luis, I will try it.<br>
<br>
2008/7/8 Luis Ibanez <<a href="mailto:luis.ibanez@kitware.com" target="_blank">luis.ibanez@kitware.com</a><br>
<mailto:<a href="mailto:luis.ibanez@kitware.com" target="_blank">luis.ibanez@kitware.com</a>><br></div><div class="Ih2E3d">
<mailto:<a href="mailto:luis.ibanez@kitware.com" target="_blank">luis.ibanez@kitware.com</a><br></div><div><div></div><div class="Wj3C7c">
<mailto:<a href="mailto:luis.ibanez@kitware.com" target="_blank">luis.ibanez@kitware.com</a>>>>:<br>
<br>
<br>
<br>
Hi Kendra,<br>
<br>
You can switch slices with the "." and "," buttons.<br>
They have the "<" and ">" on top in the US keyboard<br>
layout.<br>
<br>
Check first that your image has indeed multiple slices...<br>
<br>
<br>
<br>
Regards,<br>
<br>
<br>
Luis<br>
<br>
<br>
---------------<br>
Kendra wrote:<br>
<br>
Ah, and I dont know how to see the next and<br>
previous slide<br>
with ImageViewer. It seems to be posible with ">"<br>
and "<"<br>
keys but it doesn't works for me :-( Is this with<br>
other keys<br>
and I understand bad the ImageViewer help?<br>
<br>
---------- Forwarded message ----------<br>
From: *Kendra* <<a href="mailto:kendracorreo@gmail.com" target="_blank">kendracorreo@gmail.com</a><br>
<mailto:<a href="mailto:kendracorreo@gmail.com" target="_blank">kendracorreo@gmail.com</a>><br>
<mailto:<a href="mailto:kendracorreo@gmail.com" target="_blank">kendracorreo@gmail.com</a><br>
<mailto:<a href="mailto:kendracorreo@gmail.com" target="_blank">kendracorreo@gmail.com</a>>><br>
<mailto:<a href="mailto:kendracorreo@gmail.com" target="_blank">kendracorreo@gmail.com</a><br>
<mailto:<a href="mailto:kendracorreo@gmail.com" target="_blank">kendracorreo@gmail.com</a>><br>
<mailto:<a href="mailto:kendracorreo@gmail.com" target="_blank">kendracorreo@gmail.com</a><br>
<mailto:<a href="mailto:kendracorreo@gmail.com" target="_blank">kendracorreo@gmail.com</a>>>>><br>
Date: 2008/7/2<br>
Subject: DicomImageViewer and ImageViewer not<br>
visualice<br>
Dicom Images in RGB<br>
To: Insight Users <<a href="mailto:insight-users@itk.org" target="_blank">insight-users@itk.org</a><br>
<mailto:<a href="mailto:insight-users@itk.org" target="_blank">insight-users@itk.org</a>><br>
<mailto:<a href="mailto:insight-users@itk.org" target="_blank">insight-users@itk.org</a><br>
<mailto:<a href="mailto:insight-users@itk.org" target="_blank">insight-users@itk.org</a>>><br>
<mailto:<a href="mailto:insight-users@itk.org" target="_blank">insight-users@itk.org</a> <mailto:<a href="mailto:insight-users@itk.org" target="_blank">insight-users@itk.org</a>><br>
<mailto:<a href="mailto:insight-users@itk.org" target="_blank">insight-users@itk.org</a><br>
<mailto:<a href="mailto:insight-users@itk.org" target="_blank">insight-users@itk.org</a>>>>><br>
<br>
<br>
I process a DICOM series images, each slide in<br>
2D, and I<br>
saved them with nodules marked in RGB and with a<br>
filter that<br>
applies RGB colors to de image like Osiris for<br>
example do<br>
it. When I visualize this RGB Dicom Images with<br>
ImageViewer<br>
or DicomImageViewer they appears in gray scale<br>
not in RGB<br>
colors. What I can do?<br>
<br>
-- Esther.<br>
<br>
<br>
<br>
-- Esther.<br>
<br>
<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Insight-users mailing list<br>
<a href="mailto:Insight-users@itk.org" target="_blank">Insight-users@itk.org</a><br></div></div>
<mailto:<a href="mailto:Insight-users@itk.org" target="_blank">Insight-users@itk.org</a>> <mailto:<a href="mailto:Insight-users@itk.org" target="_blank">Insight-users@itk.org</a><div class="Ih2E3d"><br>
<mailto:<a href="mailto:Insight-users@itk.org" target="_blank">Insight-users@itk.org</a>>><br>
<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br>
<br>
<br>
<br>
-- Esther.<br>
<br>
<br>
<br>
-- Esther.<br>
<br>
<br>
<br>
-- Esther.<br>
<br>
<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Insight-users mailing list<br>
<a href="mailto:Insight-users@itk.org" target="_blank">Insight-users@itk.org</a> <mailto:<a href="mailto:Insight-users@itk.org" target="_blank">Insight-users@itk.org</a>><br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br>
<br>
<br>
<br>
-- Esther. <br>
<br>
<br>
<br>
-- <br>
Esther.<br>
</div></blockquote>
</blockquote></div><br><br clear="all"><br>-- <br>Esther.