⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 system.c

📁 微软的基于HMM的人脸识别原代码, 非常经典的说
💻 C
字号:
/*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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -