Hi Alderfc7,<br><br><br> Why are you using VTK for reading DICOM images ?<br><br><br>I would strongly suggest you to use the ITK Series Reader<br>instead, which is based on GDCM and will manage image <br>compression correctly.<br>
<br><br>For an example on how to read DICOM series please read<br>the ITK Software Guide<br><br><br> <a href="http://www.itk.org/ItkSoftwareGuide.pdf">http://www.itk.org/ItkSoftwareGuide.pdf</a><br><br><br>in particular the chapter "Reading and Writing Images"<br>
<br>and look at the source code example:<br><br><br> Insight/Examples/IO/DicomSeriesReadImageWrite2.cxx<br><br><br><br>The pixel type that you get will depend on the image modality.<br><br><br>If your image is:<br><br>
CT: you want to use "signed short"<br> MR: you want to use "signed short"<br> PET: you want to use "float"<br><br><br>What is the image modality of your DICOM image ?<br><br><br>
<br>Please let us know if you have any questions,<br><br><br><br> Thanks<br><br><br> Luis<br><br><br>-------------------------------------------------------------------------------<br><div class="gmail_quote">
On Sun, Jun 28, 2009 at 6:22 PM, alderfc7 <span dir="ltr"><<a href="mailto:alderfc7@yahoo.gr">alderfc7@yahoo.gr</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hi, I've been trying for quite a long time to figure out a way to get the<br>
uncompressed pixels of a dicom image that was opened with VTK. Can someone<br>
help me with that?Also, what kind of pixels I will get(RGB, RGBA,<br>
Grayscale)(UInt, UShort, etc.)?<br>
<br>
Thank you<br>
--<br>
View this message in context: <a href="http://n2.nabble.com/Access-uncompressed-pixel-map-VTK-tp3171411p3171411.html" target="_blank">http://n2.nabble.com/Access-uncompressed-pixel-map-VTK-tp3171411p3171411.html</a><br>
Sent from the ITK Insight Users mailing list archive at Nabble.com.<br>
<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at: <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</blockquote></div><br>