[IGSTK-Developers] Re: itkOrientedImage issue

Luis Ibanez luis.ibanez at kitware.com
Mon Jul 3 20:07:30 EDT 2006


Hi Patrick,

Thanks for sending the details on the errors that you found when
using the itkOrientedImage with the ConnectedThresholdImageFilter.

The problem was fixed last week during the NAMIC meeting.

Please update your checkout of ITK.


Let us know if you find any further problem.



    Thanks



       Luis



--------------------
Patrick Cheng wrote:
> Hi Luis,
> 
> I am sending your this email again, just for your reference
> 
> The new itkOrientedImage class doesn't work well with some of the old 
> filters, for instance:
> 
> Simply by including appropriate header files and adding these two line:
> 
> typedef itk::ConnectedThresholdImageFilter< OrientedImageType, 
> AnyImageType> CTType;
> CTType::Pointer ct = CTType::New();
> 
> 
> It will generate the following compilation error:
> 
> c:\Patrick\ITK\Insight\Code\Common\itkOrientedImage.h(147): error C2679: 
> binary '-' : no operator found which takes a right-hand operand of type 
> 'const itk::ImageBase<VImageDimension>::PointType' (or there is no 
> acceptable conversion)
>         with
>         [
>             VImageDimension=3
>         ]
> 
> It's panic because of the 
> itkOrientedImage::TransformPhysicalPointToContinuousIndex() function
> 
> It seems that the internal classes of ConnectedThresholdImageFilter 
> class, are not taking the right type info from the templated interface 
> when being initialized.
> 
> Please help verify this.
> 
> Thank you,
> 
> Patrick
> 
> 





More information about the IGSTK-Developers mailing list