Ask Your Question
2

How to Rotate Image based on a template/feature

asked 2015-02-21 04:57:20 -0600

RR14 gravatar image

updated 2015-02-21 05:09:20 -0600

Hello,

I'd like to rotate my circular image based a detected feature or template image.

so my images will be exactly the same rotated.

lets say this is my original image

image description

when I give this image as input.

image description

it should detect small circle's template or feature then rotate it while those two images will be same.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-02-21 05:57:25 -0600

Use HoughCircles to find booth circles and compute the Rotation angle. Then use getrotationmatrix2d to get the Rotation around the Center of the large Circle With the just computed Rotation an use warpaffine to apply it to the image.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-02-21 04:57:20 -0600

Seen: 284 times

Last updated: Feb 21 '15