/*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.
//
//
// License Agreement
// For Open Source Computer Vision Library
//
// Copyright (C) 2000-2008, Intel Corporation, all rights reserved.
// Copyright (C) 2009, Willow Garage Inc., all rights reserved.
// Copyright (C) 2013, OpenCV Foundation, 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 the copyright holders 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*/
#ifndef OPENCV_CORE_C_H
#define OPENCV_CORE_C_H
#include "opencv2/core/types_c.h"
#ifdef __cplusplus
# ifdef _MSC_VER
/* disable warning C4190: 'function' has C-linkage specified, but returns UDT 'typename'
which is incompatible with C
It is OK to disable it because we only extend few plain structures with
C++ construrtors for simpler interoperability with C++ API of the library
*/
# pragma warning(disable:4190)
# elif defined __clang__ && __clang_major__ >= 3
# pragma GCC diagnostic ignored "-Wreturn-type-c-linkage"
# endif
#endif
#ifdef __cplusplus
extern "C" {
#endif
/** @addtogroup core_c
@{
*/
/****************************************************************************************\
* Array allocation, deallocation, initialization and access to elements *
\****************************************************************************************/
/** `malloc` wrapper.
If there is no enough memory, the function
(as well as other OpenCV functions that call cvAlloc)
raises an error. */
CVAPI(void*) cvAlloc( size_t size );
/** `free` wrapper.
Here and further all the memory releasing functions
(that all call cvFree) take double pointer in order to
to clear pointer to the data after releasing it.
Passing pointer to NULL pointer is Ok: nothing happens in this case
*/
CVAPI(void) cvFree_( void* ptr );
#define cvFree(ptr) (cvFree_(*(ptr)), *(ptr)=0)
/** @brief Creates an image header but does not allocate the image data.
@param size Image width and height
@param depth Image depth (see cvCreateImage )
@param channels Number of channels (see cvCreateImage )
*/
CVAPI(IplImage*) cvCreateImageHeader( CvSize size, int depth, int channels );
/** @brief Initializes an image header that was previously allocated.
The returned IplImage\* points to the initialized header.
@param image Image header to initialize
@param size Image width and height
@param depth Image depth (see cvCreateImage )
@param channels Number of channels (see cvCreateImage )
@param origin Top-left IPL_ORIGIN_TL or bottom-left IPL_ORIGIN_BL
@param align Alignment for image rows, typically 4 or 8 bytes
*/
CVAPI(IplImage*) cvInitImageHeader( IplImage* image, CvSize size, int depth,
int channels, int origin CV_DEFAULT(0),
int align CV_DEFAULT(4));
/** @brief Creates an image header and allocates the image data.
This function call is equivalent to the following code:
@code
header = cvCreateImageHeader(size, depth, channels);
cvCreateData(header);
@endcode
@param size Image width and height
@param depth Bit depth of image elements. See IplImage for valid depths.
@param channels Number of channels per pixel. See IplImage for details. This function only creates
images with interleaved channels.
*/
CVAPI(IplImage*) cvCreateImage( CvSize size, int depth, int channels );
/** @brief Deallocates an image header.
This call is an analogue of :
@code
if(image )
{
iplDeallocate(*image, IPL_IMAGE_HEADER | IPL_IMAGE_ROI);
*image = 0;
}
@endcode
but it does not use IPL functions by default (see the CV_TURN_ON_IPL_COMPATIBILITY macro).
@param image Double pointer to the image header
*/
CVAPI(void) cvReleaseImageHeader( IplImage** image );
/** @brief Deallocates the image header and the image data.
This call is a shortened form of :
@code
if(*image )
{
cvReleaseData(*image);
cvReleaseImageHeader(image);
}
@endcode
@param image Double pointer to the image header
*/
CVAPI(void) cvReleaseImage( IplImage** image );
/** Creates a copy of IPL image (widthStep may differ) */
CVAPI(IplImage*) cvCloneImage( const IplImage* image );
/** @brief Sets the channel of interest in an IplImage.
If the ROI is set to NULL and the coi is *not* 0, the ROI is allocated. Most OpenCV functions do
*not* support the COI setting, so to process an individual image/matrix channel one may copy (via
cvCopy or cvSplit) the channel to a separate image/matrix, process it and then copy the result
back (via cvCopy or cvMerge) if needed.
@param image A pointer to the image header
@param coi The channel of interest. 0 - all channels are selected, 1 - first channel is selected,
etc. Note that the channel indices become 1-based.
*/
CVAPI(void) cvSetImageCOI( IplImage* image, int coi );
/** @brief Returns the index of the channel of interest.
Returns the channel of interest of in an IplImage. Returned values correspond to the coi in
cvSetImageCOI.
@param image A pointer to the image header
*/
CVAPI(int) cvGetImageCOI( const IplImage* image );
/** @brief Sets an image Region Of Interest (ROI) for a given rectangle.
If the original image ROI was NULL and the rect is not the whole image, the ROI structure is
allocated.
Most OpenCV functions support the use of ROI and treat the image rectangle as a separate image. For
example, all of the pixel coordinates are counted from the top-left (or bottom-left) corner of the
ROI, not the original image.
@param image A pointer to the image header
@param rect The ROI rectangle
*/
CVAPI(void) cvSetImageROI( IplImage* image, CvRect rect );
/** @brief Resets the image ROI to include the entire image and releases the ROI structure.
This produces a similar result to the following, but in addition it releases the ROI structure. :
@code
cvSetImageROI(image, cvRect(0, 0, image->width, image->height ));
cvSetImageCOI(image, 0);
@endcode
@param image A pointer to the image header
*/
CVAPI(void)
没有合适的资源?快使用搜索试试~ 我知道了~
编译好的3.4.1版本的opencv_contrib_install.zip
共607个文件
hpp:325个
dll:89个
lib:88个
4星 · 超过85%的资源 需积分: 17 11 下载量 44 浏览量
2020-05-10
17:41:18
上传
评论
收藏 49.65MB ZIP 举报
温馨提示
省去自己使用cmake编译的过程,包括已经编译好的Opencv3.4.1、contrib模块、编译好的install文件,VS2017版,在vc15上,debug、reals两2个模式上都已经编译过了。
资源推荐
资源详情
资源评论
收起资源包目录
编译好的3.4.1版本的opencv_contrib_install.zip (607个子文件)
OpenCVModules-release.cmake 26KB
OpenCVModules-debug.cmake 26KB
OpenCVModules.cmake 15KB
OpenCVConfig.cmake 14KB
OpenCVConfig.cmake 6KB
OpenCVConfig-version.cmake 433B
OpenCVConfig-version.cmake 433B
opencv_ffmpeg341_64.dll 17.22MB
opencv_dnn341d.dll 11.87MB
opencv_imgproc341d.dll 7.83MB
opencv_core341d.dll 6.83MB
opencv_imgcodecs341d.dll 5.94MB
opencv_xfeatures2d341d.dll 4.47MB
opencv_dnn341.dll 4.46MB
opencv_tracking341d.dll 4.1MB
opencv_calib3d341d.dll 4.06MB
opencv_imgproc341.dll 3.41MB
opencv_ximgproc341d.dll 3.27MB
opencv_core341.dll 3.01MB
opencv_xfeatures2d341.dll 2.92MB
opencv_imgcodecs341.dll 2.9MB
opencv_stitching341d.dll 2.48MB
opencv_features2d341d.dll 2.32MB
opencv_tracking341.dll 2.31MB
opencv_face341d.dll 2.05MB
opencv_calib3d341.dll 1.99MB
opencv_photo341d.dll 1.97MB
opencv_text341d.dll 1.8MB
opencv_ml341d.dll 1.79MB
opencv_rgbd341d.dll 1.78MB
opencv_datasets341d.dll 1.65MB
opencv_xphoto341d.dll 1.55MB
opencv_ccalib341d.dll 1.54MB
opencv_objdetect341d.dll 1.53MB
opencv_flann341d.dll 1.47MB
opencv_videostab341d.dll 1.38MB
opencv_ximgproc341.dll 1.34MB
opencv_surface_matching341d.dll 1.32MB
opencv_optflow341d.dll 1.31MB
opencv_aruco341d.dll 1.26MB
opencv_video341d.dll 1.09MB
opencv_stitching341.dll 1.06MB
opencv_line_descriptor341d.dll 1008KB
opencv_photo341.dll 989KB
opencv_features2d341.dll 882KB
opencv_saliency341d.dll 880KB
opencv_shape341d.dll 829KB
opencv_face341.dll 828KB
opencv_videoio341d.dll 817KB
opencv_ml341.dll 800KB
opencv_bgsegm341d.dll 799KB
opencv_bioinspired341d.dll 771KB
opencv_dnn_objdetect341d.dll 725KB
opencv_rgbd341.dll 720KB
opencv_ccalib341.dll 712KB
opencv_superres341d.dll 709KB
opencv_structured_light341d.dll 690KB
opencv_stereo341d.dll 683KB
opencv_dpm341d.dll 672KB
opencv_xobjdetect341d.dll 667KB
opencv_datasets341.dll 665KB
opencv_reg341d.dll 664KB
opencv_text341.dll 653KB
opencv_videostab341.dll 623KB
opencv_hfs341d.dll 615KB
opencv_xphoto341.dll 570KB
opencv_objdetect341.dll 555KB
opencv_aruco341.dll 542KB
opencv_optflow341.dll 529KB
opencv_flann341.dll 524KB
opencv_img_hash341d.dll 521KB
opencv_video341.dll 511KB
opencv_highgui341d.dll 495KB
opencv_fuzzy341d.dll 491KB
opencv_surface_matching341.dll 473KB
opencv_phase_unwrapping341d.dll 461KB
opencv_plot341d.dll 386KB
opencv_bioinspired341.dll 358KB
opencv_bgsegm341.dll 337KB
opencv_saliency341.dll 321KB
opencv_line_descriptor341.dll 319KB
opencv_shape341.dll 317KB
opencv_videoio341.dll 306KB
opencv_superres341.dll 302KB
opencv_stereo341.dll 302KB
opencv_structured_light341.dll 275KB
opencv_reg341.dll 260KB
opencv_dpm341.dll 233KB
opencv_xobjdetect341.dll 228KB
opencv_dnn_objdetect341.dll 207KB
opencv_img_hash341.dll 202KB
opencv_fuzzy341.dll 202KB
opencv_hfs341.dll 197KB
opencv_highgui341.dll 194KB
opencv_phase_unwrapping341.dll 158KB
opencv_plot341.dll 148KB
opencv_traincascaded.exe 1.02MB
opencv_interactive-calibrationd.exe 534KB
opencv_traincascade.exe 321KB
opencv_annotationd.exe 233KB
共 607 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7
资源评论
- robotswj2020-06-22显示图像和视频,弹出的窗口是全灰色,没有数据,显示有BUG
HyggeMrYang
- 粉丝: 137
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功