OpenCV 4.12.0
開源計算機視覺
載入中...
搜尋中...
無匹配項

詳細描述

注意
定義您的函式以覆蓋預設實現
#undef hal_add8u
#define hal_add8u my_add8u

結構體  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_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_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_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])
 計算二維點多邊形的三階矩。
 
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_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)
 使用大津演算法估算的閾值執行閾值濾波。
 
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 執行一行透視變換
 

插值模式

另請參見
cv::InterpolationFlags
#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
 

形態學操作

另請參見
cv::MorphTypes
#define CV_HAL_MORPH_ERODE   0
 
#define CV_HAL_MORPH_DILATE   1
 

閾值型別

另請參見
cv::ThresholdTypes
#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
 

自適應閾值演算法

另請參見
cv::AdaptiveThresholdTypes
#define CV_HAL_ADAPTIVE_THRESH_MEAN_C   0
 
#define CV_HAL_ADAPTIVE_THRESH_GAUSSIAN_C   1
 

宏定義文件

◆ CV_HAL_ADAPTIVE_THRESH_GAUSSIAN_C

#define CV_HAL_ADAPTIVE_THRESH_GAUSSIAN_C   1

◆ CV_HAL_ADAPTIVE_THRESH_MEAN_C

#define CV_HAL_ADAPTIVE_THRESH_MEAN_C   0

◆ CV_HAL_INTER_AREA

#define CV_HAL_INTER_AREA   3

◆ CV_HAL_INTER_CUBIC

#define CV_HAL_INTER_CUBIC   2

◆ CV_HAL_INTER_LANCZOS4

#define CV_HAL_INTER_LANCZOS4   4

◆ CV_HAL_INTER_LINEAR

#define CV_HAL_INTER_LINEAR   1

◆ CV_HAL_INTER_LINEAR_EXACT

#define CV_HAL_INTER_LINEAR_EXACT   5

◆ CV_HAL_INTER_MAX

#define CV_HAL_INTER_MAX   7

◆ CV_HAL_INTER_NEAREST

#define CV_HAL_INTER_NEAREST   0

◆ CV_HAL_INTER_NEAREST_EXACT

#define CV_HAL_INTER_NEAREST_EXACT   6

◆ CV_HAL_MORPH_DILATE

#define CV_HAL_MORPH_DILATE   1

◆ CV_HAL_MORPH_ERODE

#define CV_HAL_MORPH_ERODE   0

◆ CV_HAL_THRESH_BINARY

#define CV_HAL_THRESH_BINARY   0

◆ CV_HAL_THRESH_BINARY_INV

#define CV_HAL_THRESH_BINARY_INV   1

◆ CV_HAL_THRESH_MASK

#define CV_HAL_THRESH_MASK   7

◆ CV_HAL_THRESH_OTSU

#define CV_HAL_THRESH_OTSU   8

◆ CV_HAL_THRESH_TOZERO

#define CV_HAL_THRESH_TOZERO   3

◆ CV_HAL_THRESH_TOZERO_INV

#define CV_HAL_THRESH_TOZERO_INV   4

◆ CV_HAL_THRESH_TRIANGLE

#define CV_HAL_THRESH_TRIANGLE   16

◆ CV_HAL_THRESH_TRUNC

#define CV_HAL_THRESH_TRUNC   2

◆ CV_HAL_WARP_FILL_OUTLIERS

#define CV_HAL_WARP_FILL_OUTLIERS   8

◆ CV_HAL_WARP_INVERSE_MAP

#define CV_HAL_WARP_INVERSE_MAP   16

◆ CV_HAL_WARP_RELATIVE_MAP

#define CV_HAL_WARP_RELATIVE_MAP   32

函式文件

◆ hal_ni_adaptiveThreshold()

int hal_ni_adaptiveThreshold ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
double maxValue,
int adaptiveMethod,
int thresholdType,
int blockSize,
double C )
inline

#include <imgproc/src/hal_replacement.hpp>

計算自適應閾值。

引數
src_data源影像資料
src_step源影像步長
dst_data目標影像資料
dst_step目標影像步長
width源影像寬度
height源影像高度
maxValue當條件滿足時分配給畫素的值
adaptiveMethod自適應閾值演算法
thresholdType閾值型別
blockSize用於計算閾值畫素鄰域的大小
C從均值或加權均值中減去的常數

◆ hal_ni_bilateralFilter()

int hal_ni_bilateralFilter ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int 深度,
int cn,
int d,
double sigma_color,
double sigma_space,
int border_type )
inline

#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源影像高度
深度源影像和目標影像的深度。應支援 CV_8U 和 CV_32F
cn通道數
d過濾過程中使用的每個畫素鄰域的直徑。如果非正,則從 sigmaSpace 計算。
sigma_color顏色空間中的濾波器 sigma
sigma_space座標空間中的濾波器 sigma。當 d>0 時,它指定鄰域大小,而與 sigmaSpace 無關。否則,d 與 sigmaSpace 成比例。
border_type用於推斷影像外部畫素的邊界模式

◆ hal_ni_boxFilter()

int hal_ni_boxFilter ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * 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 )
inline

#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如果為真,則結果將被歸一化
border_type邊框型別

◆ hal_ni_calcHist()

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 )
inline

#include <imgproc/src/hal_replacement.hpp>

計算一組陣列的直方圖。

引數
src_data源影像資料
src_step源影像步長
src_type源影像型別
src_width源影像寬度
src_height源影像高度
hist_data直方圖資料
hist_size直方圖大小
ranges直方圖 bin 邊界的維度陣列
uniform指示直方圖是否均勻的標誌
accumulate累積標誌

◆ hal_ni_canny()

int hal_ni_canny ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int cn,
double lowThreshold,
double highThreshold,
int ksize,
bool L2gradient )
inline

#include <imgproc/src/hal_replacement.hpp>

Canny 邊緣檢測器。

引數
src_data源影像資料
src_step源影像步長
dst_data目標影像資料
dst_step目標影像步長
width源影像寬度
height源影像高度
cn通道數
lowThreshold低閾值
highThreshold高閾值
ksizeSobel 運算元的核大小。
L2gradient標誌,指示使用 L2 或 L1 範數。

◆ hal_ni_cvtBGR5x5toBGR()

int hal_ni_cvtBGR5x5toBGR ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int dcn,
bool swapBlue,
int greenBits )
inline

#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 通道)。

◆ hal_ni_cvtBGR5x5toGray()

int hal_ni_cvtBGR5x5toGray ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int greenBits )
inline

#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)轉換為 1 通道灰度圖。僅支援 CV_8U 影像。

◆ hal_ni_cvtBGRtoBGR()

int hal_ni_cvtBGRtoBGR ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int 深度,
int scn,
int dcn,
bool swapBlue )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtBGRtoBGR

引數
src_data源影像資料
src_step源影像步長
dst_data目標影像資料
dst_step目標影像步長
width影像寬度
height影像高度
深度影像深度(CV_8U、CV_16U、CV_32F 之一)
scn源影像通道(3 或 4)
dcn目標影像通道(3 或 4)
swapBlue如果設定為 true,B 和 R 通道將交換(BGR->RGB 或 RGB->BGR)在 BGR、BGRA、RGB 和 RGBA 影像格式之間進行轉換。

◆ hal_ni_cvtBGRtoBGR5x5()

int hal_ni_cvtBGRtoBGR5x5 ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int scn,
bool swapBlue,
int greenBits )
inline

#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 通道)。

◆ hal_ni_cvtBGRtoGray()

int hal_ni_cvtBGRtoGray ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int 深度,
int scn,
bool swapBlue )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtBGRtoGray

引數
src_data源影像資料
src_step源影像步長
dst_data目標影像資料
dst_step目標影像步長
width影像寬度
height影像高度
深度影像深度(CV_8U、CV_16U 或 CV_32F 之一)
scn源影像通道(3 或 4)
swapBlue如果設定為 true,B 和 R 源通道將交換(視為 RGB)從 BGR、BGRA、RGB 或 RGBA 轉換為 1 通道灰度圖。

◆ hal_ni_cvtBGRtoHSV()

int hal_ni_cvtBGRtoHSV ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int 深度,
int scn,
bool swapBlue,
bool isFullRange,
bool isHSV )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtBGRtoHSV

引數
src_data源影像資料
src_step源影像步長
dst_data目標影像資料
dst_step目標影像步長
width影像寬度
height影像高度
深度影像深度(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。

◆ hal_ni_cvtBGRtoLab()

int hal_ni_cvtBGRtoLab ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int 深度,
int scn,
bool swapBlue,
bool isLab,
bool srgb )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtBGRtoLab

引數
src_data源影像資料
src_step源影像步長
dst_data目標影像資料
dst_step目標影像步長
width影像寬度
height影像高度
深度影像深度(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。

◆ hal_ni_cvtBGRtoThreePlaneYUV()

int hal_ni_cvtBGRtoThreePlaneYUV ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int scn,
bool swapBlue,
int uIdx )
inline

#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)
uIdxU 通道平面索引(0 或 1)從 BGR、RGB、BGRA 或 RGBA 轉換為 YUV (YUV420p (或 YV12/YV21) - Y 平面後跟 U 和 V 平面)。僅適用於 CV_8U。Y : [16, 235]; Cb, Cr: [16, 240] 居中於 128

◆ hal_ni_cvtBGRtoThreePlaneYUVApprox()

int hal_ni_cvtBGRtoThreePlaneYUVApprox ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int scn,
bool swapBlue,
int uIdx )
inline

#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)
uIdxU 通道平面索引(0 或 1)從 BGR、RGB、BGRA 或 RGBA 轉換為 YUV (YUV420p (或 YV12/YV21) - Y 平面後跟 U 和 V 平面)。僅適用於 CV_8U。Y : [16, 235]; Cb, Cr: [16, 240] 居中於 128

◆ hal_ni_cvtBGRtoTwoPlaneYUV()

int hal_ni_cvtBGRtoTwoPlaneYUV ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * y_data,
size_t y_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * uv_data,
size_t uv_step,
int width,
int height,
int scn,
bool swapBlue,
int uIdx )
inline

#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)
uIdxU 通道平面索引(0 或 1)從 BGR、RGB、BGRA 或 RGBA 轉換為 YUV (YUV420sp (或 NV12/NV21) - Y 平面後跟交錯的 U/V 平面)。僅適用於 CV_8U。Y : [16, 235]; Cb, Cr: [16, 240] 居中於 128

◆ hal_ni_cvtBGRtoXYZ()

int hal_ni_cvtBGRtoXYZ ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int 深度,
int scn,
bool swapBlue )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtBGRtoXYZ

引數
src_data源影像資料
src_step源影像步長
dst_data目標影像資料
dst_step目標影像步長
width影像寬度
height影像高度
深度影像深度(CV_8U、CV_16U 或 CV_32F 之一)
scn源影像通道(3 或 4)
swapBlue如果設定為 true,B 和 R 源通道將交換(視為 RGB)從 BGR、RGB、BGRA 或 RGBA 轉換為 XYZ。

◆ hal_ni_cvtBGRtoYUV()

int hal_ni_cvtBGRtoYUV ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int 深度,
int scn,
bool swapBlue,
bool isCbCr )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtBGRtoYUV

引數
src_data源影像資料
src_step源影像步長
dst_data目標影像資料
dst_step目標影像步長
width影像寬度
height影像高度
深度影像深度(CV_8U、CV_16U 或 CV_32F 之一)
scn源影像通道(3 或 4)
swapBlue如果設定為 true,B 和 R 源通道將交換(視為 RGB)
isCbCr如果設定為 true,以 YCbCr 格式寫入輸出 從 BGR、RGB、BGRA 或 RGBA 轉換為 YUV 或 YCbCr。

◆ hal_ni_cvtBGRtoYUVApprox()

int hal_ni_cvtBGRtoYUVApprox ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int 深度,
int scn,
bool swapBlue,
bool isCbCr )
inline

#include <imgproc/src/hal_replacement.hpp>

類似於 hal_cvtBGRtoYUV,但允許近似(非位精確)。

引數
src_data源影像資料
src_step源影像步長
dst_data目標影像資料
dst_step目標影像步長
width影像寬度
height影像高度
深度影像深度(CV_8U、CV_16U 或 CV_32F 之一)
scn源影像通道(3 或 4)
swapBlue如果設定為 true,B 和 R 源通道將交換(視為 RGB)
isCbCr如果設定為 true,以 YCbCr 格式寫入輸出 從 BGR、RGB、BGRA 或 RGBA 轉換為 YUV 或 YCbCr。

◆ hal_ni_cvtGraytoBGR()

int hal_ni_cvtGraytoBGR ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int 深度,
int dcn )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtGraytoBGR

引數
src_data源影像資料
src_step源影像步長
dst_data目標影像資料
dst_step目標影像步長
width影像寬度
height影像高度
深度影像深度(CV_8U、CV_16U 或 CV_32F 之一)
dcn目標影像通道(3 或 4)從 1 通道灰度圖轉換為 BGR、RGB、RGBA 或 BGRA。

◆ hal_ni_cvtGraytoBGR5x5()

int hal_ni_cvtGraytoBGR5x5 ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int greenBits )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtGraytoBGR5x5

引數
src_data源影像資料
src_step源影像步長
dst_data目標影像資料
dst_step目標影像步長
width影像寬度
height影像高度
greenBits綠色通道的位數(5 或 6)從 1 通道灰度圖轉換為打包的 BGR(每畫素 16 位,555 或 565)。僅支援 CV_8U 影像。

◆ hal_ni_cvtHSVtoBGR()

int hal_ni_cvtHSVtoBGR ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int 深度,
int dcn,
bool swapBlue,
bool isFullRange,
bool isHSV )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtHSVtoBGR

引數
src_data源影像資料
src_step源影像步長
dst_data目標影像資料
dst_step目標影像步長
width影像寬度
height影像高度
深度影像深度(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。

◆ hal_ni_cvtLabtoBGR()

int hal_ni_cvtLabtoBGR ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int 深度,
int dcn,
bool swapBlue,
bool isLab,
bool srgb )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtLabtoBGR

引數
src_data源影像資料
src_step源影像步長
dst_data目標影像資料
dst_step目標影像步長
width影像寬度
height影像高度
深度影像深度(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。

◆ hal_ni_cvtMultipliedRGBAtoRGBA()

int hal_ni_cvtMultipliedRGBAtoRGBA ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtMultipliedRGBAtoRGBA

引數
src_data源影像資料
src_step源影像步長
dst_data目標影像資料
dst_step目標影像步長
width影像寬度
height影像高度 從帶乘法 Alpha 通道的格式轉換為 BGRA 或 RGBA。僅適用於 CV_8U。

◆ hal_ni_cvtOnePlaneBGRtoYUV()

int hal_ni_cvtOnePlaneBGRtoYUV ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int scn,
bool swapBlue,
int uIdx,
int ycn )
inline

#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)
uIdxU 通道索引(0 或 1)
ycnY 通道索引(0 或 1)從 BGR、RGB、BGRA 或 RGBA 轉換為交錯的 YUV 4:2:2 (UYVY, YUY2 或 YVYU)。僅適用於 CV_8U。Y : [16, 235]; Cb, Cr: [16, 240] 居中於 128

◆ hal_ni_cvtOnePlaneBGRtoYUVApprox()

int hal_ni_cvtOnePlaneBGRtoYUVApprox ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int scn,
bool swapBlue,
int uIdx,
int ycn )
inline

#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)
uIdxU 通道索引(0 或 1)
ycnY 通道索引(0 或 1)從 BGR、RGB、BGRA 或 RGBA 轉換為交錯的 YUV 4:2:2 (UYVY, YUY2 或 YVYU)。僅適用於 CV_8U。Y : [16, 235]; Cb, Cr: [16, 240] 居中於 128

◆ hal_ni_cvtOnePlaneYUVtoBGR()

int hal_ni_cvtOnePlaneYUVtoBGR ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int dcn,
bool swapBlue,
int uIdx,
int ycn )
inline

#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)
uIdxU 通道索引(0 或 1)
ycnY 通道索引(0 或 1)從交錯的 YUV 4:2:2 (UYVY, YUY2 或 YVYU) 轉換為 BGR、RGB、BGRA 或 RGBA。僅適用於 CV_8U。Y : [16, 235]; Cb, Cr: [16, 240] 居中於 128

◆ hal_ni_cvtOnePlaneYUVtoBGRApprox()

int hal_ni_cvtOnePlaneYUVtoBGRApprox ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int dcn,
bool swapBlue,
int uIdx,
int ycn )
inline

#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)
uIdxU 通道索引(0 或 1)
ycnY 通道索引(0 或 1)從交錯的 YUV 4:2:2 (UYVY, YUY2 或 YVYU) 轉換為 BGR、RGB、BGRA 或 RGBA。僅適用於 CV_8U。Y : [16, 235]; Cb, Cr: [16, 240] 居中於 128

◆ hal_ni_cvtRGBAtoMultipliedRGBA()

int hal_ni_cvtRGBAtoMultipliedRGBA ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtRGBAtoMultipliedRGBA

引數
src_data源影像資料
src_step源影像步長
dst_data目標影像資料
dst_step目標影像步長
width影像寬度
height影像高度 從 BGRA 或 RGBA 轉換為帶乘法 Alpha 通道的格式。僅適用於 CV_8U。

◆ hal_ni_cvtThreePlaneYUVtoBGR()

int hal_ni_cvtThreePlaneYUVtoBGR ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int dst_width,
int dst_height,
int dcn,
bool swapBlue,
int uIdx )
inline

#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)
uIdxU 通道平面索引(0 或 1)從 YUV (YUV420p (或 YV12/YV21) - Y 平面後跟 U 和 V 平面) 轉換為 BGR、RGB、BGRA 或 RGBA。僅適用於 CV_8U。Y : [16, 235]; Cb, Cr: [16, 240] 居中於 128

◆ hal_ni_cvtThreePlaneYUVtoBGRApprox()

int hal_ni_cvtThreePlaneYUVtoBGRApprox ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int dst_width,
int dst_height,
int dcn,
bool swapBlue,
int uIdx )
inline

#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)
uIdxU 通道平面索引(0 或 1)從 YUV (YUV420p (或 YV12/YV21) - Y 平面後跟 U 和 V 平面) 轉換為 BGR、RGB、BGRA 或 RGBA。僅適用於 CV_8U。Y : [16, 235]; Cb, Cr: [16, 240] 居中於 128

◆ hal_ni_cvtTwoPlaneYUVtoBGR()

int hal_ni_cvtTwoPlaneYUVtoBGR ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int dst_width,
int dst_height,
int dcn,
bool swapBlue,
int uIdx )
inline

#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

◆ hal_ni_cvtTwoPlaneYUVtoBGRApprox()

int hal_ni_cvtTwoPlaneYUVtoBGRApprox ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int dst_width,
int dst_height,
int dcn,
bool swapBlue,
int uIdx )
inline

#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

◆ hal_ni_cvtTwoPlaneYUVtoBGREx()

int hal_ni_cvtTwoPlaneYUVtoBGREx ( const uchar * y_data,
size_t y_step,
const uchar * uv_data,
size_t uv_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int dst_width,
int dst_height,
int dcn,
bool swapBlue,
int uIdx )
inline

#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

◆ hal_ni_cvtTwoPlaneYUVtoBGRExApprox()

int hal_ni_cvtTwoPlaneYUVtoBGRExApprox ( const uchar * y_data,
size_t y_step,
const uchar * uv_data,
size_t uv_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int dst_width,
int dst_height,
int dcn,
bool swapBlue,
int uIdx )
inline

#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

如果設定為 true,B 和 R 目標通道將交換(寫入 RGB)從 XYZ 轉換為 BGR、RGB、BGRA 或 RGBA。

int hal_ni_cvtXYZtoBGR ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int 深度,
int dcn,
bool swapBlue )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtXYZtoBGR

引數
src_data源影像資料
src_step源影像步長
dst_data目標影像資料
dst_step目標影像步長
width影像寬度
height影像高度
深度影像深度(CV_8U、CV_16U 或 CV_32F 之一)
dcn目標影像通道(3 或 4)
swapBlueif set to true B and R destination channels will be swapped (write RGB) Convert from XYZ to BGR, RGB, BGRA or RGBA.

◆ hal_ni_cvtYUVtoBGR()

int hal_ni_cvtYUVtoBGR ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int 深度,
int dcn,
bool swapBlue,
bool isCbCr )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtYUVtoBGR

引數
src_data源影像資料
src_step源影像步長
dst_data目標影像資料
dst_step目標影像步長
width影像寬度
height影像高度
深度影像深度(CV_8U、CV_16U 或 CV_32F 之一)
dcn目標影像通道(3 或 4)
swapBlue如果設定為 true,B 和 R 目標通道將交換(寫入 RGB)
isCbCr如果設定為 true,源視為 YCbCr 從 YUV 或 YCbCr 轉換為 BGR、RGB、BGRA 或 RGBA。

◆ hal_ni_cvtYUVtoBGRApprox()

int hal_ni_cvtYUVtoBGRApprox ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int 深度,
int dcn,
bool swapBlue,
bool isCbCr )
inline

#include <imgproc/src/hal_replacement.hpp>

類似於 hal_cvtYUVtoBGR,但允許近似(非位精確)。

引數
src_data源影像資料
src_step源影像步長
dst_data目標影像資料
dst_step目標影像步長
width影像寬度
height影像高度
深度影像深度(CV_8U、CV_16U 或 CV_32F 之一)
dcn目標影像通道(3 或 4)
swapBlue如果設定為 true,B 和 R 目標通道將交換(寫入 RGB)
isCbCr如果設定為 true,源視為 YCbCr 從 YUV 或 YCbCr 轉換為 BGR、RGB、BGRA 或 RGBA。

◆ hal_ni_equalize_hist()

int hal_ni_equalize_hist ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height )
inline

#include <imgproc/src/hal_replacement.hpp>

均衡化灰度影像的直方圖。

引數
src_data源影像資料
src_step源影像步長
dst_data目標影像資料
dst_step目標影像步長
width源影像寬度
height源影像高度

◆ hal_ni_filter()

int hal_ni_filter ( cvhalFilter2D * context,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int full_width,
int full_height,
int offset_x,
int offset_y )
inline

#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 偏移
另請參見
cv::filter2D, cv::hal::Filter2D

◆ hal_ni_filterFree()

int hal_ni_filterFree ( cvhalFilter2D * context)
inline

#include <imgproc/src/hal_replacement.hpp>

hal_filterFree

引數
context使用者定義上下文的指標
另請參見
cv::filter2D, cv::hal::Filter2D

◆ hal_ni_filterInit()

int hal_ni_filterInit ( cvhalFilter2D ** context,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * 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 )
inline

#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指示是否可以進行原地操作
另請參見
cv::filter2D, cv::hal::Filter2D

◆ hal_ni_gaussianBlur()

int hal_ni_gaussianBlur ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int 深度,
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 )
inline

#include <imgproc/src/hal_replacement.hpp>

使用通用高斯濾波器模糊影像。

引數
src_data源影像資料
src_step源影像步長
dst_data目標影像資料
dst_step目標影像步長
width源影像寬度
height源影像高度
深度源影像和目標影像的深度
cn通道數
margin_left源影像的左邊距
margin_top源影像的上邊距
margin_right源影像的右邊距
margin_bottom源影像的下邊距
ksize_width核的寬度
ksize_height核的高度
sigmaX高斯核標準差。
sigmaY高斯核標準差。
border_type邊框型別

◆ hal_ni_gaussianBlurBinomial()

int hal_ni_gaussianBlurBinomial ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int 深度,
int cn,
size_t margin_left,
size_t margin_top,
size_t margin_right,
size_t margin_bottom,
size_t ksize,
int border_type )
inline

#include <imgproc/src/hal_replacement.hpp>

使用方形核和 sigma=0 的對稱高斯濾波器模糊影像。

引數
src_data源影像資料
src_step源影像步長
dst_data目標影像資料
dst_step目標影像步長
width源影像寬度
height源影像高度
深度源影像和目標影像的深度
cn通道數
margin_left源影像的左邊距
margin_top源影像的上邊距
margin_right源影像的右邊距
margin_bottom源影像的下邊距
ksize核的寬度
border_type邊框型別

◆ hal_ni_imageMoments()

int hal_ni_imageMoments ( const uchar * src_data,
size_t src_step,
int src_type,
int width,
int height,
bool binary,
double m[10] )
inline

#include <imgproc/src/hal_replacement.hpp>

計算影像的多邊形或柵格化形狀的三階矩。

引數
src_data源影像資料
src_step源影像步長
src_type源點型別
width源影像寬度
height源影像高度
binary如果為真,所有非零影像畫素都被視為 1
m按以下順序輸出矩陣列(10 個值):m00, m10, m01, m20, m11, m02, m30, m21, m12, m03。
另請參見
moments

◆ hal_ni_integral()

int hal_ni_integral ( int 深度,
int sdepth,
int sqdepth,
const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * sum_data,
size_t sum_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * sqsum_data,
size_t sqsum_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * tilted_data,
size_t tilted_step,
int width,
int height,
int cn )
inline

#include <imgproc/src/hal_replacement.hpp>

計算積分影像。

引數
深度源影像的深度
sdepth和影像的深度
sqdepth平方和影像的深度
src_data源影像資料
src_step源影像步長
sum_data和影像資料
sum_step和影像步長
sqsum_data平方和影像資料
sqsum_step平方和影像步長
tilted_data傾斜和影像資料
tilted_step傾斜和影像步長
width源影像寬度
height源影像高度
cn通道數
注意
使用以下影像深度組合
來源Sum平方和
Definition interface.h:74Definition interface.h:73CV_64F
Definition interface.h:74Definition interface.h:73CV_32F
Definition interface.h:74Definition interface.h:73Definition interface.h:73
Definition interface.h:74CV_32FCV_64F
Definition interface.h:74CV_32FCV_32F
Definition interface.h:74CV_64FCV_64F
Definition interface.h:76CV_64FCV_64F
Definition interface.h:77CV_64FCV_64F
CV_32FCV_32FCV_64F
CV_32FCV_32FCV_32F
CV_32FCV_64FCV_64F
CV_64FCV_64FCV_64F
另請參見
cv::integral

◆ hal_ni_medianBlur()

int hal_ni_medianBlur ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int 深度,
int cn,
int ksize )
inline

#include <imgproc/src/hal_replacement.hpp>

計算中值模糊濾波器。

引數
src_data源影像資料
src_step源影像步長
dst_data目標影像資料
dst_step目標影像步長
width源影像寬度
height源影像高度
深度源影像和目標影像的深度
cn通道數
ksize核大小

◆ hal_ni_morph()

int hal_ni_morph ( cvhalFilter2D * context,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * 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 )
inline

#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 偏移
另請參見
cv::erode, cv::dilate, cv::morphologyEx, cv::hal::Morph

◆ hal_ni_morphFree()

int hal_ni_morphFree ( cvhalFilter2D * context)
inline

#include <imgproc/src/hal_replacement.hpp>

hal_morphFree

引數
context使用者定義上下文的指標
另請參見
cv::erode, cv::dilate, cv::morphologyEx, cv::hal::Morph

◆ hal_ni_morphInit()

int hal_ni_morphInit ( cvhalFilter2D ** context,
int 操作,
int src_type,
int dst_type,
int max_width,
int max_height,
int kernel_type,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * 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 )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_morphInit

引數
context指向使用者定義上下文的雙指標
操作形態學操作 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 等)
borderValueCV_HAL_BORDER_CONSTANT 模式下使用的值
iterations迭代次數
allowSubmatrix指示是否允許子矩陣作為源影像
allowInplace指示是否可以進行原地操作
另請參見
cv::erode, cv::dilate, cv::morphologyEx, cv::hal::Morph

◆ hal_ni_polygonMoments()

int hal_ni_polygonMoments ( const uchar * src_data,
size_t src_size,
int src_type,
double m[10] )
inline

#include <imgproc/src/hal_replacement.hpp>

計算二維點多邊形的三階矩。

引數
src_data源點(Point 2x32f 或 2x32s)
src_size源點計數
src_type源點型別
m按以下順序輸出矩陣列(10 個值):m00, m10, m01, m20, m11, m02, m30, m21, m12, m03。
另請參見
moments

◆ hal_ni_pyrdown()

int hal_ni_pyrdown ( const uchar * src_data,
size_t src_step,
int src_width,
int src_height,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int dst_width,
int dst_height,
int 深度,
int cn,
int border_type )
inline

#include <imgproc/src/hal_replacement.hpp>

對輸入圖塊執行高斯模糊和降取樣。

引數
深度源影像和目標影像的深度
src_data源影像資料
src_step源影像步長
dst_data目標影像資料
dst_step目標影像步長
src_width源影像寬度
src_height源影像高度
dst_width目標影像寬度
dst_height目標影像高度
cn通道數
border_type邊框型別

◆ hal_ni_pyrdown_offset()

int hal_ni_pyrdown_offset ( const uchar * src_data,
size_t src_step,
int src_width,
int src_height,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int dst_width,
int dst_height,
int 深度,
int cn,
int margin_left,
int margin_top,
int margin_right,
int margin_bottom,
int border_type )
inline

#include <imgproc/src/hal_replacement.hpp>

對帶有可選子矩陣邊距的輸入塊執行高斯模糊和下采樣。

引數
src_data源影像資料
src_step源影像步長
src_width源影像寬度
src_height源影像高度
dst_data目標影像資料
dst_step目標影像步長
dst_width目標影像寬度
dst_height目標影像高度
深度源影像和目標影像的深度
cn通道數
margin_left源影像的左邊距
margin_top源影像的上邊距
margin_right源影像的右邊距
margin_bottom源影像的下邊距
border_type邊框型別

◆ hal_ni_pyrup()

int hal_ni_pyrup ( const uchar * src_data,
size_t src_step,
int src_width,
int src_height,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int dst_width,
int dst_height,
int 深度,
int cn,
int border_type )
inline

#include <imgproc/src/hal_replacement.hpp>

對輸入圖塊執行高斯模糊和升取樣。

引數
深度源影像和目標影像的深度
src_data源影像資料
src_step源影像步長
dst_data目標影像資料
dst_step目標影像步長
src_width源影像寬度
src_height源影像高度
dst_width目標影像寬度
dst_height目標影像高度
cn通道數
border_type邊框型別

◆ hal_ni_remap16s()

int hal_ni_remap16s ( int src_type,
const uchar * src_data,
size_t src_step,
int src_width,
int src_height,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * 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] )
inline

#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目標影像高度
mapxx 值的對映
mapx_stepmapx 矩陣步長
mapyy 值的對映
mapy_stepmapy 矩陣步長
interpolation插值模式(CV_HAL_INTER_NEAREST 等)
border_type邊界處理模式(CV_HAL_BORDER_REFLECT 等)
border_valueCV_HAL_BORDER_CONSTANT 模式下使用的值
另請參見
cv::remap

◆ hal_ni_remap32f()

int hal_ni_remap32f ( int src_type,
const uchar * src_data,
size_t src_step,
int src_width,
int src_height,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * 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] )
inline

#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目標影像高度
mapxx 值的對映
mapx_stepmapx 矩陣步長
mapyy 值的對映
mapy_stepmapy 矩陣步長
interpolation插值模式(CV_HAL_INTER_NEAREST 等)
border_type邊界處理模式(CV_HAL_BORDER_REFLECT 等)
border_valueCV_HAL_BORDER_CONSTANT 模式下使用的值
另請參見
cv::remap

◆ hal_ni_remap32fc2()

int hal_ni_remap32fc2 ( int src_type,
const uchar * src_data,
size_t src_step,
int src_width,
int src_height,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * 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] )
inline

#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目標影像高度
mapxy 值的對映
map_step對映矩陣步長
interpolation插值模式(CV_HAL_INTER_NEAREST 等)
border_type邊界處理模式(CV_HAL_BORDER_REFLECT 等)
border_valueCV_HAL_BORDER_CONSTANT 模式下使用的值
另請參見
cv::remap

◆ hal_ni_resize()

int hal_ni_resize ( int src_type,
const uchar * src_data,
size_t src_step,
int src_width,
int src_height,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int dst_width,
int dst_height,
double inv_scale_x,
double inv_scale_y,
int interpolation )
inline

#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_xX 逆尺度係數
inv_scale_yY 逆尺度係數
interpolation插值模式(CV_HAL_INTER_NEAREST 等)
另請參見
cv::resize, cv::hal::resize

◆ hal_ni_scharr()

int hal_ni_scharr ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * 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 )
inline

#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邊框型別

◆ hal_ni_sepFilter()

int hal_ni_sepFilter ( cvhalFilter2D * context,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int full_width,
int full_height,
int offset_x,
int offset_y )
inline

#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 偏移
另請參見
cv::sepFilter2D, cv::hal::SepFilter2D

◆ hal_ni_sepFilterFree()

int hal_ni_sepFilterFree ( cvhalFilter2D * context)
inline

#include <imgproc/src/hal_replacement.hpp>

hal_sepFilterFree

引數
context使用者定義上下文的指標
另請參見
cv::sepFilter2D, cv::hal::SepFilter2D

◆ hal_ni_sepFilterInit()

int hal_ni_sepFilterInit ( cvhalFilter2D ** context,
int src_type,
int dst_type,
int kernel_type,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * kernelx_data,
int kernelx_length,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * kernely_data,
int kernely_length,
int anchor_x,
int anchor_y,
double delta,
int borderType )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_sepFilterInit

引數
context指向使用者定義上下文的雙指標
src_type源影像型別
dst_type目標影像型別
kernel_type核型別
kernelx_datax-核數據指標
kernelx_lengthx-核向量長度
kernely_datay-核數據指標
kernely_lengthy-核向量長度
anchor_x核內中心點的相對 X 位置
anchor_y核內中心點的相對 Y 位置
delta新增到畫素值
borderType邊界處理模式(CV_HAL_BORDER_REFLECT 等)
另請參見
cv::sepFilter2D, cv::hal::SepFilter2D

◆ hal_ni_sobel()

int hal_ni_sobel ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * 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 )
inline

#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邊框型別

◆ hal_ni_threshold()

int hal_ni_threshold ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int 深度,
int cn,
double thresh,
double maxValue,
int thresholdType )
inline

#include <imgproc/src/hal_replacement.hpp>

計算每個陣列元素的固定級別閾值。

引數
src_data源影像資料
src_step源影像步長
dst_data目標影像資料
dst_step目標影像步長
width源影像寬度
height源影像高度
深度源影像和目標影像的深度
cn通道數
thresh閾值
maxValue當條件滿足時分配給畫素的值
thresholdType閾值型別

◆ hal_ni_threshold_otsu()

int hal_ni_threshold_otsu ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int 深度,
double maxValue,
int thresholdType,
如果傳入NULL,則假定尺度引數c為1.0。否則,指向的變數將被設定為最優尺度。 thresh )
inline

#include <imgproc/src/hal_replacement.hpp>

使用大津演算法估算的閾值執行閾值濾波。

引數
src_data源影像資料
src_step源影像步長
dst_data目標影像資料
dst_step目標影像步長
width源影像寬度
height源影像高度
深度源影像和目標影像的深度
maxValue當條件滿足時分配給畫素的值
thresholdType閾值型別
thresh計算出的閾值

◆ hal_ni_warpAffine()

int hal_ni_warpAffine ( int src_type,
const uchar * src_data,
size_t src_step,
int src_width,
int src_height,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int dst_width,
int dst_height,
const double M[6],
int interpolation,
int borderType,
const double borderValue[4] )
inline

#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 等)
borderValueCV_HAL_BORDER_CONSTANT 模式下使用的值
另請參見
cv::warpAffine, cv::hal::warpAffine

◆ hal_ni_warpAffineBlockline()

int hal_ni_warpAffineBlockline ( int * adelta,
int * bdelta,
short * xy,
short * alpha,
int X0,
int Y0,
int bw )
inline

#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行的長度
另請參見
cv::warpAffineBlockline, cv::hal::warpAffineBlockline

◆ hal_ni_warpAffineBlocklineNN()

int hal_ni_warpAffineBlocklineNN ( int * adelta,
int * bdelta,
short * xy,
int X0,
int Y0,
int bw )
inline

#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行的長度
另請參見
cv::warpAffineBlocklineNN, cv::hal::warpAffineBlocklineNN

◆ hal_ni_warpPerspective()

int hal_ni_warpPerspective ( int src_type,
const uchar * src_data,
size_t src_step,
int src_width,
int src_height,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int dst_width,
int dst_height,
const double M[9],
int interpolation,
int borderType,
const double borderValue[4] )
inline

#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 等)
borderValueCV_HAL_BORDER_CONSTANT 模式下使用的值
另請參見
cv::warpPerspective, cv::hal::warpPerspective

◆ hal_ni_warpPerspectiveBlockline()

int hal_ni_warpPerspectiveBlockline ( const double * M,
short * xy,
short * alpha,
double X0,
double Y0,
double W0,
int bw )
inline

#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行的長度
另請參見
cv::warpPerspectiveBlockline, cv::hal::warpPerspectiveBlockline

◆ hal_ni_warpPerspectiveBlocklineNN()

int hal_ni_warpPerspectiveBlocklineNN ( const double * M,
short * xy,
double X0,
double Y0,
double W0,
int bw )
inline

#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行的長度
另請參見
cv::warpPerspectiveBlocklineNN, cv::hal::warpPerspectiveBlocklineNN