资源简介

指纹图像增强、求方向图、二值化、细化、特征提取、特征匹配等算法的c语言源程序,还有实例演示,本人千辛万苦才找来的,提供给大家分享。

资源截图

代码片段和文件信息

/*#############################################################################
 * 文件名:fvs_binarize.c
 * 功能:  指纹图像二值化
 * modified by  PRTsinghua@hotmail.com
#############################################################################*/


#include “fvs.h“


int main(int argc char *argv[])
{
    FvsImage_t image;
    FvsImage_t mask;
    FvsFloatField_t direction;
    FvsFloatField_t frequency;

    if (argc!=3)
    {
        printf(“Usage: fvs input.bmp output.bmp\n“);
        return -1;
    }

    mask      = ImageCreate();
    image     = ImageCreate();
    direction = FloatFieldCreate();
    frequency = FloatFieldCreate();

    if (mask!=NULL && image!=NULL && direction!=NULL && frequency!=NULL)
    {
        (void)FvsImageImport(image argv[1]);
(void)ImageSoftenMean(image 3);

        fprintf(stdout “1/5 Determining the ridge direction\n“);
        (void)FingerprintGetDirection(image direction 5 8);

        fprintf(stdout “2/5 Determining the ridge frequency\n“);
        (void)FingerprintGetFrequency(image direction frequency);

        fprintf(stdout “3/5 Creating the mask\n“);
        (void)FingerprintGetMask(image direction frequency mask);

        fprintf(stdout “4/5 Enhancing the fingerprint image\n“);
        (void)ImageEnhanceGabor(image direction frequency mask 4.0);

        fprintf(stdout “5/5 Binarize\n“);
        (void)ImageBinarize(image (FvsByte_t)0x80);

        (void)FvsImageExport(image argv[2]);
    }
    fprintf(stdout “Cleaning up and exiting...\n“);
    ImageDestroy(image);
    ImageDestroy(mask);
    FloatFieldDestroy(direction);
    FloatFieldDestroy(frequency);

    return 0;
}



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

     文件        817  2004-03-04 03:12  include\export.h

     文件       5709  2004-03-05 00:07  include\file.h

     文件       4754  2004-03-07 23:25  include\floatfield.h

     文件       1216  2004-03-04 14:31  include\fvs.h

     文件       2133  2004-03-04 17:16  include\fvstypes.h

     文件       2446  2004-03-07 23:28  include\histogram.h

     文件       6010  2004-03-07 23:32  include\image.h

     文件       5149  2004-03-05 00:59  include\imagemanip.h

     文件       4614  2004-03-05 02:14  include\img_base.h

     文件        753  2004-03-07 04:29  include\import.h

     文件       1421  2004-03-04 20:19  include\matching.h

     文件       4665  2004-03-05 03:25  include\minutia.h

     文件       3363  2004-03-05 00:05  src\export.c

     文件       7705  2004-03-05 00:21  src\file.c

     文件       7181  2004-03-05 00:31  src\floatfield.c

     文件       4716  2004-03-08 01:16  src\histogram.c

     文件       8908  2004-03-08 01:16  src\image.c

     文件      25818  2004-03-05 02:09  src\imagemanip.c

     文件      11155  2004-03-05 02:18  src\img_base.c

     文件       5443  2004-03-08 01:27  src\img_enhance.c

     文件       2141  2004-03-05 02:43  src\img_morphology.c

     文件       6092  2004-03-08 01:36  src\img_thin.c

     文件       2082  2004-03-08 01:40  src\import.c

     文件       9976  2004-03-05 03:12  src\matching.c

     文件      10399  2004-03-05 03:25  src\minutia.c

     文件        337  2004-03-05 03:26  src\version.c

     文件       1675  2004-03-05 03:32  demos\fvs_binarize.c

     文件       2640  2004-03-08 01:53  demos\fvs_createtestimages.c

     文件       2198  2004-03-08 01:54  demos\fvs_direction.c

     文件       1787  2004-03-08 01:52  demos\fvs_enhancer.c

............此处省略9个文件信息

评论

共有 条评论