<div>I am trying to apply a transform (rotation) to every pixel in a (2D) VectorImage:</div><div>typedef itk::VectorImage<float, 2> ImageType;</div><div><br></div><div>I found that itkRigid2DTransform::TransformVector operates on </div>
<div>itk::Vector<double, 2> VectorType;</div><div><br></div><div>but it complains if I pass it a pixel of the VectorImage, which is a VariableLengthVector (but length 2, of course).</div><div><br></div><div>Is there a way to apply a transformation to a VariableLengthVector directly? Or is it necessary to convert it to a itk::Vector of the appropriate fixed size first? Even better, is there a filter to apply this transform to every pixel in the VectorImage directly (without iterating over the pixels manually)?</div>
<div><br clear="all">Thanks,<br><br>David<br>
</div>