I have a task to convert a grayscale image to binary and then take it back to its original form. I tried doing the former part by using im2bw function but was unable to do the latter after that as I had killed all the 'other than black and white patterns' when converting to binary. Any suggestions? 😀
Also, I don't know what the function mat2gray is for, since the input image (grayscale for instance) has itself already been a matrix hasn't it?
Thanks and sorry for my bad English.
Best Answer