comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Rotate an image using objects
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Rotate an image using objects [message #24485] Wed, 04 April 2001 08:47
Daniel SAGE is currently offline  Daniel SAGE
Messages: 10
Registered: April 1998
Junior Member
We try to do geometric transformation a 2D flat image (e.g
findgen(128,128)) including in a model.
It works fine with the translation (mymodel->Translate) and scaling
(mymodel->Scale) but
it doesn't for the rotation (mymodel-> rotate). Our goal is to rotate
the image at the center of image.

See the above code.

Anyone has an idea why it doesn't work.

Thank you

pro test

mywindow = obj_new('IdlgrWindow', dimensions=[512,512])
myview = obj_new('IDLgrView', view=[-256,-256,512,512])
mymodel = obj_new('IDLgrModel')
image=findgen(128,128)
myimage = obj_new('idlgrimage', image)
myImage->SetProperty, Location=[-64,-64]
myview-> Add, mymodel
mymodel-> Add, myimage
mymodel-> rotate, [0,0,1], 5 ; DO NOT WORK
mymodel-> translate, -10, -10, 0.0 ; WORK
mywindow -> Draw, myview

end

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- =-=-
Daniel Sage
Swiss Federal Institute of Technology Lausanne (EPFL)
Biomedical Imaging Group (BIG)

Addr.: EPFL, DMT/IOA, BM-Ecublens, CH-1015 Lausanne, Switzerland
Tel : +41 21 693 5189
Fax : +41 21 693 3701
Email: daniel.sage@epfl.ch
Url : http://bigwww.epfl.ch/
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- =-=-
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: POLY_2D proken. Film at 11.
Next Topic: Re: Rotate an image using objects

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:47:37 PDT 2025

Total time taken to generate the page: 0.00475 seconds