MATLAB: Does ind2rgb returns the original color image

color quantizationImage Acquisition Toolbox

Does ind2rgb returns the original color image?First I used rgb2int.

Best Answer

  • No. rgb2ind quantizes colors to fit the number requested. ind2rgb cannot undo that quantization.
    It is sort of like rounding: once two numbers round to the same result you can't distinguish them.