Could you please tell me how to extract the particular bits from each bit map images. and a way to store all these constructed files, The matlab program of getting 8 bits map images is as follows
3 次查看(过去 30 天)
显示 更早的评论
C = imread('cameraman.tif');
[Row Col] = size(C);
Cbit = cell(1, 8);
for bit = 1:8
Cbit{bit} = bitget(C, bit);
figure(bit)
imshow(logical(Cbit{bit}))
title(sprintf('Bit plane %d', bit));
end
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Import, Export, and Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!