<br>All hail the guru!<br><br>Yea, that's the trick.<br><br>Thanks Bill!<br>Darren<br><br><br><br><div class="gmail_quote">On Wed, Sep 30, 2009 at 1:14 PM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>></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;">Try itkVectorResampleImageFilter instead of itkResampleImageFilter.<br>
<br>
On Wed, Sep 30, 2009 at 3:58 PM, Darren Weber<br>
<div><div></div><div class="h5"><<a href="mailto:darren.weber.lists@gmail.com">darren.weber.lists@gmail.com</a>> wrote:<br>
><br>
> There may be the same build problem when using itk::Vector< float, 3 > as<br>
> the pixel type (instead of itk::RGBPixel). See the attached src code and<br>
> uncomment lines 477--491 to see the build errors (with ITK 3.14.0).<br>
><br>
><br>
><br>
> On Tue, Sep 29, 2009 at 7:12 PM, Darren Weber <<a href="mailto:darren.weber.lists@gmail.com">darren.weber.lists@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Please find attached a src file to calculate a registration (based on<br>
>> scalar image data). The final transform should be applied to RGB images.<br>
>> 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>
>> $HOME/bin/itkImageCoregistration \<br>
>> ./w1/bw/section0178_w1.tif \<br>
>> ./w1/bw/section0179_w1.tif \<br>
>> ./w1/bw_align/section0179to0178_w1.tif \<br>
>> ./w1/tif/section0178_w1.tif \<br>
>> ./w1/tif/section0179_w1.tif \<br>
>> ./w1/tif_align/section0179to0178_w1.tif \<br>
>> ./w1/bw_align/section0179to0178_w1_DiffBefore.tif \<br>
>> ./w1/bw_align/section0179to0178_w1_DiffAfter.tif<br>
>><br>
>> The src builds when lines 474-488 are commented out, but otherwise<br>
>> resampling the RGB data fails in compile-time errors (ITK 3.14), i.e.:<br>
>><br>
>> [100%] Building CXX object<br>
>> CMakeFiles/itkImageCoregistration.dir/itkImageCoregistration.o<br>
>> /opt/local/include/InsightToolkit-3.14/Common/itkConceptChecking.h: In<br>
>> member function ‘void<br>
>> itk::Concept::HasNumericTraits<T>::Constraints::constraints() [with T =<br>
>> main(int, char**)::rgbPixelType]’:<br>
>> /opt/local/include/InsightToolkit-3.14/Common/itkConceptChecking.h:580:<br>
>> instantiated from ‘itk::Concept::HasNumericTraits<main(int,<br>
>> char**)::rgbPixelType>’<br>
>><br>
>> /opt/local/include/InsightToolkit-3.14/BasicFilters/itkResampleImageFilter.h:252:<br>
>> instantiated from ‘itk::ResampleImageFilter<main(int, char**)::rgbImageType,<br>
>> main(int, char**)::rgbImageType, double>’<br>
>><br>
>> /Users/dweber/src/kitware/itkImageCoregistration/itkImageCoregistration.cxx:475:<br>
>> instantiated from here<br>
>> /opt/local/include/InsightToolkit-3.14/Common/itkConceptChecking.h:571:<br>
>> error: ‘IsPositive’ is not a member of ‘itk::NumericTraits<main(int,<br>
>> char**)::rgbPixelType>’<br>
>> /opt/local/include/InsightToolkit-3.14/Common/itkConceptChecking.h:572:<br>
>> error: ‘IsNonpositive’ is not a member of ‘itk::NumericTraits<main(int,<br>
>> char**)::rgbPixelType>’<br>
>> /opt/local/include/InsightToolkit-3.14/Common/itkConceptChecking.h:573:<br>
>> error: ‘IsNegative’ is not a member of ‘itk::NumericTraits<main(int,<br>
>> char**)::rgbPixelType>’<br>
>> /opt/local/include/InsightToolkit-3.14/Common/itkConceptChecking.h:574:<br>
>> error: ‘IsNonnegative’ is not a member of ‘itk::NumericTraits<main(int,<br>
>> char**)::rgbPixelType>’<br>
>><br>
>> /opt/local/include/InsightToolkit-3.14/BasicFilters/itkResampleImageFilter.txx:<br>
>> In member function ‘void itk::ResampleImageFilter<TInputImage, TOutputImage,<br>
>> TInterpolatorPrecisionType>::NonlinearThreadedGenerateData(const typename<br>
>> TOutputImage::RegionType&, int) [with TInputImage = main(int,<br>
>> char**)::rgbImageType, TOutputImage = main(int, char**)::rgbImageType,<br>
>> TInterpolatorPrecisionType = double]’:<br>
>><br>
>> /opt/local/include/InsightToolkit-3.14/BasicFilters/itkResampleImageFilter.txx:183:<br>
>> instantiated from ‘void itk::ResampleImageFilter<TInputImage, TOutputImage,<br>
>> TInterpolatorPrecisionType>::ThreadedGenerateData(const typename<br>
>> TOutputImage::RegionType&, int) [with TInputImage = main(int,<br>
>> char**)::rgbImageType, TOutputImage = main(int, char**)::rgbImageType,<br>
>> TInterpolatorPrecisionType = double]’<br>
>><br>
>> /Users/dweber/src/kitware/itkImageCoregistration/itkImageCoregistration.cxx:542:<br>
>> instantiated from here<br>
>><br>
>> /opt/local/include/InsightToolkit-3.14/BasicFilters/itkResampleImageFilter.txx:288:<br>
>> error: no match for ‘operator>’ in ‘value > maxOutputValue’<br>
>><br>
>> /opt/local/include/InsightToolkit-3.14/BasicFilters/itkResampleImageFilter.txx:<br>
>> In member function ‘void itk::ResampleImageFilter<TInputImage, TOutputImage,<br>
>> TInterpolatorPrecisionType>::LinearThreadedGenerateData(const typename<br>
>> TOutputImage::RegionType&, int) [with TInputImage = main(int,<br>
>> char**)::rgbImageType, TOutputImage = main(int, char**)::rgbImageType,<br>
>> TInterpolatorPrecisionType = double]’:<br>
>><br>
>> /opt/local/include/InsightToolkit-3.14/BasicFilters/itkResampleImageFilter.txx:192:<br>
>> instantiated from ‘void itk::ResampleImageFilter<TInputImage, TOutputImage,<br>
>> TInterpolatorPrecisionType>::ThreadedGenerateData(const typename<br>
>> TOutputImage::RegionType&, int) [with TInputImage = main(int,<br>
>> char**)::rgbImageType, TOutputImage = main(int, char**)::rgbImageType,<br>
>> TInterpolatorPrecisionType = double]’<br>
>><br>
>> /Users/dweber/src/kitware/itkImageCoregistration/itkImageCoregistration.cxx:542:<br>
>> instantiated from here<br>
>><br>
>> /opt/local/include/InsightToolkit-3.14/BasicFilters/itkResampleImageFilter.txx:467:<br>
>> error: no match for ‘operator>’ in ‘value > maxOutputValue’<br>
>> gmake[2]: ***<br>
>> [CMakeFiles/itkImageCoregistration.dir/itkImageCoregistration.o] Error 1<br>
>> gmake[1]: *** [CMakeFiles/itkImageCoregistration.dir/all] Error 2<br>
>> gmake: *** [all] Error 2<br>
>><br>
>><br>
>><br>
>> Many TIA,<br>
>> Darren<br>
>><br>
><br>
><br>
</div></div>> _____________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the ITK FAQ at:<br>
> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
><br>
><br>
</blockquote></div><br>