LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you rotate a Tiff picture without using Vision Development software?

Hi:
Does anybody know how to rotate a TIFF picture in Labview if I don't have the complete Vision Development package?
I do have the limited Vision Acquisition software that allows me to do some basic manipulation but not rotate.
The pic is a binary string.

Thanks
0 Kudos
Message 1 of 9
(3,260 Views)

Hi JPLEng,

how do you get the TIFF picture into LabView? To rotate it you can create an image array like the internal structure of labview, and change the position of the pixel in this way that it represents a rotation of the image.

Mike

0 Kudos
Message 2 of 9
(3,244 Views)

Try Image Toolbox at:

http://www.geocities.com/gzou999/imgtool.htm

 

George Zou
0 Kudos
Message 3 of 9
(3,228 Views)
Especially easy are the simple rotations (90, 180, 270 degrees)
 
 
But arbitrary rotations are not that hard either:
 
 
(you could even use bilinear interpolation for extra fidelity since the pixels don't map 1:1 for arbitrary rotations, ;), see http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=166566#M166566)
 
 
Message 4 of 9
(3,205 Views)
altenbach's method looks good for performence.  I give it 5 stars.
 
Image Toolbox provides high quality image rotation using bicubic interpolation.
 
George Zou
0 Kudos
Message 5 of 9
(3,188 Views)


zou wrote:
altenbach's method looks good for performence. 
The code is pretty old and can be simplified. For example, a simple complex multiplication  could be substituted for the rotation code, see:
 
 
for an example. Not sure if it would be faster, though. 😉
0 Kudos
Message 6 of 9
(3,180 Views)
Thanks for the response:

Can you give more detail?

I'm aware I need to manipulate the bits somehow. Just not sure how.
I figure somebody MUST have already done this.

I'm reading in my TIFF with the Vision IMAQ Read File vi.

Thanks again


0 Kudos
Message 7 of 9
(3,149 Views)
Thanks for the response

I looked at those links. They do not seem to be TIFF friendly.

Have you got them too work with a  TIFF?

Thanks


0 Kudos
Message 8 of 9
(3,148 Views)
LabVIEW can read/write PNG, BMP, and GIF.
 
Once you have it as 2D array of data, it is really irrelevant what it originally was or as what you'll save it later.
 
 
Jim made an example that uses .NET to convert BMP to TIFF, have a look here:
 
 
Check the LAVA link for a bug fix. Maybe you can adapt it for your purpose.
0 Kudos
Message 9 of 9
(3,136 Views)