在编写虹膜检测代码时进行Matlab编程

时间:2013-12-23 18:34:06

标签: matlab

    I=imread('C:\Users\stariqp\Desktop\c5.jpg');
    rmin=100;
    rmax=400;

这些是我的函数的输入,我在命令窗口中给出,当我调用我的函数时,出现错误“输入参数”rmin“未定义”。该函数是.m文件中的第一行。

   function [ci,cp,out]=thresh(I,rmin,rmax)

1 个答案:

答案 0 :(得分:0)

将该函数保存到名为thresh.m的单独文件中。然后在主函数中运行

I=imread('C:\Users\stariqp\Desktop\c5.jpg');
rmin=100;
rmax=400;
[ci,cp,out]=thresh(I,rmin,rmax)