You can use ind2rgb to convert it back to an RGB image using your new indexed image and colormap
rgb_image = ind2rgb(X_no_dither, map);
If you want, you can then save this resulting image to a file with imwrite
imwrite(rgb_image, 'newimage.png')
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more