RGBi=im2double(imread('autumn.tif'));imshow(RGBi)Ii = rgb2gray(RGBi);imshow(Ii)bi=imbinarize(Ii);
MATLAB: I have used the code to convert rgb image to binary , need to convert binary back to rgb
binaryImage Processing Toolboximageconversionrgb
Best Answer