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
Re: Is it possible to rotate a flipped image with cgImage? [message #88849 is a reply to message #88847] Wed, 25 June 2014 07:00 Go to previous messageGo to previous message
Mats Löfdahl is currently offline  Mats Löfdahl
Messages: 263
Registered: January 2012
Senior Member
Den onsdagen den 25:e juni 2014 kl. 15:14:47 UTC+2 skrev Madhavan Bomidi:
> Hello Matthew,
>
> Thanks for the example. If I see the images of im and (flipIm or rotflipIm), then there the rose color is changed to blue. I don't want to change the colors from my original image. I wanted to have my original image with all colors as they are and then only apply this flipping and rotation.
>
> Without using interpolation, can't I retain my image as it is and enclose in the available space? I mean if the original image is a square type, the final rotflipIm can be rhombus type. Is this not possible? In order to fill the missing pixels of the im images, can't we use missing color as white?
>
> Look's the image rotation is distorting the original image completely.
>
> Thanks in advance,
>
> Madhavan
>

The reverse command does not know anything about images, it only knows about arrays. And the first dimension of the rose image array is the RGB dimension (of length 3). If you reverse that, in effect you swap the red and blue channels.

If you want to flip it in any of the spatial directions, you should do reverse(im,2) or reverse(im,3), not reverse(im,1).
[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: Fri Oct 10 14:53:55 PDT 2025

Total time taken to generate the page: 0.16030 seconds