rotate image
古いコメントを表示
回答 (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 件のコメント
Junaid
2012 年 3 月 2 日
Jan
2012 年 3 月 2 日
So I'm asking again: What is the difference between the two sets of pictures? How did you exactly transform the one set to create the other?
Junaid
2012 年 3 月 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 日
0 投票
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 件のコメント
Junaid
2012 年 3 月 3 日
Image Analyst
2012 年 3 月 3 日
What do you mean by "rotate only this point"? Not the whole image???? Rotating only a point won't show any effect. A pixel is just a point - it won't look any different if it's rotated. If you want to rotate the whole image around that point, use imrotate like suggested, but it won't "make up" data to fill in missing areas (like that ball structure that I mentioned) - how could it possibly do that?
Jan
2012 年 3 月 4 日
@Junaid: You can give us a chance to create a sufficient answer, if you answer our questions. Currently your problem is not clear enough.
Junaid
2012 年 3 月 4 日
Junaid
2012 年 3 月 4 日
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.
カテゴリ
ヘルプ センター および File Exchange で Image Arithmetic についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!