![]() |
OpenCV 4.13.0
开源计算机视觉库 (Open Source Computer Vision)
|
类 | |
| 结构体 | cvhalFilter2D |
| 存储滤波上下文的虚拟结构。更多... | |
函数 | |
| int | hal_ni_adaptiveThreshold (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, double maxValue, int adaptiveMethod, int thresholdType, int blockSize, double C) |
| 计算自适应阈值。 | |
| int | hal_ni_bilateralFilter (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int depth, int cn, int d, double sigma_color, double sigma_space, int border_type) |
| 计算双边滤波。参见 https://homepages.inf.ed.ac.uk/rbf/CVonline/LOCAL_COPIES/MANDUCHI1/Bilateral_Filtering.html。 | |
| int | hal_ni_boxFilter (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int src_depth, int dst_depth, int cn, int margin_left, int margin_top, int margin_right, int margin_bottom, size_t ksize_width, size_t ksize_height, int anchor_x, int anchor_y, bool normalize, int border_type) |
| 计算方框滤波。 | |
| int | hal_ni_calcHist (const uchar *src_data, size_t src_step, int src_type, int src_width, int src_height, float *hist_data, int hist_size, const float **ranges, bool uniform, bool accumulate) |
| 计算一组数组的直方图。 | |
| int | hal_ni_canny (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int cn, double lowThreshold, double highThreshold, int ksize, bool L2gradient) |
| Canny 边缘检测器。 | |
| int | hal_ni_cvtBGR5x5toBGR (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int dcn, bool swapBlue, int greenBits) |
| hal_cvtBGR5x5toBGR | |
| int | hal_ni_cvtBGR5x5toGray (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int greenBits) |
| hal_cvtBGR5x5toGray | |
| int | hal_ni_cvtBGRtoBGR (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int depth, int scn, int dcn, bool swapBlue) |
| hal_cvtBGRtoBGR | |
| int | hal_ni_cvtBGRtoBGR5x5 (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int scn, bool swapBlue, int greenBits) |
| hal_cvtBGRtoBGR5x5 | |
| int | hal_ni_cvtBGRtoGray (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int depth, int scn, bool swapBlue) |
| hal_cvtBGRtoGray | |
| int | hal_ni_cvtBGRtoHSV (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int depth, int scn, bool swapBlue, bool isFullRange, bool isHSV) |
| hal_cvtBGRtoHSV | |
| int | hal_ni_cvtBGRtoLab (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int depth, int scn, bool swapBlue, bool isLab, bool srgb) |
| hal_cvtBGRtoLab | |
| int | hal_ni_cvtBGRtoThreePlaneYUV (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int scn, bool swapBlue, int uIdx) |
| hal_cvtBGRtoThreePlaneYUV | |
| int | hal_ni_cvtBGRtoThreePlaneYUVApprox (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int scn, bool swapBlue, int uIdx) |
| hal_cvtBGRtoThreePlaneYUV 的类似物,允许近似(非位精确) | |
| int | hal_ni_cvtBGRtoTwoPlaneYUV (const uchar *src_data, size_t src_step, uchar *y_data, size_t y_step, uchar *uv_data, size_t uv_step, int width, int height, int scn, bool swapBlue, int uIdx) |
| hal_cvtBGRtoTwoPlaneYUV | |
| int | hal_ni_cvtBGRtoXYZ (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int depth, int scn, bool swapBlue) |
| hal_cvtBGRtoXYZ | |
| int | hal_ni_cvtBGRtoYUV (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int depth, int scn, bool swapBlue, bool isCbCr) |
| hal_cvtBGRtoYUV | |
| int | hal_ni_cvtBGRtoYUVApprox (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int depth, int scn, bool swapBlue, bool isCbCr) |
| hal_cvtBGRtoYUV 的类似物,但允许近似(非位精确) | |
| int | hal_ni_cvtGraytoBGR (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int depth, int dcn) |
| hal_cvtGraytoBGR | |
| int | hal_ni_cvtGraytoBGR5x5 (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int greenBits) |
| hal_cvtGraytoBGR5x5 | |
| int | hal_ni_cvtHSVtoBGR (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int depth, int dcn, bool swapBlue, bool isFullRange, bool isHSV) |
| hal_cvtHSVtoBGR | |
| int | hal_ni_cvtLabtoBGR (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int depth, int dcn, bool swapBlue, bool isLab, bool srgb) |
| hal_cvtLabtoBGR | |
| int | hal_ni_cvtMultipliedRGBAtoRGBA (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height) |
| hal_cvtMultipliedRGBAtoRGBA | |
| int | hal_ni_cvtOnePlaneBGRtoYUV (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int scn, bool swapBlue, int uIdx, int ycn) |
| hal_cvtOnePlaneBGRtoYUV | |
| int | hal_ni_cvtOnePlaneBGRtoYUVApprox (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int scn, bool swapBlue, int uIdx, int ycn) |
| hal_cvtOnePlaneBGRtoYUV 的类似物,允许近似(非位精确) | |
| int | hal_ni_cvtOnePlaneYUVtoBGR (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int dcn, bool swapBlue, int uIdx, int ycn) |
| hal_cvtOnePlaneYUVtoBGR | |
| int | hal_ni_cvtOnePlaneYUVtoBGRApprox (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int dcn, bool swapBlue, int uIdx, int ycn) |
| hal_cvtOnePlaneYUVtoBGR 的类似物,允许近似(非位精确) | |
| int | hal_ni_cvtRGBAtoMultipliedRGBA (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height) |
| hal_cvtRGBAtoMultipliedRGBA | |
| int | hal_ni_cvtThreePlaneYUVtoBGR (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int dst_width, int dst_height, int dcn, bool swapBlue, int uIdx) |
| hal_cvtThreePlaneYUVtoBGR | |
| int | hal_ni_cvtThreePlaneYUVtoBGRApprox (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int dst_width, int dst_height, int dcn, bool swapBlue, int uIdx) |
| hal_cvtThreePlaneYUVtoBGR 的类似物,允许近似(非位精确) | |
| int | hal_ni_cvtTwoPlaneYUVtoBGR (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int dst_width, int dst_height, int dcn, bool swapBlue, int uIdx) |
| hal_cvtTwoPlaneYUVtoBGR | |
| int | hal_ni_cvtTwoPlaneYUVtoBGRApprox (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int dst_width, int dst_height, int dcn, bool swapBlue, int uIdx) |
| hal_cvtTwoPlaneYUVtoBGR 的类似物,允许近似(非位精确) | |
| int | hal_ni_cvtTwoPlaneYUVtoBGREx (const uchar *y_data, size_t y_step, const uchar *uv_data, size_t uv_step, uchar *dst_data, size_t dst_step, int dst_width, int dst_height, int dcn, bool swapBlue, int uIdx) |
| hal_cvtTwoPlaneYUVtoBGR 的扩展版本。 | |
| int | hal_ni_cvtTwoPlaneYUVtoBGRExApprox (const uchar *y_data, size_t y_step, const uchar *uv_data, size_t uv_step, uchar *dst_data, size_t dst_step, int dst_width, int dst_height, int dcn, bool swapBlue, int uIdx) |
| hal_cvtTwoPlaneYUVtoBGR 的扩展版本,允许近似(非位精确) | |
| int | hal_ni_cvtXYZtoBGR (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int depth, int dcn, bool swapBlue) |
| hal_cvtXYZtoBGR | |
| int | hal_ni_cvtYUVtoBGR (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int depth, int dcn, bool swapBlue, bool isCbCr) |
| hal_cvtYUVtoBGR | |
| int | hal_ni_cvtYUVtoBGRApprox (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int depth, int dcn, bool swapBlue, bool isCbCr) |
| hal_ni_cvtYUVtoBGR 的类似物,但允许近似(非位精确) | |
| int | hal_ni_equalize_hist (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height) |
| 对灰度图像进行直方图均衡化。 | |
| int | hal_ni_filter (cvhalFilter2D *context, uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int full_width, int full_height, int offset_x, int offset_y) |
| hal_filter | |
| int | hal_ni_filter_stateless (const uchar *src_data, size_t src_step, int src_type, uchar *dst_data, size_t dst_step, int dst_type, int width, int height, int full_width, int full_height, int offset_x, int offset_y, const uchar *kernel_data, size_t kernel_step, int kernel_type, int kernel_width, int kernel_height, int anchor_x, int anchor_y, double delta, int borderType, bool isSubmatrix, bool allowInplace) |
| 以无状态方式进行 2D 滤波 | |
| int | hal_ni_filterFree (cvhalFilter2D *context) |
| hal_filterFree | |
| int | hal_ni_filterInit (cvhalFilter2D **context, uchar *kernel_data, size_t kernel_step, int kernel_type, int kernel_width, int kernel_height, int max_width, int max_height, int src_type, int dst_type, int borderType, double delta, int anchor_x, int anchor_y, bool allowSubmatrix, bool allowInplace) |
| hal_filterInit | |
| int | hal_ni_gaussianBlur (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int depth, int cn, size_t margin_left, size_t margin_top, size_t margin_right, size_t margin_bottom, size_t ksize_width, size_t ksize_height, double sigmaX, double sigmaY, int border_type) |
| 使用通用高斯滤波器模糊图像。 | |
| int | hal_ni_gaussianBlurBinomial (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int depth, int cn, size_t margin_left, size_t margin_top, size_t margin_right, size_t margin_bottom, size_t ksize, int border_type) |
| 使用具有正方形内核且 sigma=0 的对称高斯滤波器模糊图像。 | |
| int | hal_ni_imageMoments (const uchar *src_data, size_t src_step, int src_type, int width, int height, bool binary, double m[10]) |
| 计算图像多边形或光栅化形状的高至三阶的所有矩。 | |
| int | hal_ni_integral (int depth, int sdepth, int sqdepth, const uchar *src_data, size_t src_step, uchar *sum_data, size_t sum_step, uchar *sqsum_data, size_t sqsum_step, uchar *tilted_data, size_t tilted_step, int width, int height, int cn) |
| 计算积分图。 | |
| int | hal_ni_medianBlur (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int depth, int cn, int ksize) |
| 计算中值滤波。 | |
| int | hal_ni_morph (cvhalFilter2D *context, uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int src_full_width, int src_full_height, int src_roi_x, int src_roi_y, int dst_full_width, int dst_full_height, int dst_roi_x, int dst_roi_y) |
| hal_morph | |
| int | hal_ni_morph_stateless (int operation, const uchar *src_data, size_t src_step, int src_type, uchar *dst_data, size_t dst_step, int dst_type, int width, int height, int src_full_width, int src_full_height, int src_roi_x, int src_roi_y, int dst_full_width, int dst_full_height, int dst_roi_x, int dst_roi_y, const uchar *kernel_data, size_t kernel_step, int kernel_type, int kernel_width, int kernel_height, int anchor_x, int anchor_y, int borderType, const double borderValue[4], int iterations, bool allowSubmatrix, bool allowInplace) |
| 以无状态方式进行形态学操作 | |
| int | hal_ni_morphFree (cvhalFilter2D *context) |
| hal_morphFree | |
| int | hal_ni_morphInit (cvhalFilter2D **context, int operation, int src_type, int dst_type, int max_width, int max_height, int kernel_type, uchar *kernel_data, size_t kernel_step, int kernel_width, int kernel_height, int anchor_x, int anchor_y, int borderType, const double borderValue[4], int iterations, bool allowSubmatrix, bool allowInplace) |
| hal_morphInit | |
| int | hal_ni_polygonMoments (const uchar *src_data, size_t src_size, int src_type, double m[10]) |
| 计算 2D 点多边形高至三阶的所有矩。 | |
| int | hal_ni_pyrdown (const uchar *src_data, size_t src_step, int src_width, int src_height, uchar *dst_data, size_t dst_step, int dst_width, int dst_height, int depth, int cn, int border_type) |
| 对输入图块执行高斯模糊和下采样。 | |
| int | hal_ni_pyrdown_offset (const uchar *src_data, size_t src_step, int src_width, int src_height, uchar *dst_data, size_t dst_step, int dst_width, int dst_height, int depth, int cn, int margin_left, int margin_top, int margin_right, int margin_bottom, int border_type) |
| 对具有子矩阵可选边距的输入图块执行高斯模糊和下采样。 | |
| int | hal_ni_pyrup (const uchar *src_data, size_t src_step, int src_width, int src_height, uchar *dst_data, size_t dst_step, int dst_width, int dst_height, int depth, int cn, int border_type) |
| 对输入图块执行高斯模糊和上采样。 | |
| int | hal_ni_remap16s (int src_type, const uchar *src_data, size_t src_step, int src_width, int src_height, uchar *dst_data, size_t dst_step, int dst_width, int dst_height, short *mapx, size_t mapx_step, ushort *mapy, size_t mapy_step, int interpolation, int border_type, const double border_value[4]) |
| 使用定点映射的 hal_remap | |
| int | hal_ni_remap32f (int src_type, const uchar *src_data, size_t src_step, int src_width, int src_height, uchar *dst_data, size_t dst_step, int dst_width, int dst_height, float *mapx, size_t mapx_step, float *mapy, size_t mapy_step, int interpolation, int border_type, const double border_value[4]) |
| 使用浮点映射的 hal_remap | |
| int | hal_ni_remap32fc2 (int src_type, const uchar *src_data, size_t src_step, int src_width, int src_height, uchar *dst_data, size_t dst_step, int dst_width, int dst_height, float *map, size_t map_step, int interpolation, int border_type, const double border_value[4]) |
| 使用浮点映射的 hal_remap | |
| int | hal_ni_resize (int src_type, const uchar *src_data, size_t src_step, int src_width, int src_height, uchar *dst_data, size_t dst_step, int dst_width, int dst_height, double inv_scale_x, double inv_scale_y, int interpolation) |
| hal_resize | |
| int | hal_ni_scharr (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int src_depth, int dst_depth, int cn, int margin_left, int margin_top, int margin_right, int margin_bottom, int dx, int dy, double scale, double delta, int border_type) |
| 计算 Scharr 滤波器。 | |
| int | hal_ni_sepFilter (cvhalFilter2D *context, uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int full_width, int full_height, int offset_x, int offset_y) |
| hal_sepFilter | |
| int | hal_ni_sepFilter_stateless (const uchar *src_data, size_t src_step, int src_type, uchar *dst_data, size_t dst_step, int dst_type, int width, int height, int full_width, int full_height, int offset_x, int offset_y, const uchar *kernelx_data, int kernelx_len, const uchar *kernely_data, int kernely_len, int kernel_type, int anchor_x, int anchor_y, double delta, int borderType) |
| 以无状态方式进行可分离滤波 | |
| int | hal_ni_sepFilterFree (cvhalFilter2D *context) |
| hal_sepFilterFree | |
| int | hal_ni_sepFilterInit (cvhalFilter2D **context, int src_type, int dst_type, int kernel_type, uchar *kernelx_data, int kernelx_length, uchar *kernely_data, int kernely_length, int anchor_x, int anchor_y, double delta, int borderType) |
| hal_sepFilterInit | |
| int | hal_ni_sobel (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int src_depth, int dst_depth, int cn, int margin_left, int margin_top, int margin_right, int margin_bottom, int dx, int dy, int ksize, double scale, double delta, int border_type) |
| 计算 Sobel 导数。 | |
| int | hal_ni_threshold (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int depth, int cn, double thresh, double maxValue, int thresholdType) |
| 对每个数组元素计算固定级阈值。 | |
| int | hal_ni_threshold_otsu (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int depth, double maxValue, int thresholdType, double *thresh) |
| 使用 Otsu 算法估计的阈值执行阈值滤波。 | |
| int | hal_ni_warpAffine (int src_type, const uchar *src_data, size_t src_step, int src_width, int src_height, uchar *dst_data, size_t dst_step, int dst_width, int dst_height, const double M[6], int interpolation, int borderType, const double borderValue[4]) |
| hal_warpAffine | |
| int | hal_ni_warpAffineBlockline (int *adelta, int *bdelta, short *xy, short *alpha, int X0, int Y0, int bw) |
| hal_warpAffineBlockline 执行一行仿射变换 | |
| int | hal_ni_warpAffineBlocklineNN (int *adelta, int *bdelta, short *xy, int X0, int Y0, int bw) |
| hal_warpAffineBlocklineNN 执行一行仿射变换 | |
| int | hal_ni_warpPerspective (int src_type, const uchar *src_data, size_t src_step, int src_width, int src_height, uchar *dst_data, size_t dst_step, int dst_width, int dst_height, const double M[9], int interpolation, int borderType, const double borderValue[4]) |
| hal_warpPerspective | |
| int | hal_ni_warpPerspectiveBlockline (const double *M, short *xy, short *alpha, double X0, double Y0, double W0, int bw) |
| hal_warpPerspectiveBlockline 执行一行透视变换 | |
| int | hal_ni_warpPerspectiveBlocklineNN (const double *M, short *xy, double X0, double Y0, double W0, int bw) |
| hal_warpPerspectiveBlocklineNN 执行一行透视变换 | |
插值模式 | |
| #define | CV_HAL_INTER_NEAREST 0 |
| #define | CV_HAL_INTER_LINEAR 1 |
| #define | CV_HAL_INTER_CUBIC 2 |
| #define | CV_HAL_INTER_AREA 3 |
| #define | CV_HAL_INTER_LANCZOS4 4 |
| #define | CV_HAL_INTER_LINEAR_EXACT 5 |
| #define | CV_HAL_INTER_NEAREST_EXACT 6 |
| #define | CV_HAL_INTER_MAX 7 |
| #define | CV_HAL_WARP_FILL_OUTLIERS 8 |
| #define | CV_HAL_WARP_INVERSE_MAP 16 |
| #define | CV_HAL_WARP_RELATIVE_MAP 32 |
形态学操作 | |
| |
| #define | CV_HAL_MORPH_ERODE 0 |
| #define | CV_HAL_MORPH_DILATE 1 |
阈值类型 | |
| #define | CV_HAL_THRESH_BINARY 0 |
| #define | CV_HAL_THRESH_BINARY_INV 1 |
| #define | CV_HAL_THRESH_TRUNC 2 |
| #define | CV_HAL_THRESH_TOZERO 3 |
| #define | CV_HAL_THRESH_TOZERO_INV 4 |
| #define | CV_HAL_THRESH_MASK 7 |
| #define | CV_HAL_THRESH_OTSU 8 |
| #define | CV_HAL_THRESH_TRIANGLE 16 |
自适应阈值算法 | |
| #define | CV_HAL_ADAPTIVE_THRESH_MEAN_C 0 |
| #define | CV_HAL_ADAPTIVE_THRESH_GAUSSIAN_C 1 |
| #define CV_HAL_ADAPTIVE_THRESH_GAUSSIAN_C 1 |
#include <opencv2/imgproc/hal/interface.h>
| #define CV_HAL_ADAPTIVE_THRESH_MEAN_C 0 |
#include <opencv2/imgproc/hal/interface.h>
| #define CV_HAL_INTER_AREA 3 |
#include <opencv2/imgproc/hal/interface.h>
| #define CV_HAL_INTER_CUBIC 2 |
#include <opencv2/imgproc/hal/interface.h>
| #define CV_HAL_INTER_LANCZOS4 4 |
#include <opencv2/imgproc/hal/interface.h>
| #define CV_HAL_INTER_LINEAR 1 |
#include <opencv2/imgproc/hal/interface.h>
| #define CV_HAL_INTER_LINEAR_EXACT 5 |
#include <opencv2/imgproc/hal/interface.h>
| #define CV_HAL_INTER_MAX 7 |
#include <opencv2/imgproc/hal/interface.h>
| #define CV_HAL_INTER_NEAREST 0 |
#include <opencv2/imgproc/hal/interface.h>
| #define CV_HAL_INTER_NEAREST_EXACT 6 |
#include <opencv2/imgproc/hal/interface.h>
| #define CV_HAL_MORPH_DILATE 1 |
#include <opencv2/imgproc/hal/interface.h>
| #define CV_HAL_MORPH_ERODE 0 |
#include <opencv2/imgproc/hal/interface.h>
| #define CV_HAL_THRESH_BINARY 0 |
#include <opencv2/imgproc/hal/interface.h>
| #define CV_HAL_THRESH_BINARY_INV 1 |
#include <opencv2/imgproc/hal/interface.h>
| #define CV_HAL_THRESH_MASK 7 |
#include <opencv2/imgproc/hal/interface.h>
| #define CV_HAL_THRESH_OTSU 8 |
#include <opencv2/imgproc/hal/interface.h>
| #define CV_HAL_THRESH_TOZERO 3 |
#include <opencv2/imgproc/hal/interface.h>
| #define CV_HAL_THRESH_TOZERO_INV 4 |
#include <opencv2/imgproc/hal/interface.h>
| #define CV_HAL_THRESH_TRIANGLE 16 |
#include <opencv2/imgproc/hal/interface.h>
| #define CV_HAL_THRESH_TRUNC 2 |
#include <opencv2/imgproc/hal/interface.h>
| #define CV_HAL_WARP_FILL_OUTLIERS 8 |
#include <opencv2/imgproc/hal/interface.h>
| #define CV_HAL_WARP_INVERSE_MAP 16 |
#include <opencv2/imgproc/hal/interface.h>
| #define CV_HAL_WARP_RELATIVE_MAP 32 |
#include <opencv2/imgproc/hal/interface.h>
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
计算自适应阈值。
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| width | 源图像宽度 |
| height | 源图像高度 |
| maxValue | 分配给满足条件的像素的值 |
| adaptiveMethod | 自适应阈值算法 |
| thresholdType | 阈值处理类型 |
| blockSize | 用于计算阈值的像素邻域的大小 |
| C | 从均值或加权均值中减去的常数 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
计算双边滤波。参见 https://homepages.inf.ed.ac.uk/rbf/CVonline/LOCAL_COPIES/MANDUCHI1/Bilateral_Filtering.html。
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| width | 源图像宽度 |
| height | 源图像高度 |
| depth | 源图像和目标图像的深度。应支持 CV_8U 和 CV_32F |
| cn | 通道数 |
| d | 滤波期间使用的每个像素邻域的直径。如果为非正值,则根据 sigmaSpace 计算 |
| sigma_color | 颜色空间中的滤波器 sigma |
| sigma_space | 坐标空间中的滤波器 sigma。当 d>0 时,无论 sigmaSpace 如何,它都指定邻域大小。否则,d 与 sigmaSpace 成正比 |
| border_type | 用于外推图像外像素的边界模式 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
计算方框滤波。
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| width | 源图像宽度 |
| height | 源图像高度 |
| src_depth | 源图像深度 |
| dst_depth | 目标图像深度 |
| cn | 通道数 |
| margin_left | 源图像左边距 |
| margin_top | 源图像上边距 |
| margin_right | 源图像右边距 |
| margin_bottom | 源图像下边距 |
| ksize_width | 内核宽度 |
| ksize_height | 内核高度 |
| anchor_x | 锚点 x 坐标 |
| anchor_y | 锚点 y 坐标 |
| normalize | 如果为 true,则对结果进行归一化 |
| border_type | 边界类型 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
计算一组数组的直方图。
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| src_type | 源图像类型 |
| src_width | 源图像宽度 |
| src_height | 源图像高度 |
| hist_data | 直方图数据 |
| hist_size | 直方图大小 |
| ranges (范围数组) | 直方图箱边界的维度数组的数组 |
| uniform | 指示直方图是否均匀的标志 |
| accumulate | 累加标志 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
Canny 边缘检测器。
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| width | 源图像宽度 |
| height | 源图像高度 |
| cn | 通道数 |
| lowThreshold | 低阈值 |
| highThreshold | 高阈值 |
| ksize | Sobel 算子的内核大小。 |
| L2gradient | 标志,指示使用 L2 或 L1 范数。 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_cvtBGR5x5toBGR
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| width | 图像宽度 |
| height | 图像高度 |
| dcn | 目标图像通道数(3 或 4) |
| swapBlue | 如果设置为 true,B 和 R 目标通道将互换(写入 RGB) |
| greenBits | 绿色通道的位数(5 或 6)。将打包的 BGR 或 RGB(每像素 16 位,555 或 565)转换为 BGR、BGRA、RGB 和 RGBA。仅支持 CV_8U 图像(输入 2 通道,输出 3 或 4 通道)。 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_cvtBGR5x5toGray
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| width | 图像宽度 |
| height | 图像高度 |
| greenBits | 绿色通道的位数(5 或 6)。将打包的 BGR(每像素 16 位,555 或 565)转换为单通道灰度图。仅支持 CV_8U 图像。 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_cvtBGRtoBGR
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| width | 图像宽度 |
| height | 图像高度 |
| depth | 图像深度(CV_8U、CV_16U、CV_32F 之一) |
| scn | 源图像通道数(3 或 4) |
| dcn | 目标图像通道数(3 或 4) |
| swapBlue | 如果设置为 true,B 和 R 通道将互换 (BGR->RGB 或 RGB->BGR)。在 BGR、BGRA、RGB 和 RGBA 图像格式之间转换。 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_cvtBGRtoBGR5x5
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| width | 图像宽度 |
| height | 图像高度 |
| scn | 源图像通道数(3 或 4) |
| swapBlue | 如果设置为 true,B 和 R 源通道将互换(视为 RGB) |
| greenBits | 绿色通道的位数(5 或 6)。将 BGR、BGRA、RGB 和 RGBA 转换为打包的 BGR 或 RGB(每像素 16 位,555 或 565)。仅支持 CV_8U 图像(输入 3 或 4 通道,输出 2 通道)。 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_cvtBGRtoGray
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| width | 图像宽度 |
| height | 图像高度 |
| depth | 图像深度(CV_8U、CV_16U 或 CV_32F 之一) |
| scn | 源图像通道数(3 或 4) |
| swapBlue | 如果设置为 true,B 和 R 源通道将互换(视为 RGB)。将 BGR、BGRA、RGB 或 RGBA 转换为单通道灰度图。 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_cvtBGRtoHSV
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| width | 图像宽度 |
| height | 图像高度 |
| depth | 图像深度(CV_8U 或 CV_32F 之一) |
| scn | 源图像通道数(3 或 4) |
| swapBlue | 如果设置为 true,B 和 R 源通道将互换(视为 RGB) |
| isFullRange | 如果设置为 true,色调范围为 0-255(浮点数为 0-360),否则范围为 0-180 |
| isHSV | 如果设置为 true 则写入 HSV,否则写入 HSL。将 BGR、RGB、BGRA 或 RGBA 转换为 HSV 或 HSL。 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_cvtBGRtoLab
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| width | 图像宽度 |
| height | 图像高度 |
| depth | 图像深度(CV_8U 或 CV_32F 之一) |
| scn | 源图像通道数(3 或 4) |
| swapBlue | 如果设置为 true,B 和 R 源通道将互换(视为 RGB) |
| isLab | 如果设置为 true 则写入 Lab,否则写入 Luv |
| srgb | 如果设置为 true 则使用 sRGB 伽马校正。将 BGR、RGB、BGRA 或 RGBA 转换为 Lab 或 Luv。 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_cvtBGRtoThreePlaneYUV
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| width | 图像宽度 |
| height | 图像高度 |
| scn | 源图像通道数(3 或 4) |
| swapBlue | 如果设置为 true,B 和 R 源通道将互换(视为 RGB) |
| uIdx | U 通道平面索引 (0 或 1)。将 BGR、RGB、BGRA 或 RGBA 转换为 YUV (YUV420p (或 YV12/YV21) - Y 平面后跟 U 和 V 平面)。仅适用于 CV_8U。Y:[16, 235];Cb, Cr:[16, 240],中心位于 128 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_cvtBGRtoThreePlaneYUV 的类似物,允许近似(非位精确)
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| width | 图像宽度 |
| height | 图像高度 |
| scn | 源图像通道数(3 或 4) |
| swapBlue | 如果设置为 true,B 和 R 源通道将互换(视为 RGB) |
| uIdx | U 通道平面索引 (0 或 1)。将 BGR、RGB、BGRA 或 RGBA 转换为 YUV (YUV420p (或 YV12/YV21) - Y 平面后跟 U 和 V 平面)。仅适用于 CV_8U。Y:[16, 235];Cb, Cr:[16, 240],中心位于 128 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_cvtBGRtoTwoPlaneYUV
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| y_data | 目标图像数据(Y 平面) |
| y_step | 目标图像步长(Y 平面) |
| uv_data | 目标图像数据(UV 平面) |
| uv_step | 目标图像步长(UV 平面) |
| width | 图像宽度 |
| height | 图像高度 |
| scn | 源图像通道数(3 或 4) |
| swapBlue | 如果设置为 true,B 和 R 源通道将互换(视为 RGB) |
| uIdx | U 通道平面索引 (0 或 1)。将 BGR、RGB、BGRA 或 RGBA 转换为 YUV (YUV420sp (或 NV12/NV21) - Y 平面后跟交错的 U/V 平面)。仅适用于 CV_8U。Y:[16, 235];Cb, Cr:[16, 240],中心位于 128 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_cvtBGRtoXYZ
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| width | 图像宽度 |
| height | 图像高度 |
| depth | 图像深度(CV_8U、CV_16U 或 CV_32F 之一) |
| scn | 源图像通道数(3 或 4) |
| swapBlue | 如果设置为 true,B 和 R 源通道将互换(视为 RGB)。将 BGR、RGB、BGRA 或 RGBA 转换为 XYZ。 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_cvtBGRtoYUV
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| width | 图像宽度 |
| height | 图像高度 |
| depth | 图像深度(CV_8U、CV_16U 或 CV_32F 之一) |
| scn | 源图像通道数(3 或 4) |
| swapBlue | 如果设置为 true,B 和 R 源通道将互换(视为 RGB) |
| isCbCr | 如果设置为 true,则以 YCbCr 格式写入输出。将 BGR、RGB、BGRA 或 RGBA 转换为 YUV 或 YCbCr。 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_cvtBGRtoYUV 的类似物,但允许近似(非位精确)
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| width | 图像宽度 |
| height | 图像高度 |
| depth | 图像深度(CV_8U、CV_16U 或 CV_32F 之一) |
| scn | 源图像通道数(3 或 4) |
| swapBlue | 如果设置为 true,B 和 R 源通道将互换(视为 RGB) |
| isCbCr | 如果设置为 true,则以 YCbCr 格式写入输出。将 BGR、RGB、BGRA 或 RGBA 转换为 YUV 或 YCbCr。 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_cvtGraytoBGR
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| width | 图像宽度 |
| height | 图像高度 |
| depth | 图像深度(CV_8U、CV_16U 或 CV_32F 之一) |
| dcn | 目标图像通道数(3 或 4)。将单通道灰度图转换为 BGR、RGB、RGBA 或 BGRA。 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_cvtGraytoBGR5x5
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| width | 图像宽度 |
| height | 图像高度 |
| greenBits | 绿色通道的位数(5 或 6)。将单通道灰度图转换为打包的 BGR(每像素 16 位,555 或 565)。仅支持 CV_8U 图像。 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_cvtHSVtoBGR
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| width | 图像宽度 |
| height | 图像高度 |
| depth | 图像深度(CV_8U 或 CV_32F 之一) |
| dcn | 目标图像通道数(3 或 4) |
| swapBlue | 如果设置为 true,B 和 R 目标通道将互换(写入 RGB) |
| isFullRange | 如果设置为 true,则读取色调范围为 0-255(浮点数为 0-360),否则范围为 0-180 |
| isHSV | 如果设置为 true,则将源视为 HSV,否则视为 HSL。将 HSV 或 HSL 转换为 BGR、RGB、BGRA 或 RGBA。 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_cvtLabtoBGR
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| width | 图像宽度 |
| height | 图像高度 |
| depth | 图像深度(CV_8U 或 CV_32F 之一) |
| dcn | 目标图像通道数(3 或 4) |
| swapBlue | 如果设置为 true,B 和 R 目标通道将互换(写入 RGB) |
| isLab | 如果设置为 true,则将输入视为 Lab,否则视为 Luv |
| srgb | 如果设置为 true,则使用 sRGB 伽马校正。将 Lab 或 Luv 转换为 BGR、RGB、BGRA 或 RGBA。 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_cvtMultipliedRGBAtoRGBA
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| width | 图像宽度 |
| height | 图像高度。从具有乘法 Alpha 通道的格式转换为 BGRA 或 RGBA。仅适用于 CV_8U。 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_cvtOnePlaneBGRtoYUV
| src_data,src_step | 源图像数据和步长 |
| dst_data,dst_step | 目标图像数据和步长 |
| width,height | 图像大小 |
| scn | 源图像通道数(3 或 4) |
| swapBlue | 如果设置为 true,B 和 R 目标通道将互换(写入 RGB) |
| uIdx | U 通道索引 (0 或 1) |
| ycn | Y 通道索引 (0 或 1)。将 BGR、RGB、BGRA 或 RGBA 转换为交错的 YUV 4:2:2 (UYVY、YUY2 或 YVYU)。仅适用于 CV_8U。Y:[16, 235];Cb, Cr:[16, 240],中心位于 128 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_cvtOnePlaneBGRtoYUV 的类似物,允许近似(非位精确)
| src_data,src_step | 源图像数据和步长 |
| dst_data,dst_step | 目标图像数据和步长 |
| width,height | 图像大小 |
| scn | 源图像通道数(3 或 4) |
| swapBlue | 如果设置为 true,B 和 R 目标通道将互换(写入 RGB) |
| uIdx | U 通道索引 (0 或 1) |
| ycn | Y 通道索引 (0 或 1)。将 BGR、RGB、BGRA 或 RGBA 转换为交错的 YUV 4:2:2 (UYVY、YUY2 或 YVYU)。仅适用于 CV_8U。Y:[16, 235];Cb, Cr:[16, 240],中心位于 128 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_cvtOnePlaneYUVtoBGR
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| width | 图像宽度 |
| height | 图像高度 |
| dcn | 目标图像通道数(3 或 4) |
| swapBlue | 如果设置为 true,B 和 R 目标通道将互换(写入 RGB) |
| uIdx | U 通道索引 (0 或 1) |
| ycn | Y 通道索引 (0 或 1)。将交错的 YUV 4:2:2 (UYVY、YUY2 或 YVYU) 转换为 BGR、RGB、BGRA 或 RGBA。仅适用于 CV_8U。Y:[16, 235];Cb, Cr:[16, 240],中心位于 128 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_cvtOnePlaneYUVtoBGR 的类似物,允许近似(非位精确)
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| width | 图像宽度 |
| height | 图像高度 |
| dcn | 目标图像通道数(3 或 4) |
| swapBlue | 如果设置为 true,B 和 R 目标通道将互换(写入 RGB) |
| uIdx | U 通道索引 (0 或 1) |
| ycn | Y 通道索引 (0 或 1)。将交错的 YUV 4:2:2 (UYVY、YUY2 或 YVYU) 转换为 BGR、RGB、BGRA 或 RGBA。仅适用于 CV_8U。Y:[16, 235];Cb, Cr:[16, 240],中心位于 128 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_cvtRGBAtoMultipliedRGBA
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| width | 图像宽度 |
| height | 图像高度。从 BGRA 或 RGBA 转换为具有乘法 Alpha 通道的格式。仅适用于 CV_8U。 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_cvtThreePlaneYUVtoBGR
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| dst_width | 目标图像宽度 |
| dst_height | 目标图像高度 |
| dcn | 目标图像通道数(3 或 4) |
| swapBlue | 如果设置为 true,B 和 R 目标通道将互换(写入 RGB) |
| uIdx | U 通道平面索引 (0 或 1)。将 YUV (YUV420p (或 YV12/YV21) - Y 平面后跟 U 和 V 平面) 转换为 BGR、RGB、BGRA 或 RGBA。仅适用于 CV_8U。Y:[16, 235];Cb, Cr:[16, 240],中心位于 128 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_cvtThreePlaneYUVtoBGR 的类似物,允许近似(非位精确)
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| dst_width | 目标图像宽度 |
| dst_height | 目标图像高度 |
| dcn | 目标图像通道数(3 或 4) |
| swapBlue | 如果设置为 true,B 和 R 目标通道将互换(写入 RGB) |
| uIdx | U 通道平面索引 (0 或 1)。将 YUV (YUV420p (或 YV12/YV21) - Y 平面后跟 U 和 V 平面) 转换为 BGR、RGB、BGRA 或 RGBA。仅适用于 CV_8U。Y:[16, 235];Cb, Cr:[16, 240],中心位于 128 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_cvtTwoPlaneYUVtoBGR
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| dst_width | 目标图像宽度 |
| dst_height | 目标图像高度 |
| dcn | 目标图像通道数(3 或 4) |
| swapBlue | 如果设置为 true,B 和 R 目标通道将互换(写入 RGB) |
| uIdx | 交错 U/V 平面中的 U 通道索引 (0 或 1)。将 YUV (YUV420sp (或 NV12/NV21) - Y 平面后跟交错的 U/V 平面) 转换为 BGR、RGB、BGRA 或 RGBA。仅适用于 CV_8U。Y:[16, 235];Cb, Cr:[16, 240],中心位于 128 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_cvtTwoPlaneYUVtoBGR 的类似物,允许近似(非位精确)
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| dst_width | 目标图像宽度 |
| dst_height | 目标图像高度 |
| dcn | 目标图像通道数(3 或 4) |
| swapBlue | 如果设置为 true,B 和 R 目标通道将互换(写入 RGB) |
| uIdx | 交错 U/V 平面中的 U 通道索引 (0 或 1)。将 YUV (YUV420sp (或 NV12/NV21) - Y 平面后跟交错的 U/V 平面) 转换为 BGR、RGB、BGRA 或 RGBA。仅适用于 CV_8U。Y:[16, 235];Cb, Cr:[16, 240],中心位于 128 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_cvtTwoPlaneYUVtoBGR 的扩展版本。
| y_data | 源图像数据(Y 平面) |
| y_step | 源图像步长(Y 平面) |
| uv_data | 源图像数据(UV 平面) |
| uv_step | 源图像步长(UV 平面) |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| dst_width | 目标图像宽度 |
| dst_height | 目标图像高度 |
| dcn | 目标图像通道数(3 或 4) |
| swapBlue | 如果设置为 true,B 和 R 目标通道将互换(写入 RGB) |
| uIdx | 交错 U/V 平面中的 U 通道索引 (0 或 1)。将 YUV (YUV420sp (或 NV12/NV21) - Y 平面后跟交错的 U/V 平面) 转换为 BGR、RGB、BGRA 或 RGBA。仅适用于 CV_8U。Y:[16, 235];Cb, Cr:[16, 240],中心位于 128 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_cvtTwoPlaneYUVtoBGR 的扩展版本,允许近似(非位精确)
| y_data | 源图像数据(Y 平面) |
| y_step | 源图像步长(Y 平面) |
| uv_data | 源图像数据(UV 平面) |
| uv_step | 源图像步长(UV 平面) |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| dst_width | 目标图像宽度 |
| dst_height | 目标图像高度 |
| dcn | 目标图像通道数(3 或 4) |
| swapBlue | 如果设置为 true,B 和 R 目标通道将互换(写入 RGB) |
| uIdx | 交错 U/V 平面中的 U 通道索引 (0 或 1)。将 YUV (YUV420sp (或 NV12/NV21) - Y 平面后跟交错的 U/V 平面) 转换为 BGR、RGB、BGRA 或 RGBA。仅适用于 CV_8U。Y:[16, 235];Cb, Cr:[16, 240],中心位于 128 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_cvtXYZtoBGR
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| width | 图像宽度 |
| height | 图像高度 |
| depth | 图像深度(CV_8U、CV_16U 或 CV_32F 之一) |
| dcn | 目标图像通道数(3 或 4) |
| swapBlue | 如果设置为 true,B 和 R 目标通道将互换(写入 RGB)。将 XYZ 转换为 BGR、RGB、BGRA 或 RGBA。 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_cvtYUVtoBGR
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| width | 图像宽度 |
| height | 图像高度 |
| depth | 图像深度(CV_8U、CV_16U 或 CV_32F 之一) |
| dcn | 目标图像通道数(3 或 4) |
| swapBlue | 如果设置为 true,B 和 R 目标通道将互换(写入 RGB) |
| isCbCr | 如果设置为 true,则将源视为 YCbCr。将 YUV 或 YCbCr 转换为 BGR、RGB、BGRA 或 RGBA。 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_ni_cvtYUVtoBGR 的类似物,但允许近似(非位精确)
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| width | 图像宽度 |
| height | 图像高度 |
| depth | 图像深度(CV_8U、CV_16U 或 CV_32F 之一) |
| dcn | 目标图像通道数(3 或 4) |
| swapBlue | 如果设置为 true,B 和 R 目标通道将互换(写入 RGB) |
| isCbCr | 如果设置为 true,则将源视为 YCbCr。将 YUV 或 YCbCr 转换为 BGR、RGB、BGRA 或 RGBA。 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
对灰度图像进行直方图均衡化。
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| width | 源图像宽度 |
| height | 源图像高度 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_filter
| context | 指向用户定义上下文的指针 |
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| width | 图像宽度 |
| height | 图像高度 |
| full_width | 源图像的完整宽度(ROI 之外) |
| full_height | 源图像的完整高度(ROI 之外) |
| offset_x | 源图像 ROI 偏移量 X |
| offset_y | 源图像 ROI 偏移量 Y |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
以无状态方式进行 2D 滤波
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| src_type | 源图像类型 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| dst_type | 目标图像类型 |
| width | 图像宽度 |
| height | 图像高度 |
| full_width | 源图像的完整宽度(ROI 之外) |
| full_height | 源图像的完整高度(ROI 之外) |
| offset_x | 源图像 ROI 偏移量 X |
| offset_y | 源图像 ROI 偏移量 Y |
| kernel_data | 指向内核数据的指针 |
| kernel_step | 内核步长 |
| kernel_type | 内核类型 (CV_8U, ...) |
| kernel_width | 内核宽度 |
| kernel_height | 内核高度 |
| anchor_x | 内核中中心点的相对 X 位置 |
| anchor_y | 内核中中心点的相对 Y 位置 |
| delta | 添加到像素值中的偏移量 |
| borderType | 边界处理模式 (CV_HAL_BORDER_REFLECT, ...) |
| isSubmatrix | 指示是否允许将子矩阵作为源图像 |
| allowInplace | 指示是否可以进行就地操作 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_filterFree
| context | 指向用户定义上下文的指针 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_filterInit
| context | 指向用户定义上下文的二级指针 |
| kernel_data | 指向内核数据的指针 |
| kernel_step | 内核步长 |
| kernel_type | 内核类型 (CV_8U, ...) |
| kernel_width | 内核宽度 |
| kernel_height | 内核高度 |
| max_width | 最大可能的图像宽度,可用于分配工作缓冲区 |
| max_height | 最大可能的图像高度 |
| src_type | 源图像类型 |
| dst_type | 目标图像类型 |
| borderType | 边界处理模式 (CV_HAL_BORDER_REFLECT, ...) |
| delta | 添加到像素值中的偏移量 |
| anchor_x | 内核中中心点的相对 X 位置 |
| anchor_y | 内核中中心点的相对 Y 位置 |
| allowSubmatrix | 指示是否允许将子矩阵作为源图像 |
| allowInplace | 指示是否可以进行就地操作 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
使用通用高斯滤波器模糊图像。
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| width | 源图像宽度 |
| height | 源图像高度 |
| depth | 源图像和目标图像的深度 |
| cn | 通道数 |
| margin_left | 源图像左边距 |
| margin_top | 源图像上边距 |
| margin_right | 源图像右边距 |
| margin_bottom | 源图像下边距 |
| ksize_width | 内核宽度 |
| ksize_height | 内核高度 |
| sigmaX | 高斯内核标准差。 |
| sigmaY | 高斯内核标准差。 |
| border_type | 边界类型 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
使用具有正方形内核且 sigma=0 的对称高斯滤波器模糊图像。
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| width | 源图像宽度 |
| height | 源图像高度 |
| depth | 源图像和目标图像的深度 |
| cn | 通道数 |
| margin_left | 源图像左边距 |
| margin_top | 源图像上边距 |
| margin_right | 源图像右边距 |
| margin_bottom | 源图像下边距 |
| ksize | 内核宽度 |
| border_type | 边界类型 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
计算图像多边形或光栅化形状的高至三阶的所有矩。
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| src_type | 源点类型 |
| width | 源图像宽度 |
| height | 源图像高度 |
| binary | 如果为 true,则所有非零图像像素都视为 1 |
| m | 按以下顺序排列的矩输出数组(10 个值):m00, m10, m01, m20, m11, m02, m30, m21, m12, m03。 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
计算积分图。
| depth | 源图像深度 |
| sdepth | 和图像深度 |
| sqdepth | 平方和图像深度 |
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| sum_data | 和图像数据 |
| sum_step | 和图像步长 |
| sqsum_data | 平方和图像数据 |
| sqsum_step | 平方和图像步长 |
| tilted_data | 倾斜和图像数据 |
| tilted_step | 倾斜和图像步长 |
| width | 源图像宽度 |
| height | 源图像高度 |
| cn | 通道数 |
| 源图像 | 和 | 平方和 |
|---|---|---|
| CV_8U | CV_32S | CV_64F |
| CV_8U | CV_32S | CV_32F |
| CV_8U | CV_32S | CV_32S |
| CV_8U | CV_32F | CV_64F |
| CV_8U | CV_32F | CV_32F |
| CV_8U | CV_64F | CV_64F |
| CV_16U | CV_64F | CV_64F |
| CV_16S | CV_64F | CV_64F |
| CV_32F | CV_32F | CV_64F |
| CV_32F | CV_32F | CV_32F |
| CV_32F | CV_64F | CV_64F |
| CV_64F | CV_64F | CV_64F |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
计算中值滤波。
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| width | 源图像宽度 |
| height | 源图像高度 |
| depth | 源图像和目标图像的深度 |
| cn | 通道数 |
| ksize | 内核大小 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_morph
| context | 指向用户定义上下文的指针 |
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| width | 图像宽度 |
| height | 图像高度 |
| src_full_width | 源图像的完整宽度(ROI 之外) |
| src_full_height | 源图像的完整高度(ROI 之外) |
| src_roi_x | 源图像 ROI X 偏移量 |
| src_roi_y | 源图像 ROI Y 偏移量 |
| dst_full_width | 目标图像的完整宽度 |
| dst_full_height | 目标图像的完整高度 |
| dst_roi_x | 目标图像 ROI X 偏移量 |
| dst_roi_y | 目标图像 ROI Y 偏移量 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
以无状态方式进行形态学操作
| operation (操作) | 形态学操作 CV_HAL_MORPH_ERODE 或 CV_HAL_MORPH_DILATE |
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| src_type | 源图像类型 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| dst_type | 目标图像类型 |
| width | 图像宽度 |
| height | 图像高度 |
| src_full_width | 源图像的完整宽度(ROI 之外) |
| src_full_height | 源图像的完整高度(ROI 之外) |
| src_roi_x | 源图像 ROI X 偏移量 |
| src_roi_y | 源图像 ROI Y 偏移量 |
| dst_full_width | 目标图像的完整宽度 |
| dst_full_height | 目标图像的完整高度 |
| dst_roi_x | 目标图像 ROI X 偏移量 |
| dst_roi_y | 目标图像 ROI Y 偏移量 |
| kernel_data | 指向内核数据的指针 |
| kernel_step | 内核步长 |
| kernel_type | 内核类型 (CV_8U, ...) |
| kernel_width | 内核宽度 |
| kernel_height | 内核高度 |
| anchor_x | 内核中中心点的相对 X 位置 |
| anchor_y | 内核中中心点的相对 Y 位置 |
| borderType | 边界处理模式 (CV_HAL_BORDER_REFLECT, ...) |
| borderValue | CV_HAL_BORDER_CONSTANT 模式下使用的值 |
| iterations | 迭代次数 |
| allowSubmatrix | 指示是否允许将子矩阵作为源图像 |
| allowInplace | 指示是否可以进行就地操作 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_morphFree
| context | 指向用户定义上下文的指针 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_morphInit
| context | 指向用户定义上下文的二级指针 |
| operation (操作) | 形态学操作 CV_HAL_MORPH_ERODE 或 CV_HAL_MORPH_DILATE |
| src_type | 源图像类型 |
| dst_type | 目标图像类型 |
| max_width | 最大可能的图像宽度,可用于分配工作缓冲区 |
| max_height | 最大可能的图像高度 |
| kernel_type | 内核类型 (CV_8U, ...) |
| kernel_data | 指向内核数据的指针 |
| kernel_step | 内核步长 |
| kernel_width | 内核宽度 |
| kernel_height | 内核高度 |
| anchor_x | 内核中中心点的相对 X 位置 |
| anchor_y | 内核中中心点的相对 Y 位置 |
| borderType | 边界处理模式 (CV_HAL_BORDER_REFLECT, ...) |
| borderValue | CV_HAL_BORDER_CONSTANT 模式下使用的值 |
| iterations | 迭代次数 |
| allowSubmatrix | 指示是否允许将子矩阵作为源图像 |
| allowInplace | 指示是否可以进行就地操作 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
计算 2D 点多边形高至三阶的所有矩。
| src_data | 源点 (Point 2x32f 或 2x32s) |
| src_size | 源点计数 |
| src_type | 源点类型 |
| m | 按以下顺序排列的矩输出数组(10 个值):m00, m10, m01, m20, m11, m02, m30, m21, m12, m03。 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
对输入图块执行高斯模糊和下采样。
| depth | 源图像和目标图像的深度 |
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| src_width | 源图像宽度 |
| src_height | 源图像高度 |
| dst_width | 目标图像宽度 |
| dst_height | 目标图像高度 |
| cn | 通道数 |
| border_type | 边界类型 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
对具有子矩阵可选边距的输入图块执行高斯模糊和下采样。
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| src_width | 源图像宽度 |
| src_height | 源图像高度 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| dst_width | 目标图像宽度 |
| dst_height | 目标图像高度 |
| depth | 源图像和目标图像的深度 |
| cn | 通道数 |
| margin_left | 源图像左边距 |
| margin_top | 源图像上边距 |
| margin_right | 源图像右边距 |
| margin_bottom | 源图像下边距 |
| border_type | 边界类型 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
对输入图块执行高斯模糊和上采样。
| depth | 源图像和目标图像的深度 |
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| src_width | 源图像宽度 |
| src_height | 源图像高度 |
| dst_width | 目标图像宽度 |
| dst_height | 目标图像高度 |
| cn | 通道数 |
| border_type | 边界类型 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
使用定点映射的 hal_remap
| src_type | 源图像和目标图像类型 |
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| src_width | 源图像宽度 |
| src_height | 源图像高度 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| dst_width | 目标图像宽度 |
| dst_height | 目标图像高度 |
| mapx | x 值的映射 |
| mapx_step | mapx 矩阵步长 |
| mapy | y 值的映射 |
| mapy_step | mapy 矩阵步长 |
| interpolation | 插值模式 (CV_HAL_INTER_NEAREST, ...) |
| border_type | 边界处理模式 (CV_HAL_BORDER_REFLECT, ...) |
| border_value | CV_HAL_BORDER_CONSTANT 模式下使用的值 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
使用浮点映射的 hal_remap
| src_type | 源图像和目标图像类型 |
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| src_width | 源图像宽度 |
| src_height | 源图像高度 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| dst_width | 目标图像宽度 |
| dst_height | 目标图像高度 |
| mapx | x 值的映射 |
| mapx_step | mapx 矩阵步长 |
| mapy | y 值的映射 |
| mapy_step | mapy 矩阵步长 |
| interpolation | 插值模式 (CV_HAL_INTER_NEAREST, ...) |
| border_type | 边界处理模式 (CV_HAL_BORDER_REFLECT, ...) |
| border_value | CV_HAL_BORDER_CONSTANT 模式下使用的值 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
使用浮点映射的 hal_remap
| src_type | 源图像和目标图像类型 |
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| src_width | 源图像宽度 |
| src_height | 源图像高度 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| dst_width | 目标图像宽度 |
| dst_height | 目标图像高度 |
| map | xy 值的映射 |
| map_step | 映射矩阵步长 |
| interpolation | 插值模式 (CV_HAL_INTER_NEAREST, ...) |
| border_type | 边界处理模式 (CV_HAL_BORDER_REFLECT, ...) |
| border_value | CV_HAL_BORDER_CONSTANT 模式下使用的值 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_resize
| src_type | 源图像和目标图像类型 |
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| src_width | 源图像宽度 |
| src_height | 源图像高度 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| dst_width | 目标图像宽度 |
| dst_height | 目标图像高度 |
| inv_scale_x | 反向缩放 X 系数 |
| inv_scale_y | 反向缩放 Y 系数 |
| interpolation | 插值模式 (CV_HAL_INTER_NEAREST, ...) |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
计算 Scharr 滤波器。
| src_depth | 源图像深度 |
| dst_depth | 目标图像深度 |
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| width | 源图像宽度 |
| height | 源图像高度 |
| cn | 通道数 |
| margin_left | 源图像左边距 |
| margin_top | 源图像上边距 |
| margin_right | 源图像右边距 |
| margin_bottom | 源图像下边距 |
| dx | x 阶导数 |
| dy | y 阶导数 |
| scale | 计算出的导数值的比例因子 |
| delta | 在将结果存储到 dst 之前添加到结果中的 delta 值 |
| border_type | 边界类型 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_sepFilter
| context | 指向用户定义上下文的指针 |
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| width | 图像宽度 |
| height | 图像高度 |
| full_width | 源图像的完整宽度(ROI 之外) |
| full_height | 源图像的完整高度(ROI 之外) |
| offset_x | 源图像 ROI 偏移量 X |
| offset_y | 源图像 ROI 偏移量 Y |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
以无状态方式进行可分离滤波
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| src_type | 源图像类型 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| dst_type | 目标图像类型 |
| width | 图像宽度 |
| height | 图像高度 |
| full_width | 源图像的完整宽度(ROI 之外) |
| full_height | 源图像的完整高度(ROI 之外) |
| offset_x | 源图像 ROI 偏移量 X |
| offset_y | 源图像 ROI 偏移量 Y |
| kernelx_data | 指向 x-内核数据的指针 |
| kernelx_len | x-内核向量长度 |
| kernely_data | 指向 y-内核数据的指针 |
| kernely_len | y-内核向量长度 |
| kernel_type | 内核类型 (CV_8U, ...) |
| anchor_x | 内核中中心点的相对 X 位置 |
| anchor_y | 内核中中心点的相对 Y 位置 |
| delta | 添加到像素值中的偏移量 |
| borderType | 边界处理模式 (CV_HAL_BORDER_REFLECT, ...) |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_sepFilterFree
| context | 指向用户定义上下文的指针 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_sepFilterInit
| context | 指向用户定义上下文的二级指针 |
| src_type | 源图像类型 |
| dst_type | 目标图像类型 |
| kernel_type | 内核类型 |
| kernelx_data | 指向 x-内核数据的指针 |
| kernelx_length | x-内核向量长度 |
| kernely_data | 指向 y-内核数据的指针 |
| kernely_length | y-内核向量长度 |
| anchor_x | 内核中中心点的相对 X 位置 |
| anchor_y | 内核中中心点的相对 Y 位置 |
| delta | 添加到像素值中的偏移量 |
| borderType | 边界处理模式 (CV_HAL_BORDER_REFLECT, ...) |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
计算 Sobel 导数。
| src_depth | 源图像深度 |
| dst_depth | 目标图像深度 |
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| width | 源图像宽度 |
| height | 源图像高度 |
| cn | 通道数 |
| margin_left | 源图像左边距 |
| margin_top | 源图像上边距 |
| margin_right | 源图像右边距 |
| margin_bottom | 源图像下边距 |
| dx | x 阶导数 |
| dy | y 阶导数 |
| ksize | 内核大小 |
| scale | 计算出的导数值的比例因子 |
| delta | 在将结果存储到 dst 之前添加到结果中的 delta 值 |
| border_type | 边界类型 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
对每个数组元素计算固定级阈值。
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| width | 源图像宽度 |
| height | 源图像高度 |
| depth | 源图像和目标图像的深度 |
| cn | 通道数 |
| thresh | 阈值 |
| maxValue | 分配给满足条件的像素的值 |
| thresholdType | 阈值处理类型 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
使用 Otsu 算法估计的阈值执行阈值滤波。
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| width | 源图像宽度 |
| height | 源图像高度 |
| depth | 源图像和目标图像的深度 |
| maxValue | 分配给满足条件的像素的值 |
| thresholdType | 阈值处理类型 |
| thresh | 计算出的阈值 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_warpAffine
| src_type | 源图像和目标图像类型 |
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| src_width | 源图像宽度 |
| src_height | 源图像高度 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| dst_width | 目标图像宽度 |
| dst_height | 目标图像高度 |
| M | 包含变换系数的 2x3 矩阵 |
| interpolation | 插值模式 (CV_HAL_INTER_NEAREST, ...) |
| borderType | 边界处理模式 (CV_HAL_BORDER_REFLECT, ...) |
| borderValue | CV_HAL_BORDER_CONSTANT 模式下使用的值 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_warpAffineBlockline 执行一行仿射变换
| adelta | 输入 M0 * x 数组 |
| bdelta | 输入 M3 * x 数组 |
| xy | 输出 (x', y') 坐标 |
| alpha | 用于插值的 (x', y') 坐标的输出最低有效位 |
| X0 | 输入 M1 * y + M2 值 |
| Y0 | 输入 M4 * y + M5 值 |
| bw | 行长度 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_warpAffineBlocklineNN 执行一行仿射变换
| adelta | 输入 M0 * x 数组 |
| bdelta | 输入 M3 * x 数组 |
| xy | 输出 (x', y') 坐标 |
| X0 | 输入 M1 * y + M2 值 |
| Y0 | 输入 M4 * y + M5 值 |
| bw | 行长度 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_warpPerspective
| src_type | 源图像和目标图像类型 |
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| src_width | 源图像宽度 |
| src_height | 源图像高度 |
| dst_data | 目标图像数据 |
| dst_step | 目标图像步长 |
| dst_width | 目标图像宽度 |
| dst_height | 目标图像高度 |
| M | 包含变换系数的 3x3 矩阵 |
| interpolation | 插值模式 (CV_HAL_INTER_NEAREST, ...) |
| borderType | 边界处理模式 (CV_HAL_BORDER_REFLECT, ...) |
| borderValue | CV_HAL_BORDER_CONSTANT 模式下使用的值 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_warpPerspectiveBlockline 执行一行透视变换
| M | 包含变换系数的 3x3 矩阵 |
| xy | 输出 (x', y') 坐标 |
| alpha | 用于插值的 (x', y') 坐标的输出最低有效位 |
| X0 | 输入 M0 * x0 + M1 * y + M2 值 |
| Y0 | 输入 M3 * x0 + M4 * y + M5 值 |
| W0 | 输入 M6 * x0 + M7 * y + M8 值 |
| bw | 行长度 |
|
内联 |
#include <imgproc/src/hal_replacement.hpp>
hal_warpPerspectiveBlocklineNN 执行一行透视变换
| M | 包含变换系数的 3x3 矩阵 |
| xy | 输出 (x', y') 坐标 |
| X0 | 输入 M0 * x0 + M1 * y + M2 值 |
| Y0 | 输入 M3 * x0 + M4 * y + M5 值 |
| W0 | 输入 M6 * x0 + M7 * y + M8 值 |
| bw | 行长度 |