changing colormap of 10000 saved JPEG spectrograms
조회 수: 2 (최근 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!