Interface
Overview
Define your functions to override default implementations:
// structs struct cvhalFilter2D; // global functions 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 ); 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 ); 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 ); 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 ); 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 ); 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 ); 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 ); 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 ); 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 ); 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 ); 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 ); 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 ); 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 ); 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 ); int hal_ni_cvtMultipliedRGBAtoRGBA( const uchar* src_data, size_t src_step, uchar* dst_data, size_t dst_step, int width, int height ); 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 ); int hal_ni_cvtRGBAtoMultipliedRGBA( const uchar* src_data, size_t src_step, uchar* dst_data, size_t dst_step, int width, int height ); 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 ); 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 ); 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 ); 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 ); 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 ); int hal_ni_filterFree(cvhalFilter2D* context); 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 ); 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_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 ); int hal_ni_morphFree(cvhalFilter2D* context); 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 ); 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 ); 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 ); int hal_ni_sepFilterFree(cvhalFilter2D* context); 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 ); 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] ); int hal_ni_warpPerspectve( 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] ); // macros #define CV_HAL_INTER_AREA #define CV_HAL_INTER_CUBIC #define CV_HAL_INTER_LANCZOS4 #define CV_HAL_INTER_LINEAR #define CV_HAL_INTER_NEAREST #define MORPH_DILATE #define MORPH_ERODE
Detailed Documentation
Define your functions to override default implementations:
#undef hal_add8u #define hal_add8u my_add8u
Global Functions
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
Parameters:
src_data | |
src_step | source image data and step |
dst_data | |
dst_step | destination image data and step |
width | |
height | image size |
dcn | destination image channels (3 or 4) |
swapBlue | if set to true B and R destination channels will be swapped (write RGB) |
greenBits | number 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). |
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
Parameters:
src_data | |
src_step | source image data and step |
dst_data | |
dst_step | destination image data and step |
width | |
height | image size |
greenBits | number 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. |
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
Parameters:
src_data | |
src_step | source image data and step |
dst_data | |
dst_step | destination image data and step |
width | |
height | image size |
depth | image depth (one of CV_8U, CV_16U, CV_32F) |
scn | source image channels (3 or 4) |
dcn | destination image channels (3 or 4) |
swapBlue | if set to true B and R channels will be swapped (BGR->RGB or RGB->BGR) Convert between BGR, BGRA, RGB and RGBA image formats. |
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
Parameters:
src_data | |
src_step | source image data and step |
dst_data | |
dst_step | destination image data and step |
width | |
height | image size |
scn | source image channels (3 or 4) |
swapBlue | if set to true B and R source channels will be swapped (treat as RGB) |
greenBits | number 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). |
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
Parameters:
src_data | |
src_step | source image data and step |
dst_data | |
dst_step | destination image data and step |
width | |
height | image size |
depth | image depth (one of CV_8U, CV_16U or CV_32F) |
scn | source image channels (3 or 4) |
swapBlue | if 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. |
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
Parameters:
src_data | |
src_step | source image data and step |
dst_data | |
dst_step | destination image data and step |
width | |
height | image size |
depth | image depth (one of CV_8U or CV_32F) |
scn | source image channels (3 or 4) |
swapBlue | if set to true B and R source channels will be swapped (treat as RGB) |
isFullRange | if set to true write hue in range 0-255 (0-360 for float) otherwise in range 0-180 |
isHSV | if set to true write HSV otherwise HSL Convert from BGR, RGB, BGRA or RGBA to HSV or HSL. |
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
Parameters:
src_data | |
src_step | source image data and step |
dst_data | |
dst_step | destination image data and step |
width | |
height | image size |
depth | image depth (one of CV_8U or CV_32F) |
scn | source image channels (3 or 4) |
swapBlue | if set to true B and R source channels will be swapped (treat as RGB) |
isLab | if set to true write Lab otherwise Luv |
srgb | if set to true use sRGB gamma correction Convert from BGR, RGB, BGRA or RGBA to Lab or Luv. |
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
Parameters:
src_data | |
src_step | source image data and step |
dst_data | |
dst_step | destination image data and step |
width | |
height | image size |
scn | source image channels (3 or 4) |
swapBlue | if set to true B and R source channels will be swapped (treat as RGB) |
uIdx | U-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. |
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
Parameters:
src_data | |
src_step | source image data and step |
dst_data | |
dst_step | destination image data and step |
width | |
height | image size |
depth | image depth (one of CV_8U, CV_16U or CV_32F) |
scn | source image channels (3 or 4) |
swapBlue | if set to true B and R source channels will be swapped (treat as RGB) Convert from BGR, RGB, BGRA or RGBA to XYZ. |
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
Parameters:
src_data | |
src_step | source image data and step |
dst_data | |
dst_step | destination image data and step |
width | |
height | image size |
depth | image depth (one of CV_8U, CV_16U or CV_32F) |
scn | source image channels (3 or 4) |
swapBlue | if set to true B and R source channels will be swapped (treat as RGB) |
isCbCr | if set to true write output in YCbCr format Convert from BGR, RGB, BGRA or RGBA to YUV or YCbCr. |
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
Parameters:
src_data | |
src_step | source image data and step |
dst_data | |
dst_step | destination image data and step |
width | |
height | image size |
depth | image depth (one of CV_8U, CV_16U or CV_32F) |
dcn | destination image channels (3 or 4) Convert from 1-channel gray to BGR, RGB, RGBA or BGRA. |
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
Parameters:
src_data | |
src_step | source image data and step |
dst_data | |
dst_step | destination image data and step |
width | |
height | image size |
greenBits | number 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. |
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
Parameters:
src_data | |
src_step | source image data and step |
dst_data | |
dst_step | destination image data and step |
width | |
height | image size |
depth | image depth (one of CV_8U or CV_32F) |
dcn | destination image channels (3 or 4) |
swapBlue | if set to true B and R destination channels will be swapped (write RGB) |
isFullRange | if set to true read hue in range 0-255 (0-360 for float) otherwise in range 0-180 |
isHSV | if set to true treat source as HSV otherwise HSL Convert from HSV or HSL to BGR, RGB, BGRA or RGBA. |
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
Parameters:
src_data | |
src_step | source image data and step |
dst_data | |
dst_step | destination image data and step |
width | |
height | image size |
depth | image depth (one of CV_8U or CV_32F) |
dcn | destination image channels (3 or 4) |
swapBlue | if set to true B and R destination channels will be swapped (write RGB) |
isLab | if set to true treat input as Lab otherwise Luv |
srgb | if set to true use sRGB gamma correction Convert from Lab or Luv to BGR, RGB, BGRA or RGBA. |
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
Parameters:
src_data | |
src_step | source image data and step |
dst_data | |
dst_step | destination image data and step |
width | |
height | image size Convert from format with multiplied alpha channel to BGRA or RGBA. Only for CV_8U. |
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
Parameters:
src_data | |
src_step | source image data and step |
dst_data | |
dst_step | destination image data and step |
width | |
height | image size |
dcn | destination image channels (3 or 4) |
swapBlue | if set to true B and R destination channels will be swapped (write RGB) |
uIdx | U-channel index (0 or 1) |
ycn | Y-channel index (0 or 1) Convert from UYVY, YUY2 or YVYU to BGR, RGB, BGRA or RGBA. Only for CV_8U. |
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
Parameters:
src_data | |
src_step | source image data and step |
dst_data | |
dst_step | destination image data and step |
width | |
height | image size Convert from BGRA or RGBA to format with multiplied alpha channel. Only for CV_8U. |
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
Parameters:
src_data | |
src_step | source image data and step |
dst_data | |
dst_step | destination image data and step |
dst_width | |
dst_height | destination image size |
dcn | destination image channels (3 or 4) |
swapBlue | if set to true B and R destination channels will be swapped (write RGB) |
uIdx | U-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. |
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
Parameters:
src_data | |
src_step | source image data and step |
dst_data | |
dst_step | destination image data and step |
dst_width | |
dst_height | destination image size |
dcn | destination image channels (3 or 4) |
swapBlue | if set to true B and R destination channels will be swapped (write RGB) |
uIdx | U-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. |
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
Parameters:
src_data | |
src_step | source image data and step |
dst_data | |
dst_step | destination image data and step |
width | |
height | image size |
depth | image depth (one of CV_8U, CV_16U or CV_32F) |
dcn | destination image channels (3 or 4) |
swapBlue | if set to true B and R destination channels will be swapped (write RGB) Convert from XYZ to BGR, RGB, BGRA or RGBA. |
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
Parameters:
src_data | |
src_step | source image data and step |
dst_data | |
dst_step | destination image data and step |
width | |
height | image size |
depth | image depth (one of CV_8U, CV_16U or CV_32F) |
dcn | destination image channels (3 or 4) |
swapBlue | if set to true B and R destination channels will be swapped (write RGB) |
isCbCr | if set to true treat source as YCbCr Convert from YUV or YCbCr to BGR, RGB, BGRA or RGBA. |
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
Parameters:
context | pointer to user-defined context |
src_data | source image data |
src_step | source image step |
dst_data | destination image data |
dst_step | destination image step |
width | images width |
height | images height |
full_width | full width of source image (outside the ROI) |
full_height | full height of source image (outside the ROI) |
offset_x | source image ROI offset X |
offset_y | source image ROI offset Y |
See also:
cv::filter2D, cv::hal::Filter2D
int hal_ni_filterFree(cvhalFilter2D* context)
hal_filterFree
Parameters:
context | pointer to user-defined context |
See also:
cv::filter2D, cv::hal::Filter2D
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
Parameters:
context | double pointer to user-defined context |
kernel_data | pointer to kernel data |
kernel_step | kernel step |
kernel_type | kernel type (CV_8U, …) |
kernel_width | kernel width |
kernel_height | kernel height |
max_width | max possible image width, can be used to allocate working buffers |
max_height | max possible image height |
src_type | source image type |
dst_type | destination image type |
borderType | border processing mode (CV_HAL_BORDER_REFLECT, …) |
delta | added to pixel values |
anchor_x | relative X position of center point within the kernel |
anchor_y | relative Y position of center point within the kernel |
allowSubmatrix | indicates whether the submatrices will be allowed as source image |
allowInplace | indicates whether the inplace operation will be possible |
See also:
cv::filter2D, cv::hal::Filter2D
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.
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 ====== ====== ==========
Parameters:
depth | |
sdepth | |
sqdepth | Depths of source image, sum image and square sum image |
src_data | |
src_step | Source image |
sum_data | |
sum_step | Sum image |
sqsum_data | |
sqsum_step | Square sum image |
tilted_data | |
tilted_step | Tilted sum image |
width | |
height | Source image dimensions |
cn | Number of channels |
See also:
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
Parameters:
context | pointer to user-defined context |
src_data | source image data |
src_step | source image step |
dst_data | destination image data |
dst_step | destination image step |
width | images width |
height | images height |
src_full_width | full width of source image (outside the ROI) |
src_full_height | full height of source image (outside the ROI) |
src_roi_x | source image ROI X offset |
src_roi_y | source image ROI Y offset |
dst_full_width | full width of destination image |
dst_full_height | full height of destination image |
dst_roi_x | destination image ROI X offset |
dst_roi_y | destination image ROI Y offset |
See also:
cv::erode, cv::dilate, cv::morphologyEx, cv::hal::Morph
int hal_ni_morphFree(cvhalFilter2D* context)
hal_morphFree
Parameters:
context | pointer to user-defined context |
See also:
cv::erode, cv::dilate, cv::morphologyEx, cv::hal::Morph
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
Parameters:
context | double pointer to user-defined context |
operation | morphology operation CV_HAL_MORPH_ERODE or CV_HAL_MORPH_DILATE |
src_type | source image type |
dst_type | destination image type |
max_width | max possible image width, can be used to allocate working buffers |
max_height | max possible image height |
kernel_type | kernel type (CV_8U, …) |
kernel_data | pointer to kernel data |
kernel_step | kernel step |
kernel_width | kernel width |
kernel_height | kernel height |
anchor_x | relative X position of center point within the kernel |
anchor_y | relative Y position of center point within the kernel |
borderType | border processing mode (CV_HAL_BORDER_REFLECT, …) |
borderValue | values to use for CV_HAL_BORDER_CONSTANT mode |
iterations | number of iterations |
allowSubmatrix | indicates whether the submatrices will be allowed as source image |
allowInplace | indicates whether the inplace operation will be possible |
See also:
cv::erode, cv::dilate, cv::morphologyEx, cv::hal::Morph
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
Parameters:
src_type | source and destination image type |
src_data | source image data |
src_step | source image step |
src_width | source image width |
src_height | source image height |
dst_data | destination image data |
dst_step | destination image step |
dst_width | destination image width |
dst_height | destination image height |
inv_scale_x | inversed scale X coefficient |
inv_scale_y | inversed scale Y coefficient |
interpolation | interpolation mode (CV_HAL_INTER_NEAREST, …) |
See also:
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
Parameters:
context | pointer to user-defined context |
src_data | source image data |
src_step | source image step |
dst_data | destination image data |
dst_step | destination image step |
width | images width |
height | images height |
full_width | full width of source image (outside the ROI) |
full_height | full height of source image (outside the ROI) |
offset_x | source image ROI offset X |
offset_y | source image ROI offset Y |
See also:
cv::sepFilter2D, cv::hal::SepFilter2D
int hal_ni_sepFilterFree(cvhalFilter2D* context)
hal_sepFilterFree
Parameters:
context | pointer to user-defined context |
See also:
cv::sepFilter2D, cv::hal::SepFilter2D
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
Parameters:
context | double pointer to user-defined context |
src_type | source image type |
dst_type | destination image type |
kernel_type | kernels type |
kernelx_data | pointer to x-kernel data |
kernelx_length | x-kernel vector length |
kernely_data | pointer to y-kernel data |
kernely_length | y-kernel vector length |
anchor_x | relative X position of center point within the kernel |
anchor_y | relative Y position of center point within the kernel |
delta | added to pixel values |
borderType | border processing mode (CV_HAL_BORDER_REFLECT, …) |
See also:
cv::sepFilter2D, cv::hal::SepFilter2D
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
Parameters:
src_type | source and destination image type |
src_data | source image data |
src_step | source image step |
src_width | source image width |
src_height | source image height |
dst_data | destination image data |
dst_step | destination image step |
dst_width | destination image width |
dst_height | destination image height |
M | 2x3 matrix with transform coefficients |
interpolation | interpolation mode (CV_HAL_INTER_NEAREST, …) |
borderType | border processing mode (CV_HAL_BORDER_REFLECT, …) |
borderValue | values to use for CV_HAL_BORDER_CONSTANT mode |
See also:
cv::warpAffine, cv::hal::warpAffine
int hal_ni_warpPerspectve( 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_warpPerspectve
Parameters:
src_type | source and destination image type |
src_data | source image data |
src_step | source image step |
src_width | source image width |
src_height | source image height |
dst_data | destination image data |
dst_step | destination image step |
dst_width | destination image width |
dst_height | destination image height |
M | 3x3 matrix with transform coefficients |
interpolation | interpolation mode (CV_HAL_INTER_NEAREST, …) |
borderType | border processing mode (CV_HAL_BORDER_REFLECT, …) |
borderValue | values to use for CV_HAL_BORDER_CONSTANT mode |
See also:
cv::warpPerspective, cv::hal::warpPerspective