How do I make shear corrections to an image?

조회 수: 2 (최근 30일)
Marshall
Marshall 2015년 11월 5일
답변: Dima Lisin 2015년 11월 5일
I am being tasked with correcting images provided by an electorn microscope. The pictures of the lattice do not have a 90 degree angle as they should between perpendicular lines. How do I go about doing this shearing?
  댓글 수: 1
Matt J
Matt J 2015년 11월 5일
To solve for the image transformation (and hence undo it), you are going to need to identify pairs of lines that are supposed to be perpendicular to each other in the "sheared image".
Are parallel lines in the lattice still parallel in the image? If so, you need at least 2 pairs of orthogonal lines. Otherwise, you need at least 5 pairs. Is that available in the image that you have?

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

답변 (2개)

Dima Lisin
Dima Lisin 2015년 11월 5일
You need some points from your image, and their corresponding "ideal" locations. Then you can compute the transformation using fitgeotrans function and apply it to the image using imwarp.

Star Strider
Star Strider 2015년 11월 5일
I’m not exactly certain I understand your images, but either the imwarp or imrotate functions might be appropriate. Both are in the Image Processing Toolbox.

카테고리

Help CenterFile Exchange에서 Read, Write, and Modify Image에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by