当我运行libor masek代码进行Iris Recognition时,我正在调用segmentiris函数,我收到错误消息
??? Undefined function or method 'conv2' for input arguments of type 'double' and attributes 'full 3d
real'.
Error in ==> filter2 at 73
y = conv2(hcol, hrow, x, shape);
Error in ==> canny at 40
im = filter2(gaussian,im); % Smoothed image.
Error in ==> findcircle at 43
[I2 or] = canny(image, sigma, scaling, vert, horz);
Error in ==> segmentiris at 49
[row, col, r] = findcircle(eyeimage, lirisradius, uirisradius, scaling, 2, 0.20, 0.19, 1.00, 0.00);
答案 0 :(得分:0)
在2D中分别过滤每种颜色(RGB):
filter_g = zeros(size(im_double));
for i = 1:3
filter_g(:,:,i) = conv2(gauss, im_double(:,:,i);
end
或者你可以使用convn()