get grayImage from bitImage
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Elysi Cochin
am 17 Feb. 2019
Beantwortet: Image Analyst
am 17 Feb. 2019
% 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
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 17 Feb. 2019
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!