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,358 Views)
You can try co-ordinate system for this. Hopefully it will work perfectly..
0 Kudos
Message 2 of 10
(4,354 Views)
Check the battery clamp example in example finder to know how to use co-ordinate systems
0 Kudos
Message 3 of 10
(4,344 Views)

Also you can use this template and try pattern matching

 

patt.JPG

 

 

ppaatt.JPG

 

 

 

0 Kudos
Message 4 of 10
(4,342 Views)
Sorry, I can't understand it very well. But I will Try it.Thank you !
0 Kudos
Message 5 of 10
(4,336 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,294 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,277 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,275 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,272 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,269 Views)