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

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

?? cvcompat.h

?? OpenCV1.0 + C++Builder6 example of finding coners programm. Highlites coners it found in frame.
?? H
?? 第 1 頁 / 共 3 頁
字號:
/*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*/

/*
   This is a set of macros and definitions intended to provide backward compatibility
   with the previous versions of OpenCV
*/

#ifndef _CVCOMPAT_H_
#define _CVCOMPAT_H_

#include <string.h>

#ifdef __cplusplus
    #define CV_UNREFERENCED(arg)
#else
    #define CV_UNREFERENCED(arg) arg
#endif

#define CvMatType int
#define CvDisMaskType int
#define CvMatArray CvMat

#define CvThreshType int
#define CvAdaptiveThreshMethod int
#define CvCompareMethod int
#define CvFontFace int
#define CvPolyApproxMethod int
#define CvContoursMatchMethod int
#define CvContourTreesMatchMethod int
#define CvCoeffType int
#define CvRodriguesType int
#define CvElementShape int
#define CvMorphOp int
#define CvTemplMatchMethod int

#define  CV_MAT32F      CV_32FC1
#define  CV_MAT3x1_32F  CV_32FC1
#define  CV_MAT4x1_32F  CV_32FC1
#define  CV_MAT3x3_32F  CV_32FC1
#define  CV_MAT4x4_32F  CV_32FC1

#define  CV_MAT64D      CV_64FC1
#define  CV_MAT3x1_64D  CV_64FC1
#define  CV_MAT4x1_64D  CV_64FC1
#define  CV_MAT3x3_64D  CV_64FC1
#define  CV_MAT4x4_64D  CV_64FC1

#define  IPL_GAUSSIAN_5x5   7
#define  CvBox2D32f     CvBox2D

/* allocation/deallocation macros */
#define cvCreateImageData   cvCreateData
#define cvReleaseImageData  cvReleaseData
#define cvSetImageData      cvSetData
#define cvGetImageRawData   cvGetRawData

#define cvmAlloc            cvCreateData
#define cvmFree             cvReleaseData
#define cvmAllocArray       cvCreateData
#define cvmFreeArray        cvReleaseData

#define cvIntegralImage     cvIntegral
#define cvMatchContours     cvMatchShapes

CV_INLINE CvMat cvMatArray( int rows, int cols, int type,
                            int count, void* data CV_DEFAULT(0));
CV_INLINE CvMat cvMatArray( int rows, int cols, int type,
                            int count, void* data )
{
    return cvMat( rows*count, cols, type, data );    
}

#define cvUpdateMHIByTime  cvUpdateMotionHistory

#define cvAccMask cvAcc
#define cvSquareAccMask cvSquareAcc
#define cvMultiplyAccMask cvMultiplyAcc
#define cvRunningAvgMask(imgY, imgU, mask, alpha) cvRunningAvg(imgY, imgU, alpha, mask)

#define cvSetHistThresh  cvSetHistBinRanges
#define cvCalcHistMask(img, mask, hist, doNotClear) cvCalcHist(img, hist, doNotClear, mask)

CV_INLINE double cvMean( const CvArr* image, const CvArr* mask CV_DEFAULT(0));
CV_INLINE double cvMean( const CvArr* image, const CvArr* mask )
{
    CvScalar mean = cvAvg( image, mask );
    return mean.val[0];
}


CV_INLINE double  cvSumPixels( const CvArr* image );
CV_INLINE double  cvSumPixels( const CvArr* image )
{
    CvScalar scalar = cvSum( image );
    return scalar.val[0];
}

CV_INLINE void  cvMean_StdDev( const CvArr* image, double* mean, double* sdv,
                               const CvArr* mask CV_DEFAULT(0));
CV_INLINE void  cvMean_StdDev( const CvArr* image, double* mean,
                               double* sdv, const CvArr* mask )
{
    CvScalar _mean, _sdv;
    cvAvgSdv( image, &_mean, &_sdv, mask );

    if( mean )
        *mean = _mean.val[0];

    if( sdv )
        *sdv = _sdv.val[0];
}


CV_INLINE void cvmPerspectiveProject( const CvMat* mat, const CvArr* src,
                                      CvArr* dst );
CV_INLINE void cvmPerspectiveProject( const CvMat* mat, const CvArr* src,
                                      CvArr* dst )
{
    CvMat tsrc, tdst;

    cvReshape( src, &tsrc, 3, 0 );
    cvReshape( dst, &tdst, 3, 0 );

    cvPerspectiveTransform( &tsrc, &tdst, mat );
}


CV_INLINE void cvFillImage( CvArr* mat, double color );
CV_INLINE void cvFillImage( CvArr* mat, double color )
{
    CvPoint left_top = { 0, 0 }, right_bottom = { 0, 0 };

    cvGetRawData( mat, 0, 0, (CvSize*)&right_bottom );
    right_bottom.x--;
    right_bottom.y--;

    cvRectangle( mat, left_top, right_bottom,
                 cvColorToScalar( color, cvGetElemType(mat)),
                 CV_FILLED, 8, 0 );
}


#define cvCvtPixToPlane cvSplit
#define cvCvtPlaneToPix cvMerge

typedef struct CvRandState
{
    CvRNG     state;    /* RNG state (the current seed and carry)*/
    int       disttype; /* distribution type */
    CvScalar  param[2]; /* parameters of RNG */
}
CvRandState;


/* Changes RNG range while preserving RNG state */
CV_INLINE  void  cvRandSetRange( CvRandState* state, double param1,
                                 double param2, int index CV_DEFAULT(-1));
CV_INLINE  void  cvRandSetRange( CvRandState* state, double param1,
                                 double param2, int index )
{
    if( !state )
    {
        cvError( CV_StsNullPtr, "cvRandSetRange", "Null pointer to RNG state", "cvcompat.h", 0 );
        return;
    }

    if( (unsigned)(index + 1) > 4 )
    {
        cvError( CV_StsOutOfRange, "cvRandSetRange", "index is not in -1..3", "cvcompat.h", 0 );
        return;
    }

    if( index < 0 )
    {
        state->param[0].val[0] = state->param[0].val[1] =
        state->param[0].val[2] = state->param[0].val[3] = param1;
        state->param[1].val[0] = state->param[1].val[1] = 
        state->param[1].val[2] = state->param[1].val[3] = param2;
    }
    else
    {
        state->param[0].val[index] = param1;
        state->param[1].val[index] = param2;
    }
}


CV_INLINE  void  cvRandInit( CvRandState* state, double param1,
                             double param2, int seed,
                             int disttype CV_DEFAULT(CV_RAND_UNI));
CV_INLINE  void  cvRandInit( CvRandState* state, double param1,
                             double param2, int seed, int disttype )
{
    if( !state )
    {
        cvError( CV_StsNullPtr, "cvRandInit", "Null pointer to RNG state", "cvcompat.h", 0 );
        return;
    }

    if( disttype != CV_RAND_UNI && disttype != CV_RAND_NORMAL )
    {
        cvError( CV_StsBadFlag, "cvRandInit", "Unknown distribution type", "cvcompat.h", 0 );
        return;
    }

    state->state = (uint64)(seed ? seed : -1);
    state->disttype = disttype;
    cvRandSetRange( state, param1, param2, -1 );
}


/* Fills array with random numbers */
CV_INLINE void cvRand( CvRandState* state, CvArr* arr );
CV_INLINE void cvRand( CvRandState* state, CvArr* arr )
{
    if( !state )
    {
        cvError( CV_StsNullPtr, "cvRand", "Null pointer to RNG state", "cvcompat.h", 0 );
        return;
    }
    cvRandArr( &state->state, arr, state->disttype, state->param[0], state->param[1] ); 
}

#define cvRandNext( _state ) cvRandInt( &(_state)->state )

CV_INLINE void cvbRand( CvRandState* state, float* dst, int len );
CV_INLINE void cvbRand( CvRandState* state, float* dst, int len )
{
    CvMat mat = cvMat( 1, len, CV_32F, (void*)dst );
    cvRand( state, &mat );
}


CV_INLINE void  cvbCartToPolar( const float* y, const float* x,
                                float* magnitude, float* angle, int len );
CV_INLINE void  cvbCartToPolar( const float* y, const float* x,
                                float* magnitude, float* angle, int len )
{
    CvMat mx = cvMat( 1, len, CV_32F, (void*)x );
    CvMat my = mx;
    CvMat mm = mx;
    CvMat ma = mx;

    my.data.fl = (float*)y;
    mm.data.fl = (float*)magnitude;
    ma.data.fl = (float*)angle;

    cvCartToPolar( &mx, &my, &mm, angle ? &ma : NULL, 1 );
}


CV_INLINE void  cvbFastArctan( const float* y, const float* x,
                               float* angle, int len );
CV_INLINE void  cvbFastArctan( const float* y, const float* x,
                               float* angle, int len )
{
    CvMat mx = cvMat( 1, len, CV_32F, (void*)x );
    CvMat my = mx;
    CvMat ma = mx;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人自拍网| 欧美三级电影在线看| 91久久精品日日躁夜夜躁欧美| 欧美精品久久久久久久多人混战 | www.一区二区| 欧美精品视频www在线观看 | 欧美精品久久天天躁| 日本一区二区综合亚洲| 日韩**一区毛片| 91美女在线看| 欧美国产亚洲另类动漫| 日产欧产美韩系列久久99| 色婷婷综合在线| 欧美激情中文不卡| 国产一区二区三区在线观看免费| 欧美日韩精品欧美日韩精品一| 国产精品日产欧美久久久久| 日本aⅴ亚洲精品中文乱码| 欧洲精品视频在线观看| 亚洲天天做日日做天天谢日日欢| 久久国产剧场电影| 日韩欧美国产一二三区| 亚洲第一久久影院| 欧美综合一区二区| 18成人在线视频| 成人毛片视频在线观看| 久久久久久久久久看片| 精品亚洲免费视频| 欧美成人女星排名| 美国一区二区三区在线播放| 7777精品久久久大香线蕉| 午夜婷婷国产麻豆精品| 欧美三级欧美一级| 午夜精品久久久久| 欧美一区三区四区| 麻豆一区二区三| 欧美精品一区男女天堂| 国产一区二区伦理片| 久久久精品一品道一区| 国产高清精品久久久久| 国产蜜臀av在线一区二区三区| 国精产品一区一区三区mba视频| 精品国产sm最大网站| 国产黄色成人av| 亚洲欧美在线观看| 欧美三级中文字幕在线观看| 性做久久久久久| 日韩一区二区三区视频| 国内欧美视频一区二区| 中文字幕巨乱亚洲| 日本精品一级二级| 日韩电影在线一区| 26uuu国产在线精品一区二区| 国产v综合v亚洲欧| 亚洲欧美aⅴ...| 制服视频三区第一页精品| 国内成+人亚洲+欧美+综合在线| 久久午夜色播影院免费高清| 不卡的av中国片| 亚洲bdsm女犯bdsm网站| 精品福利一区二区三区免费视频| 成人影视亚洲图片在线| 亚洲永久免费视频| 精品国产污污免费网站入口| 成人中文字幕电影| 婷婷综合另类小说色区| 久久久久97国产精华液好用吗| 99re这里只有精品视频首页| 视频在线观看91| 欧美激情在线一区二区| 欧美日韩一区中文字幕| 国产91精品在线观看| 亚洲成av人片观看| 国产精品私人影院| 欧美日韩国产经典色站一区二区三区| 狠狠色丁香久久婷婷综合_中| 亚洲免费观看高清在线观看| 日韩精品中文字幕一区| 色婷婷亚洲婷婷| 国内成人免费视频| 亚洲成a人v欧美综合天堂下载 | 欧美电影免费提供在线观看| 国产综合久久久久久久久久久久| 国产精品另类一区| 日韩天堂在线观看| 欧美午夜在线一二页| 国产一区二区在线视频| 亚洲一区二区三区爽爽爽爽爽 | 久久精品国产网站| 自拍偷在线精品自拍偷无码专区| 日韩一级片在线播放| 在线视频一区二区三| 懂色av一区二区三区蜜臀| 蜜臀av一区二区| 婷婷中文字幕一区三区| 亚洲欧美另类综合偷拍| 国产日韩精品一区| 精品国偷自产国产一区| 在线综合+亚洲+欧美中文字幕| 91美女在线观看| 不卡的av电影在线观看| 国产一区二区三区| 紧缚捆绑精品一区二区| 日本不卡123| 日韩不卡一区二区| 性做久久久久久免费观看| 亚洲一区电影777| 一区二区在线看| 玉足女爽爽91| 一区二区三区在线免费播放| 国产精品美女www爽爽爽| 国产午夜亚洲精品理论片色戒| 精品少妇一区二区三区 | 国产拍揄自揄精品视频麻豆| 欧美变态tickle挠乳网站| 欧美一区二区播放| 欧美日韩一区不卡| 欧美二区三区91| 91精品国产综合久久精品| 6080亚洲精品一区二区| 7777精品伊人久久久大香线蕉超级流畅| 一本久久a久久免费精品不卡| 91老司机福利 在线| 色94色欧美sute亚洲线路一ni| 一本久道中文字幕精品亚洲嫩| 91首页免费视频| 欧美午夜片在线观看| 欧美日韩国产综合一区二区三区| 欧美日韩一区二区在线观看视频| 在线欧美日韩国产| 欧美一区二视频| 久久久国产综合精品女国产盗摄| 欧美韩国日本综合| 亚洲免费三区一区二区| 亚洲电影一区二区| 裸体一区二区三区| 国产精品亚洲人在线观看| 不卡在线视频中文字幕| 欧美性大战久久久久久久蜜臀| 6080亚洲精品一区二区| 久久精品综合网| 一区二区三区在线观看欧美| 日韩精品一二区| 国产不卡在线播放| 在线观看av一区| 精品国产凹凸成av人导航| 成人免费在线观看入口| 视频一区二区三区入口| 国产精品99久久久久久宅男| 91视视频在线观看入口直接观看www | 蜜臀av性久久久久蜜臀aⅴ流畅 | 成人免费高清视频| 色欧美乱欧美15图片| 欧美一区二区在线免费观看| 国产视频视频一区| 亚洲午夜三级在线| 久久av资源网| 色综合久久久久综合| 精品久久人人做人人爰| 亚洲欧美激情插| 国产一区二区三区美女| 欧美亚洲国产一区二区三区va| 欧美α欧美αv大片| 亚洲综合偷拍欧美一区色| 久久99精品国产麻豆不卡| 色综合久久99| 久久久久亚洲蜜桃| 亚洲成av人片观看| 国产精品亚洲第一| 日韩视频不卡中文| 亚洲品质自拍视频| 国产成人夜色高潮福利影视| 欧美影院一区二区| 国产精品久久看| 极品少妇xxxx精品少妇| 欧美酷刑日本凌虐凌虐| 综合欧美亚洲日本| 成人一级片网址| 久久一区二区三区国产精品| 亚洲综合无码一区二区| 99re6这里只有精品视频在线观看| 欧美va亚洲va| 免费xxxx性欧美18vr| 欧美蜜桃一区二区三区| 一区二区三区日本| 91亚洲精品乱码久久久久久蜜桃 | 国产精品免费aⅴ片在线观看| 奇米综合一区二区三区精品视频| 在线免费观看日本欧美| 亚洲特黄一级片| 成人免费va视频| 国产精品视频yy9299一区| 国产乱码精品一区二区三区av | 免费在线看一区| 欧美精品久久久久久久多人混战| 亚洲午夜精品一区二区三区他趣| 91色在线porny| 亚洲男同1069视频| 色老汉av一区二区三区| 一区二区三区在线视频免费 |