MATLAB: Image compression for binary images

binarycompressiondigital image processingimage processingImage Processing Toolbox

Hi i have a binary image in the file format .pbm its a 640×480 image and i want to compress the image to 32×32 How to do i do it?

Best Answer

Try imresize() function in the Image Processing Toolbox:
smallImage = imresize(binaryImage, [32, 32], 'Nearest');
Obviously you will have loss of data. Not sure how you define "significant". I guess if your algorithm can still recognize what's in the scene, despite being smaller, then it's not significant.
Related Question