get grayImage from bitImage

조회 수: 2 (최근 30일)
Elysi Cochin
Elysi Cochin 2019년 2월 17일
답변: Image Analyst 2019년 2월 17일
% 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