how to get same image quality with bit depth after filter?
2 次查看(过去 30 天)
显示 更早的评论
how to get same image quality with bit depth after filter?
if my input image 55Kb, output i want same 55kb, how can i get same quality ?
5 个评论
KALYAN ACHARJYA
2018-6-3
rgb=imread(a);
%%rgb image [input image file size] 87kb
First Image rgb is a color image, now you convert it to gray level image, how you expect the both should be the same size.
Gray=rgb2gray(rgb);
imwrite(Gray,'output.jpg')
%%but output image size 71kb
Florian Morsch
2018-6-4
If you convert a image to grayscale you will loose some data, thats how it works. The result is a smaller image datawise, you cant prevent that and that data loss has nothing to do with quality change, its just your pixel turning from RGB to gray.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!