[Insight-users] MaskImageFilter with VectorImage

David Doria daviddoria at gmail.com
Tue Apr 5 19:10:58 EDT 2011


On Sun, Apr 3, 2011 at 12:43 PM, David Doria <daviddoria at gmail.com> wrote:

> When trying to compile this:
>
> #include "itkVectorImage.h"
> #include "itkMaskImageFilter.h"
>
> typedef itk::VectorImage<unsigned char, 2>  VectorImageType;
> typedef itk::Image<unsigned char, 2>  MaskImageType;
>
> int main(int argc, char *argv[])
> {
>  typedef itk::MaskImageFilter< VectorImageType, MaskImageType >
> MaskFilterType;
>  MaskFilterType::Pointer maskFilter = MaskFilterType::New();
>  maskFilter->Update();
>
>  return EXIT_SUCCESS;
> }
>
> I get
> itkMaskImageFilter.h:60: error: invalid conversion from ‘const
> itk::VariableLengthVector<unsigned char> (*)(const
> itk::VariableLengthVector<unsigned char>&)’ to ‘unsigned int’
> itkMaskImageFilter.h:60: error:   initializing argument 1 of
> ‘itk::VariableLengthVector<TValueType>::VariableLengthVector(unsigned
> int) [with TValueType = unsigned char]’
>
> Is there any reason a VectorImage cannot be masked?
>
> Thanks,
>
> David
>

Is there a different class to mask a VectorImage?

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110405/2026d50d/attachment.htm>


More information about the Insight-users mailing list