Suppose you have an image file namely "image.jpg". Due to the file size, you want to compress it to smaller size. In GNU Octave and Matlab, the following simple commands can be used,
image=imwrite('image.jpg');
imwrite(image,'image_new.jpg','quality',50);Those commands will compress "image.jpg" to "image_new.jpg" with the quality of compressed image is 50% of the original image.

0 comments/komentar:
Post a Comment
Your comments here..