X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 17 Oct 2007 09:12 AM by  anon
use omega, phi, kappa
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
17 Oct 2007 09:12 AM
    Hi I am trying to use IDL to program omega, phi, kappa effects for image. Does anybody has experience on how to set the parameters on IDLgrModel->rotate. The kappa is working well(rotate against Z), but the omega(rotate against X) and phi(rotate against Y). Many Thanks! Jeff Wang

    Deleted User



    New Member


    Posts:
    New Member


    --
    17 Oct 2007 09:12 AM
    To rotate your model in three dimensions, you can always make three successive calls to Rotate: oModel->Rotate, [1,0,0], omega oModel->Rotate, [0,1,0], phi oModel->Rotate, [0,0,1], kappa You'll want to make sure that the rotation point for your model is first translated so that it is sitting at the origin of your coordinate system *before* applying the rotations. Then you'll want to translate everything back to where it was. Otherwise, you'll get some really bizarre results. By the way, if you're attempting to use those angles in an attempt to orthorectify an image, that's a far more complex transformational process which is beyond what you can do with a basic rotation matrix. ENVI has the capabilities to do that correctly.
    You are not authorized to post a reply.