Skew detection and correction

2 visualizaciones (últimos 30 días)
ganesh
ganesh el 5 de Dic. de 2013
Comentada: oza san el 28 de Mzo. de 2017
I hane a binary image that contains a headerline. I want to skew image so that header line will be in horozontal direction.
  2 comentarios
Image Analyst
Image Analyst el 6 de Dic. de 2013
Please attach your image so we can recommend an approach.
oza san
oza san el 28 de Mzo. de 2017
i have an image like below and i want to detect and correct the skew can you help me sir?

Iniciar sesión para comentar.

Respuestas (2)

Image Analyst
Image Analyst el 5 de Dic. de 2013
So find the line, then call imtransform to remove the shear (skew).
  1 comentario
Alex Taylor
Alex Taylor el 6 de Dic. de 2013
Editada: Alex Taylor el 6 de Dic. de 2013
Image Analyst's answer is on the money. However, I would use imwarp and affine2d instead of imtransform/maketform. The use of imtransform is no longer recommended.

Iniciar sesión para comentar.


Alex Taylor
Alex Taylor el 6 de Dic. de 2013
Editada: John Kelly el 27 de Feb. de 2015
I do actually have one clarification from the tags. Do you really mean skew/shear, or do you actually mean rotation?
If you only need to rotate the header line out of view, it will be easier to just use the imrotate function (assuming you have the Image Processing Toolbox).

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by