/*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++ constructors 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) cvResetImageROI( IplImage* image );
/** @brief Returns the image ROI.
If there is no ROI set, cvRect(0,0,image-\>width,image-\>height) is returned.
@param image A pointer to the image header
*/
C
没有合适的资源?快使用搜索试试~ 我知道了~
opencv4.5.5交叉编译库下载
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 1 下载量 133 浏览量
2024-04-29
14:14:47
上传
评论
收藏 16.04MB TGZ 举报
温馨提示
共632个文件
hpp:386个
h:52个
so:48个
平台使用的是linux,修改 ./aarch64-gnu.toolchain.cmake 使用的是gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu的gcc,g++编译器,最终生成opencv.pc文件,include头文件和lib动态库文件
资源推荐
资源详情
资源评论
收起资源包目录
opencv4.5.5交叉编译库下载 (632个子文件)
libopencv_dnn.so.405 6.11MB
libopencv_imgproc.so.405 4.39MB
libopencv_core.so.405 4.2MB
libopencv_imgcodecs.so.405 2.17MB
libopencv_tracking.so.405 2.08MB
libopencv_calib3d.so.405 1.91MB
libopencv_ximgproc.so.405 1.26MB
libopencv_rgbd.so.405 841KB
libopencv_features2d.so.405 817KB
libopencv_stitching.so.405 736KB
libopencv_photo.so.405 661KB
libopencv_datasets.so.405 657KB
libopencv_ml.so.405 651KB
libopencv_objdetect.so.405 631KB
libopencv_video.so.405 608KB
libopencv_xfeatures2d.so.405 600KB
libopencv_flann.so.405 570KB
libopencv_wechat_qrcode.so.405 527KB
libopencv_face.so.405 487KB
libopencv_mcc.so.405 451KB
libopencv_text.so.405 436KB
libopencv_optflow.so.405 414KB
libopencv_aruco.so.405 401KB
libopencv_surface_matching.so.405 375KB
libopencv_videostab.so.405 292KB
libopencv_bioinspired.so.405 268KB
libopencv_xphoto.so.405 246KB
libopencv_line_descriptor.so.405 184KB
libopencv_stereo.so.405 177KB
libopencv_shape.so.405 171KB
libopencv_saliency.so.405 155KB
libopencv_superres.so.405 152KB
libopencv_bgsegm.so.405 145KB
libopencv_barcode.so.405 114KB
libopencv_img_hash.so.405 113KB
libopencv_dpm.so.405 108KB
libopencv_reg.so.405 107KB
libopencv_xobjdetect.so.405 87KB
libopencv_structured_light.so.405 84KB
libopencv_quality.so.405 82KB
libopencv_hfs.so.405 81KB
libopencv_rapid.so.405 78KB
libopencv_dnn_superres.so.405 69KB
libopencv_fuzzy.so.405 56KB
libopencv_phase_unwrapping.so.405 51KB
libopencv_plot.so.405 39KB
libopencv_dnn_objdetect.so.405 36KB
libopencv_intensity_transform.so.405 16KB
libopencv_dnn.so.4.5.5 6.11MB
libopencv_imgproc.so.4.5.5 4.39MB
libopencv_core.so.4.5.5 4.2MB
libopencv_imgcodecs.so.4.5.5 2.17MB
libopencv_tracking.so.4.5.5 2.08MB
libopencv_calib3d.so.4.5.5 1.91MB
libopencv_ximgproc.so.4.5.5 1.26MB
libopencv_rgbd.so.4.5.5 841KB
libopencv_features2d.so.4.5.5 817KB
libopencv_stitching.so.4.5.5 736KB
libopencv_photo.so.4.5.5 661KB
libopencv_datasets.so.4.5.5 657KB
libopencv_ml.so.4.5.5 651KB
libopencv_objdetect.so.4.5.5 631KB
libopencv_video.so.4.5.5 608KB
libopencv_xfeatures2d.so.4.5.5 600KB
libopencv_flann.so.4.5.5 570KB
libopencv_wechat_qrcode.so.4.5.5 527KB
libopencv_face.so.4.5.5 487KB
libopencv_mcc.so.4.5.5 451KB
libopencv_text.so.4.5.5 436KB
libopencv_optflow.so.4.5.5 414KB
libopencv_aruco.so.4.5.5 401KB
libopencv_surface_matching.so.4.5.5 375KB
libopencv_videostab.so.4.5.5 292KB
libopencv_bioinspired.so.4.5.5 268KB
libopencv_xphoto.so.4.5.5 246KB
libopencv_line_descriptor.so.4.5.5 184KB
libopencv_stereo.so.4.5.5 177KB
libopencv_shape.so.4.5.5 171KB
libopencv_saliency.so.4.5.5 155KB
libopencv_superres.so.4.5.5 152KB
libopencv_bgsegm.so.4.5.5 145KB
libopencv_barcode.so.4.5.5 114KB
libopencv_img_hash.so.4.5.5 113KB
libopencv_dpm.so.4.5.5 108KB
libopencv_reg.so.4.5.5 107KB
libopencv_xobjdetect.so.4.5.5 87KB
libopencv_structured_light.so.4.5.5 84KB
libopencv_quality.so.4.5.5 82KB
libopencv_hfs.so.4.5.5 81KB
libopencv_rapid.so.4.5.5 78KB
libopencv_dnn_superres.so.4.5.5 69KB
libopencv_fuzzy.so.4.5.5 56KB
libopencv_phase_unwrapping.so.4.5.5 51KB
libopencv_plot.so.4.5.5 39KB
libopencv_dnn_objdetect.so.4.5.5 36KB
libopencv_intensity_transform.so.4.5.5 16KB
ittnotify-LICENSE.BSD 1KB
OpenCVModules-release.cmake 24KB
OpenCVModules.cmake 18KB
OpenCVConfig.cmake 15KB
共 632 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7
资源评论
- Sin?2024-05-09资源很实用,内容详细,值得借鉴的内容很多,感谢分享。
前网易架构师-高司机
- 粉丝: 8212
- 资源: 207
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功