| 查看: 2471 | 回复: 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的),要怎么弄呢?帮帮忙,谢谢大家。 |
» 猜你喜欢
静等基金结果
已经有8人回复
关于Filecode分析方法
已经有3人回复
国自然结果
已经有8人回复
FileCode能看出啥?
已经有8人回复
应该是93bebmhtak前后十一个字符比较关键
已经有22人回复
奇怪,两个人的filecode固定段从头到尾一模一样
已经有4人回复
8月时间戳变的,举个手。玩一下,释放压力
已经有13人回复
我的国基提前知道中了,可是同事的操作让我实在接受不了,怎么会有这样的人
已经有9人回复
好奇怪的filecode
已经有5人回复
综述论文作为代表作会不会影响评审专家的印象分?
已经有10人回复
gorgan
木虫之王 (文学泰斗)
无意苦争春
- 应助: 698 (博士)
- 贵宾: 3.457
- 金币: 135818
- 散金: 4559
- 红花: 988
- 沙发: 9410
- 帖子: 164073
- 在线: 7070.6小时
- 虫号: 2539501
- 注册: 2013-07-10
- 性别: GG
- 专业: 计算数学与科学工程计算

5楼2014-02-19 13:34:30
【答案】应助回帖
感谢参与,应助指数 +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
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










回复此楼
100