![]() |
MATLAB:如何更改图像的颜色和窗口的大小?
我有:
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); 如何将直方图的颜色更改为红色,绿色和蓝色? 如何更改出现的窗口的大小? [B]编辑:[/B] 路易斯·米格尔(Luis Miguel)关于窗户尺寸的回答是可行的,但是如果我只想改变窗户的高度并保持其他参数(x,y,宽度)不变怎么办? [B]回答:[/B] 视窗大小: 您可以获取然后设置“位置”。 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); [url=https://stackoverflow.com/questions/3990753]更多&回答...[/url] |
所有时间均为北京时间。现在的时间是 23:35。 |
Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.