<meta http-equiv="content-type" content="text/html; charset=utf-8"><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"> You should be able to use an itk::UnaryFunctorImageFilter with a<br>

custom-defined functor that performs the rotation. This will at least<br>
save you from iterating manually over the pixels.<br>
<br>
Hope that helps,<br>
<font color="#888888">Cory<br>
</font></blockquote></div><br></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>Thanks Cory, that was exactly what I was looking for. Here is an example for anyone interested:</div><a href="http://www.vtk.org/Wiki/ITK/Examples/Images/UnaryFunctorImageFilter">http://www.vtk.org/Wiki/ITK/Examples/Images/UnaryFunctorImageFilter</a><div>
<br></div><div><a href="http://www.vtk.org/Wiki/ITK/Examples/Images/UnaryFunctorImageFilter"></a>I tried to show how to convert between a Vector and a VariableLengthVector, but neither conversion seems to go well. Here is what I tried:</div>
<div><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://www.vtk.org/Wiki/ITK/Examples/VariableLengthVector">http://www.vtk.org/Wiki/ITK/Examples/VariableLengthVector</a></div><div><a href="http://www.vtk.org/Wiki/ITK/Examples/VariableLengthVector"></a>(the two functions VectorToVariableLengthVector() and VariableLengthVectorToVector() ). Can anyone explain how to do this properly?</div>
<div><br>Thanks,<br><br>David</div></div>