opencv - How to find the rotation between two binary images -
opencv - How to find the rotation between two binary images -
i need find rotation angle between 2 binary images. can right rotation rotating images specified angle. can help please?
i tried principle axis rotation angle doesn't give accurate result. can 1 suggest me improve method. , image anything. need not image uploaded here. images binary.
for each image
threshold image object pixels non-zero , background pixels zero find convexhull of non-zero pixels (you may utilize method cut down number of points utilize calculate convexhull, such first finding contours. main thought find convexhull) calculate minimum-area-rectangle using minarearect , it'll homecoming rotatedrect object (in c++). object contains rotation angle take differencenote: approach not work if somehow resulting min-area-rect returns same angle though object rotation different. therefore, sense it's improve utilize other measures such moments of filled convexhull calculate rotation: http://en.wikipedia.org/wiki/image_moment
opencv image-processing rotation emgucv
Comments
Post a Comment