亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? abackproject.cpp

?? 微軟的基于HMM的人臉識別原代碼, 非常經(jīng)典的說
?? CPP
字號:
/*M///////////////////////////////////////////////////////////////////////////////////////
//
//  IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
//  By downloading, copying, installing or using the software you agree to this license.
//  If you do not agree to this license, do not download, install,
//  copy or use the software.
//
//
//                        Intel License Agreement
//                For Open Source Computer Vision Library
//
// Copyright (C) 2000, Intel Corporation, all rights reserved.
// Third party copyrights are property of their respective owners.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
//   * Redistribution's of source code must retain the above copyright notice,
//     this list of conditions and the following disclaimer.
//
//   * Redistribution's in binary form must reproduce the above copyright notice,
//     this list of conditions and the following disclaimer in the documentation
//     and/or other materials provided with the distribution.
//
//   * The name of Intel Corporation may not be used to endorse or promote products
//     derived from this software without specific prior written permission.
//
// This software is provided by the copyright holders and contributors "as is" and
// any express or implied warranties, including, but not limited to, the implied
// warranties of merchantability and fitness for a particular purpose are disclaimed.
// In no event shall the Intel Corporation or contributors be liable for any direct,
// indirect, incidental, special, exemplary, or consequential damages
// (including, but not limited to, procurement of substitute goods or services;
// loss of use, data, or profits; or business interruption) however caused
// and on any theory of liability, whether in contract, strict liability,
// or tort (including negligence or otherwise) arising in any way out of
// the use of this software, even if advised of the possibility of such damage.
//
//M*/

#include "CvTest.h"
#include "CV.hpp"

static char* funcName  = "Calculation histogram functions";
static char* testName  = "CvBackProject function";
static char* testClass = "Algorithm";

template<class Storage, class SrcType, class ThreshType, class DstType> static int
    foaCvBackProject(Storage, SrcType, ThreshType, DstType)
{
    const S1 = 4;
    const S2 = 4;
    const S3 = 4;

    CvSize roi = {100, 100};
    int step = roi.width * sizeof( SrcType );

    SrcType* src[3];
    src[0] = new SrcType[roi.width * roi.height];
    src[1] = new SrcType[roi.width * roi.height];
    src[2] = new SrcType[roi.width * roi.height];

    DstType* measure = new DstType[roi.width * roi.height];

    ThreshType _thresh[3][5] = {{1, 2, 3, 4, 5},
                                {2, 3, 4, 5, 6},
                                {5, 6, 7, 9, 10}};
    ThreshType* thresh[3] = { _thresh[0], _thresh[1], _thresh[2] };

    int Errors = 0;

    for( int i = 0; i < roi.width * roi.height; i++ )
        src[0][i] = src[1][i] = src[2][i] = 0;

    for( i = 0; i < roi.width; i++ )
        for( int j = 0; j < 3; j++ )
            src[j][roi.width + i] = (SrcType)thresh[j][i%5];

    CVHistogram<Storage> hist( S1, S2, S3 );

    CvCalculateC1( hist, src, roi, step, thresh );
    CvBackProject<CVHistogram<Storage>, SrcType, ThreshType, DstType>
        ( hist, src, roi, step, thresh, measure, roi.width * sizeof(DstType), 0 );

    for( i = 0; i < roi.width; i++ )
        if( measure[roi.width + i] != roi.width / 5 * (1 + (i%5 == 0) + (i%5 == 1)))
    {
        trsWrite( ATS_CON | ATS_LST, "Wrong destination value\n" );
        Errors++;
        break;
    }
    for( int y = 0; y < roi.height; y++ )
        for( int x = 0; x < roi.width; x++ )
            if( y != 1 && measure[roi.width * y + x] != 0 )
            {
                trsWrite( ATS_CON | ATS_LST, "Wrong destination value (non zero)\n" );
                Errors++;
                goto _exit;
            }
_exit:;
    delete src[0];
    delete src[1];
    delete src[2];
    delete measure;

    return Errors == 0 ? TRS_OK : trsResult( TRS_FAIL, "Fixed %d errors", Errors );
}

#define INT   0
#define FLOAT 1
#define SHORT 2

#define ARRAY 0
#define TREE  1

#define ARRAY_INT   (ARRAY << 4) + INT
#define ARRAY_FLOAT (ARRAY << 4) + FLOAT
#define ARRAY_SHORT (ARRAY << 4) + SHORT
#define TREE_INT    (TREE << 4)  + INT
#define TREE_FLOAT  (TREE << 4)  + FLOAT
#define TREE_SHORT  (TREE << 4)  + SHORT

static int foaCvBackProjectType( void* param )
{
    int Param = (int)param;
    switch(Param)
    {
    case ARRAY_INT:
        return foaCvBackProject(CvArray<int>(),int(), int(), int());
    case ARRAY_FLOAT:
        return foaCvBackProject(CvArray<float>(),float(), float(), int());
    case ARRAY_SHORT:
        return foaCvBackProject(CvArray<short>(),short(), short(), int());
    case TREE_INT:
        return foaCvBackProject(CvTree<int>(),int(), int(), int());
    case TREE_FLOAT:
        return foaCvBackProject(CvTree<float>(),float(), float(), int());
    case TREE_SHORT:
        return foaCvBackProject(CvTree<short>(),short(), short(), int());
    default:
        assert( 0 );
        return trsResult( TRS_UNDEF, "Wrong parameter" );
    }
}

void InitABackProject( void )
{
    trsRegArg( funcName, testName, testClass, foaCvBackProjectType, ARRAY_INT );
    trsRegArg( funcName, testName, testClass, foaCvBackProjectType, ARRAY_FLOAT );
    trsRegArg( funcName, testName, testClass, foaCvBackProjectType, ARRAY_SHORT );
    trsRegArg( funcName, testName, testClass, foaCvBackProjectType, TREE_INT );
    trsRegArg( funcName, testName, testClass, foaCvBackProjectType, TREE_FLOAT );
    trsRegArg( funcName, testName, testClass, foaCvBackProjectType, TREE_SHORT );
}

/* End of file. */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
三级在线观看一区二区| 免费成人在线观看视频| 亚洲成av人片在线观看无码| 久久不见久久见免费视频7| 99久久er热在这里只有精品15| 欧美三级电影在线观看| 国产欧美日韩另类一区| 日本一不卡视频| av男人天堂一区| 精品国产一区二区三区不卡 | 国产mv日韩mv欧美| 欧美日韩国产一级片| 国产精品色一区二区三区| 日本女优在线视频一区二区| 色94色欧美sute亚洲13| 国产亚洲精品aa| 久久成人羞羞网站| 欧美日韩一区二区三区高清| 亚洲三级久久久| 国产成人激情av| 欧美日韩国产免费| 洋洋成人永久网站入口| 成人激情校园春色| 久久伊人蜜桃av一区二区| 免费观看日韩av| 91精品欧美福利在线观看| 亚洲一区二区三区视频在线 | 国产精品蜜臀av| 久久se这里有精品| 日韩欧美国产午夜精品| 首页国产丝袜综合| 欧美日韩免费观看一区三区| 亚洲精品老司机| 欧日韩精品视频| 亚洲在线中文字幕| 日本高清不卡在线观看| 亚洲精品日韩专区silk| 91亚洲精品久久久蜜桃| 亚洲视频网在线直播| jiyouzz国产精品久久| ...xxx性欧美| 欧美在线观看18| 亚洲第一二三四区| 日韩一二三区不卡| 精品一区二区综合| 久久午夜国产精品| 成人免费福利片| 自拍视频在线观看一区二区| 色综合激情久久| 婷婷中文字幕综合| 日韩欧美综合一区| 国产精品99久久久久久久女警 | 国内成人精品2018免费看| 精品久久久久久久一区二区蜜臀| 免费在线观看成人| 久久精品一区四区| 99久久精品免费| 亚洲国产精品视频| 欧美tk丨vk视频| 成人影视亚洲图片在线| 一区二区三区小说| 91精品国产色综合久久| 美女视频黄免费的久久 | 欧美在线观看一区| 美腿丝袜亚洲一区| 中文字幕一区二区视频| 欧美日本乱大交xxxxx| 国产麻豆精品95视频| 1区2区3区欧美| 欧美一级片在线观看| 国产成人午夜精品5599| 亚洲靠逼com| 欧美成人r级一区二区三区| 成人av第一页| 蜜臀a∨国产成人精品| 亚洲国产精品黑人久久久| 欧美午夜电影在线播放| 国产精品自产自拍| 亚洲电影中文字幕在线观看| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 韩国av一区二区三区四区| 中文字幕日本不卡| 精品奇米国产一区二区三区| 色综合久久99| 国产一区二区中文字幕| 亚洲成av人影院| 中文字幕日韩一区| 久久免费午夜影院| 欧美日韩极品在线观看一区| 成人永久aaa| 国产一区视频网站| 日韩激情一二三区| 亚洲欧美成人一区二区三区| 久久嫩草精品久久久精品一| 69堂国产成人免费视频| 91丨九色丨国产丨porny| 国内成人免费视频| 免费在线看成人av| 性做久久久久久免费观看| 国产精品电影一区二区三区| 久久嫩草精品久久久精品| 91精品国产丝袜白色高跟鞋| 91成人在线免费观看| av在线播放成人| 大陆成人av片| 国产激情精品久久久第一区二区| 日本va欧美va精品发布| 亚洲v精品v日韩v欧美v专区| 亚洲乱码中文字幕| 最新国产成人在线观看| 中文字幕免费不卡| 国产欧美视频一区二区三区| 精品国产91久久久久久久妲己 | 久久久久久久久久电影| 91麻豆精品国产综合久久久久久| 在线观看精品一区| 欧美日韩中文国产| 欧美日韩五月天| 欧美在线观看视频一区二区三区| 91久久国产最好的精华液| 欧日韩精品视频| 欧美日本精品一区二区三区| 欧美亚洲免费在线一区| 欧美日韩一二区| 欧美一区二区久久| 欧美精品一区二区久久婷婷| 久久久国产午夜精品| 国产丝袜美腿一区二区三区| 国产人久久人人人人爽| 亚洲国产精品ⅴa在线观看| 国产精品每日更新在线播放网址| 国产精品毛片久久久久久久| 亚洲免费av高清| 午夜不卡av在线| 久久精品二区亚洲w码| 国产呦萝稀缺另类资源| 豆国产96在线|亚洲| 91美女视频网站| 欧美精三区欧美精三区| 日韩欧美国产一区二区在线播放| 26uuuu精品一区二区| 国产精品美女视频| 一区二区三区四区视频精品免费| 五月天丁香久久| 国产精品一区在线观看你懂的| av一区二区久久| 欧美久久久久中文字幕| 2019国产精品| 亚洲另类中文字| 奇米精品一区二区三区四区 | 91高清在线观看| 欧美一卡二卡三卡四卡| 国产日韩欧美一区二区三区乱码 | 91麻豆精品国产91久久久资源速度 | 中文字幕av不卡| 亚洲国产成人tv| 精品影视av免费| 91小视频在线| 欧美成人r级一区二区三区| 中文字幕五月欧美| 欧美96一区二区免费视频| 国产成人午夜片在线观看高清观看| 91国产免费看| 久久男人中文字幕资源站| 亚洲午夜一区二区| 国产成人免费xxxxxxxx| 欧美色图片你懂的| 国产日韩精品一区二区三区| 午夜a成v人精品| 婷婷中文字幕综合| 欧美自拍偷拍午夜视频| 欧美怡红院视频| 成人av午夜电影| 国产欧美精品在线观看| 青娱乐精品视频| 色婷婷av一区二区三区软件| 99精品桃花视频在线观看| 日韩欧美国产一区在线观看| 亚洲1区2区3区视频| 日本韩国欧美三级| 亚洲蜜臀av乱码久久精品| 波多野洁衣一区| 中文久久乱码一区二区| 国产91丝袜在线18| 三级在线观看一区二区| 成人免费视频一区| 欧美精品一区二区在线观看| 午夜精品久久一牛影视| 日本道色综合久久| 国产精品国模大尺度视频| 国产精品一区二区久久不卡| 日韩欧美一级精品久久| 奇米一区二区三区| 91精品婷婷国产综合久久性色| 亚洲一区二区在线观看视频| 色爱区综合激月婷婷| 亚洲女同女同女同女同女同69| 成人黄色大片在线观看| 欧美激情在线观看视频免费| 国产成人精品一区二区三区四区 |