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

Home » Public Forums » archive » Is it possible to rotate a flipped image with cgImage?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Is it possible to rotate a flipped image with cgImage? [message #88842] Wed, 25 June 2014 04:56 Go to previous message
atmospheric physics is currently offline  atmospheric physics
Messages: 121
Registered: June 2010
Senior Member
Hello,

I have a .JPG image, which requires flipping over the top-down axis before rotating the image by 60 degrees ( clockwise counting ).

I now read the JPG image file as below and place:

READ_JPEG,ImgFile.JPG,img,/ORDER
; Flipping the image
flipHorImg = REVERSE(img,1)
; Rotate the flipped image by 60 deg clockwise direction
rotImg = ROT(flipHorImg,60,0.8,/INTERP)
cgImage,rotImg,Position=pos2,/OVERPLOT

I get an error like this ...
% POLY_2D: Expression must be an array in this context: I.

I don't see a problem with flipping of the image, but there is actually a problem with rotated image. While I know that with cgImage, I can use the keyword /NEGATIVE for flipping the image but there is no option for rotating the flipped image. Anyone with a solution and an example will be of great help.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Output matrix from Wavelet Toolkit 3D Wavelet Power Spectrum
Next Topic: A case for lookarounds in StRegEx()

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

Current Time: Wed Oct 08 15:35:00 PDT 2025

Total time taken to generate the page: 0.00427 seconds