[Insight-developers] Reading a volume of dim N+2 from a series
ofimage of dim N
Stephen R. Aylward
Stephen.Aylward at Kitware.com
Thu Feb 22 02:05:27 EST 2007
MetaImage can do N=5 and M=3.
But - this is perhaps irrelevant since he wants the series reader to do it.
Sorry - just advertising metaImage :)
s
Bill Lorensen wrote:
> I think Matthieu said N=5 and M=3. The current filenames generator handles
> N=4 and M=3 I believe.
>
> Bill
>
>
> -----Original Message-----
> From: insight-developers-bounces+bill.lorensen=gmail.com at itk.org
> [mailto:insight-developers-bounces+bill.lorensen=gmail.com at itk.org] On
> Behalf Of Stephen R. Aylward
> Sent: Wednesday, February 21, 2007 6:43 PM
> To: Mathieu Malaterre
> Cc: ITK
> Subject: Re: [Insight-developers] Reading a volume of dim N+2 from a series
> ofimage of dim N
>
> You can specify this using a metaImage header.
> You can create ND images out of MD (M<N) files.
>
> Consider N=4 and M=3...
>
> NDims = 4
> DimSize = 256 256 100 5
> .
> .
> .
> DataFile = LIST 3 <--- this is M, the dims of each file
> <File1.raw>
> <File2.raw>
> <File3.raw>
> <File4.raw>
> <File5.raw>
>
> This will read in 3 3D files and create a single 4D file.
>
> If they're uncompressed dicom, add the line
> HeaderSize = -1
> and it will automatically calculate the headersize for each 3D file
> (independently) and only read the pixel data which is stored at the end
> of the dicom files.
>
>
> Stephen
>
> Mathieu Malaterre wrote:
>> I have been solving a couple of issues related to ITK-gdcm, and I am
>> now stuck on the following:
>>
>> http://www.itk.org/Bug/bug.php?op=show&bugid=2983
>>
>> Basically the user is asking that the ImageIO in conjunction with
>> the SeriesFileName should handle cases where the images are stored in
>> dimension N and the final images should be of dimension M (where M > N +
>> 1).
>> The actual logic does not work since the SeriesFileNames only
>> transfer a list of filename to the ImageIO, and thus the number of
>> filename is the value for the last dimension.
>>
>> What I would like to be able to do is add a notion of 'Codimension'
>> to the ImageIO and the SeriesFileName. Let say you have a 4D images
>> stored in individual 2D images. The imageIO would find out the first 2
>> dimensions od the volume, whereas the SeriesFileName would find the last
>> two dimensions of the volume (thus the notion of `codimension`).
>>
>> I think the impact on the code would be pretty small. Everything
>> should be contained in the itk::ImageSeriesReader. The contract is now
>> that each SeriesFileName should now organize everything *per* group.
>>
>>
>> Suggestions welcome
>> -Mathieu
>> _______________________________________________
>> Insight-developers mailing list
>> Insight-developers at itk.org
>> http://www.itk.org/mailman/listinfo/insight-developers
>>
>
--
=============================================================
Stephen R. Aylward, Ph.D.
Chief Medical Scientist
Kitware, Inc. - Chapel Hill Office
http://www.kitware.com
Phone: (518)371-3971 x300
More information about the Insight-developers
mailing list