MATLAB: Wants to input an rgb image and get the classified image as an rbg instead of greyscale

dataDeep Learning Toolboxdigital image processingdigital signal processingimageimage analysisimage processingimage segmentationmachine learningMATLABneural networkneural networks

I am new to Matlab and I am finding it difficult to input a color image and give the classified output as color image. Instead I am only able to do for greyscale image. I have done the code for greyscale image. Please help me out. Can someone help me with the code to output as coloured image rather than a grayscale image. I have attached my code as well.

Best Answer

Have you tried colormap() and colorbar() to apply a colormap to the gray levels in the classified image?