How to convert grayscale image to binary and reverse?
显示 更早的评论
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? :D
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.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Image Category Classification 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!