edge detection(YCbCr transformation) what should i do??

1 次查看(过去 30 天)
RGB = imread(fn_get_file);
YCBCR = rgb2ycbcr(RGB);
u = edge(YCBCR,'prewitt');
figure(1); imshow(u);
subplot(2,2,2), imshow(u(:,:,1))
subplot(2,2,3), imshow(u(:,YCbCr:,2))
subplot(2,2,4), imshow(u(:,:,3))
vvvvvvvvvvvvvvvvvvvvvvv error vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
The following error occurred during use : edge
The first input argument I must be two-dimensional (2d).
error : edge>parse_inputs (line 449)
validateattributes(I,{'numeric','logical'},{'real','nonsparse','2d'},mfilename,'I',1);
error : edge (line 189)
[a,method,thresh,sigma,thinning,H,kx,ky] = parse_inputs(varargin{:});

回答(0 个)

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by