0

当我为 Iris Recognition 运行 libor masek 代码时,我正在调用 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);    
4

1 回答 1

0

在 2D 中分别过滤每种颜色 (RGB):

filter_g = zeros(size(im_double));

for i = 1:3
  filter_g(:,:,i) = conv2(gauss, im_double(:,:,i);
end

或者你可以使用convn()

于 2014-02-13T13:52:32.513 回答