[Insight-developers] utjOrientedImage.h

Bill Lorensen bill.lorensen at gmail.com
Fri Jul 25 22:22:26 EDT 2008


Hans,

The OrientedImage uses an image direction cosines when transforming
physical points to indexes and vice versa. It is in working condition.
The #else's are there to show a more readable version of the code. I
used template meta-programming to implement the transformations in an
efficient way. Unfortunately, the meta-programming code is hard to
follow.

The ITK_USE_ORIENTED_IMAGE_DIRECTION is newer code to properly handle
gradient computations when directions are present. I suspect it will
be defined by default in a future release.

I recommend using OrientedImage if your images have different directions.

Admittedly, the code should be documented better. Can you file a bug
report for that and assign it to me?

Regards,

Bill

On Fri, Jul 25, 2008 at 4:08 PM, Hans Johnson <hans.j.johnson at gmail.com> wrote:
> Bill,
>
> I've been looking at the itkOrientedImge class and would appreciate your
> input.
>
> 1)  The documentation for this class is very limited, and does not state how
> an itkOrientedImage is different from an itkImage.  It just states what
> funding was used to generate this class.
>
> 2) There are several "#if 1/#else/#endif" sections in the code which
> indicates to me that perhaps this code is still in a debugging state and the
> behavior may change once the correct behavior is figured out.
>
> 3) #ifdef ITK_USE_ORIENTED_IMAGE_DIRECTION  :  if this is not defined, does
> the itkOrientedImage behave like the itkImage?
>
> 4) When would you recommend using this class for a registration program
> intended to public distribution?
>
> ============
>
> On the surface, it seems that it takes care of some issues with registering
> images that have different image directions to start with.
>
> Thanks,
> Hans
>
>
>
>


More information about the Insight-developers mailing list