OpenCV 5.0.0-pre
Open Source Computer Vision
Loading...
Searching...
No Matches

Detailed Description

Note
Define your functions to override default implementations:
#undef hal_add8u
#define hal_add8u my_add8u

Classes

struct  cvhalFilter2D
 Dummy structure storing filtering context. More...
 

Functions

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)
 Calculates adaptive threshold.
 
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)
 Calculate bilateral filter. See 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)
 Calculate box filter.
 
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 edge detector.
 
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)
 Analog of hal_cvtBGRtoThreePlaneYUV that allows approximations (not bit-exact)
 
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)
 Analog of hal_cvtBGRtoYUV, but allows approximations (not bit-exact)
 
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)
 analog of hal_cvtOnePlaneBGRtoYUV that allows approximations (not bit-exact)
 
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)
 analog of hal_cvtOnePlaneYUVtoBGR that allows approximations (not bit-exact)
 
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)
 Analog of hal_cvtThreePlaneYUVtoBGR that allows approximations (not bit-exact)
 
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)
 analog of hal_cvtTwoPlaneYUVtoBGR that allows approximations (not bit-exact)
 
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)
 Extended version of 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)
 Extended version of hal_cvtTwoPlaneYUVtoBGR that allows approximations (not bit-exact)
 
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)
 Analog of hal_cvtYUVtoBGR, but allows approximations (not bit-exact)
 
int hal_ni_equalize_hist (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height)
 Equalizes the histogram of a grayscale image.
 
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)
 Blurs an image using a generic Gaussian filter.
 
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)
 Blurs an image using a symmetric Gaussian filter with square kernel and 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])
 Calculates all of the moments up to the third order of a polygon or rasterized shape for image.
 
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)
 Calculate integral image.
 
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)
 Calculate medianBlur filter.
 
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])
 Calculates all of the moments up to the third order of a polygon of 2d points.
 
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)
 Perform Gaussian Blur and downsampling for input tile.
 
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)
 Perform Gaussian Blur and downsampling for input tile with optional margins for submatrix.
 
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 with floating point maps
 
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)
 Computes Scharr filter.
 
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)
 Computes Sobel derivatives.
 
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)
 Calculates fixed-level threshold to each array element.
 
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)
 Performs threshold filtering using threshold estimated by Otsu algorithm.
 
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 doing a row of affine transformation
 
int hal_ni_warpAffineBlocklineNN (int *adelta, int *bdelta, short *xy, int X0, int Y0, int bw)
 hal_warpAffineBlocklineNN doing a row of affine transformation
 
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 doing a row of perspective transformation
 
int hal_ni_warpPerspectiveBlocklineNN (const double *M, short *xy, double X0, double Y0, double W0, int bw)
 hal_warpPerspectiveBlocklineNN doing a row of perspective transformation
 

Interpolation modes

See also
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
 

Morphology operations

See also
cv::MorphTypes
#define CV_HAL_MORPH_ERODE   0
 
#define CV_HAL_MORPH_DILATE   1
 

Threshold types

See also
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
 

Adaptive threshold algorithm

See also
cv::AdaptiveThresholdTypes
#define CV_HAL_ADAPTIVE_THRESH_MEAN_C   0
 
#define CV_HAL_ADAPTIVE_THRESH_GAUSSIAN_C   1
 

Macro Definition Documentation

◆ 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

Function Documentation

◆ hal_ni_adaptiveThreshold()

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

#include <imgproc/src/hal_replacement.hpp>

Calculates adaptive threshold.

Parameters
src_dataSource image data
src_stepSource image step
dst_dataDestination image data
dst_stepDestination image step
widthSource image width
heightSource image height
maxValueValue assigned to the pixels for which the condition is satisfied
adaptiveMethodAdaptive thresholding algorithm
thresholdTypeThresholding type
blockSizeSize of a pixel neighborhood that is used to calculate a threshold value
CConstant subtracted from the mean or weighted mean

◆ hal_ni_bilateralFilter()

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

#include <imgproc/src/hal_replacement.hpp>

Calculate bilateral filter. See https://homepages.inf.ed.ac.uk/rbf/CVonline/LOCAL_COPIES/MANDUCHI1/Bilateral_Filtering.html.

Parameters
src_dataSource image data
src_stepSource image step
dst_dataDestination image data
dst_stepDestination image step
widthSource image width
heightSource image height
depthDepths of source and destination image. Should support CV_8U and CV_32F
cnNumber of channels
dDiameter of each pixel neighborhood that is used during filtering. If it is non-positive, it is computed from sigmaSpace
sigma_colorFilter sigma in the color space
sigma_spaceFilter sigma in the coordinate space. When d>0, it specifies the neighborhood size regardless of sigmaSpace. Otherwise, d is proportional to sigmaSpace
border_typeborder mode used to extrapolate pixels outside of the image

◆ hal_ni_boxFilter()

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

#include <imgproc/src/hal_replacement.hpp>

Calculate box filter.

Parameters
src_dataSource image data
src_stepSource image step
dst_dataDestination image data
dst_stepDestination image step
widthSource image width
heightSource image height
src_depthDepth of source image
dst_depthDepts of destination image
cnNumber of channels
margin_leftLeft margins for source image
margin_topTop margins for source image
margin_rightRight margins for source image
margin_bottomBottom margins for source image
ksize_widthWidth of kernel
ksize_heightHeight of kernel
anchor_xAnchor point x coordinate
anchor_yAnchor point y coordinate
normalizeIf true then result is normalized
border_typeBorder type

◆ hal_ni_canny()

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

#include <imgproc/src/hal_replacement.hpp>

Canny edge detector.

Parameters
src_dataSource image data
src_stepSource image step
dst_dataDestination image data
dst_stepDestination image step
widthSource image width
heightSource image height
cnNumber of channels
lowThresholdlow hresholds value
highThresholdhigh thresholds value
ksizeKernel size for Sobel operator.
L2gradientFlag, indicating use L2 or L1 norma.

◆ hal_ni_cvtBGR5x5toBGR()

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

#include <imgproc/src/hal_replacement.hpp>

hal_cvtBGR5x5toBGR

Parameters
src_datasource image data
src_stepsource image step
dst_datadestination image data
dst_stepdestination image step
widthimage width
heightimage height
dcndestination image channels (3 or 4)
swapBlueif set to true B and R destination channels will be swapped (write RGB)
greenBitsnumber of bits for green channel (5 or 6) Convert from packed BGR or RGB (16 bits per pixel, 555 or 565) to BGR, BGRA, RGB and RGBA. Support only CV_8U images (input 2 channels, output 3 or 4 channels).

◆ hal_ni_cvtBGR5x5toGray()

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

#include <imgproc/src/hal_replacement.hpp>

hal_cvtBGR5x5toGray

Parameters
src_datasource image data
src_stepsource image step
dst_datadestination image data
dst_stepdestination image step
widthimage width
heightimage height
greenBitsnumber of bits for green channel (5 or 6) Convert from packed BGR (16 bits per pixel, 555 or 565) to 1-channel gray. Support only CV_8U images.

◆ hal_ni_cvtBGRtoBGR()

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

#include <imgproc/src/hal_replacement.hpp>

hal_cvtBGRtoBGR

Parameters
src_datasource image data
src_stepsource image step
dst_datadestination image data
dst_stepdestination image step
widthimage width
heightimage height
depthimage depth (one of CV_8U, CV_16U, CV_32F)
scnsource image channels (3 or 4)
dcndestination image channels (3 or 4)
swapBlueif set to true B and R channels will be swapped (BGR->RGB or RGB->BGR) Convert between BGR, BGRA, RGB and RGBA image formats.

◆ hal_ni_cvtBGRtoBGR5x5()

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

#include <imgproc/src/hal_replacement.hpp>

hal_cvtBGRtoBGR5x5

Parameters
src_datasource image data
src_stepsource image step
dst_datadestination image data
dst_stepdestination image step
widthimage width
heightimage height
scnsource image channels (3 or 4)
swapBlueif set to true B and R source channels will be swapped (treat as RGB)
greenBitsnumber of bits for green channel (5 or 6) Convert from BGR, BGRA, RGB and RGBA to packed BGR or RGB (16 bits per pixel, 555 or 565). Support only CV_8U images (input 3 or 4 channels, output 2 channels).

◆ hal_ni_cvtBGRtoGray()

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

#include <imgproc/src/hal_replacement.hpp>

hal_cvtBGRtoGray

Parameters
src_datasource image data
src_stepsource image step
dst_datadestination image data
dst_stepdestination image step
widthimage width
heightimage height
depthimage depth (one of CV_8U, CV_16U or CV_32F)
scnsource image channels (3 or 4)
swapBlueif set to true B and R source channels will be swapped (treat as RGB) Convert from BGR, BGRA, RGB or RGBA to 1-channel gray.

◆ hal_ni_cvtBGRtoHSV()

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

#include <imgproc/src/hal_replacement.hpp>

hal_cvtBGRtoHSV

Parameters
src_datasource image data
src_stepsource image step
dst_datadestination image data
dst_stepdestination image step
widthimage width
heightimage height
depthimage depth (one of CV_8U or CV_32F)
scnsource image channels (3 or 4)
swapBlueif set to true B and R source channels will be swapped (treat as RGB)
isFullRangeif set to true write hue in range 0-255 (0-360 for float) otherwise in range 0-180
isHSVif set to true write HSV otherwise HSL Convert from BGR, RGB, BGRA or RGBA to HSV or HSL.

◆ hal_ni_cvtBGRtoLab()

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

#include <imgproc/src/hal_replacement.hpp>

hal_cvtBGRtoLab

Parameters
src_datasource image data
src_stepsource image step
dst_datadestination image data
dst_stepdestination image step
widthimage width
heightimage height
depthimage depth (one of CV_8U or CV_32F)
scnsource image channels (3 or 4)
swapBlueif set to true B and R source channels will be swapped (treat as RGB)
isLabif set to true write Lab otherwise Luv
srgbif set to true use sRGB gamma correction Convert from BGR, RGB, BGRA or RGBA to Lab or Luv.

◆ hal_ni_cvtBGRtoThreePlaneYUV()

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

#include <imgproc/src/hal_replacement.hpp>

hal_cvtBGRtoThreePlaneYUV

Parameters
src_datasource image data
src_stepsource image step
dst_datadestination image data
dst_stepdestination image step
widthimage width
heightimage height
scnsource image channels (3 or 4)
swapBlueif set to true B and R source channels will be swapped (treat as RGB)
uIdxU-channel plane index (0 or 1) Convert from BGR, RGB, BGRA or RGBA to YUV (YUV420p (or YV12/YV21) - Y plane followed by U and V planes). Only for CV_8U. Y : [16, 235]; Cb, Cr: [16, 240] centered at 128

◆ hal_ni_cvtBGRtoThreePlaneYUVApprox()

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

#include <imgproc/src/hal_replacement.hpp>

Analog of hal_cvtBGRtoThreePlaneYUV that allows approximations (not bit-exact)

Parameters
src_datasource image data
src_stepsource image step
dst_datadestination image data
dst_stepdestination image step
widthimage width
heightimage height
scnsource image channels (3 or 4)
swapBlueif set to true B and R source channels will be swapped (treat as RGB)
uIdxU-channel plane index (0 or 1) Convert from BGR, RGB, BGRA or RGBA to YUV (YUV420p (or YV12/YV21) - Y plane followed by U and V planes). Only for CV_8U. Y : [16, 235]; Cb, Cr: [16, 240] centered at 128

◆ hal_ni_cvtBGRtoTwoPlaneYUV()

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

#include <imgproc/src/hal_replacement.hpp>

hal_cvtBGRtoTwoPlaneYUV

Parameters
src_datasource image data
src_stepsource image step
y_datadestination image data (Y-plane)
y_stepdestination image step (Y-plane)
uv_datadestination image data (UV-plane)
uv_stepdestination image step (UV-plane)
widthimage width
heightimage height
scnsource image channels (3 or 4)
swapBlueif set to true B and R source channels will be swapped (treat as RGB)
uIdxU-channel plane index (0 or 1) Convert from BGR, RGB, BGRA or RGBA to YUV (YUV420sp (or NV12/NV21) - Y plane followed by interleaved U/V plane). Only for CV_8U. Y : [16, 235]; Cb, Cr: [16, 240] centered at 128

◆ hal_ni_cvtBGRtoXYZ()

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

#include <imgproc/src/hal_replacement.hpp>

hal_cvtBGRtoXYZ

Parameters
src_datasource image data
src_stepsource image step
dst_datadestination image data
dst_stepdestination image step
widthimage width
heightimage height
depthimage depth (one of CV_8U, CV_16U or CV_32F)
scnsource image channels (3 or 4)
swapBlueif set to true B and R source channels will be swapped (treat as RGB) Convert from BGR, RGB, BGRA or RGBA to XYZ.

◆ hal_ni_cvtBGRtoYUV()

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

#include <imgproc/src/hal_replacement.hpp>

hal_cvtBGRtoYUV

Parameters
src_datasource image data
src_stepsource image step
dst_datadestination image data
dst_stepdestination image step
widthimage width
heightimage height
depthimage depth (one of CV_8U, CV_16U or CV_32F)
scnsource image channels (3 or 4)
swapBlueif set to true B and R source channels will be swapped (treat as RGB)
isCbCrif set to true write output in YCbCr format Convert from BGR, RGB, BGRA or RGBA to YUV or YCbCr.

◆ hal_ni_cvtBGRtoYUVApprox()

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

#include <imgproc/src/hal_replacement.hpp>

Analog of hal_cvtBGRtoYUV, but allows approximations (not bit-exact)

Parameters
src_datasource image data
src_stepsource image step
dst_datadestination image data
dst_stepdestination image step
widthimage width
heightimage height
depthimage depth (one of CV_8U, CV_16U or CV_32F)
scnsource image channels (3 or 4)
swapBlueif set to true B and R source channels will be swapped (treat as RGB)
isCbCrif set to true write output in YCbCr format Convert from BGR, RGB, BGRA or RGBA to YUV or YCbCr.

◆ hal_ni_cvtGraytoBGR()

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

#include <imgproc/src/hal_replacement.hpp>

hal_cvtGraytoBGR

Parameters
src_datasource image data
src_stepsource image step
dst_datadestination image data
dst_stepdestination image step
widthimage width
heightimage height
depthimage depth (one of CV_8U, CV_16U or CV_32F)
dcndestination image channels (3 or 4) Convert from 1-channel gray to BGR, RGB, RGBA or BGRA.

◆ hal_ni_cvtGraytoBGR5x5()

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

#include <imgproc/src/hal_replacement.hpp>

hal_cvtGraytoBGR5x5

Parameters
src_datasource image data
src_stepsource image step
dst_datadestination image data
dst_stepdestination image step
widthimage width
heightimage height
greenBitsnumber of bits for green channel (5 or 6) Convert from 1-channel gray to packed BGR (16 bits per pixel, 555 or 565). Support only CV_8U images.

◆ hal_ni_cvtHSVtoBGR()

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

#include <imgproc/src/hal_replacement.hpp>

hal_cvtHSVtoBGR

Parameters
src_datasource image data
src_stepsource image step
dst_datadestination image data
dst_stepdestination image step
widthimage width
heightimage height
depthimage depth (one of CV_8U or CV_32F)
dcndestination image channels (3 or 4)
swapBlueif set to true B and R destination channels will be swapped (write RGB)
isFullRangeif set to true read hue in range 0-255 (0-360 for float) otherwise in range 0-180
isHSVif set to true treat source as HSV otherwise HSL Convert from HSV or HSL to BGR, RGB, BGRA or RGBA.

◆ hal_ni_cvtLabtoBGR()

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

#include <imgproc/src/hal_replacement.hpp>

hal_cvtLabtoBGR

Parameters
src_datasource image data
src_stepsource image step
dst_datadestination image data
dst_stepdestination image step
widthimage width
heightimage height
depthimage depth (one of CV_8U or CV_32F)
dcndestination image channels (3 or 4)
swapBlueif set to true B and R destination channels will be swapped (write RGB)
isLabif set to true treat input as Lab otherwise Luv
srgbif set to true use sRGB gamma correction Convert from Lab or Luv to BGR, RGB, BGRA or RGBA.

◆ hal_ni_cvtMultipliedRGBAtoRGBA()

int hal_ni_cvtMultipliedRGBAtoRGBA ( const uchar * src_data,
size_t src_step,
uchar * dst_data,
size_t dst_step,
int width,
int height )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtMultipliedRGBAtoRGBA

Parameters
src_datasource image data
src_stepsource image step
dst_datadestination image data
dst_stepdestination image step
widthimage width
heightimage height Convert from format with multiplied alpha channel to BGRA or RGBA. Only for CV_8U.

◆ hal_ni_cvtOnePlaneBGRtoYUV()

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

#include <imgproc/src/hal_replacement.hpp>

hal_cvtOnePlaneBGRtoYUV

Parameters
src_data,src_stepsource image data and step
dst_data,dst_stepdestination image data and step
width,heightimage size
scnsource image channels (3 or 4)
swapBlueif set to true B and R destination channels will be swapped (write RGB)
uIdxU-channel index (0 or 1)
ycnY-channel index (0 or 1) Convert from BGR, RGB, BGRA or RGBA to interleaved YUV 4:2:2 (UYVY, YUY2 or YVYU). Only for CV_8U. Y : [16, 235]; Cb, Cr: [16, 240] centered at 128

◆ hal_ni_cvtOnePlaneBGRtoYUVApprox()

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

#include <imgproc/src/hal_replacement.hpp>

analog of hal_cvtOnePlaneBGRtoYUV that allows approximations (not bit-exact)

Parameters
src_data,src_stepsource image data and step
dst_data,dst_stepdestination image data and step
width,heightimage size
scnsource image channels (3 or 4)
swapBlueif set to true B and R destination channels will be swapped (write RGB)
uIdxU-channel index (0 or 1)
ycnY-channel index (0 or 1) Convert from BGR, RGB, BGRA or RGBA to interleaved YUV 4:2:2 (UYVY, YUY2 or YVYU). Only for CV_8U. Y : [16, 235]; Cb, Cr: [16, 240] centered at 128

◆ hal_ni_cvtOnePlaneYUVtoBGR()

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

#include <imgproc/src/hal_replacement.hpp>

hal_cvtOnePlaneYUVtoBGR

Parameters
src_datasource image data
src_stepsource image step
dst_datadestination image data
dst_stepdestination image step
widthimage width
heightimage height
dcndestination image channels (3 or 4)
swapBlueif set to true B and R destination channels will be swapped (write RGB)
uIdxU-channel index (0 or 1)
ycnY-channel index (0 or 1) Convert from interleaved YUV 4:2:2 (UYVY, YUY2 or YVYU) to BGR, RGB, BGRA or RGBA. Only for CV_8U. Y : [16, 235]; Cb, Cr: [16, 240] centered at 128

◆ hal_ni_cvtOnePlaneYUVtoBGRApprox()

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

#include <imgproc/src/hal_replacement.hpp>

analog of hal_cvtOnePlaneYUVtoBGR that allows approximations (not bit-exact)

Parameters
src_datasource image data
src_stepsource image step
dst_datadestination image data
dst_stepdestination image step
widthimage width
heightimage height
dcndestination image channels (3 or 4)
swapBlueif set to true B and R destination channels will be swapped (write RGB)
uIdxU-channel index (0 or 1)
ycnY-channel index (0 or 1) Convert from interleaved YUV 4:2:2 (UYVY, YUY2 or YVYU) to BGR, RGB, BGRA or RGBA. Only for CV_8U. Y : [16, 235]; Cb, Cr: [16, 240] centered at 128

◆ hal_ni_cvtRGBAtoMultipliedRGBA()

int hal_ni_cvtRGBAtoMultipliedRGBA ( const uchar * src_data,
size_t src_step,
uchar * dst_data,
size_t dst_step,
int width,
int height )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtRGBAtoMultipliedRGBA

Parameters
src_datasource image data
src_stepsource image step
dst_datadestination image data
dst_stepdestination image step
widthimage width
heightimage height Convert from BGRA or RGBA to format with multiplied alpha channel. Only for CV_8U.

◆ hal_ni_cvtThreePlaneYUVtoBGR()

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

#include <imgproc/src/hal_replacement.hpp>

hal_cvtThreePlaneYUVtoBGR

Parameters
src_datasource image data
src_stepsource image step
dst_datadestination image data
dst_stepdestination image step
dst_widthdestination image width
dst_heightdestination image height
dcndestination image channels (3 or 4)
swapBlueif set to true B and R destination channels will be swapped (write RGB)
uIdxU-channel plane index (0 or 1) Convert from YUV (YUV420p (or YV12/YV21) - Y plane followed by U and V planes) to BGR, RGB, BGRA or RGBA. Only for CV_8U. Y : [16, 235]; Cb, Cr: [16, 240] centered at 128

◆ hal_ni_cvtThreePlaneYUVtoBGRApprox()

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

#include <imgproc/src/hal_replacement.hpp>

Analog of hal_cvtThreePlaneYUVtoBGR that allows approximations (not bit-exact)

Parameters
src_datasource image data
src_stepsource image step
dst_datadestination image data
dst_stepdestination image step
dst_widthdestination image width
dst_heightdestination image height
dcndestination image channels (3 or 4)
swapBlueif set to true B and R destination channels will be swapped (write RGB)
uIdxU-channel plane index (0 or 1) Convert from YUV (YUV420p (or YV12/YV21) - Y plane followed by U and V planes) to BGR, RGB, BGRA or RGBA. Only for CV_8U. Y : [16, 235]; Cb, Cr: [16, 240] centered at 128

◆ hal_ni_cvtTwoPlaneYUVtoBGR()

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

#include <imgproc/src/hal_replacement.hpp>

hal_cvtTwoPlaneYUVtoBGR

Parameters
src_datasource image data
src_stepsource image step
dst_datadestination image data
dst_stepdestination image step
dst_widthdestination image width
dst_heightdestination image height
dcndestination image channels (3 or 4)
swapBlueif set to true B and R destination channels will be swapped (write RGB)
uIdxU-channel index in the interleaved U/V plane (0 or 1) Convert from YUV (YUV420sp (or NV12/NV21) - Y plane followed by interleaved U/V plane) to BGR, RGB, BGRA or RGBA. Only for CV_8U. Y : [16, 235]; Cb, Cr: [16, 240] centered at 128

◆ hal_ni_cvtTwoPlaneYUVtoBGRApprox()

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

#include <imgproc/src/hal_replacement.hpp>

analog of hal_cvtTwoPlaneYUVtoBGR that allows approximations (not bit-exact)

Parameters
src_datasource image data
src_stepsource image step
dst_datadestination image data
dst_stepdestination image step
dst_widthdestination image width
dst_heightdestination image height
dcndestination image channels (3 or 4)
swapBlueif set to true B and R destination channels will be swapped (write RGB)
uIdxU-channel index in the interleaved U/V plane (0 or 1) Convert from YUV (YUV420sp (or NV12/NV21) - Y plane followed by interleaved U/V plane) to BGR, RGB, BGRA or RGBA. Only for CV_8U. Y : [16, 235]; Cb, Cr: [16, 240] centered at 128

◆ hal_ni_cvtTwoPlaneYUVtoBGREx()

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

#include <imgproc/src/hal_replacement.hpp>

Extended version of hal_cvtTwoPlaneYUVtoBGR.

Parameters
y_datasource image data (Y-plane)
y_stepsource image step (Y-plane)
uv_datasource image data (UV-plane)
uv_stepsource image step (UV-plane)
dst_datadestination image data
dst_stepdestination image step
dst_widthdestination image width
dst_heightdestination image height
dcndestination image channels (3 or 4)
swapBlueif set to true B and R destination channels will be swapped (write RGB)
uIdxU-channel index in the interleaved U/V plane (0 or 1) Convert from YUV (YUV420sp (or NV12/NV21) - Y plane followed by interleaved U/V plane) to BGR, RGB, BGRA or RGBA. Only for CV_8U. Y : [16, 235]; Cb, Cr: [16, 240] centered at 128

◆ hal_ni_cvtTwoPlaneYUVtoBGRExApprox()

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

#include <imgproc/src/hal_replacement.hpp>

Extended version of hal_cvtTwoPlaneYUVtoBGR that allows approximations (not bit-exact)

Parameters
y_datasource image data (Y-plane)
y_stepsource image step (Y-plane)
uv_datasource image data (UV-plane)
uv_stepsource image step (UV-plane)
dst_datadestination image data
dst_stepdestination image step
dst_widthdestination image width
dst_heightdestination image height
dcndestination image channels (3 or 4)
swapBlueif set to true B and R destination channels will be swapped (write RGB)
uIdxU-channel index in the interleaved U/V plane (0 or 1) Convert from YUV (YUV420sp (or NV12/NV21) - Y plane followed by interleaved U/V plane) to BGR, RGB, BGRA or RGBA. Only for CV_8U. Y : [16, 235]; Cb, Cr: [16, 240] centered at 128

◆ hal_ni_cvtXYZtoBGR()

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

#include <imgproc/src/hal_replacement.hpp>

hal_cvtXYZtoBGR

Parameters
src_datasource image data
src_stepsource image step
dst_datadestination image data
dst_stepdestination image step
widthimage width
heightimage height
depthimage depth (one of CV_8U, CV_16U or CV_32F)
dcndestination image channels (3 or 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,
uchar * dst_data,
size_t dst_step,
int width,
int height,
int depth,
int dcn,
bool swapBlue,
bool isCbCr )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtYUVtoBGR

Parameters
src_datasource image data
src_stepsource image step
dst_datadestination image data
dst_stepdestination image step
widthimage width
heightimage height
depthimage depth (one of CV_8U, CV_16U or CV_32F)
dcndestination image channels (3 or 4)
swapBlueif set to true B and R destination channels will be swapped (write RGB)
isCbCrif set to true treat source as YCbCr Convert from YUV or YCbCr to BGR, RGB, BGRA or RGBA.

◆ hal_ni_cvtYUVtoBGRApprox()

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

#include <imgproc/src/hal_replacement.hpp>

Analog of hal_cvtYUVtoBGR, but allows approximations (not bit-exact)

Parameters
src_datasource image data
src_stepsource image step
dst_datadestination image data
dst_stepdestination image step
widthimage width
heightimage height
depthimage depth (one of CV_8U, CV_16U or CV_32F)
dcndestination image channels (3 or 4)
swapBlueif set to true B and R destination channels will be swapped (write RGB)
isCbCrif set to true treat source as YCbCr Convert from YUV or YCbCr to BGR, RGB, BGRA or RGBA.

◆ hal_ni_equalize_hist()

int hal_ni_equalize_hist ( const uchar * src_data,
size_t src_step,
uchar * dst_data,
size_t dst_step,
int width,
int height )
inline

#include <imgproc/src/hal_replacement.hpp>

Equalizes the histogram of a grayscale image.

Parameters
src_dataSource image data
src_stepSource image step
dst_dataDestination image data
dst_stepDestination image step
widthSource image width
heightSource image height

◆ hal_ni_filter()

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

#include <imgproc/src/hal_replacement.hpp>

hal_filter

Parameters
contextpointer to user-defined context
src_datasource image data
src_stepsource image step
dst_datadestination image data
dst_stepdestination image step
widthimages width
heightimages height
full_widthfull width of source image (outside the ROI)
full_heightfull height of source image (outside the ROI)
offset_xsource image ROI offset X
offset_ysource image ROI offset Y
See also
cv::filter2D, cv::hal::Filter2D

◆ hal_ni_filterFree()

int hal_ni_filterFree ( cvhalFilter2D * context)
inline

#include <imgproc/src/hal_replacement.hpp>

hal_filterFree

Parameters
contextpointer to user-defined context
See also
cv::filter2D, cv::hal::Filter2D

◆ hal_ni_filterInit()

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

#include <imgproc/src/hal_replacement.hpp>

hal_filterInit

Parameters
contextdouble pointer to user-defined context
kernel_datapointer to kernel data
kernel_stepkernel step
kernel_typekernel type (CV_8U, ...)
kernel_widthkernel width
kernel_heightkernel height
max_widthmax possible image width, can be used to allocate working buffers
max_heightmax possible image height
src_typesource image type
dst_typedestination image type
borderTypeborder processing mode (CV_HAL_BORDER_REFLECT, ...)
deltaadded to pixel values
anchor_xrelative X position of center point within the kernel
anchor_yrelative Y position of center point within the kernel
allowSubmatrixindicates whether the submatrices will be allowed as source image
allowInplaceindicates whether the inplace operation will be possible
See also
cv::filter2D, cv::hal::Filter2D

◆ hal_ni_gaussianBlur()

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

#include <imgproc/src/hal_replacement.hpp>

Blurs an image using a generic Gaussian filter.

Parameters
src_dataSource image data
src_stepSource image step
dst_dataDestination image data
dst_stepDestination image step
widthSource image width
heightSource image height
depthDepth of source and destination image
cnNumber of channels
margin_leftLeft margins for source image
margin_topTop margins for source image
margin_rightRight margins for source image
margin_bottomBottom margins for source image
ksize_widthWidth of kernel
ksize_heightHeight of kernel
sigmaXGaussian kernel standard deviation.
sigmaYGaussian kernel standard deviation.
border_typeBorder type

◆ hal_ni_gaussianBlurBinomial()

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

#include <imgproc/src/hal_replacement.hpp>

Blurs an image using a symmetric Gaussian filter with square kernel and sigma=0.

Parameters
src_dataSource image data
src_stepSource image step
dst_dataDestination image data
dst_stepDestination image step
widthSource image width
heightSource image height
depthDepth of source and destination image
cnNumber of channels
margin_leftLeft margins for source image
margin_topTop margins for source image
margin_rightRight margins for source image
margin_bottomBottom margins for source image
ksizeWidth of kernel
border_typeBorder 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>

Calculates all of the moments up to the third order of a polygon or rasterized shape for image.

Parameters
src_dataSource image data
src_stepSource image step
src_typesource pints type
widthSource image width
heightSource image height
binaryIf it is true, all non-zero image pixels are treated as 1's
mOutput array of moments (10 values) in the following order: m00, m10, m01, m20, m11, m02, m30, m21, m12, m03.
See also
moments

◆ hal_ni_integral()

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

#include <imgproc/src/hal_replacement.hpp>

Calculate integral image.

Parameters
depthDepth of source image
sdepthDepth of sum image
sqdepthDepth of square sum image
src_dataSource image data
src_stepSource image step
sum_dataSum image data
sum_stepSum image step
sqsum_dataSquare sum image data
sqsum_stepSquare sum image step
tilted_dataTilted sum image data
tilted_stepTilted sum image step
widthSource image width
heightSource image height
cnNumber of channels
Note
Following combinations of image depths are used:
Source Sum Square sum
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
See also
cv::integral

◆ hal_ni_medianBlur()

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

#include <imgproc/src/hal_replacement.hpp>

Calculate medianBlur filter.

Parameters
src_dataSource image data
src_stepSource image step
dst_dataDestination image data
dst_stepDestination image step
widthSource image width
heightSource image height
depthDepths of source and destination image
cnNumber of channels
ksizeSize of kernel

◆ hal_ni_morph()

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

#include <imgproc/src/hal_replacement.hpp>

hal_morph

Parameters
contextpointer to user-defined context
src_datasource image data
src_stepsource image step
dst_datadestination image data
dst_stepdestination image step
widthimages width
heightimages height
src_full_widthfull width of source image (outside the ROI)
src_full_heightfull height of source image (outside the ROI)
src_roi_xsource image ROI X offset
src_roi_ysource image ROI Y offset
dst_full_widthfull width of destination image
dst_full_heightfull height of destination image
dst_roi_xdestination image ROI X offset
dst_roi_ydestination image ROI Y offset
See also
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

Parameters
contextpointer to user-defined context
See also
cv::erode, cv::dilate, cv::morphologyEx, cv::hal::Morph

◆ hal_ni_morphInit()

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

#include <imgproc/src/hal_replacement.hpp>

hal_morphInit

Parameters
contextdouble pointer to user-defined context
operationmorphology operation CV_HAL_MORPH_ERODE or CV_HAL_MORPH_DILATE
src_typesource image type
dst_typedestination image type
max_widthmax possible image width, can be used to allocate working buffers
max_heightmax possible image height
kernel_typekernel type (CV_8U, ...)
kernel_datapointer to kernel data
kernel_stepkernel step
kernel_widthkernel width
kernel_heightkernel height
anchor_xrelative X position of center point within the kernel
anchor_yrelative Y position of center point within the kernel
borderTypeborder processing mode (CV_HAL_BORDER_REFLECT, ...)
borderValuevalues to use for CV_HAL_BORDER_CONSTANT mode
iterationsnumber of iterations
allowSubmatrixindicates whether the submatrices will be allowed as source image
allowInplaceindicates whether the inplace operation will be possible
See also
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>

Calculates all of the moments up to the third order of a polygon of 2d points.

Parameters
src_dataSource points (Point 2x32f or 2x32s)
src_sizeSource points count
src_typesource pints type
mOutput array of moments (10 values) in the following order: m00, m10, m01, m20, m11, m02, m30, m21, m12, m03.
See also
moments

◆ hal_ni_pyrdown()

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

#include <imgproc/src/hal_replacement.hpp>

Perform Gaussian Blur and downsampling for input tile.

Parameters
depthDepths of source and destination image
src_dataSource image data
src_stepSource image step
dst_dataDestination image data
dst_stepDestination image step
src_widthSource image width
src_heightSource image height
dst_widthDestination image width
dst_heightDestination image height
cnNumber of channels
border_typeBorder type

◆ hal_ni_pyrdown_offset()

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

#include <imgproc/src/hal_replacement.hpp>

Perform Gaussian Blur and downsampling for input tile with optional margins for submatrix.

Parameters
src_dataSource image data
src_stepSource image step
src_widthSource image width
src_heightSource image height
dst_dataDestination image data
dst_stepDestination image step
dst_widthDestination image width
dst_heightDestination image height
depthDepths of source and destination image
cnNumber of channels
margin_leftLeft margins for source image
margin_topTop margins for source image
margin_rightRight margins for source image
margin_bottomBottom margins for source image
border_typeBorder type

◆ hal_ni_remap32f()

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

#include <imgproc/src/hal_replacement.hpp>

hal_remap with floating point maps

Parameters
src_typesource and destination image type
src_datasource image data
src_stepsource image step
src_widthsource image width
src_heightsource image height
dst_datadestination image data
dst_stepdestination image step
dst_widthdestination image width
dst_heightdestination image height
mapxmap for x values
mapx_stepmapx matrix step
mapymap for y values
mapy_stepmapy matrix step
interpolationinterpolation mode (CV_HAL_INTER_NEAREST, ...)
border_typeborder processing mode (CV_HAL_BORDER_REFLECT, ...)
border_valuevalues to use for CV_HAL_BORDER_CONSTANT mode
See also
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,
uchar * 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

Parameters
src_typesource and destination image type
src_datasource image data
src_stepsource image step
src_widthsource image width
src_heightsource image height
dst_datadestination image data
dst_stepdestination image step
dst_widthdestination image width
dst_heightdestination image height
inv_scale_xinversed scale X coefficient
inv_scale_yinversed scale Y coefficient
interpolationinterpolation mode (CV_HAL_INTER_NEAREST, ...)
See also
cv::resize, cv::hal::resize

◆ hal_ni_scharr()

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

#include <imgproc/src/hal_replacement.hpp>

Computes Scharr filter.

Parameters
src_depthDepth of source image
dst_depthDepts of destination image
src_dataSource image data
src_stepSource image step
dst_dataDestination image data
dst_stepDestination image step
widthSource image width
heightSource image height
cnNumber of channels
margin_leftLeft margins for source image
margin_topTop margins for source image
margin_rightRight margins for source image
margin_bottomBottom margins for source image
dxorders of the derivative x
dyorders of the derivative y
scaleScale factor for the computed derivative values
deltaDelta value that is added to the results prior to storing them in dst
border_typeBorder type

◆ hal_ni_sepFilter()

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

#include <imgproc/src/hal_replacement.hpp>

hal_sepFilter

Parameters
contextpointer to user-defined context
src_datasource image data
src_stepsource image step
dst_datadestination image data
dst_stepdestination image step
widthimages width
heightimages height
full_widthfull width of source image (outside the ROI)
full_heightfull height of source image (outside the ROI)
offset_xsource image ROI offset X
offset_ysource image ROI offset Y
See also
cv::sepFilter2D, cv::hal::SepFilter2D

◆ hal_ni_sepFilterFree()

int hal_ni_sepFilterFree ( cvhalFilter2D * context)
inline

#include <imgproc/src/hal_replacement.hpp>

hal_sepFilterFree

Parameters
contextpointer to user-defined context
See also
cv::sepFilter2D, cv::hal::SepFilter2D

◆ hal_ni_sepFilterInit()

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

#include <imgproc/src/hal_replacement.hpp>

hal_sepFilterInit

Parameters
contextdouble pointer to user-defined context
src_typesource image type
dst_typedestination image type
kernel_typekernels type
kernelx_datapointer to x-kernel data
kernelx_lengthx-kernel vector length
kernely_datapointer to y-kernel data
kernely_lengthy-kernel vector length
anchor_xrelative X position of center point within the kernel
anchor_yrelative Y position of center point within the kernel
deltaadded to pixel values
borderTypeborder processing mode (CV_HAL_BORDER_REFLECT, ...)
See also
cv::sepFilter2D, cv::hal::SepFilter2D

◆ hal_ni_sobel()

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

#include <imgproc/src/hal_replacement.hpp>

Computes Sobel derivatives.

Parameters
src_depthDepth of source image
dst_depthDepts of destination image
src_dataSource image data
src_stepSource image step
dst_dataDestination image data
dst_stepDestination image step
widthSource image width
heightSource image height
cnNumber of channels
margin_leftLeft margins for source image
margin_topTop margins for source image
margin_rightRight margins for source image
margin_bottomBottom margins for source image
dxorders of the derivative x
dyorders of the derivative y
ksizeSize of kernel
scaleScale factor for the computed derivative values
deltaDelta value that is added to the results prior to storing them in dst
border_typeBorder type

◆ hal_ni_threshold()

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

#include <imgproc/src/hal_replacement.hpp>

Calculates fixed-level threshold to each array element.

Parameters
src_dataSource image data
src_stepSource image step
dst_dataDestination image data
dst_stepDestination image step
widthSource image width
heightSource image height
depthDepths of source and destination image
cnNumber of channels
threshThreshold value
maxValueValue assigned to the pixels for which the condition is satisfied
thresholdTypeThresholding type

◆ hal_ni_threshold_otsu()

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

#include <imgproc/src/hal_replacement.hpp>

Performs threshold filtering using threshold estimated by Otsu algorithm.

Parameters
src_dataSource image data
src_stepSource image step
dst_dataDestination image data
dst_stepDestination image step
widthSource image width
heightSource image height
depthDepths of source and destination image
maxValueValue assigned to the pixels for which the condition is satisfied
thresholdTypeThresholding type
threshCalculated threshold value

◆ hal_ni_warpAffine()

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

#include <imgproc/src/hal_replacement.hpp>

hal_warpAffine

Parameters
src_typesource and destination image type
src_datasource image data
src_stepsource image step
src_widthsource image width
src_heightsource image height
dst_datadestination image data
dst_stepdestination image step
dst_widthdestination image width
dst_heightdestination image height
M2x3 matrix with transform coefficients
interpolationinterpolation mode (CV_HAL_INTER_NEAREST, ...)
borderTypeborder processing mode (CV_HAL_BORDER_REFLECT, ...)
borderValuevalues to use for CV_HAL_BORDER_CONSTANT mode
See also
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 doing a row of affine transformation

Parameters
adeltainput M0 * x array
bdeltainput M3 * x array
xyoutput (x', y') coordinates
alphaoutput least significant bits of the (x', y') coordinates for interpolation
X0input M1 * y + M2 value
Y0input M4 * y + M5 value
bwlength of the row
See also
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 doing a row of affine transformation

Parameters
adeltainput M0 * x array
bdeltainput M3 * x array
xyoutput (x', y') coordinates
X0input M1 * y + M2 value
Y0input M4 * y + M5 value
bwlength of the row
See also
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,
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] )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_warpPerspective

Parameters
src_typesource and destination image type
src_datasource image data
src_stepsource image step
src_widthsource image width
src_heightsource image height
dst_datadestination image data
dst_stepdestination image step
dst_widthdestination image width
dst_heightdestination image height
M3x3 matrix with transform coefficients
interpolationinterpolation mode (CV_HAL_INTER_NEAREST, ...)
borderTypeborder processing mode (CV_HAL_BORDER_REFLECT, ...)
borderValuevalues to use for CV_HAL_BORDER_CONSTANT mode
See also
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 doing a row of perspective transformation

Parameters
M3x3 matrix with transform coefficients
xyoutput (x', y') coordinates
alphaoutput least significant bits of the (x', y') coordinates for interpolation
X0input M0 * x0 + M1 * y + M2 value
Y0input M3 * x0 + M4 * y + M5 value
W0input M6 * x0 + M7 * y + M8 value
bwlength of the row
See also
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 doing a row of perspective transformation

Parameters
M3x3 matrix with transform coefficients
xyoutput (x', y') coordinates
X0input M0 * x0 + M1 * y + M2 value
Y0input M3 * x0 + M4 * y + M5 value
W0input M6 * x0 + M7 * y + M8 value
bwlength of the row
See also
cv::warpPerspectiveBlocklineNN, cv::hal::warpPerspectiveBlocklineNN