[Insight-users] Concept checking warnings when using BinaryThinningImageFilter with unsigned int image
David Doria
daviddoria at gmail.com
Thu Apr 14 16:26:30 EDT 2011
With this code:
typedef itk::Image<unsigned int, 2> ImageType;
int main(int, char *[])
{
ImageType::Pointer image = ImageType::New();
typedef itk::BinaryThinningImageFilter <ImageType, ImageType>
BinaryThinningImageFilterType;
BinaryThinningImageFilterType::Pointer filter
= BinaryThinningImageFilterType::New();
filter->SetInput(image);
filter->Update();
}
I get 6 signed/unsigned comparison concept check warnings:
/home/doriad/src/ITK/Modules/Core/Common/include/itkConceptChecking.h: In
member function ‘void itk::Concept::Comparable<T1,
T2>::Constraints::constraints() [with T1 = unsigned int, T2 = int]’:
/home/doriad/src/ITK/Modules/Core/Common/include/itkConceptChecking.h:289:
instantiated from ‘itk::Concept::Comparable<unsigned int, int>’
/home/doriad/src/ITK/Modules/Filtering/MathematicalMorphology/include/itkBinaryThinningImageFilter.h:123:
instantiated from ‘itk::BinaryThinningImageFilter<itk::Image<unsigned int,
2u>, itk::Image<unsigned int, 2u> >’
/media/portable/Examples/c++/src/ITK/BinaryThinningImageFilter/BinaryThinningImageFilter.cxx:17:
instantiated from here
/home/doriad/src/ITK/Modules/Core/Common/include/itkConceptChecking.h:277:
warning: comparison between signed and unsigned integer expressions
/home/doriad/src/ITK/Modules/Core/Common/include/itkConceptChecking.h:289:
instantiated from ‘itk::Concept::Comparable<unsigned int, int>’
Is there a reason that BinaryThinningImageFilter can't be used with an
unsigned int image?
Thanks,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110414/52ed09db/attachment.htm>
More information about the Insight-users
mailing list