/*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
/* disable MSVC warning C4190 / clang-cl -Wreturn-type-c-linkage:
'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++ constructors for simpler interoperability with C++ API of the library
*/
# if defined(__clang__)
// handle clang on Linux and clang-cl (i. e. clang on Windows) first
# pragma GCC diagnostic ignored "-Wreturn-type-c-linkage"
# elif defined(_MSC_VER)
// then handle MSVC
# pragma warning(disable:4190)
# 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-
没有合适的资源?快使用搜索试试~ 我知道了~
OpenCV4.9.0 GPU release版本(基于VS2019编译)
共673个文件
hpp:601个
h:56个
exe:6个
需积分: 0 7 下载量 87 浏览量
更新于2024-09-20
1
收藏 69.9MB RAR 举报
OpenCV4.9.0 GPU release版本(基于VS2019编译)
收起资源包目录
OpenCV4.9.0 GPU release版本(基于VS2019编译) (673个子文件)
OpenCVConfig.cmake 18KB
OpenCVModules.cmake 4KB
OpenCVModules-release.cmake 2KB
OpenCVConfig-version.cmake 433B
opencv_world490.dll 216.75MB
opencv_world490.dll 216.75MB
opencv_videoio_ffmpeg490_64.dll 25.1MB
opencv_img_hash490.dll 159KB
opencv_interactive-calibration.exe 139KB
opencv_visualisation.exe 54KB
opencv_annotation.exe 40KB
opencv_version.exe 36KB
opencv_version_win32.exe 34KB
opencv_model_diagnostics.exe 21KB
core_c.h 129KB
msa_macros.h 82KB
types_c.h 72KB
kmeans_index.h 68KB
imgproc_c.h 51KB
dist.h 42KB
cvdef.h 37KB
cv_cpu_helper.h 33KB
constants_c.h 31KB
hierarchical_clustering_index.h 27KB
autotuned_index.h 21KB
kdtree_single_index.h 21KB
kdtree_index.h 21KB
lsh_table.h 19KB
types_c.h 18KB
lsh_index.h 16KB
result_set.h 15KB
index_testing.h 11KB
highgui_c.h 10KB
any.h 9KB
cv_cpu_dispatch.h 9KB
hdf5.h 7KB
heap.h 7KB
allocator.h 6KB
all_indices.h 6KB
composite_index.h 6KB
nn_index.h 6KB
saving.h 6KB
simplex_downhill.h 6KB
videoio_c.h 6KB
calib3d_c.h 5KB
cap_ios.h 5KB
interface.h 5KB
dynamic_bitset.h 5KB
defines.h 5KB
params.h 4KB
random.h 4KB
logger.h 4KB
linear_index.h 4KB
matrix.h 3KB
ground_truth.h 3KB
cvconfig.h 3KB
object_factory.h 3KB
sampling.h 3KB
ios.h 3KB
timer.h 3KB
general.h 2KB
config.h 2KB
constants_c.h 2KB
interface.h 1KB
macosx.h 751B
interface.h 584B
constants_c.h 478B
constants_c.h 412B
dummy.h 213B
imgcodecs_c.h 146B
intrin_rvv_010_compat_non-policy.hpp 1.74MB
imgproc.hpp 247KB
calib3d.hpp 222KB
color_detail.hpp 221KB
color_cvt.hpp 187KB
mat.hpp 165KB
intrin_avx512.hpp 160KB
core.hpp 156KB
intrin_sse.hpp 135KB
intrin_avx.hpp 134KB
intrin_lasx.hpp 125KB
intrin_wasm.hpp 110KB
intrin_rvv.hpp 108KB
intrin_lsx.hpp 106KB
intrin_cpp.hpp 104KB
intrin_neon.hpp 101KB
intrin_rvv071.hpp 100KB
intrin_rvv_scalable.hpp 97KB
dnn.hpp 96KB
ml.hpp 92KB
mat.inl.hpp 90KB
intrin_rvv_010_compat_overloaded-non-policy.hpp 82KB
core.hpp 80KB
imgproc.hpp 80KB
types.hpp 74KB
features2d.hpp 73KB
intrin_msa.hpp 73KB
videoio.hpp 69KB
intrin_vsx.hpp 68KB
quaternion.hpp 67KB
共 673 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7
资源推荐
资源预览
资源评论
2024-04-03 上传
5星 · 资源好评率100%
5星 · 资源好评率100%
185 浏览量
2019-06-04 上传
111 浏览量
2024-02-02 上传
2024-05-31 上传
129 浏览量
160 浏览量
161 浏览量
5星 · 资源好评率100%
5星 · 资源好评率100%
102 浏览量
170 浏览量
5星 · 资源好评率100%
2024-05-15 上传
5星 · 资源好评率100%
125 浏览量
2024-04-23 上传
5星 · 资源好评率100%
170 浏览量
190 浏览量
186 浏览量
5星 · 资源好评率100%
113 浏览量
2020-10-12 上传
2012-10-16 上传
资源评论
邝创视界
- 粉丝: 121
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 自考02197概率论与数理统计(二)试卷及答案解释2016-2021
- java毕设项目之游戏分享网站lw(完整前后端+说明文档+mysql).zip
- java毕设项目之ssm助学贷款+jsp(完整前后端+说明文档+mysql+lw).zip
- IBM Instana应用性能监视.pptx
- webview+H5来实现的android短视频(短剧)音视频播放依赖控件资源
- 黑马最新Hive存储压缩与优化课程总结
- 商城系统项目源代码全套技术资料.zip
- 番茄图像目标检测数据【已标注,约4,300张数据,YOLO 标注格式】
- 校园生活相关项目源代码全套技术资料.zip
- C语言上机实验_1.pptx
- 基于遗传算法求解TSP问题的研究 50个样本点
- 基于XGBoost的振动数据预警模型与参数优化技术-构建一个基于XGBoost的振动信息数据集预警模型 首先引入算法实现动态阈值设置,然后进行参数优化
- sublimeText 4
- 西红柿叶片缺陷分类数据集【已标注,约500张数据】
- 自考00023《高等数学(工本)》试题及答案及复习资料
- 智能点阵笔项目源代码全套技术资料.zip
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功