资源简介

不可多得的指纹提取的好东东!压缩包内含有指纹图片预处理的完整文档,长达数页。同时,附有全套的程序代码,由matlab写成。程序中含有近十种边缘检测算法的实现,非常有用。

资源截图

代码片段和文件信息

function mm=main(imageFile)
%创建显示窗口
figuretitle(‘运用各种方法检测物体所在区域‘);
subplot(341)imshow(imageFile)title(‘原图‘);
hold on;
%循环显示窗体,直到点击“exit”退出
while(true)
    %创建菜单,循环显示,直到点击“退出”按钮
    choice=menu(‘点击按钮进行区域检测‘...
                ‘边缘检测(roberts算子)‘‘边缘检测(sobel算子)‘‘边缘检测(prewitt算子)‘...
                ‘边缘检测(log算子)‘‘边缘检测(canny算子)‘‘边缘检测(zerocross算子)‘...
                ‘迭代法(循环阈值)‘‘双峰法(直方图输入阈值)‘‘大津法‘...
                ‘四叉树‘‘手动输入阈值‘‘exit‘);

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    %执行roberts算子检测物体边缘
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    if(choice==1)
        %读入图片
        I=imread(imageFile);
        %灰度化
        try
            I=rgb2gray(I);
        end
        [Ethresh]=edge(I‘roberts‘);%分割区域
        str=‘roberts算子:‘;
        str=strcat(strnum2str(thresh));
        subplot(342)imshow(E)title(str);
    end
    
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    %执行sobel算子检测物体边缘
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    if(choice==2)
        %读入图片
        I=imread(imageFile);
        %灰度化
        try
            I=rgb2gray(I);
        end
        [Ethresh]=edge(I‘sobel‘);%分割区域
        str=‘sobel算子:‘;
        str=strcat(strnum2str(thresh));
        subplot(343)imshow(E)title(str);
    end
    
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    %执行prewitt算子检测物体边缘
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    if(choice==3)
        %读入图片
        I=imread(imageFile);
        %灰度化
        try
            I=rgb2gray(I);
        end
        [Ethresh]=edge(I‘prewitt‘);%分割区域
        str=‘prewitt算子:‘;
        str=strcat(strnum2str(thresh));
        subplot(344)imshow(E)title(str);
    end
    
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    %执行log算子检测物体边缘
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     if(choice==4)
        %读入图片
        I=imread(imageFile);
        %灰度化
        try
            I=rgb2gray(I);
        end
        [Ethresh]=edge(I‘log‘);%分割区域
        str=‘log算子:‘;
        str=strcat(strnum2str(thresh));
        subplot(345)imshow(E)title(str);
     end
    
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    %执行canny算子检测物体边缘
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    if(choice==5)
        %读入图片
        I=imread(imageFile);
        %灰度化
        try
            I=rgb2gray(I);
        end
        [Ethresh]=edge(I‘canny‘);%分割区域
        str=‘canny算子:‘;
        str=strcat(strnum2str(thresh));
        subplot(346)imshow(E)title(str);
    end
    
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    %执行zerocross算子检测物体边缘
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     516750  2012-07-18 22:36  2120090356_苑爱泉_机器视觉第三次作业_指纹\作业报告.pdf

     文件     132978  2007-10-18 10:48  2120090356_苑爱泉_机器视觉第三次作业_指纹\作业要求\Homework(3).pdf

     文件     693432  2009-11-11 16:35  2120090356_苑爱泉_机器视觉第三次作业_指纹\参考资料\机器视觉(3).pdf

     文件      56249  2004-03-17 12:52  2120090356_苑爱泉_机器视觉第三次作业_指纹\程序\fingerprint.jpg

     文件      12690  2009-11-24 18:40  2120090356_苑爱泉_机器视觉第三次作业_指纹\程序\fingerprint1.jpg

     文件       9225  2009-11-24 20:30  2120090356_苑爱泉_机器视觉第三次作业_指纹\程序\main.asv

     文件       9608  2009-11-24 21:05  2120090356_苑爱泉_机器视觉第三次作业_指纹\程序\main.m

     文件        107  2009-11-25 14:00  2120090356_苑爱泉_机器视觉第三次作业_指纹\说明文档.txt

     目录          0  2012-07-18 22:36  2120090356_苑爱泉_机器视觉第三次作业_指纹\作业要求

     目录          0  2012-07-18 22:36  2120090356_苑爱泉_机器视觉第三次作业_指纹\参考资料

     目录          0  2012-07-18 22:36  2120090356_苑爱泉_机器视觉第三次作业_指纹\程序

     目录          0  2012-07-18 22:36  2120090356_苑爱泉_机器视觉第三次作业_指纹

----------- ---------  ---------- -----  ----

              1431039                    12


评论

共有 条评论