Yeah never found any filter doing that . I had also ended up doing the same thing as you .. <br><br><div class="gmail_quote">On Thu, Oct 7, 2010 at 11:43 AM, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im"><div class="gmail_quote">On Thu, Oct 7, 2010 at 11:39 AM, Jothy <span dir="ltr"><<a href="mailto:jothybasu@gmail.com" target="_blank">jothybasu@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr">I am not able to understand totally what you want to do.<br><br>Could you post that part of code?<br><font color="#888888"><br>Jothy</font><div><div></div><div></div></div></div></blockquote></div>
<br></div><div><div> // Rotate gradient 90 degrees</div><div> for(vtkIdType i = extents[0]; i < extents[1]; i++)</div><div> {</div><div> for(vtkIdType j = extents[2]; j < extents[3]; j++)</div><div> {</div>
<div>
double* pixel = static_cast<double*>(normalizedGradient->GetScalarPointer(i,j,0));</div><div> double temp[2] = {pixel[0], pixel[1]};</div><div> pixel[0] = -temp[1];</div><div> pixel[1] = temp[0];</div>
<div> }</div><div> }</div></div><div><br></div><div>It is only short because the rotation is 90 degrees. I was just wondering if there was a general rotation filter.</div><div><br></div><font color="#888888"><div>
David</div>
</font><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>