Error in saving grayscale or binarized images

23 views
Skip to first unread message

Swapna Patil

unread,
Oct 25, 2018, 5:33:17 AM10/25/18
to HIPI Users
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.
Reply all
Reply to author
Forward
0 new messages