Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

how can I get the rotating angle of a image?

Hello everyone,nowadays I meet a question that how can I get the rotating angle of my image. Please download the attachement " 02.png" before analyzing my problem.Thanks.

 

melo_xu

0 Kudos
Message 1 of 10
(4,372 Views)
You can try co-ordinate system for this. Hopefully it will work perfectly..
0 Kudos
Message 2 of 10
(4,368 Views)
Check the battery clamp example in example finder to know how to use co-ordinate systems
0 Kudos
Message 3 of 10
(4,358 Views)

Also you can use this template and try pattern matching

 

patt.JPG

 

 

ppaatt.JPG

 

 

 

0 Kudos
Message 4 of 10
(4,356 Views)
Sorry, I can't understand it very well. But I will Try it.Thank you !
0 Kudos
Message 5 of 10
(4,350 Views)
open your vision assistant and try playing around with pattern matching to get an idea. Post back if you are still stuck
0 Kudos
Message 6 of 10
(4,308 Views)

Hello,Muks. I still can't  understand the method about coordinates . So I fail to get the rotataed angle of the image. When I use this method ,I  need an template  image. But how can I gain the template image?

 

melo_xu

0 Kudos
Message 7 of 10
(4,291 Views)
Did you try pattern matching? The pattern matching result will return the angle of match. Subtract 360 from this and wire it to "Imaq rotate"
0 Kudos
Message 8 of 10
(4,289 Views)

The pattern matching need two images. One is the template image ,the other is the pictue which need rotate. But how can I get the template image?

0 Kudos
Message 9 of 10
(4,286 Views)

First my personal suggestion is always play around with vision assistant. The templates created using vision assistant can very well be used in labVIEW directly. In fact I almost always create image templates from vision assistant. Got to pattern matching. If your image is a RGB (color) then extract luminance plane using color plane extraction. When you click on pattern matching you will find two option 1. create template 2. Load template.

 

Click create template and select the region that you want to check as the template region.

0 Kudos
Message 10 of 10
(4,283 Views)