<div dir="ltr">Hey Rakesh,<br><br>I didn't get your point clearly. If you only want to display the image at a different position you can use setPosition() as Eric said.<br><br>Are yotrying to do something different?<br>
<br><br>Jothy<br><br><div class="gmail_quote">On Wed, Apr 14, 2010 at 3:29 PM, Eric E. Monson <span dir="ltr"><<a href="mailto:emonson@cs.duke.edu">emonson@cs.duke.edu</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 style="word-wrap: break-word;"><div>Hey Rakesh,</div><div><br></div>If you just want to display the image in your render window at a specified location, you can change the position of the actor. If you use the output of a reader or some filter as the input to a vtkImageActor, then you can just do:<div>
<br></div><div>imActor->SetPosition(x,y,z);</div><div><br></div><div>If you really want to change the origin of the image for some other calculation, then you can use vtkImageChangeInformation to modify the image properties.</div>
<div><br></div><div>-Eric</div><div><br></div><div><div>
<span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div>
------------------------------------------------------</div><div>Eric E Monson</div><div>Duke Visualization Technology Group</div><div><span style="font-size: medium;"><br></span></div></span>
</div><div><div></div><div class="h5">
<br><div><div>On Apr 14, 2010, at 8:24 AM, Jothybasu K Selvaraj wrote:</div><br><blockquote type="cite"><div dir="ltr">Have a look at<br><br><a href="http://www.itk.org/Wiki/VTK/Examples/ImageDataGeometryFilter" target="_blank">http://www.itk.org/Wiki/VTK/Examples/ImageDataGeometryFilter</a><br>
<br>Jothy<br><br><div class="gmail_quote">On Wed, Apr 14, 2010 at 12:58 PM, Rakesh Patil <span dir="ltr"><<a href="mailto:rakeshthp@in.com" target="_blank">rakeshthp@in.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;">Hello,<br><br>I want to display image at a particular point other than default one.. I tried using vtkTransform, vtkTransformPolyDataFilter and vtkImageDataToPolyDataFilter.. But here it takes lot of time to convert image data to polydata..<br>
<br>Any easier way to translate the image from its default position to user defined position..??<br><br>Thanks<br><br>Rakesh Patil<br><br><br><div style="border-top: 1px dashed rgb(204, 204, 204); border-bottom: 1px dashed rgb(204, 204, 204); padding: 5px;">
<a href="http://mail.in.com/mails/new_reg.php?utm_source=invite&utm_medium=outgoing" style="font: 13px arial; color: rgb(30, 86, 161); text-decoration: none;" target="_blank">Dear <b>VTK !</b> Get Yourself a cool, short <b>@in.com</b> Email ID now!</a></div>
<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></div>
_______________________________________________<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>
</blockquote></div><br></div></div></div></div><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></div>