<div class="gmail_quote">On Sun, Apr 3, 2011 at 12:43 PM, David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>&gt;</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 &quot;itkVectorImage.h&quot;<br>
#include &quot;itkMaskImageFilter.h&quot;<br>
<br>
typedef itk::VectorImage&lt;unsigned char, 2&gt;  VectorImageType;<br>
typedef itk::Image&lt;unsigned char, 2&gt;  MaskImageType;<br>
<br>
int main(int argc, char *argv[])<br>
{<br>
  typedef itk::MaskImageFilter&lt; VectorImageType, MaskImageType &gt; MaskFilterType;<br>
  MaskFilterType::Pointer maskFilter = MaskFilterType::New();<br>
  maskFilter-&gt;Update();<br>
<br>
  return EXIT_SUCCESS;<br>
}<br>
<br>
I get<br>
itkMaskImageFilter.h:60: error: invalid conversion from ‘const<br>
itk::VariableLengthVector&lt;unsigned char&gt; (*)(const<br>
itk::VariableLengthVector&lt;unsigned char&gt;&amp;)’ to ‘unsigned int’<br>
itkMaskImageFilter.h:60: error:   initializing argument 1 of<br>
‘itk::VariableLengthVector&lt;TValueType&gt;::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>