精華區beta MATLAB 關於我們 聯絡資訊
※ 引述《ipvr (.....)》之銘言: : 請問使用過 Image Processing Toolbox的高手, 當我們在使用 : "dct2"的時候, 裡面有個 mask 需要設定. 那個 mask 主要是由 : 0 與 1 組成. 想請問的是, 裡面 1 的個數 是不是與要壓縮的影像 : 品質有關? 或者說, 請問要如何利用 "dct2" 來造出各種不同壓縮比 : 例的影像?(e.g., 將影像壓縮成 0.43, 0.24, and 0.15 bpp). >>help dct2 DCT2 Compute 2-D discrete cosine transform. B = DCT2(A) returns the discrete cosine transform of A. The matrix B is the same size as A and contains the discrete cosine transform coefficients. B = DCT2(A,[M N]) or B = DCT2(A,M,N) pads the matrix A with zeros to size M-by-N before transforming. If M or N is smaller than the corresponding dimension of A, DCT2 truncates A. This transform can be inverted using IDCT2. 不曉得您的 mask 指的是什麼..... 又dct只是做座標轉換....不會有壓縮的效果... -- ※ Origin: 程式設計樂園 ◆ From: ind.ntou.edu.tw