Image compression in matlab


Compression an Image in matlab
Compressing an image refers to Image compression is minimizing the size in bytes of a graphics file without degrading the quality of the image to an unacceptable level. The reduction in file size allows more images to be stored in a given amount of disk or memory space. It also reduces the time required for images to be sent over the Internet or downloaded from Web pages. There are several different ways in which image files can be compressed. For Internet use, the two most common compressed graphic image formats are the JPEG format and the GIF format. The JPEG method is more often used for photographs, while the GIF method is commonly used for line art and other images in which geometric shapes are relatively simple.
I have compressed the complete folder images. Following is the complete guideline to compress.
Step 1:
Initialize the folder where all the images are store providing the path in the directory.
Step 2:
Use the for loop where all the images can be extracted in a single folder.
Step 4:
Use a resize function to change or compress the size of pictures
Step 5:
Use imshow() function to show the pictures or if want to visit multiple pictures at under one roof can use subplot() function.
 I am sharing screenshot which help more to get the source code:)


output 
Description: this is resized figure 1 at run time you will meet with multiple resized picture as many you have added

Comments

Popular posts from this blog

Image compression in matlab with explaination

Data Types in Matlab

Face detection in Matlab with source code