Yahoo奇摩知識+ 將於 2021 年 5 月 4 日 (美國東部時間) 終止服務。自 2021 年 4 月 20 日 (美國東部時間) 起,Yahoo奇摩知識+ 網站將會轉為唯讀模式。其他 Yahoo奇摩產品與服務或您的 Yahoo奇摩帳號都不會受影響。如需關於 Yahoo奇摩知識+ 停止服務以及下載您個人資料的資訊,請參閱說明網頁。
多媒體記憶空間大小的問題
儲存下列何種影像組合所需的記憶空間各為多少?
(1) 640*480像素的24位元全彩影像
(2) 800*600像素的256色影像
(3) 1240*768像素的灰階影像
(4) 1400*800像素的黑白影像
24位元不能換成2的整數次方
所以我不懂
所以其它256色是8位元
灰階8位元
黑白1位元
這樣去相乘對吧?
2 個解答
- ChenLv 68 年前最佳解答
correctly caculate :
width_bytes = fetch qotient ((width x pixel +31) /32) x 4 ;
total = width_bytes * height;
1. width_bytes = fetch qotient (( (640 x 24 + 31 ) /32 ) = 480 ;
= 480 x 4;
total = 480 x4 x480= 921600 bytes 921.6kbytes
width * height * ( pixel /8 ) is wrong, because memory boundary must 4 multiple.
such as: resolution 642 * 480 24bit colors
width_bytes = fetch qotient (( 642 x 24) + 31)/32 = 482
= 482 x 4
total = 482 x 4 x 480 = 925440 bytes
if use 642 x 480 x (24/8)= 924480 bytes , the method is error.
other induction
- ?Lv 78 年前
就把數字乘起來就好...
妳不會連乘法也不懂吧?
2013-07-01 08:23:43 補充:
24bit = 3byte
這樣下去算即可。
灰階不一定是 8bit,也有 10bit 或 12bit 的。
通常正式的醫療系統用來看 X 光片的螢幕,至少會有 10bit 灰階。