OpenCV-2.4.1&tbb;(x86)解压即用.zip


OpenCV-2.4.1&tbb;(x86)解压即用。 自带编译tbb。 推荐使用buildx86vc10里面的版本
资源截图
代码片段和文件信息
/*
    Copyright 2005-2012 Intel Corporation.  All Rights Reserved.

    This file is part of Threading Building Blocks.

    Threading Building Blocks is free software; you can redistribute it
    and/or modify it under the terms of the GNU General Public License
    version 2 as published by the Free Software Foundation.

    Threading Building Blocks is distributed in the hope that it will be
    useful but WITHOUT ANY WARRANTY; without even the implied warranty
    of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Threading Building Blocks; if not write to the Free Software
    Foundation Inc. 51 Franklin St Fifth Floor Boston MA  02110-1301  USA

    As a special exception you may use this file as part of a free software
    library without restriction.  Specifically if other files instantiate
    templates or use macros or inline functions from this file or you compile
    this file and link it with other files to produce an executable this
    file does not by itself cause the resulting executable to be covered by
    the GNU General Public License.  This exception does not however
    invalidate any other reasons why the executable file might be covered by
    the GNU General Public License.
*/

#include “video.h“
#include 
#include 

unsigned int *              g_pImg = 0;
int                         g_sizex g_sizey;
static video *g_video = 0;
static int g_fps = 0;

#if _WIN32 || _WIN64

static DWORD g_msec = 0;
#ifdef _WINDOWS
HINSTANCE video::win_hInstance = 0;
int video::win_iCmdShow = 0;
void video::win_set_class(WNDCLASSEX &wcex) { }
void video::win_load_accelerators(int idc)  { }
#endif //_WINDOWS

#else

#include 
#include 
struct timeval g_time;

#endif //_WIN32||_WIN64

video::video()
    : red_mask(0xff0000) red_shift(16) green_mask(0xff00)
      green_shift(8) blue_mask(0xff) blue_shift(0) depth(24)
{
    assert(g_video == 0);
    g_video = this; title = “Video“; updating = calc_fps = false;
}

bool video::init_window(int x int y)
{
    g_sizex = x; g_sizey = y;
    g_pImg = new unsigned int[x*y];
    running = true;
    return false;
}

bool video::init_console()
{
    running = true;
    return true;
}

void video::terminate()
{
    if(calc_fps) {
        double fps = g_fps;
#if _WIN32 || _WIN64
        fps /= (GetTickCount()-g_msec)/1000.0;
#else
        struct timezone tz; struct timeval end_time; gettimeofday(&end_time &tz);
        fps /= (end_time.tv_sec+1.0*end_time.tv_usec/1000000.0) - (g_time.tv_sec+1.0*g_time.tv_usec/1000000.0);
#endif
        printf(“%s: %.1f fps
“ title fps);
   }
    g_video = 0; running = false;
    if(g_pImg) { delete[] g_pImg; g_pImg = 0; }
}

video::~video()
{
    if(g_video) terminate();
}

//! Count and display FPS count in titlebar
bool video::next_frame()
{
    if(calc_fps){
    

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-10-27 15:26  OpenCV-2.4.1&tbb(x86)解压即用
     目录           0  2012-06-06 13:12  OpenCV-2.4.1&tbb(x86)解压即用uild
     目录           0  2019-10-27 15:26  OpenCV-2.4.1&tbb(x86)解压即用uildx86
     目录           0  2012-06-06 12:59  OpenCV-2.4.1&tbb(x86)解压即用uildx86vc10
     文件         390  2012-06-06 11:17  OpenCV-2.4.1&tbb(x86)解压即用uildx86vc10OpenCVConfig-version.cmake
     文件       16377  2012-06-06 11:17  OpenCV-2.4.1&tbb(x86)解压即用uildx86vc10OpenCVConfig.cmake
     目录           0  2012-06-06 12:59  OpenCV-2.4.1&tbb(x86)解压即用uildx86vc10in
     文件      738816  2012-06-06 12:21  OpenCV-2.4.1&tbb(x86)解压即用uildx86vc10inopencv_calib3d241.dll
     文件     1473024  2012-06-06 11:39  OpenCV-2.4.1&tbb(x86)解压即用uildx86vc10inopencv_calib3d241d.dll
     文件      879104  2012-06-06 12:23  OpenCV-2.4.1&tbb(x86)解压即用uildx86vc10inopencv_contrib241.dll
     文件     1962496  2012-06-06 11:40  OpenCV-2.4.1&tbb(x86)解压即用uildx86vc10inopencv_contrib241d.dll
     文件     1901056  2012-06-06 12:14  OpenCV-2.4.1&tbb(x86)解压即用uildx86vc10inopencv_core241.dll
     文件     3197440  2012-06-06 11:34  OpenCV-2.4.1&tbb(x86)解压即用uildx86vc10inopencv_core241d.dll
     文件      140800  2012-06-06 12:36  OpenCV-2.4.1&tbb(x86)解压即用uildx86vc10inopencv_createsamples.exe
     文件      346112  2012-06-06 11:54  OpenCV-2.4.1&tbb(x86)解压即用uildx86vc10inopencv_createsamplesd.exe
     文件      577536  2012-06-06 12:19  OpenCV-2.4.1&tbb(x86)解压即用uildx86vc10inopencv_features2d241.dll
     文件     1187328  2012-06-06 11:38  OpenCV-2.4.1&tbb(x86)解压即用uildx86vc10inopencv_features2d241d.dll
     文件     9157039  2012-06-01 23:14  OpenCV-2.4.1&tbb(x86)解压即用uildx86vc10inopencv_ffmpeg241.dll
     文件      395776  2012-06-06 12:15  OpenCV-2.4.1&tbb(x86)解压即用uildx86vc10inopencv_flann241.dll
     文件      974336  2012-06-06 11:36  OpenCV-2.4.1&tbb(x86)解压即用uildx86vc10inopencv_flann241d.dll
     文件      326144  2012-06-06 12:22  OpenCV-2.4.1&tbb(x86)解压即用uildx86vc10inopencv_gpu241.dll
     文件      774656  2012-06-06 11:39  OpenCV-2.4.1&tbb(x86)解压即用uildx86vc10inopencv_gpu241d.dll
     文件      141824  2012-06-06 12:35  OpenCV-2.4.1&tbb(x86)解压即用uildx86vc10inopencv_haartraining.exe
     文件      349184  2012-06-06 11:54  OpenCV-2.4.1&tbb(x86)解压即用uildx86vc10inopencv_haartrainingd.exe
     文件     1001984  2012-06-06 12:17  OpenCV-2.4.1&tbb(x86)解压即用uildx86vc10inopencv_highgui241.dll
     文件     2029568  2012-06-06 11:37  OpenCV-2.4.1&tbb(x86)解压即用uildx86vc10inopencv_highgui241d.dll
     文件     1655808  2012-06-06 12:16  OpenCV-2.4.1&tbb(x86)解压即用uildx86vc10inopencv_imgproc241.dll
     文件     2779136  2012-06-06 11:35  OpenCV-2.4.1&tbb(x86)解压即用uildx86vc10inopencv_imgproc241d.dll
     文件     1190912  2012-06-06 12:23  OpenCV-2.4.1&tbb(x86)解压即用uildx86vc10inopencv_legacy241.dll
     文件     2565120  2012-06-06 11:40  OpenCV-2.4.1&tbb(x86)解压即用uildx86vc10inopencv_legacy241d.dll
     文件      504832  2012-06-06 12:17  OpenCV-2.4.1&tbb(x86)解压即用uildx86vc10inopencv_ml241.dll
............此处省略1421个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)