orientation of connected component in a binary image
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen

hi friends can some one help me in finding orientation of each connected component in a binary image. To be more clear in the above image how to calculate that how much each white region is inclined? Basically i am working in number plate detection. I am able to locate number plate but some times number plate is locating but in parts. So depending on difference between angle of inclination of two connected regions i want to combine that particular two regions.
Thanks
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 21 Jan. 2013
Call regionprops(), asking it to return 'Orientation'. See my image segmentation tutorial if you need help.
2 Kommentare
Image Analyst
am 30 Jan. 2013
You can't subtract the structures. The structure could have lots of members representing area, angles, perimeters, etc. You need to extract the angles and then subtract them.
allAngles = [measurements.Orientation];
differenceAngle = allAngles(3) - allAngles(1); % Or whatever you want to subtract.
Weitere Antworten (0)
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!