01-11-2006 09:39 AM
@willem wrote:
I have a narrow but very long image (2047 x 16,000) which I wish to rotate by 90 deg so I make better use of the display screen. Using 'IMAQ rotate' this takes on average 2.5 sec. I then tried 'image_to_array, transpose_array, array_to_image, but this took even longer 3.2 sec. As this is only a transpose operation and and no re-calculation of pixels is required why does it take this long ?
01-11-2006 10:18 AM
@TiTou wrote:
Yep Ben, this is certainly correct... I used it as a source of inspiration a couple of month ago and couldn't remember the thread it was coming from ; so many thanks to Christian.
I hope nobody minds if I use it... 'cause I like it !
01-11-2006 10:32 AM
Does this image exist on disk, or is it only available inside labview memory?? If it is on disk, maybe a command line utility to rotate it before opening in labview would be better.
http://www.imagemagick.org/script/command-line-processing.php
01-13-2006 09:18 AM
Hi
I wrote this little VI for you I think that it is the quickest way you will be able to rotate an image in LabVIEW although you will need Vision module to run it. I have also attached a nice big image. Just out of interest, what is your image of and how are you acquiring it. Another thing what is the depth of you’re your image? Haw much ram have you got? I suggest you don’t bother trying this with any less than 1G of RAM.
Hope this helps
Tim
NI
01-16-2006 03:39 AM
This is slightly more memory efficient
01-17-2006 04:05 AM
Tim
The image is obtained using a line scan camera (grey scale). As you say my main problem is lack of memory. I will try it again when I have some more
Thanks
Willem
01-22-2009 03:41 PM
When I try to rotate the picture attached, I found the corners are still black. Is there anyway I can mask or change the background color of the square picture ?
Is there a way to make a round picture so I do not have to worry about this ?
Thanks !