40 likes | 194 Views
Appendix: Digital Image Processing HW1. Yi-Chun Wei Visual Communications Lab National Central University Mar. 2, 2012. BMP Color Palette. Color palette. Color palette. Bits number(bmp). 16 色調色盤. 4 bits. 256 色調色盤. 8 bits. 24 bits. 不使用調色盤. 32 bits. 不一定使用調色盤.
E N D
Appendix:Digital Image Processing HW1 Yi-Chun Wei Visual Communications Lab National Central University Mar. 2, 2012
BMPColor Palette Color palette Color palette Bits number(bmp) 16色調色盤 4 bits 256色調色盤 8 bits 24 bits 不使用調色盤 32 bits 不一定使用調色盤 ※24bitscolor image因點陣圖資料未壓縮所以不需使用調色盤. 32 bits color image 是否使用調色盤需由壓縮型式而定. ※24bits color image每個pixel的讀取順序為:BGR. 參考資料: http://crazycat1130.pixnet.net/blog/post/1345538#mark-5 “瘋小貓的華麗冒險”
Bilinear Interpolation(1/2) (0,0) y is gray-level value x 將(1)(2) 帶入(3)後
Bilinear Interpolation(2/2) ※相鄰兩點間的差距為1,因此可將(4)改寫為 化簡後 f(x , y) = Ax+ By+ Cxy+ D You have two choices: ․將內插點的鄰近四點的灰階值與座標值, 及所欲計算的內插點的座標代入(5)中,算出內插點的灰階值. ․將內插點的鄰近四點的灰階值與座標值套入(7)中做聯立解找出各係數,並利用此方程式算出內插點的灰階值.