Machine Vision

annulla
Visualizzazione dei risultati per 
Cerca invece 
Intendevi dire: 

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
Messaggio 1 di 10
5.100Visualizzazioni
You can try co-ordinate system for this. Hopefully it will work perfectly..
0 Kudos
Messaggio 2 di 10
5.096Visualizzazioni
Check the battery clamp example in example finder to know how to use co-ordinate systems
0 Kudos
Messaggio 3 di 10
5.086Visualizzazioni

Also you can use this template and try pattern matching

 

patt.JPG

 

 

ppaatt.JPG

 

 

 

0 Kudos
Messaggio 4 di 10
5.084Visualizzazioni
Sorry, I can't understand it very well. But I will Try it.Thank you !
0 Kudos
Messaggio 5 di 10
5.078Visualizzazioni
open your vision assistant and try playing around with pattern matching to get an idea. Post back if you are still stuck
0 Kudos
Messaggio 6 di 10
5.036Visualizzazioni

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
Messaggio 7 di 10
5.019Visualizzazioni
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
Messaggio 8 di 10
5.017Visualizzazioni

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
Messaggio 9 di 10
5.014Visualizzazioni

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
Messaggio 10 di 10
5.011Visualizzazioni