changing colormap of 10000 saved JPEG spectrograms
    4 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Sania Gul
 el 17 de Sept. de 2022
  
    
    
    
    
    Comentada: Walter Roberson
      
      
 el 17 de Sept. de 2022
            I have saved 10000 spectrograms as .jpeg images, in my hard drive, using the default "PARULA" colrmap. I want to change all of them to "AUTUMN" colormap. Is there any way to do that, without redrawing the spectrograms from audio from the scratch?
0 comentarios
Respuesta aceptada
  Walter Roberson
      
      
 el 17 de Sept. de 2022
        Use rgb2ind specifying the parabula map. Then ind2rgb that using the other color map.
5 comentarios
  Walter Roberson
      
      
 el 17 de Sept. de 2022
				 in_cmap = parula;
out_cmap = autumn;
 A = imread(fullfile(SourceFolder1,filenames1(count).name));
B = rgb2ind(A, in_cmap);
C = im2uint8(ind2rgb(B, out_cmap)) ;
Más respuestas (0)
Ver también
Categorías
				Más información sobre Basic Display en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



