[Insight-users] itkOrientedImage compatibility problem
Patrick Cheng
cheng at isis.georgetown.edu
Tue Jun 20 13:55:24 EDT 2006
Hi,
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 Insight-users
mailing list