can anyone give the recover image rotation code?
조회 수: 5 (최근 30일)
이전 댓글 표시
I need to recover an rotated image. I found the solution in MATLAB solution:
but I am not able to use it. It would be helpful if anyone could provide the code.
댓글 수: 4
Image Analyst
2015년 9월 5일
편집: Image Analyst
2015년 9월 5일
If all you have is a final, rotated image, and no original image to compare it to, then obviously there is no way to find out how much your only image was rotated, or even if it was rotated. Rotation has to be compared to something.
Look at this image.
Now, if I tell you it's rotated, but don't tell you anything else, can you tell me how much it was rotated?
채택된 답변
Image Analyst
2015년 9월 5일
You can use imrotate() if you know the angle. If you don't know the angle you'll have to figure it out - it's not hard, just the arctangent of the ratio of the length of the two black triangle sides.
댓글 수: 2
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!