Transcript 下載/瀏覽
數位影像處理期末報告
學生:陳彥銘
學號:D9920101
1.項目名稱:縮放和通過像素複製圖像收縮
2. 項目編號: Proj02-03
3.課程編號:20M06101
4.姓名:陳彥銘
5.由於日期:2013/12/20
6.上交日期:
摘要
人們對於數位影像處理方法的興趣來自於兩個主要
領域:改善影像資訊供人理解之用,以及處理影像
資訊供自動機器感知所需的儲存、傳輸與表示。
技術討論
#define BYTESIZE8
#define LEN
Vtcode
Data_in:
No:
Vtc_out:
Int vlcode(short int data_int], int no, char vlc_out[])
{
Int I;
Int st = 0;
Int num=0;
Int dl = BTTESIZE / LEN -1;
Int mask = (1<<LEN) -1 ;
Int dt, ms;
Vtc_out[num]= ‘/0’;
For(i=0; i<no; i++) {
Dt =data_int[i];
Do
{
ms=dt>=mask ? Mask : dt;
Vlc_out[num] = (ms <<(LEN*(dt – st)));
Dt -= mask; st++;
If(st>dl) {
St=0; num++; vlc_out[num]= ‘\0’;
}
}
}while(dt >=0);
}
If (st !=0) {
Ms=mask;
For(i=(dl – st); i>=0; i++) {
Vlc_out[num] =ms;
Ms <<=LEN
}
Num++;
}
Return num;
}