Hello,
My task is to convert RGB scale images to binarized images.
For this, I am converting my input images to HIB bundle and then in the Mapper, I am converting every image to binary format.
After this conversion, I have object of FloatImage class with single channel.
Now, while I am trying to save this single channel image on HDFS using JpegEncoder, PngEncoder or PpmEncoder, I am getting the exception that only RGB scale image can be saved using these encoders.
Is there any way or workaround to save the images with single channel?
Thank you.