rotate image
조회 수: 2 (최근 30일)
이전 댓글 표시
댓글 수: 0
답변 (2개)
Jan
2012년 3월 2일
What is the difference between the two shown picture sets? Are you looking for the 'crop' method?
B = imrotate(P, T, 'nearest', 'crop')
댓글 수: 4
Jan
2012년 3월 4일
I do not understand. It is still not clear, what you want to achieve and what is the difference between the two posted pictures. Why is the result of "imrotate('crop')" not satisfying?
Image Analyst
2012년 3월 2일
Junaid, there is additional information that is not being shown. Even the 0 degree image was cropped out of a larger image. How do I know that? Well look at the "good" 45 degree rotation. Do you see that black and white "ball" structure in the upper left corner? Well, it was not there at all in the zero degree image. That means it "got rotated in" from some region unseen (i.e. outside) the zero degree image. To get this "good" image, you'll have to start with the full image.
댓글 수: 6
Image Analyst
2012년 3월 4일
That's impossible. As you rotate a rectangle, if it's going to be on a rectangular canvass, then there will be some area that was previously not shown. Something has to be there, usually a uniform gray level such as black. The only other option would be to crop such that no black appears but you'd be cutting off some of your image. Like I said the way that your web site did it was to rotate a larger image and then crop down.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!