Rotate image parallel to the x-axis
Mostrar comentarios más antiguos
Hello
If I select two points in the picture, and then I extracted the angle between this two points, (note between them line to clarify) Like this picture:

Can I rotate the image so that the path between these two points is parallel to the x-axis, as in the following picture?

I mean if I have two points in a gray or binary image, I want to rotate this image so that the path between the two points is parallel to the X axis.
thank you
8 comentarios
dpb
el 11 de Sept. de 2018
If have Image Processing TB, check out
doc imrotate
wisam kh
el 13 de Sept. de 2018
KALYAN ACHARJYA
el 13 de Sept. de 2018
Attach the original image.
jonas
el 13 de Sept. de 2018
When you use the word identical, do you mean parallel to the x-axis?
Jan
el 13 de Sept. de 2018
@wisam kh: "But I did not get the result I wanted." What do you get instead?
wisam kh
el 13 de Sept. de 2018
dpb
el 13 de Sept. de 2018
It's not the Q? that's unclear, I was pointing out you must define which direction the angle is defined from and ensure you do the rotation to negate the angle as opposed to adding to it...
As others said, your description of what is not as expected is not useful
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Geometric Transformation and Image Registration en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!