MATLAB: How to give color for same pixel values

color pixelImage Processing Toolbox

i need to assign color for pixels having same value.. can anyone help me?

Best Answer

cmap = copper(22); %some color map
outimg = ind2rgb( uint8(locatn), cmap);
image(outimg);
Related Question