[Insight-developers] Image::DirectionType should be Nx3 rather than NxN?

Steve M. Robbins steve at sumost.ca
Wed Jul 4 11:22:34 EDT 2007


On Wed, Jul 04, 2007 at 03:06:16PM +0000, Mathieu Malaterre wrote:
> On 7/4/07, Steve M. Robbins <steve at sumost.ca> wrote:

> >As it stands now, the GDCM ImageIO class effectively throws away
> >information when you read a 2D image: you get only the first two
> >components of the 3-vectors.
> 
> 
> This issue rings a bell and I am pretty sure this was fixed. In the
> cstor of GDCMImageIO I made sure to alawys use 3D:
> 
>  this->SetNumberOfDimensions(3); //needed for getting the 3 coordinates of
>                                   // the origin, even if it is a 2D slice.
> 
> Are you using an itk::OrientedImage ?

I stand corrected on this point.  I'm not writing any code at this
point, just reading the ITK sources.  I missed this line in the
constructor.

However, this is arguably a different bug: if I load a 2D image, I'd
be very surprised to find out it is 3D in ITK!  ;-)

-Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.itk.org/mailman/private/insight-developers/attachments/20070704/6487457d/attachment.pgp


More information about the Insight-developers mailing list