Image rotate
古いコメントを表示
Can I have rotate image with white background
By default if we use imrotate it rotate image with black background can I have rotated image with white background?
採用された回答
その他の回答 (2 件)
Walter Roberson
2011 年 6 月 23 日
1 投票
imrotate() always fills with 0.
If your image is floating point, then one way to proceed would be to put a border of NaN around your image, and rotate that. The resulting image should have NaN in it; set the NaN and everything outside to the background color you want.
DGM
2023 年 12 月 30 日
0 投票
See this thread for multiple different solutions:
カテゴリ
ヘルプ センター および File Exchange で Geometric Transformation and Image Registration についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!