get grayImage from bitImage
Ältere Kommentare anzeigen
% 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
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!