Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Fast rotation of image only for visualization

Good day, i need some help in a problem i have encountered.
We are developing an application for automated inspection of electronic boards. The user must insert the board inside a close box containing the camera and the illumination hardware, to help him find the reference we draw a rectangle and overlay it to the main image from the camera. Problem is that the camera is rotated of 90 degree from the natural insertion point of the box and this is no good from the user point of view.
So i simply decided to rotate of 90 degree the image from the camera, only during the insertion of the board, to help the user. During this fase i have some processing time spent to find the fiducial, over the board, and confirm his position. If i use Imaq Rotate take me about 400 ms to do this operation because i work with large images of 2592x1944. I already tried to reduce the size of the image and then rotate it but i obtained poor results.
There is some other way, maybe in the Imaq Indicator, to speed up the process?

 

 

Thank you.

 

Frabcesco

0 Kudos
Message 1 of 3
(4,989 Views)

I was under the impression that IMAQ Rotate would catch the special cases with 90/180/270 degree rotations.  It might help to try switching a few options on or off.  For example, turn bilinear interpolation off.  I think Maintain Size needs to be turned off also.

 

You might be able to use IMAQ Symmetry.  That works really well for flipping images.  I'm not sure if you could get a rotation using a series of flips.  I'm not sure what Center symmetry is, but it might help.  It might just be both a horizontal and vertical flip together, which won't help any.  If you had a square image you might be able to do it.  The more I think about it, the more I doubt Symmetry will do any good.

 

Bruce

Bruce Ammons
Ammons Engineering
0 Kudos
Message 2 of 3
(4,972 Views)

Thank you Bruce. I found out that is not the Imaq Rotate the problem (it take about 50 ms) but the overlays, at least the use that i made of them. Using correctly the Imaq Set Overlay Properties i bring home the result.

 

Francesco

0 Kudos
Message 3 of 3
(4,965 Views)