<div class="gmail_quote">On Thu, Oct 7, 2010 at 11:39 AM, Jothy <span dir="ltr"><<a href="mailto:jothybasu@gmail.com">jothybasu@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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 class="h5"></div></div></div></blockquote></div>
<br><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><div>David</div>