[vtkusers] running example program
Stefan Wesarg
stefan.wesarg at igd.fraunhofer.de
Thu Oct 28 03:08:56 EDT 2004
Hi Mark,
the example that you are using does not support the loading of DICOM
data. In fact VTK doesn't do that at all.
If you want to load your DICOM data it has to be converted to 16 Bit
image data without any additional information in the files. For
uncompressed 16 Bit DICOM data - I gues that this is what you are
dealing with - it is quite easy.
Simply write a small program that removes the header from the DICOM file
and that writes the remaining information back to a new file. The
program has to look for the Tag "7FE0" that signifies the start of the
image information. The image information itself starts 2 Bytes after the
"7FE0" Tag, i.e. "E0 7F xx xx ii" where "ii" is the first byte of the
image information.
Stripping the DICOM header this way allows you to load the image data
with the vtkVolume16Reader that is used in the Medical1 example. (I did
it a several times like this, and it works quite well.)
Best regards,
Stefan
Mark Wyszomierski wrote:
>Hi everyone,
>
>I just downloaded and compiled VTK. I am trying to use the example
>programs, specifically Medical1.
>(C:\VTK\Examples\Medical\Cxx\Medical1).
>
>I have a dicom dataset I would like to visualize. I have them in a
>single directory. Do I need to convert this dataset into some kind of
>3D file type? Or will that be generated from the 2D slices?
>
>This is my first work in 3D file types for medical imaging, what are
>the most popular formats?
>
>Thank you,
>Mark
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers
>
>
--
---------------------------------------------------------------------
Dipl.-Phys. Stefan Wesarg
Fraunhofer Institute for Computer Graphics
Cognitive Computing and Medical Imaging (A7)
Fraunhoferstr. 5, 64283 Darmstadt, Germany
---------------------------------------------------------------------
email: stefan.wesarg at igd.fraunhofer.de
http://www.igd.fhg.de/~swesarg/
phone: +49 6151 - 155 511
fax: +49 6151 - 155 480
---------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3698 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20041028/9d9fa52e/attachment.bin>
More information about the vtkusers
mailing list