system.c
来自「微软的基于HMM的人脸识别原代码, 非常经典的说」· C语言 代码 · 共 56 行
C
56 行
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// INTEL CORPORATION PROPRIETARY INFORMATION
// This software is supplied under the terms of a license agreement or
// nondisclosure agreement with Intel Corporation and may not be copied
// or disclosed except in accordance with the terms of that agreement.
// Copyright (c) 1999 Intel Corporation. All Rights Reserved.
//
// RCS:
// $Source: system.c$
// $Revision: 00.00.05$
// Purpose:
// Contents:
// Authors:
// Sergey Oblomov
//
//M*/
#include "ats.h"
static char test_data_path[1000];
void atsInitModuleTestData( char* module, char* path_from_module )
{
int i;
for( i = strlen( module ); i >= 0 && module[i] != '/' && module[i] != '\\'; i-- );
strcpy( test_data_path, module );
strcpy( test_data_path + i + 1, path_from_module );
strcat( test_data_path, "/" );
//strcpy( test_data_path, "F:/Users/Neo/StarTeam/Neo/Tests/_Tests_Cvl/TestData/" );
}
char* atsGetTestDataPath( char* buffer, char* folder, char* filename, char* extention )
{
assert( buffer );
strcpy( buffer, test_data_path );
if( folder )
{
strcat( buffer, folder );
strcat( buffer, "/" );
}
if( filename )
{
strcat( buffer, filename );
if( extention )
{
if( *extention != '.' )
strcat( buffer, "." );
strcat( buffer, extention );
}
}
return buffer;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?