Saving Matlab figure(Imagesc) to JPG without White borders
    7 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    Sunny
 am 20 Dez. 2018
  
    
    
    
    
    Kommentiert: Image Analyst
      
      
 am 16 Mär. 2021
            Hi,
I am using imagesc to plot color maps in matlab. While saving as JPG and Figuire it gives white space around the image. Is it possible to save without white space? 
 imagesc(Subject_Assist_Quest);
        set(gca,'YDir','normal')
        axis off

3 Kommentare
  Elinor Kath
 am 16 Mär. 2021
				When I try this I get: "Warning: Background transparency is not supported; using white instead. " So far I haven't found a workaround. 
  Image Analyst
      
      
 am 16 Mär. 2021
				You can ignore the warning.  Is white not OK?  Why are you having transparent pixels anyway?
Akzeptierte Antwort
Weitere Antworten (1)
  Image Analyst
      
      
 am 20 Dez. 2018
        Yes, use imwrite:
imwrite(Subject_Assist_Quest, filename);
Do not save image analysis images as JPG or you'll be sorry.  Use PNG.
1 Kommentar
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



