필터 지우기
필터 지우기

How to find the symmetry axis of an Image?

조회 수: 8 (최근 30일)
Richa Nayak
Richa Nayak 2012년 9월 30일
The image is rotated 60 degrees, gray scale*,.tiff format*. I want find its symmetry axis to rotate it to 0 degrees. I am using MATLAB R2010

답변 (2개)

Matt J
Matt J 2012년 9월 30일
Assuming you have the Image Processing toolbox, you could use REGIONPROPS(...,'Orientation').

Image Analyst
Image Analyst 2012년 9월 30일
편집: Image Analyst 2012년 9월 30일
If you have a recent (R2012a or later, I think) Image Processing Toolbox, you can use imregister(). See their example on http://www.mathworks.com/help/images/ref/imregister.html - it does just that.
  댓글 수: 5
Image Analyst
Image Analyst 2012년 10월 3일
편집: Image Analyst 2012년 10월 3일
I'm not quite sure how regionprops could be used. Could you give a short demo? To take into account the entire image, the binary image (or labeled image) would have to be the entire image, and then the orientation would not be different for different images because the binary image would be the same for all images. Perhaps I'm just overlooking something.
Matt J
Matt J 2012년 10월 3일
편집: Matt J 2012년 10월 3일
Gosh, I hadn't noticed that REGIONPROPS(...,'Orientation') doesn't incorporate the intensity image distribution into its calculations. That seems pretty bizarre, no? Why do so for 'WeightedCentroid', which you would obviously use to get translational position, but not offer proper intensity moment calculations to get orientation?

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

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by