[vtkusers] Translation of Image using vtkTransform
Jothybasu K Selvaraj
jothybasu at gmail.com
Wed Apr 14 10:40:00 EDT 2010
Hey Rakesh,
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.
Are yotrying to do something different?
Jothy
On Wed, Apr 14, 2010 at 3:29 PM, Eric E. Monson <emonson at cs.duke.edu> wrote:
> Hey Rakesh,
>
> 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:
>
> imActor->SetPosition(x,y,z);
>
> 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.
>
> -Eric
>
> ------------------------------------------------------
> Eric E Monson
> Duke Visualization Technology Group
>
>
> On Apr 14, 2010, at 8:24 AM, Jothybasu K Selvaraj wrote:
>
> Have a look at
>
> http://www.itk.org/Wiki/VTK/Examples/ImageDataGeometryFilter
>
> Jothy
>
> On Wed, Apr 14, 2010 at 12:58 PM, Rakesh Patil <rakeshthp at in.com> wrote:
>
>> Hello,
>>
>> 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..
>>
>> Any easier way to translate the image from its default position to user
>> defined position..??
>>
>> Thanks
>>
>> Rakesh Patil
>>
>>
>> Dear *VTK !* Get Yourself a cool, short *@in.com* Email ID now!<http://mail.in.com/mails/new_reg.php?utm_source=invite&utm_medium=outgoing>
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100414/d0713976/attachment.htm>
More information about the vtkusers
mailing list