Changing Angle of a LINE in a image

5 visualizaciones (últimos 30 días)
Tricky
Tricky el 7 de Nov. de 2011
Line in a image is inclined at an angle of 35 degrees. Is it possible to change the inclined angle to zero to make it a straight line.

Respuestas (1)

Image Analyst
Image Analyst el 7 de Nov. de 2011
How about imrotate(), imtransform(), or maketform()?
  2 comentarios
Tricky
Tricky el 7 de Nov. de 2011
rotatedImg = imrotate(MyImage,45,'bicubic');
By using this I was able to get the line as a straight line as I required but the pixels are changing.
How to overcome this pixel variations
Walter Roberson
Walter Roberson el 7 de Nov. de 2011
Changing the pixel values cannot be helped when you are rotating from a discrete grid on to a discrete grid.

Iniciar sesión para comentar.

Categorías

Más información sobre Geometric Transformation and Image Registration en Help Center y File Exchange.

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by