[Insight-developers] Cosine Direction Vectors, and itk::SpatialOrientation

Simon Warfield warfield at bwh.harvard.edu
Wed Aug 3 13:57:21 EDT 2005


Kent Williams wrote:

> I started writing a whole e-mail about this, but figured it would be 
> better to drop it in the WIKI and point to it:
>
> http://www.itk.org/Wiki/Proposals:Orientation#Cosine_Direction_Vectors.2C_and_itk::SpatialOrientation_.28Kent_Williams.29 
>
>



> So... here is a modest proposal for dealing with this issue: 

>    1. Stop using ITK_CoordinateOrientation in the MetadataDictionary.
>    2. Add methods to itk::ImageBase that accept an
>       itk::SpatialOrientationValidAnalyzeOrientationsFlags value and
>       sets the Direction Cosine Vectors.
>    3. Add a method to itk::ImageBase that returns an
>       itk:SpatialOrientationValidAnalyzeOrientationsFlags value
>       'closest to' the current Direction Cosine Vectors.
>    4. In the case of ImageIO objects, set _both_ the Flags and the
>       Directions when an image is read in. When writing a file,
>       *always* use the Direction Vectors to determine orientation.
>
I think it is an excellent proposal.

--
Simon


More information about the Insight-developers mailing list