/*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->height ));
cvSetImageCOI(image, 0);
@endcode
@param image A pointer to the image header
*/
CVAPI(void) cvResetImageROI( IplImage* image );
/** @brief Returns the image ROI.
If there is no R
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
openCV4.6.0+android-ndk-r22-windows-x86_64编译的arm64-v8a动、静态库 https://blog.csdn.net/aggs1990/article/details/124527556 CSDN审核可能较慢,如无法下载,可以过段时间再回来看下 仅供相关爱好者交流使用,请于下载24小时内删除
资源推荐
资源详情
资源评论
收起资源包目录
openCV4.6.0+android-ndk-r22-windows-x86_64编译的arm64-v8a动、静态库 (716个子文件)
libopencv_gapi.a 208.46MB
libopencv_dnn.a 138.54MB
libopencv_core.a 59.01MB
libopencv_imgproc.a 53.3MB
liblibprotobuf.a 39.56MB
libopencv_calib3d.a 38.47MB
libIlmImf.a 32.68MB
libopencv_rgbd.a 29.94MB
libopencv_ximgproc.a 27.62MB
libopencv_tracking.a 23.82MB
libopencv_xfeatures2d.a 20.82MB
libopencv_datasets.a 20.25MB
libopencv_wechat_qrcode.a 16.75MB
libopencv_features2d.a 15.89MB
libopencv_xphoto.a 15.53MB
libopencv_face.a 13.66MB
libopencv_stitching.a 13.61MB
libopencv_video.a 12.42MB
libopencv_text.a 12.31MB
libopencv_ml.a 12.15MB
libopencv_objdetect.a 12.01MB
libopencv_mcc.a 11.49MB
libopencv_photo.a 10.9MB
libopencv_imgcodecs.a 10.45MB
libade.a 10.22MB
libtegra_hal.a 9.79MB
libopencv_flann.a 9.61MB
libopencv_videoio.a 8.51MB
libopencv_optflow.a 7.77MB
libopencv_surface_matching.a 7.26MB
libopencv_aruco.a 6.49MB
libopencv_ccalib.a 6.21MB
liblibwebp.a 5.74MB
libopencv_videostab.a 5.44MB
libopencv_bioinspired.a 5.41MB
libopencv_barcode.a 3.99MB
libopencv_line_descriptor.a 3.94MB
libopencv_shape.a 3.78MB
libopencv_highgui.a 3.55MB
libopencv_saliency.a 3.53MB
libopencv_dpm.a 3.22MB
liblibtiff.a 2.79MB
libopencv_stereo.a 2.71MB
libopencv_bgsegm.a 2.64MB
libopencv_superres.a 2.64MB
libopencv_reg.a 2.63MB
liblibjpeg-turbo.a 2.54MB
libopencv_img_hash.a 2.33MB
liblibopenjp2.a 2.3MB
libopencv_xobjdetect.a 2.11MB
libopencv_hfs.a 2.01MB
liblibpng.a 1.71MB
libopencv_structured_light.a 1.51MB
libopencv_rapid.a 1.48MB
libopencv_quality.a 1.37MB
libopencv_fuzzy.a 1.19MB
libopencv_dnn_superres.a 1022KB
libopencv_dnn_objdetect.a 961KB
libopencv_phase_unwrapping.a 604KB
libopencv_plot.a 369KB
libittnotify.a 352KB
libopencv_intensity_transform.a 325KB
libquirc.a 119KB
libcpufeatures.a 31KB
ade-LICENSE 11KB
README.android 40B
ittnotify-LICENSE.BSD 1KB
android.toolchain.cmake 85KB
OpenCVModules-release.cmake 27KB
OpenCVModules.cmake 20KB
OpenCVConfig.cmake 16KB
OpenCVConfig.cmake 2KB
OpenCVConfig-version.cmake 433B
OpenCVConfig-version.cmake 433B
cpufeatures-LICENSE 577B
ittnotify-LICENSE.GPL 17KB
core_c.h 126KB
msa_macros.h 81KB
types_c.h 70KB
kmeans_index.h 66KB
imgproc_c.h 50KB
dist.h 40KB
cvdef.h 36KB
constants_c.h 30KB
cv_cpu_helper.h 27KB
hierarchical_clustering_index.h 26KB
autotuned_index.h 21KB
kdtree_single_index.h 20KB
kdtree_index.h 20KB
lsh_table.h 18KB
types_c.h 18KB
lsh_index.h 15KB
result_set.h 15KB
index_testing.h 11KB
highgui_c.h 10KB
any.h 8KB
cv_cpu_dispatch.h 8KB
hdf5.h 7KB
heap.h 7KB
allocator.h 6KB
共 716 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8
꧁白杨树下꧂
- 粉丝: 677
- 资源: 192
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
前往页