由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
EE版 - 问个matlab问题,50伪币酬谢
相关主题
Matlab中用subplot,要求图像布满整个窗口,为什么只能用imshoRe: Matlab question, pls help me
matlab 里面的randnRe: Matlab数据传递问题
问个matlab和IDL数据兼容的问题,包子酬谢! (转载)Re: 问一个关于Matlab的土问题
GUI里打开.fig文件用imagesc显示图像Re: 怎么用C读matlab中的.mat文件中的数据?
Apple RFIC interviewok, who need matlab books? go in.
magnetic design sw?matlab好去处——我的网站欢迎您
[文献求助]Re: a question about Matlab speed
电力电子,变频器产品管理经理Re: matlab
相关话题的讨论汇总
话题: roi话题: im话题: imagesc话题: color话题: gray
进入EE版参与讨论
1 (共1页)
j**u
发帖数: 6059
1
【 以下文字转载自 Computation 讨论区 】
发信人: jzxu (自然), 信区: Computation
标 题: 问个matlab问题,50伪币酬谢
发信站: BBS 未名空间站 (Fri Mar 14 22:53:28 2008), 转信
有一个二位矩阵,用imagesc和colormap(jet)可以显示一个彩色的图像IM1,如果选择c
olormap(gray)就生成黑白图像IM2。现在想只在一个选的区域里面(ROI)里面保留IM1
,其他的区域里面都是IM2,请问如果在matlab里面做到?
b*****e
发帖数: 1193
2
你的问题我在computation答完了
j**u
发帖数: 6059
3
I have one idea that generates a pseudo-gray image to a show gray-scale
image.
I only know how to highlight a ROI with a solid color. For example,
ROI is a logic matrix consisting 0's and 1's
im_r = im.*ROI.*3 ; % 3 can be any number much larger than 1
im_rgb = cat(3, im_r, im, im) ;
imagesc(im_rgb) % this will show a pseudo-gray scale image with ROI highligh
ted with red color
Now my question is how to pot ROI just like using a colormap(jet), not a sol
id color shown above.

【在 b*****e 的大作中提到】
: 你的问题我在computation答完了
j**u
发帖数: 6059
4
My question can be expressed in another way. When imagesc(im) is used, a 3D
rgb matrix may be generated to plot a color image. How to get this 3D matrix
? I was thinking of setting up a color mapping table to generate it by mysel
f, but it is tedious. Is there any easier way?

highligh
sol

【在 j**u 的大作中提到】
: I have one idea that generates a pseudo-gray image to a show gray-scale
: image.
: I only know how to highlight a ROI with a solid color. For example,
: ROI is a logic matrix consisting 0's and 1's
: im_r = im.*ROI.*3 ; % 3 can be any number much larger than 1
: im_rgb = cat(3, im_r, im, im) ;
: imagesc(im_rgb) % this will show a pseudo-gray scale image with ROI highligh
: ted with red color
: Now my question is how to pot ROI just like using a colormap(jet), not a sol
: id color shown above.

1 (共1页)
进入EE版参与讨论
相关主题
Re: matlabApple RFIC interview
Re: Q for Image Processing Gurusmagnetic design sw?
Re: Matlab Guru please help[文献求助]
Re: Matlab question电力电子,变频器产品管理经理
Matlab中用subplot,要求图像布满整个窗口,为什么只能用imshoRe: Matlab question, pls help me
matlab 里面的randnRe: Matlab数据传递问题
问个matlab和IDL数据兼容的问题,包子酬谢! (转载)Re: 问一个关于Matlab的土问题
GUI里打开.fig文件用imagesc显示图像Re: 怎么用C读matlab中的.mat文件中的数据?
相关话题的讨论汇总
话题: roi话题: im话题: imagesc话题: color话题: gray