<br>There may be the same build problem when using itk::Vector&lt; float, 3 &gt; as the pixel type (instead of itk::RGBPixel).  See the attached src code and uncomment lines 477--491 to see the build errors (with ITK 3.14.0).<br>
<br><br><br><div class="gmail_quote">On Tue, Sep 29, 2009 at 7:12 PM, Darren Weber <span dir="ltr">&lt;<a href="mailto:darren.weber.lists@gmail.com">darren.weber.lists@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Please find attached a src file to calculate a registration (based on scalar image data).  The final transform should be applied to RGB images.  Example data files are available here:<br><br><a href="ftp://ftp.buckinstitute.org/dweber/itkRegistrationFiles.tar.gz" target="_blank">ftp://ftp.buckinstitute.org/dweber/itkRegistrationFiles.tar.gz</a><br>

<br>The program can be called using this example data as:<br><span style="font-family: courier new,monospace;">$HOME/bin/itkImageCoregistration \</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">./w1/bw/section0178_w1.tif \<br>

./w1/bw/section0179_w1.tif \</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">./w1/bw_align/section0179to0178_w1.tif \</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">./w1/tif/section0178_w1.tif \</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">./w1/tif/section0179_w1.tif \</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">./w1/tif_align/section0179to0178_w1.tif \</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">./w1/bw_align/section0179to0178_w1_DiffBefore.tif \</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">./w1/bw_align/section0179to0178_w1_DiffAfter.tif</span><br style="font-family: courier new,monospace;">
<br>The src builds when lines 474-488 are commented out, but otherwise resampling the RGB data fails in compile-time errors (ITK 3.14), i.e.:<br><br><span style="font-family: courier new,monospace;">[100%] Building CXX object CMakeFiles/itkImageCoregistration.dir/itkImageCoregistration.o</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">/opt/local/include/InsightToolkit-3.14/Common/itkConceptChecking.h: In member function ‘void itk::Concept::HasNumericTraits&lt;T&gt;::Constraints::constraints() [with T = main(int, char**)::rgbPixelType]’:</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">/opt/local/include/InsightToolkit-3.14/Common/itkConceptChecking.h:580:   instantiated from ‘itk::Concept::HasNumericTraits&lt;main(int, char**)::rgbPixelType&gt;’</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">/opt/local/include/InsightToolkit-3.14/BasicFilters/itkResampleImageFilter.h:252:   instantiated from ‘itk::ResampleImageFilter&lt;main(int, char**)::rgbImageType, main(int, char**)::rgbImageType, double&gt;’</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">/Users/dweber/src/kitware/itkImageCoregistration/itkImageCoregistration.cxx:475:   instantiated from here</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">/opt/local/include/InsightToolkit-3.14/Common/itkConceptChecking.h:571: error: ‘IsPositive’ is not a member of ‘itk::NumericTraits&lt;main(int, char**)::rgbPixelType&gt;’</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">/opt/local/include/InsightToolkit-3.14/Common/itkConceptChecking.h:572: error: ‘IsNonpositive’ is not a member of ‘itk::NumericTraits&lt;main(int, char**)::rgbPixelType&gt;’</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">/opt/local/include/InsightToolkit-3.14/Common/itkConceptChecking.h:573: error: ‘IsNegative’ is not a member of ‘itk::NumericTraits&lt;main(int, char**)::rgbPixelType&gt;’</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">/opt/local/include/InsightToolkit-3.14/Common/itkConceptChecking.h:574: error: ‘IsNonnegative’ is not a member of ‘itk::NumericTraits&lt;main(int, char**)::rgbPixelType&gt;’</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">/opt/local/include/InsightToolkit-3.14/BasicFilters/itkResampleImageFilter.txx: In member function ‘void itk::ResampleImageFilter&lt;TInputImage, TOutputImage, TInterpolatorPrecisionType&gt;::NonlinearThreadedGenerateData(const typename TOutputImage::RegionType&amp;, int) [with TInputImage = main(int, char**)::rgbImageType, TOutputImage = main(int, char**)::rgbImageType, TInterpolatorPrecisionType = double]’:</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">/opt/local/include/InsightToolkit-3.14/BasicFilters/itkResampleImageFilter.txx:183:   instantiated from ‘void itk::ResampleImageFilter&lt;TInputImage, TOutputImage, TInterpolatorPrecisionType&gt;::ThreadedGenerateData(const typename TOutputImage::RegionType&amp;, int) [with TInputImage = main(int, char**)::rgbImageType, TOutputImage = main(int, char**)::rgbImageType, TInterpolatorPrecisionType = double]’</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">/Users/dweber/src/kitware/itkImageCoregistration/itkImageCoregistration.cxx:542:   instantiated from here</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">/opt/local/include/InsightToolkit-3.14/BasicFilters/itkResampleImageFilter.txx:288: error: no match for ‘operator&gt;’ in ‘value &gt; maxOutputValue’</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">/opt/local/include/InsightToolkit-3.14/BasicFilters/itkResampleImageFilter.txx: In member function ‘void itk::ResampleImageFilter&lt;TInputImage, TOutputImage, TInterpolatorPrecisionType&gt;::LinearThreadedGenerateData(const typename TOutputImage::RegionType&amp;, int) [with TInputImage = main(int, char**)::rgbImageType, TOutputImage = main(int, char**)::rgbImageType, TInterpolatorPrecisionType = double]’:</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">/opt/local/include/InsightToolkit-3.14/BasicFilters/itkResampleImageFilter.txx:192:   instantiated from ‘void itk::ResampleImageFilter&lt;TInputImage, TOutputImage, TInterpolatorPrecisionType&gt;::ThreadedGenerateData(const typename TOutputImage::RegionType&amp;, int) [with TInputImage = main(int, char**)::rgbImageType, TOutputImage = main(int, char**)::rgbImageType, TInterpolatorPrecisionType = double]’</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">/Users/dweber/src/kitware/itkImageCoregistration/itkImageCoregistration.cxx:542:   instantiated from here</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">/opt/local/include/InsightToolkit-3.14/BasicFilters/itkResampleImageFilter.txx:467: error: no match for ‘operator&gt;’ in ‘value &gt; maxOutputValue’</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">gmake[2]: *** [CMakeFiles/itkImageCoregistration.dir/itkImageCoregistration.o] Error 1</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">gmake[1]: *** [CMakeFiles/itkImageCoregistration.dir/all] Error 2</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">gmake: *** [all] Error 2</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><br><br>Many TIA,<br><font color="#888888">Darren<br>
<br>
</font></blockquote></div><br>