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!