2014-02-12 23 views
0

當我運行了虹膜識別的LIBOR馬塞克代碼,我調用segmentiris功能,我得到的錯誤消息錯誤,同時運行虹膜識別的LIBOR馬塞克代碼

??? 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

過濾每種顏色(RGB)分別在2D:

filter_g = zeros(size(im_double)); 

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

或者你也可以只使用convn()