<div class="gmail_quote">On Sun, Apr 3, 2011 at 12:43 PM, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
When trying to compile this:<br>
<br>
#include "itkVectorImage.h"<br>
#include "itkMaskImageFilter.h"<br>
<br>
typedef itk::VectorImage<unsigned char, 2> VectorImageType;<br>
typedef itk::Image<unsigned char, 2> MaskImageType;<br>
<br>
int main(int argc, char *argv[])<br>
{<br>
typedef itk::MaskImageFilter< VectorImageType, MaskImageType > MaskFilterType;<br>
MaskFilterType::Pointer maskFilter = MaskFilterType::New();<br>
maskFilter->Update();<br>
<br>
return EXIT_SUCCESS;<br>
}<br>
<br>
I get<br>
itkMaskImageFilter.h:60: error: invalid conversion from ‘const<br>
itk::VariableLengthVector<unsigned char> (*)(const<br>
itk::VariableLengthVector<unsigned char>&)’ to ‘unsigned int’<br>
itkMaskImageFilter.h:60: error: initializing argument 1 of<br>
‘itk::VariableLengthVector<TValueType>::VariableLengthVector(unsigned<br>
int) [with TValueType = unsigned char]’<br>
<br>
Is there any reason a VectorImage cannot be masked?<br>
<br>
Thanks,<br>
<font color="#888888"><br>
David<br>
</font></blockquote></div><br><div><meta http-equiv="content-type" content="text/html; charset=utf-8">Is there a different class to mask a VectorImage?<br><br>David<br></div>