Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

align image

I need to process my image. My image consists of a matrix of dots (see attached). But I need to align this matrix of dots so that its left edge is parallel to the y-axis of an intensity graph. How can i program it to align by itself? I need the program to be able to do this for different images with different degrees of slantness.

Thanks in advance.
0 Kudos
Message 1 of 2
(3,132 Views)
Kian,
With the image you have given, my first suggestion would be to do an edge detection across a region of your image. From this, you be given a line along with its rotation information. The rotation information can be passed into IMAQ Rotate which will rotate the image the given angle. The key will be finding some information in your image that will consistently give you a angle. If the edge detection is not working for all of your images, you may need to experiment, but the concept will be the same.
Best Regards,
Chris D
NI Applications Engineer
Message 2 of 2
(3,132 Views)