为什么我使用函数roicolor一直报错啊?图片像素为240*135
程序如下:I=imread('bird.jpg');
imshow(I);
BW=roicolor(I,100,55);
之后就会报“??? Error using ==> roicolor
Images with dimensions greater than two are not supported.“这个错误
dongula 发表于 2016-12-14 12:16
BW = roicolor(A,LOW,HIGH) returns a region of interest
selected as those pixels that lie within the colormap range
[LOW HIGH]:
调小了还是这个错误~~
selected as those pixels that lie within the colormap range
[LOW HIGH]:
BW = (A >= LOW) & (A <= HIGH);
应该是参数100和55设置错误,不在范围内
BW = roicolor(A,low,high) {MOD}图范围为[low high],返回这些像素选择区域。BW为大小和A相同的数组,若A中元素值在[low high]范围内,则返回值1,否则返回0.
重新设置2个0~1直接的参数试试
一周热门 更多>