Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) |
![]() |
![]() |
#1 |
高级会员
注册日期: 2019-11-21
帖子: 3,006
声望力: 66 ![]() |
![]()
我有:
img = imread('pic.jpg','jpg'); r = img(:,:,1); g = img(:,:,2); b = img(:,:,3); subplot(3,1,1); imhist(r); subplot(3,1,2); imhist(g); subplot(3,1,3); imhist(b); 如何将直方图的颜色更改为红色,绿色和蓝色? 如何更改出现的窗口的大小? 编辑: 路易斯·米格尔(Luis Miguel)关于窗户尺寸的回答是可行的,但是如果我只想改变窗户的高度并保持其他参数(x,y,宽度)不变怎么办? 回答: 视窗大小: 您可以获取然后设置“位置”。 pos = get(h,'Position'); pos(4) = pos(4) + 10; % changing height only pos(2) = pos(2) - 10; % you probably would want that - just try set(h, 'Position', pos); 更多&回答... |
![]() |
![]() |