freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

圖像二維整數(shù)離散余弦變換(dct)變換算法和dsp實(shí)現(xiàn)課程設(shè)計(jì)(文件)

 

【正文】 tShow+i*N+j))))。 for(i=0。j++) { printf(%3d ,((*((int*)matShow+i*N+j))))。 double temp[N][N]={}。jN。 //+ } } void iQuant(int **f,int **F) { int i=0。iN。 if (((*((double*)temp+i*N+j))0)) 9 { *((int*)F+i*N+j)=(int)((*((double*)temp+i*N+j)))。 //中間矩陣 double temp[N][N]={}。mN。nN。xN。m++) //每一行遍歷 for(n=0。x++) //每個(gè) cos系數(shù)遍歷 (*((double*)F+m*N+n))+=(*((double*)temp+m*N+x))*coff[n]*cos((2*x+1)*PI*n/(2*N))。 double coff[N] = {}。m++) { coff[m]=sqrt(2)/sqrt(N)。yN。 //二維變換 for (y=0。x++) { for(m=0。//為四舍五入取整 } else (*((int*)F+x*N+y))=(int)((*((double*)dTemp+x*N+y))+)。m++) (*((double*)dTemp+x*N+y))+=(*((double*)temp+m*N+y))*coff[m]*cos((2*x+1)*PI*m/(2*N))。y++) for(x=0。mN。xN。 for (m=1。 double dTemp[N][N] = {}。n++) //每一列遍歷 for(x=0。 //二維變換,對(duì)行進(jìn)行以為 DCT變換 for (m=0。mN。 } //一維變換 ,對(duì)列進(jìn)行一維 DCT變換。 //變換系數(shù) coff[0] = 1/sqrt(N)。 //+ } } void DCT(int **f,double **F) //DCT轉(zhuǎn)換 { int x,m,n。jN。 double temp[N][N]={}。 if (((*((double*)temp+i*N+j))0)) { *((int*)F+i*N+j)=(int)((*((double*)temp+i*N+j)))。iN。 } } void quant(double **f,int **F) { int i=0。i++) { for(j=0。 } 8 } void showMat_i(int **matShow) { int i=0。i++) { for(j=0。 //輸出數(shù)據(jù) ////////////////////////////////////////////////////////////////////////// } void showMat_d(double **matShow) { int i=0。i++) for(j=0。(x,y)為: \n)。 //輸出量化后的 DCT數(shù)據(jù) iQuant((int **)fq,(int **)fq_1)。 //DCT變換 showMat_d((double **)F)。jN。 showMat_i((int **)f1)。 //定義量化后的數(shù)組。 //逆量化過(guò)程, f 為量化后的數(shù)據(jù), 7 F為消除了量化的數(shù)據(jù) void main() { double F[N][N]={0}。 //顯示函數(shù),輸出為整形數(shù)據(jù) void DCT(int **f,double **F)。 int q1[N][N]= //定義色度量化系數(shù) { {17,18,24,47,99,99,99,99}, {18,21,26,66,99,99,99,99},
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計(jì)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1