how to get same image quality with bit depth after filter?

3 visualizaciones (últimos 30 días)
Selva Karna
Selva Karna el 29 de Mayo de 2018
Comentada: Florian Morsch el 4 de Jun. de 2018
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 comentarios
KALYAN ACHARJYA
KALYAN ACHARJYA el 3 de Jun. de 2018
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
Florian Morsch el 4 de Jun. de 2018
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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Convert Image Type en Help Center y File Exchange.

Productos


Versión

R2017a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by