OpenCV  4.1.0
Open Source Computer Vision
Classes | Macros | Functions
imgproc/src/hal_replacement.hpp File Reference
#include "opencv2/core/hal/interface.h"
#include "opencv2/imgproc/hal/interface.h"
#include "custom_hal.hpp"

Classes

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

Macros

#define CALL_HAL(name, fun,...)
 
#define CALL_HAL_RET(name, fun, retval,...)
 
#define cv_hal_adaptiveThreshold   hal_ni_adaptiveThreshold
 
#define cv_hal_boxFilter   hal_ni_boxFilter
 
#define cv_hal_canny   hal_ni_canny
 
#define cv_hal_cvtBGR5x5toBGR   hal_ni_cvtBGR5x5toBGR
 
#define cv_hal_cvtBGR5x5toGray   hal_ni_cvtBGR5x5toGray
 
#define cv_hal_cvtBGRtoBGR   hal_ni_cvtBGRtoBGR
 
#define cv_hal_cvtBGRtoBGR5x5   hal_ni_cvtBGRtoBGR5x5
 
#define cv_hal_cvtBGRtoGray   hal_ni_cvtBGRtoGray
 
#define cv_hal_cvtBGRtoHSV   hal_ni_cvtBGRtoHSV
 
#define cv_hal_cvtBGRtoLab   hal_ni_cvtBGRtoLab
 
#define cv_hal_cvtBGRtoThreePlaneYUV   hal_ni_cvtBGRtoThreePlaneYUV
 
#define cv_hal_cvtBGRtoXYZ   hal_ni_cvtBGRtoXYZ
 
#define cv_hal_cvtBGRtoYUV   hal_ni_cvtBGRtoYUV
 
#define cv_hal_cvtGraytoBGR   hal_ni_cvtGraytoBGR
 
#define cv_hal_cvtGraytoBGR5x5   hal_ni_cvtGraytoBGR5x5
 
#define cv_hal_cvtHSVtoBGR   hal_ni_cvtHSVtoBGR
 
#define cv_hal_cvtLabtoBGR   hal_ni_cvtLabtoBGR
 
#define cv_hal_cvtMultipliedRGBAtoRGBA   hal_ni_cvtMultipliedRGBAtoRGBA
 
#define cv_hal_cvtOnePlaneYUVtoBGR   hal_ni_cvtOnePlaneYUVtoBGR
 
#define cv_hal_cvtRGBAtoMultipliedRGBA   hal_ni_cvtRGBAtoMultipliedRGBA
 
#define cv_hal_cvtThreePlaneYUVtoBGR   hal_ni_cvtThreePlaneYUVtoBGR
 
#define cv_hal_cvtTwoPlaneYUVtoBGR   hal_ni_cvtTwoPlaneYUVtoBGR
 
#define cv_hal_cvtXYZtoBGR   hal_ni_cvtXYZtoBGR
 
#define cv_hal_cvtYUVtoBGR   hal_ni_cvtYUVtoBGR
 
#define cv_hal_filter   hal_ni_filter
 
#define cv_hal_filterFree   hal_ni_filterFree
 
#define cv_hal_filterInit   hal_ni_filterInit
 
#define cv_hal_gaussianBlur   hal_ni_gaussianBlur
 
#define cv_hal_integral   hal_ni_integral
 
#define cv_hal_medianBlur   hal_ni_medianBlur
 
#define cv_hal_morph   hal_ni_morph
 
#define cv_hal_morphFree   hal_ni_morphFree
 
#define cv_hal_morphInit   hal_ni_morphInit
 
#define cv_hal_pyrdown   hal_ni_pyrdown
 
#define cv_hal_resize   hal_ni_resize
 
#define cv_hal_scharr   hal_ni_scharr
 
#define cv_hal_sepFilter   hal_ni_sepFilter
 
#define cv_hal_sepFilterFree   hal_ni_sepFilterFree
 
#define cv_hal_sepFilterInit   hal_ni_sepFilterInit
 
#define cv_hal_sobel   hal_ni_sobel
 
#define cv_hal_threshold   hal_ni_threshold
 
#define cv_hal_warpAffine   hal_ni_warpAffine
 
#define cv_hal_warpPerspective   hal_ni_warpPerspective
 

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_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_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_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_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_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_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_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_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 Gaussian filter.
 
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_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_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_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_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
 

Macro Definition Documentation

#define CALL_HAL (   name,
  fun,
  ... 
)
Value:
int res = __CV_EXPAND(fun(__VA_ARGS__)); \
if (res == CV_HAL_ERROR_OK) \
return; \
else if (res != CV_HAL_ERROR_NOT_IMPLEMENTED) \
("HAL implementation " CVAUX_STR(name) " ==> " CVAUX_STR(fun) " returned %d (0x%08x)", res, res));
#define CALL_HAL_RET (   name,
  fun,
  retval,
  ... 
)
Value:
int res = __CV_EXPAND(fun(__VA_ARGS__, &retval)); \
if (res == CV_HAL_ERROR_OK) \
return retval; \
else if (res != CV_HAL_ERROR_NOT_IMPLEMENTED) \
("HAL implementation " CVAUX_STR(name) " ==> " CVAUX_STR(fun) " returned %d (0x%08x)", res, res));
#define cv_hal_adaptiveThreshold   hal_ni_adaptiveThreshold
#define cv_hal_boxFilter   hal_ni_boxFilter
#define cv_hal_canny   hal_ni_canny
#define cv_hal_cvtBGR5x5toBGR   hal_ni_cvtBGR5x5toBGR
#define cv_hal_cvtBGR5x5toGray   hal_ni_cvtBGR5x5toGray
#define cv_hal_cvtBGRtoBGR   hal_ni_cvtBGRtoBGR
#define cv_hal_cvtBGRtoBGR5x5   hal_ni_cvtBGRtoBGR5x5
#define cv_hal_cvtBGRtoGray   hal_ni_cvtBGRtoGray
#define cv_hal_cvtBGRtoHSV   hal_ni_cvtBGRtoHSV
#define cv_hal_cvtBGRtoLab   hal_ni_cvtBGRtoLab
#define cv_hal_cvtBGRtoThreePlaneYUV   hal_ni_cvtBGRtoThreePlaneYUV
#define cv_hal_cvtBGRtoXYZ   hal_ni_cvtBGRtoXYZ
#define cv_hal_cvtBGRtoYUV   hal_ni_cvtBGRtoYUV
#define cv_hal_cvtGraytoBGR   hal_ni_cvtGraytoBGR
#define cv_hal_cvtGraytoBGR5x5   hal_ni_cvtGraytoBGR5x5
#define cv_hal_cvtHSVtoBGR   hal_ni_cvtHSVtoBGR
#define cv_hal_cvtLabtoBGR   hal_ni_cvtLabtoBGR
#define cv_hal_cvtMultipliedRGBAtoRGBA   hal_ni_cvtMultipliedRGBAtoRGBA
#define cv_hal_cvtOnePlaneYUVtoBGR   hal_ni_cvtOnePlaneYUVtoBGR
#define cv_hal_cvtRGBAtoMultipliedRGBA   hal_ni_cvtRGBAtoMultipliedRGBA
#define cv_hal_cvtThreePlaneYUVtoBGR   hal_ni_cvtThreePlaneYUVtoBGR
#define cv_hal_cvtTwoPlaneYUVtoBGR   hal_ni_cvtTwoPlaneYUVtoBGR
#define cv_hal_cvtXYZtoBGR   hal_ni_cvtXYZtoBGR
#define cv_hal_cvtYUVtoBGR   hal_ni_cvtYUVtoBGR
#define cv_hal_filter   hal_ni_filter
#define cv_hal_filterFree   hal_ni_filterFree
#define cv_hal_filterInit   hal_ni_filterInit
#define cv_hal_gaussianBlur   hal_ni_gaussianBlur
#define cv_hal_integral   hal_ni_integral
#define cv_hal_medianBlur   hal_ni_medianBlur
#define cv_hal_morph   hal_ni_morph
#define cv_hal_morphFree   hal_ni_morphFree
#define cv_hal_morphInit   hal_ni_morphInit
#define cv_hal_pyrdown   hal_ni_pyrdown
#define cv_hal_resize   hal_ni_resize
#define cv_hal_scharr   hal_ni_scharr
#define cv_hal_sepFilter   hal_ni_sepFilter
#define cv_hal_sepFilterFree   hal_ni_sepFilterFree
#define cv_hal_sepFilterInit   hal_ni_sepFilterInit
#define cv_hal_sobel   hal_ni_sobel
#define cv_hal_threshold   hal_ni_threshold
#define cv_hal_warpAffine   hal_ni_warpAffine
#define cv_hal_warpPerspective   hal_ni_warpPerspective