[Insight-developers] SpatialOrientation and itkImageBase

Lorensen, William E (Research) lorensen at crd.ge.com
Fri Sep 9 11:06:06 EDT 2005


Perhaps a helper class (or set of helper classes) outside of ImageBase. Maybe:

RadiologySpatialOrientation

we might have others:

AnatomicalSpatialOrientation

PathologySPatialOrientation...



-----Original Message-----
From: insight-developers-bounces+lorensen=crd.ge.com at itk.org
[mailto:insight-developers-bounces+lorensen=crd.ge.com at itk.org]On Behalf
Of Kent Williams
Sent: Friday, September 09, 2005 10:28 AM
To: Bill Lorensen; insight-developers at itk.org
Subject: Re: [Insight-developers] SpatialOrientation and itkImageBase


In general, SpatialOrientation is a shorthand for anatomical 
orientation, and won't have a well-defined meaning for every sort of 
image volume.  It's very useful where it is relevant, for 3D anatomical 
images.

The only problem I see in the code is int ImageBase<>::SetDirection, 
which takes a SpatialOrientation::ValidCoordinateOrientationFlags to 
specify the direction cosines. For ND, ND > 3 the code will execute and 
run, but only the upper left 3x3 of the direction matrix gets 
initialized.  I suspect that the ND == 2 would also be problematic, 
since there's no 3rd Row or 3rd Column in the matrix.  In 2D 
SpatialOrientation still has useful meaning, there's just no third 
direction cosine.

An expedient,  way to handle it would be to use template specialization 
to make the current implementation specific to 2D and 3D, and have a 
general implementation for N>3 that as much as possible does the right 
thing.

What the right thing is, I leave up to the smart guys - you know who you 
are.

The other problem, now that I think of it, with SpatialOrientation is 
the enum name ValidCoordinateOrientationFlags.  If anyone else can think 
of a more concise name, lets use it.

Bill Lorensen wrote:

> I'm concerned about the recent additions to itkImageBase regarding 
> SpatialOrientation. The current implementation seems to only support 
> 3D images. ImageBase is n-dimensional.
>
> Perhaps this functionality could be provided through an external 
> mechanism.
>
> If the interested parties are on Friday's t-con, maybe we can discuss.
>
> Bill
>
> _______________________________________________
> Insight-developers mailing list
> Insight-developers at itk.org
> http://www.itk.org/mailman/listinfo/insight-developers
>

_______________________________________________
Insight-developers mailing list
Insight-developers at itk.org
http://www.itk.org/mailman/listinfo/insight-developers


More information about the Insight-developers mailing list