OpenCV  3.3.1
Open Source Computer Vision
Classes | Functions

Classes

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

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 More...
 
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 More...
 
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 More...
 
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 More...
 
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 More...
 
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 More...
 
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 More...
 
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 More...
 
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 More...
 
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 More...
 
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 More...
 
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 More...
 
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 More...
 
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 More...
 
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 More...
 
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 More...
 
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 More...
 
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 More...
 
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 More...
 
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 More...
 
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 More...
 
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 More...
 
int hal_ni_filterFree (cvhalFilter2D *context)
 hal_filterFree More...
 
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 More...
 
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. More...
 
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 More...
 
int hal_ni_morphFree (cvhalFilter2D *context)
 hal_morphFree More...
 
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 More...
 
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 More...
 
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 More...
 
int hal_ni_sepFilterFree (cvhalFilter2D *context)
 hal_sepFilterFree More...
 
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 More...
 
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 More...
 
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 More...
 

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
 

Morphology operations

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

Detailed Description

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

Macro Definition Documentation

§ 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_NEAREST

#define CV_HAL_INTER_NEAREST   0

§ CV_HAL_MORPH_DILATE

#define CV_HAL_MORPH_DILATE   1

§ CV_HAL_MORPH_ERODE

#define CV_HAL_MORPH_ERODE   0

Function Documentation

§ 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

hal_cvtBGR5x5toBGR

Parameters
src_data,src_stepsource image data and step
dst_data,dst_stepdestination image data and step
width,heightimage size
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

hal_cvtBGR5x5toGray

Parameters
src_data,src_stepsource image data and step
dst_data,dst_stepdestination image data and step
width,heightimage size
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

hal_cvtBGRtoBGR

Parameters
src_data,src_stepsource image data and step
dst_data,dst_stepdestination image data and step
width,heightimage size
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

hal_cvtBGRtoBGR5x5

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

hal_cvtBGRtoGray

Parameters
src_data,src_stepsource image data and step
dst_data,dst_stepdestination image data and step
width,heightimage size
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

hal_cvtBGRtoHSV

Parameters
src_data,src_stepsource image data and step
dst_data,dst_stepdestination image data and step
width,heightimage size
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

hal_cvtBGRtoLab

Parameters
src_data,src_stepsource image data and step
dst_data,dst_stepdestination image data and step
width,heightimage size
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

hal_cvtBGRtoThreePlaneYUV

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 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.

§ 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

hal_cvtBGRtoXYZ

Parameters
src_data,src_stepsource image data and step
dst_data,dst_stepdestination image data and step
width,heightimage size
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

hal_cvtBGRtoYUV

Parameters
src_data,src_stepsource image data and step
dst_data,dst_stepdestination image data and step
width,heightimage size
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

hal_cvtGraytoBGR

Parameters
src_data,src_stepsource image data and step
dst_data,dst_stepdestination image data and step
width,heightimage size
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

hal_cvtGraytoBGR5x5

Parameters
src_data,src_stepsource image data and step
dst_data,dst_stepdestination image data and step
width,heightimage size
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

hal_cvtHSVtoBGR

Parameters
src_data,src_stepsource image data and step
dst_data,dst_stepdestination image data and step
width,heightimage size
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

hal_cvtLabtoBGR

Parameters
src_data,src_stepsource image data and step
dst_data,dst_stepdestination image data and step
width,heightimage size
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

hal_cvtMultipliedRGBAtoRGBA

Parameters
src_data,src_stepsource image data and step
dst_data,dst_stepdestination image data and step
width,heightimage size Convert from format with multiplied alpha channel to BGRA or RGBA. Only for CV_8U.

§ 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

hal_cvtOnePlaneYUVtoBGR

Parameters
src_data,src_stepsource image data and step
dst_data,dst_stepdestination image data and step
width,heightimage size
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 UYVY, YUY2 or YVYU to BGR, RGB, BGRA or RGBA. Only for CV_8U.

§ 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

hal_cvtRGBAtoMultipliedRGBA

Parameters
src_data,src_stepsource image data and step
dst_data,dst_stepdestination image data and step
width,heightimage size 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

hal_cvtThreePlaneYUVtoBGR

Parameters
src_data,src_stepsource image data and step
dst_data,dst_stepdestination image data and step
dst_width,dst_heightdestination image size
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.

§ 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

hal_cvtTwoPlaneYUVtoBGR

Parameters
src_data,src_stepsource image data and step
dst_data,dst_stepdestination image data and step
dst_width,dst_heightdestination image size
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.

§ 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

hal_cvtXYZtoBGR

Parameters
src_data,src_stepsource image data and step
dst_data,dst_stepdestination image data and step
width,heightimage size
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

hal_cvtYUVtoBGR

Parameters
src_data,src_stepsource image data and step
dst_data,dst_stepdestination image data and step
width,heightimage size
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_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

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

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

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_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

Calculate integral image.

Parameters
depth,sdepth,sqdepthDepths of source image, sum image and square sum image
src_data,src_stepSource image
sum_data,sum_stepSum image
sqsum_data,sqsum_stepSquare sum image
tilted_data,tilted_stepTilted sum image
width,heightSource image dimensions
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_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

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

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

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_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

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_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

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

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

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_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

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_warpPerspectve()

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

hal_warpPerspectve

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