【问题标题】:error while running the libor masek code for iris recognition运行用于虹膜识别的 libor masek 代码时出错
【发布时间】:2014-02-12 09:32:53
【问题描述】:

当我为 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);    

【问题讨论】:

    标签: matlab iris-recognition


    【解决方案1】:

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

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

    或者你可以使用convn()

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-09-19
      • 2018-12-11
      • 1970-01-01
      • 2016-08-20
      • 2011-06-04
      • 1970-01-01
      相关资源
      最近更新 更多