There are functions such as rgb2hsv, rgb2ind, rgb2lab and rgb2xyz in converting RGB colormap to another one - in Matlab R2014b where the colormap Parula is introduced. However, I cannot find any solution to convert the RGB colormap to Parula i.e. the current default colormap of Matlab. I can set the colormap to be with the figure, but not convert the image as follows. I started to think the benefits of Parula in contrast to HSV in one part of removing black and its neighbor colors in a picture, for example here.
Pseudocommand
im = imread('https://i.stack.imgur.com/cFOSp.png');
hsv = rgb2parula(im); % Pseudocommand similar for HSV: hsv = rgb2hsv(im);
imshow(hsv);
which gives
which is one reason for the quantization noise in later stages of image processing and bad morphological removal, as indicated in the previous thread.
How can you map RGB to Parula in Matlab?
User-made Parulas
I think we need a customized Parula because the function rgb2parula is not available. Proposal here which a variant for Gnuplot about the colormap. How can you convert this piece of code to Matlab?