Ältere Kommentare anzeigen
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?
Akzeptierte Antwort
Weitere Antworten (2)
Walter Roberson
am 23 Jun. 2011
1 Stimme
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.
1 Kommentar
Dipak
am 24 Jun. 2011
DGM
am 30 Dez. 2023
0 Stimmen
See this thread for multiple different solutions:
Kategorien
Mehr zu Geometric Transformation and Image Registration finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!