Skew detection and correction

조회 수: 3 (최근 30일)
ganesh
ganesh 2013년 12월 5일
댓글: oza san 2017년 3월 28일
I hane a binary image that contains a headerline. I want to skew image so that header line will be in horozontal direction.
  댓글 수: 2
Image Analyst
Image Analyst 2013년 12월 6일
Please attach your image so we can recommend an approach.
oza san
oza san 2017년 3월 28일
i have an image like below and i want to detect and correct the skew can you help me sir?

댓글을 달려면 로그인하십시오.

답변 (2개)

Image Analyst
Image Analyst 2013년 12월 5일
So find the line, then call imtransform to remove the shear (skew).
  댓글 수: 1
Alex Taylor
Alex Taylor 2013년 12월 6일
편집: Alex Taylor 2013년 12월 6일
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.

댓글을 달려면 로그인하십시오.


Alex Taylor
Alex Taylor 2013년 12월 6일
편집: John Kelly 2015년 2월 27일
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).

카테고리

Help CenterFile Exchange에서 Geometric Transformation and Image Registration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by