当前位置: 技术问答>linux和unix
在windows下运行 Linux/UNIX下编译的C程序
来源: 互联网 发布时间:2017-04-09
本文导语: 错的提示: fatal error C1083: Cannot open include file: 'fvs.h': No such file or directory 应该怎么改呢!! (我在windows下运行) /*############################################################################# * 文件名:fvs_binarize.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.bmpn");
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 directionn");
(void)FingerprintGetDirection(image, direction, 5, 8);
fprintf(stdout, "2/5 Determining the ridge frequencyn");
(void)FingerprintGetFrequency(image, direction, frequency);
fprintf(stdout, "3/5 Creating the maskn");
(void)FingerprintGetMask(image, direction, frequency, mask);
fprintf(stdout, "4/5 Enhancing the fingerprint imagen");
(void)ImageEnhanceGabor(image, direction, frequency, mask, 4.0);
fprintf(stdout, "5/5 Binarizen");
(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;
}
/*#############################################################################
* 文件名: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.bmpn");
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 directionn");
(void)FingerprintGetDirection(image, direction, 5, 8);
fprintf(stdout, "2/5 Determining the ridge frequencyn");
(void)FingerprintGetFrequency(image, direction, frequency);
fprintf(stdout, "3/5 Creating the maskn");
(void)FingerprintGetMask(image, direction, frequency, mask);
fprintf(stdout, "4/5 Enhancing the fingerprint imagen");
(void)ImageEnhanceGabor(image, direction, frequency, mask, 4.0);
fprintf(stdout, "5/5 Binarizen");
(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;
}
|
cygwin重新编译
colinux
虚拟机
colinux
虚拟机
|
在安装目录中找到include和lib两个目录,加入vc工程的include path和lib/link path之类
vc很久没用了,不保证术语正确,请领会精神
vc很久没用了,不保证术语正确,请领会精神