OpenCV 4.10.0-dev
Open Source Computer Vision
Loading...
Searching...
No Matches
Element-wise add and subtract

Detailed Description

Add: dst[i] = src1[i] + src2[i]
Sub: dst[i] = src1[i] - src2[i]

Parameters
src1_datafirst source image data
src1_stepfirst source image step
src2_datasecond source image data
src2_stepsecond source image step
dst_datadestination image data
dst_stepdestination image step
widthwidth of the images
heightheight of the images

Functions

int hal_ni_add16s (const short *src1_data, size_t src1_step, const short *src2_data, size_t src2_step, short *dst_data, size_t dst_step, int width, int height)
 
int hal_ni_add16u (const ushort *src1_data, size_t src1_step, const ushort *src2_data, size_t src2_step, ushort *dst_data, size_t dst_step, int width, int height)
 
int hal_ni_add32f (const float *src1_data, size_t src1_step, const float *src2_data, size_t src2_step, float *dst_data, size_t dst_step, int width, int height)
 
int hal_ni_add32s (const int *src1_data, size_t src1_step, const int *src2_data, size_t src2_step, int *dst_data, size_t dst_step, int width, int height)
 
int hal_ni_add64f (const double *src1_data, size_t src1_step, const double *src2_data, size_t src2_step, double *dst_data, size_t dst_step, int width, int height)
 
int hal_ni_add8s (const schar *src1_data, size_t src1_step, const schar *src2_data, size_t src2_step, schar *dst_data, size_t dst_step, int width, int height)
 
int hal_ni_add8u (const uchar *src1_data, size_t src1_step, const uchar *src2_data, size_t src2_step, uchar *dst_data, size_t dst_step, int width, int height)
 
int hal_ni_addScalar16s16s (const int16_t *src_data, size_t src_step, int16_t *dst_data, size_t dst_step, int width, int height, const int16_t *scalar_data, int nChannels)
 
int hal_ni_addScalar32f32f (const float *src_data, size_t src_step, float *dst_data, size_t dst_step, int width, int height, const float *scalar_data, int nChannels)
 
int hal_ni_sub16s (const short *src1_data, size_t src1_step, const short *src2_data, size_t src2_step, short *dst_data, size_t dst_step, int width, int height)
 
int hal_ni_sub16u (const ushort *src1_data, size_t src1_step, const ushort *src2_data, size_t src2_step, ushort *dst_data, size_t dst_step, int width, int height)
 
int hal_ni_sub32f (const float *src1_data, size_t src1_step, const float *src2_data, size_t src2_step, float *dst_data, size_t dst_step, int width, int height)
 
int hal_ni_sub32s (const int *src1_data, size_t src1_step, const int *src2_data, size_t src2_step, int *dst_data, size_t dst_step, int width, int height)
 
int hal_ni_sub64f (const double *src1_data, size_t src1_step, const double *src2_data, size_t src2_step, double *dst_data, size_t dst_step, int width, int height)
 
int hal_ni_sub8s (const schar *src1_data, size_t src1_step, const schar *src2_data, size_t src2_step, schar *dst_data, size_t dst_step, int width, int height)
 
int hal_ni_sub8s32f (const schar *src1_data, size_t src1_step, const schar *src2_data, size_t src2_step, float *dst_data, size_t dst_step, int width, int height)
 
int hal_ni_sub8u (const uchar *src1_data, size_t src1_step, const uchar *src2_data, size_t src2_step, uchar *dst_data, size_t dst_step, int width, int height)
 
int hal_ni_sub8u32f (const uchar *src1_data, size_t src1_step, const uchar *src2_data, size_t src2_step, float *dst_data, size_t dst_step, int width, int height)
 

Function Documentation

◆ hal_ni_add16s()

int hal_ni_add16s ( const short * src1_data,
size_t src1_step,
const short * src2_data,
size_t src2_step,
short * dst_data,
size_t dst_step,
int width,
int height )
inline

◆ hal_ni_add16u()

int hal_ni_add16u ( const ushort * src1_data,
size_t src1_step,
const ushort * src2_data,
size_t src2_step,
ushort * dst_data,
size_t dst_step,
int width,
int height )
inline

◆ hal_ni_add32f()

int hal_ni_add32f ( const float * src1_data,
size_t src1_step,
const float * src2_data,
size_t src2_step,
float * dst_data,
size_t dst_step,
int width,
int height )
inline

◆ hal_ni_add32s()

int hal_ni_add32s ( const int * src1_data,
size_t src1_step,
const int * src2_data,
size_t src2_step,
int * dst_data,
size_t dst_step,
int width,
int height )
inline

◆ hal_ni_add64f()

int hal_ni_add64f ( const double * src1_data,
size_t src1_step,
const double * src2_data,
size_t src2_step,
double * dst_data,
size_t dst_step,
int width,
int height )
inline

◆ hal_ni_add8s()

int hal_ni_add8s ( const schar * src1_data,
size_t src1_step,
const schar * src2_data,
size_t src2_step,
schar * dst_data,
size_t dst_step,
int width,
int height )
inline

◆ hal_ni_add8u()

int hal_ni_add8u ( const uchar * src1_data,
size_t src1_step,
const uchar * src2_data,
size_t src2_step,
uchar * dst_data,
size_t dst_step,
int width,
int height )
inline

◆ hal_ni_addScalar16s16s()

int hal_ni_addScalar16s16s ( const int16_t * src_data,
size_t src_step,
int16_t * dst_data,
size_t dst_step,
int width,
int height,
const int16_t * scalar_data,
int nChannels )
inline

◆ hal_ni_addScalar32f32f()

int hal_ni_addScalar32f32f ( const float * src_data,
size_t src_step,
float * dst_data,
size_t dst_step,
int width,
int height,
const float * scalar_data,
int nChannels )
inline

#include <core/src/hal_replacement.hpp>

Add scalar: _dst[i] = src[i] + scalar

Parameters
src_datasource image data
src_stepsource image step
dst_datadestination image data
dst_stepdestination image step
widthwidth of the images
heightheight of the images
scalar_datapointer to scalar value
nChannelsnumber of channels per element

◆ hal_ni_sub16s()

int hal_ni_sub16s ( const short * src1_data,
size_t src1_step,
const short * src2_data,
size_t src2_step,
short * dst_data,
size_t dst_step,
int width,
int height )
inline

◆ hal_ni_sub16u()

int hal_ni_sub16u ( const ushort * src1_data,
size_t src1_step,
const ushort * src2_data,
size_t src2_step,
ushort * dst_data,
size_t dst_step,
int width,
int height )
inline

◆ hal_ni_sub32f()

int hal_ni_sub32f ( const float * src1_data,
size_t src1_step,
const float * src2_data,
size_t src2_step,
float * dst_data,
size_t dst_step,
int width,
int height )
inline

◆ hal_ni_sub32s()

int hal_ni_sub32s ( const int * src1_data,
size_t src1_step,
const int * src2_data,
size_t src2_step,
int * dst_data,
size_t dst_step,
int width,
int height )
inline

◆ hal_ni_sub64f()

int hal_ni_sub64f ( const double * src1_data,
size_t src1_step,
const double * src2_data,
size_t src2_step,
double * dst_data,
size_t dst_step,
int width,
int height )
inline

◆ hal_ni_sub8s()

int hal_ni_sub8s ( const schar * src1_data,
size_t src1_step,
const schar * src2_data,
size_t src2_step,
schar * dst_data,
size_t dst_step,
int width,
int height )
inline

◆ hal_ni_sub8s32f()

int hal_ni_sub8s32f ( const schar * src1_data,
size_t src1_step,
const schar * src2_data,
size_t src2_step,
float * dst_data,
size_t dst_step,
int width,
int height )
inline

◆ hal_ni_sub8u()

int hal_ni_sub8u ( const uchar * src1_data,
size_t src1_step,
const uchar * src2_data,
size_t src2_step,
uchar * dst_data,
size_t dst_step,
int width,
int height )
inline

◆ hal_ni_sub8u32f()

int hal_ni_sub8u32f ( const uchar * src1_data,
size_t src1_step,
const uchar * src2_data,
size_t src2_step,
float * dst_data,
size_t dst_step,
int width,
int height )
inline