| 24小時(shí)熱門版塊排行榜 |
| 8 | 1/1 | 返回列表 |
| 查看: 2182 | 回復(fù): 7 | ||
wangfumin金蟲(chóng) (小有名氣)
|
[求助]
MATLAB生成BMP格式的圖片默認(rèn)就是索引圖像嗎? 已有2人參與
|
| 我用MATLAB生成的BMP圖片,矩陣是在0-1之間的double型的481*641的矩陣,為什么imwrite(I,'I.BMP','BMP')后得到圖像是8位索引圖像,而imwrite(I,'I.jpeg','jpeg','bitdepth',12)得到的是12位的灰度圖像?我想得到24位的真彩圖像(bmp的),要怎么弄呢?幫幫忙,謝謝大家。 |
金蟲(chóng) (小有名氣)
銅蟲(chóng) (初入文壇)
|
多用用F1幫助,看看函數(shù)說(shuō)明就行。 關(guān)于bmp:只支持1-bit, 8-bit, and 24-bit uncompressed images 關(guān)于jpg:只支持8-bit, 12-bit, and 16-bit Baseline JPEG images 關(guān)于pgn:這個(gè)符合你的需求:1-bit, 2-bit, 4-bit, 8-bit, and 16-bit grayscale images; 8-bit and 16-bit grayscale images with alpha channels; 1-bit, 2-bit, 4-bit, and 8-bit indexed images; 24-bit and 48-bit truecolor images; 24-bit and 48-bit truecolor images with alpha channels 關(guān)于0-1轉(zhuǎn)換0-255:If the input array is of class double, and the image is a grayscale or RGB color image, imwrite assumes the dynamic range is [0,1] and automatically scales the data by 255 before writing it to the file as 8-bit values. |

|
木蟲(chóng)之王 (文學(xué)泰斗)
無(wú)意苦爭(zhēng)春

木蟲(chóng)之王 (文學(xué)泰斗)
無(wú)意苦爭(zhēng)春

金蟲(chóng) (小有名氣)
| 8 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 環(huán)境工程調(diào)劑 +8 | 大可digkids 2026-03-16 | 8/400 |
|
|---|---|---|---|---|
|
[考研] 297求調(diào)劑 +4 | 戲精丹丹丹 2026-03-17 | 4/200 |
|
|
[考研] 材料專碩306英一數(shù)二 +9 | z1z2z3879 2026-03-16 | 12/600 |
|
|
[考研] 考研求調(diào)劑 +3 | 橘頌. 2026-03-17 | 4/200 |
|
|
[碩博家園] 湖北工業(yè)大學(xué) 生命科學(xué)與健康學(xué)院-課題組招收2026級(jí)食品/生物方向碩士 +3 | 1喜春8 2026-03-17 | 5/250 |
|
|
[考研] 考研化學(xué)學(xué)碩調(diào)劑,一志愿985 +4 | 張vvvv 2026-03-15 | 6/300 |
|
|
[考研] 求調(diào)劑,總分315,考的生物醫(yī)藥,一志愿湖南師范大學(xué)。調(diào)劑到任何專業(yè)都可以 +4 | 小丁想進(jìn)步 2026-03-11 | 5/250 |
|
|
[考研] 271求調(diào)劑 +12 | 生如夏花… 2026-03-11 | 14/700 |
|
|
[考研] 藥學(xué)383 求調(diào)劑 +3 | 藥學(xué)chy 2026-03-15 | 4/200 |
|
|
[考研] 070300化學(xué)學(xué)碩求調(diào)劑 +6 | 太想進(jìn)步了0608 2026-03-16 | 6/300 |
|
|
[考研] 一志愿華中師范071000,325求調(diào)劑 +6 | RuitingC 2026-03-12 | 6/300 |
|
|
[考研] 265求調(diào)劑 +4 | 威化餅07 2026-03-12 | 4/200 |
|
|
[考研] 一志愿哈工大材料324分求調(diào)劑 +5 | 閆旭東 2026-03-14 | 5/250 |
|
|
[基金申請(qǐng)]
有必要更換申報(bào)口嗎
20+3
|
fannyamoy 2026-03-11 | 3/150 |
|
|
[考研] 一志愿西南交大,材料專碩317求調(diào)劑 +5 | lx8568 2026-03-11 | 5/250 |
|
|
[考研] 310求調(diào)劑 +3 | 【上上簽】 2026-03-11 | 3/150 |
|
|
[考研] 考研調(diào)劑 +4 | 芬達(dá)46 2026-03-12 | 4/200 |
|
|
[考研] 材料專碩350 求調(diào)劑 +4 | 王金科 2026-03-12 | 4/200 |
|
|
[考研] 085600材料與化工 309分請(qǐng)求調(diào)劑 +7 | dtdxzxx 2026-03-12 | 8/400 |
|
|
[考研] 333求調(diào)劑 +3 | 152697 2026-03-12 | 4/200 |
|