[Insight-users] writing a volume on a dicom series
Mathieu Malaterre
mathieu.malaterre at gmail.com
Mon Jul 7 02:47:52 EDT 2008
On Fri, Jul 4, 2008 at 10:34 PM, Niccolo' Camarlinghi
<niccolo.camarlinghi at pi.infn.it> wrote:
> Dear all,
>
> I'm trying to write a volume extracted from a raw image with mhd
> metadata (is that terminology correct?) using an example very similar to
> the one in the guide in capter 7 section 12.4 .
> My problem is that the dicom tag IPP (i'm intrested in particular in
> this tag) is set to zero and i think that is happening because I cannot
> set properly the MetaDataDictionaryArray in the SeriesWriter (m I
> right?).
>
> Is there any function in ITK that can compute the tags that are not the
> same for all the slices (e.g. IPP )?
> I red in mailing list that i can manually create an array of
> metadatadictionary but in this case how can i compute the correct IPP
> for every slice?
What is the class of object you are writing ? Basically if you set
0008|0016 to something like MR Image Storage, the IPP is computed
internally in itk::GDCMImageIO. Make sure that Origin & Spacing of
your itk::Image is set properly.
On a Secondary Capture the IPP has no sense.
HTH
--
Mathieu
More information about the Insight-users
mailing list