[Insight-users] TR : wriring my own test data (follow up)
Mathieu Malaterre
mathieu.malaterre at gmail.com
Mon Aug 11 05:43:46 EDT 2008
Olivier,
Try loading a PNG file and store it as a DICOM file. You'll see you
are passing the 'reader->GetOutput' as you observed. Then using
DicomImageReadPrintTags (you need to build ITK examples/io) dump the
DICOM header of your generated file.
reader->GetOutput() is only passing the itk::Image buffer and
nothing else, so indeed you can create DICOM image ex-nihilo. In most
other example to create a more comple DICOM dataset, people are also
passing the meta data dictionary from the reader to the writer, and in
this case 'only) yes the DICOM 'header' is passed and used. See the
ItkSofwareGuide / DICOM section for documentation.
HTH
-Mathieu
On Mon, Aug 11, 2008 at 10:45 AM, Olivier Sebastien Jerome Cros /
Region Nordjylland <osjc at rn.dk> wrote:
> Hi everyone,
>
> Thanks to your help, I could understand the use of iterators for setting the voxels in a volume data image.
>
> I am struggling with the Dicom in my head because I cannot figure out how to create an empty Dicom volume where I can write the data.
>
> The thing I know about it is to use itkImageFileWriter header file and use some of the code from the given examples in the ITK Software Guide.
>
> But when I read the examples, it uses the "reader->GetOutput();" from the reading of input Dicom serie.
>
> Am I right? If so, Do I need to use some pre-existing Dicom dataset and copy the header to an output volume? Or is it possible to make my own header?
>
> I am still a newby in that field. I am trying my best not to annoy you with that. But I m sitting alone in my hospital office, and I am really starting to lack to find some ideas on how to do it.
>
> If you have any example on how to do it, it would be awsome.
>
> Best regards,
>
> Olivier.
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
--
Mathieu
More information about the Insight-users
mailing list