| 查看: 2485 | 回复: 7 | |||
[求助]
MATLAB生成BMP格式的图片默认就是索引图像吗? 已有2人参与
|
| 我用MATLAB生成的BMP图片,矩阵是在0-1之间的double型的481*641的矩阵,为什么imwrite(I,'I.BMP','BMP')后得到图像是8位索引图像,而imwrite(I,'I.jpeg','jpeg','bitdepth',12)得到的是12位的灰度图像?我想得到24位的真彩图像(bmp的),要怎么弄呢?帮帮忙,谢谢大家。 |
» 猜你喜欢
今天系统多次维护,明天很可能放榜!
已经有5人回复
欢迎发来filecode的Mz6后的代码验证其规律
已经有74人回复
岩土工程学报什么时候才能终审完呐
已经有4人回复
时间戳又变了8-15
已经有25人回复
2027广东省杰青
已经有6人回复
快农历七夕节了,轻松一下,男人悄悄话,女施主请不要进来。
已经有3人回复
哪位老哥知道今年的国自然具体哪一天放榜?
已经有9人回复
咱们一起用铁证分析2026国家社科基金中标与否
已经有26人回复
我的国基提前知道中了,可是同事的操作让我实在接受不了,怎么会有这样的人
已经有16人回复
有时候,自然基金真的不能太认真 (我的申报经验)
已经有12人回复
2楼2014-02-18 18:41:47
【答案】应助回帖
感谢参与,应助指数 +1
|
多用用F1帮助,看看函数说明就行。 关于bmp:只支持1-bit, 8-bit, and 24-bit uncompressed images 关于jpg:只支持8-bit, 12-bit, and 16-bit Baseline JPEG images 关于pgn:这个符合你的需求: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 关于0-1转换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. |

3楼2014-02-19 09:15:10
|
4楼2014-02-19 09:29:10
gorgan
木虫之王 (文学泰斗)
无意苦争春
- 应助: 698 (博士)
- 贵宾: 3.457
- 金币: 135818
- 散金: 4559
- 红花: 988
- 沙发: 9410
- 帖子: 164073
- 在线: 7070.6小时
- 虫号: 2539501
- 注册: 2013-07-10
- 性别: GG
- 专业: 计算数学与科学工程计算

5楼2014-02-19 13:34:30
gorgan
木虫之王 (文学泰斗)
无意苦争春
- 应助: 698 (博士)
- 贵宾: 3.457
- 金币: 135818
- 散金: 4559
- 红花: 988
- 沙发: 9410
- 帖子: 164073
- 在线: 7070.6小时
- 虫号: 2539501
- 注册: 2013-07-10
- 性别: GG
- 专业: 计算数学与科学工程计算

6楼2014-02-19 13:40:25
7楼2014-02-19 15:56:47
8楼2014-06-28 20:58:55










回复此楼