changing colormap of 10000 saved JPEG spectrograms
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Walter Roberson
2022-9-17
Use rgb2ind specifying the parabula map. Then ind2rgb that using the other color map.
5 个评论
Walter Roberson
2022-9-17
in_cmap = parula;
out_cmap = autumn;
A = imread(fullfile(SourceFolder1,filenames1(count).name));
B = rgb2ind(A, in_cmap);
C = im2uint8(ind2rgb(B, out_cmap)) ;
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Colormaps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!