how to convert 24bit of bmp image to 8 bit?
10 次查看(过去 30 天)
显示 更早的评论
i tried to make this program :
I = imread ('ctv.bmp');
kernel1 = [ -1 -1 -1 ; -1 8 -1 ; -1 -1 -1 ]
kernel2 = [ -1 -1 -1 ; -1 9 -1 ; -1 -1 -1 ]
kernel3 = [ 1/9 1/9 1/9; 1/9 1/9 1/9; 1/9 1/9 1/9 ]
hiPass = conv2(I, kernel1);
lowPass = conv2(I, kernel3);
bandPass = conv2(I, kernel2);
subplot(2,2,1), imshow(I);title('Gambar Asli');
subplot(2,2,2), imshow(uint8(hiPass));title('HiPass');
subplot(2,2,3), imshow(uint8(lowPass));title('LowPass');
subplot(2,2,4), imshow(uint8(bandPass));title('BandPass');
but it couldn't run. how to convert the 24bit to 8bit image?
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing and Computer Vision 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!