/*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)
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
优化模型的前处理point 和dpoint (707个子文件)
libhbmem.so.0 169KB
libcnn_intf.so.1 484KB
libopencv_world.so.3.4 18.01MB
libopencv_world.so.3.4 18.01MB
libopencv_world.so.3.4 17.98MB
libopencv_world.so.3.4.5 18.01MB
libopencv_world.so.3.4.5 17.98MB
libopencv_world.a 36.62MB
libopencv_world.a 33.84MB
liblibprotobuf.a 6.88MB
liblibprotobuf.a 6.76MB
libglog.a 1.24MB
liblibwebp.a 1.09MB
libtegra_hal.a 1.08MB
liblibwebp.a 891KB
libgflags.a 860KB
libgflags_nothreads.a 860KB
liblibtiff.a 857KB
liblibtiff.a 799KB
liblibjasper.a 585KB
liblibjasper.a 584KB
liblibjpeg-turbo.a 541KB
liblibpng.a 498KB
liblibpng.a 492KB
liblibjpeg-turbo.a 488KB
libglog.a 344KB
libtegra_hal.a 266KB
libgflags.a 255KB
libgflags_nothreads.a 251KB
libzlib.a 166KB
libzlib.a 157KB
libquirc.a 28KB
libquirc.a 25KB
imgs_float32.bin 41.84MB
3cathead.bin 37.7MB
36head.bin 35.53MB
0821.bin 30.42MB
image.bin 10.46MB
imgs_uint8.bin 10.46MB
image.bin 10.46MB
imgs.bin 10.46MB
point.bin 9.64MB
grid_index_float32.bin 8MB
inputnv12.bin 5.23MB
grid_value_float32.bin 2MB
input0.bin 588KB
input1.bin 588KB
zebra_bgr.bin 147KB
voxel.bin 117KB
7.bin 784B
calib_k.bin 36B
calib_r.bin 36B
utils.cc 42KB
box3d_nms.cc 24KB
efficient_dsgn.cc 10KB
tensor_utils.cc 9KB
dsgn2_postprocess.cc 7KB
test.cpp 2KB
test.cpp 777B
efficient_dsgn 541KB
.gitignore 47B
.gitignore 47B
core_c.h 131KB
core_c.h 131KB
document.h 115KB
schema.h 101KB
reader.h 91KB
types_c.h 72KB
types_c.h 72KB
logging.h 64KB
logging.h 64KB
pointer.h 59KB
imgproc_c.h 52KB
imgproc_c.h 52KB
kmeans_index.h 37KB
kmeans_index.h 37KB
videoio_c.h 36KB
videoio_c.h 36KB
gflags.h 30KB
gflags.h 30KB
encodings.h 29KB
dist.h 28KB
dist.h 28KB
hierarchical_clustering_index.h 26KB
hierarchical_clustering_index.h 26KB
writer.h 26KB
regex.h 25KB
rapidjson.h 23KB
cvdef.h 23KB
cvdef.h 23KB
autotuned_index.h 21KB
autotuned_index.h 21KB
kdtree_single_index.h 20KB
kdtree_single_index.h 20KB
calib3d_c.h 20KB
calib3d_c.h 20KB
kdtree_index.h 20KB
kdtree_index.h 20KB
perception_common.h 19KB
lsh_table.h 19KB
共 707 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8
资源评论
weixin_52019990
- 粉丝: 1
- 资源: 134
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- f13b0fd5eq9352b28b6309177764c804.apk
- x64WinQSB安装程序v4.1
- 2023-04-06-项目笔记 - 第二百八十四阶段 - 4.4.2.282全局变量的作用域-282 -2025.10.12
- 数据集-目标检测系列- 降落伞 滑翔机 检测数据集 glider >> DataBall
- 数据集-目标检测系列- 战斗机 检测数据集 fighter-plane >> DataBall
- mybatis-plus代码生成自定义templates
- 数据集-目标检测系列- 手提包 检测 检测数据集 hand bag>> DataBall
- 自动化车间安全生产服务的标准制定与应用指南
- 520必备!这些Python表白代码祝你脱单成功,⼀、浪漫玫瑰花、⼆、浪漫玫瑰加爱⼼、三、⼼⼼相印、四、粉嫩爱⼼、五、丘⽐特⼀键
- 实现无线定位-chan算法,完整代码,适合参考学习使用
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功