how to reduce bits per pixel in an image?

조회 수: 2 (최근 30일)
Anusha
Anusha 2014년 2월 26일
댓글: Image Analyst 2014년 2월 27일
If my image in the format of png.. i need to compress this image..so image bit per pixel will be reduced? how this is possible

답변 (2개)

Nitin
Nitin 2014년 2월 26일
Check the imresize function in Matlab

Image Analyst
Image Analyst 2014년 2월 26일
Using imwrite to create a PNG image does the compression for you. Why do you think you need to do anything additional?
  댓글 수: 2
Anusha
Anusha 2014년 2월 27일
after writing the png format. now i want to apply this image to png codec, again it compressed or not?
if writing the gif image to png format.. how much it will be reduced size.
Image Analyst
Image Analyst 2014년 2월 27일
What GIF image? Images only have a format once they're saved onto disk. Once they're in MATLAB, they're simply an array of numbers. If you use imread() it uncompressed them. They're no longer compressed - it's the full, original array again. The only way to get the compressed data out is if you use fread() but if you did that it's not in a displayable form.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by