[Insight-users] itkTileImageFilter.hxx no matching function for VectorImage<PixelType, 2u>

Bill Lorensen bill.lorensen at gmail.com
Fri Nov 11 08:04:11 EST 2011


Definitely a bug.

Try replacing the offending statement with:
  m_DefaultPixelValue =
    NumericTraits< OutputPixelType >::ZeroValue(m_DefaultPixelValue);

If if works, let me know and I'll submit a patch.

Thanks,

Bill

On Fri, Nov 11, 2011 at 3:22 AM, Mengqiu Tian <tianmengqiu at gmail.com> wrote:
> Dear all,
>
> I am trying to convert single vector images into one vector image series(
> one file including a series of vector images ). I found
> itkTileImageFilter.h, and the input comes from the output of another filterA
> ( instead of files ).
> The pixel type of output of filterA is VectorImage<PixelType, 2u> and the
> pixel type of output of TileImageFilter should be VectorImage< PixelType, 3u
>>. My problem is, when I try to compile my program, I got a error:
>
> ITK/Modules/Filtering/ImageGrid/include/itkTileImageFilter.hxx:37:3: error:
> no matching function for call to
> ‘itk::NumericTraits<itk::VariableLengthVector<short unsigned int>
>>::ZeroValue()’
> /ITK/Modules/Core/Common/include/itkNumericTraitsVariableLengthVectorPixel.h:112:21:
> note: candidate is: static const
> itk::NumericTraits<itk::VariableLengthVector<TValueType> >::Self
> itk::NumericTraits<itk::VariableLengthVector<TValueType> >::ZeroValue(const
> itk::NumericTraits<itk::VariableLengthVector<TValueType> >::Self&) [with T =
> short unsigned int, itk::NumericTraits<itk::VariableLengthVector<TValueType>
>>::Self = itk::VariableLengthVector<short unsigned int>]
>
>
> How could I fix this?
>
> Thx in advance :)
>
> Mengqiu
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the Insight-users mailing list