get grayImage from bitImage

2 次查看(过去 30 天)
% Compute mean in 4-by-4 blocks
kernel = ones(4);
meanImage = conv2(double(grayImage), kernel, 'same') / numel(kernel);
% Compare actual image to mean image.
bitImage = grayImage >= meanImage;
From the bitImage is it possible to get back grayImage

采纳的回答

Image Analyst
Image Analyst 2019-2-17
No. There is no way to obtain the original gray level image from a binary image that has been created by thresholding that gray scale image. If you want the gray scale image later, be sure to save your gray scale image variable.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by