# 請問壓縮bmp變成jpg用matlab怎麼實做?

請問壓縮bmp變成jpg用matlab怎麼實做?

有演算法 有程式範例嗎?

### 1 Answer

Rating

- 1 decade agoBest Answer
1.Find a BMP image X img=imread('picture.bmp');

2.Divide the image into nxn subpicture (for loop)

3.Using DCT(FFT) to transform the subpicture w=abs(dct(double(subimg)));

4.Quantizer 切掉高頻部分

5.Using IDCT(IFFT) to decode the image X’iw=idct(w)

請參考:

Source(s): http://www.dms.auburn.edu/compression/

Still have questions? Get your answers by asking now.