日期:2014-05-16  浏览次数:20691 次

在windows下运行 Linux/UNIX下编译的C程序
错的提示: fatal error C1083: Cannot open include file: 'fvs.h': No such file or directory 应该怎么改呢!! (我在windows下运行)

/*#############################################################################
 * 文件名:fvs_binarize.c
 * 功能:  指纹图像二值化

#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;