image compression for binary images
이전 댓글 표시
Hi i have a binary image in the file format .pbm its a 640x480 image and i want to compress the image to 32x32 How to do i do it?
댓글 수: 3
Walter Roberson
2015년 8월 11일
Is the 32 x 32 binary or could it be uint8() or could it be double() ?
You would not typically be able to preserve all of the information of a 640 x 480 binary image in a 32 x 32 array: if the 32 x 32 is to be binary it would require a compression rate of 300:1 which is not common at all for lossless compression. You should expect to be using compression that loses information. What kind of information about the image is it acceptable to lose?
To check: the 32 x 32 is to be data, right? Not an image itself? Data that could be used to reconstruct a 640 x 480 image? Because if the 32 x 32 is to be an image, that would be image resizing, not image compression.
When you say that you want 32 x 32: are you trying to construct feature vectors out of the 640 x 480?
Newman
2015년 8월 11일
Walter Roberson
2015년 8월 14일
For pattern recognition you should be creating feature vectors rather than submitting the scaled-down image directly.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Blocked Images에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
