<div>With this code:</div><div><br></div><div>typedef itk::Image<unsigned int, 2> ImageType;</div><div><br></div><div>int main(int, char *[])</div><div>{</div><div> ImageType::Pointer image = ImageType::New();</div>
<div><br></div><div> typedef itk::BinaryThinningImageFilter <ImageType, ImageType></div><div> BinaryThinningImageFilterType;</div><div> BinaryThinningImageFilterType::Pointer filter</div><div> = BinaryThinningImageFilterType::New();</div>
<div> filter->SetInput(image);</div><div> filter->Update();</div><div>}</div><div><br></div><div>I get 6 signed/unsigned comparison concept check warnings:</div><div><br></div><div><div>/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]’:</div>
<div>/home/doriad/src/ITK/Modules/Core/Common/include/itkConceptChecking.h:289: instantiated from ‘itk::Concept::Comparable<unsigned int, int>’</div><div>/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> >’</div>
<div>/media/portable/Examples/c++/src/ITK/BinaryThinningImageFilter/BinaryThinningImageFilter.cxx:17: instantiated from here</div><div>/home/doriad/src/ITK/Modules/Core/Common/include/itkConceptChecking.h:277: warning: comparison between signed and unsigned integer expressions</div>
<div>/home/doriad/src/ITK/Modules/Core/Common/include/itkConceptChecking.h:289: instantiated from ‘itk::Concept::Comparable<unsigned int, int>’</div></div><div><br></div><div>Is there a reason that BinaryThinningImageFilter can't be used with an unsigned int image?</div>
<div><br></div><meta http-equiv="content-type" content="text/html; charset=utf-8">Thanks,<br><br>David<br>