JeVoisBase  1.3
JeVois Smart Embedded Machine Vision Toolkit Base Modules
Share this page:
env_c_math_ops.c File Reference
Include dependency graph for env_c_math_ops.c:

Go to the source code of this file.

Functions

void env_c_lowpass_5_x_dec_x_fewbits_optim (const intg32 *src, const env_size_t w, const env_size_t h, intg32 *dst, const env_size_t w2)
 
void env_c_lowpass_5_y_dec_y_fewbits_optim (const intg32 *src, const env_size_t w, const env_size_t h, intg32 *dst, const env_size_t h2)
 
void env_c_lowpass_9_x_fewbits_optim (const intg32 *src, const env_size_t w, const env_size_t h, intg32 *dst)
 Like env_c_lowpass_9_x_fewbits() but uses optimized filter coefficients. More...
 
void env_c_lowpass_9_y_fewbits_optim (const intg32 *src, const env_size_t w, const env_size_t h, intg32 *dst)
 Like env_c_lowpass_9_y_fewbits() but uses optimized filter coefficients. More...
 
void env_c_get_min_max (const intg32 *src, const env_size_t sz, intg32 *xmini, intg32 *xmaxi)
 Get min and max values. More...
 
void env_c_inplace_rectify (intg32 *dst, const env_size_t sz)
 Saturate values < 0. More...
 
void env_c_inplace_normalize (intg32 *const dst, const env_size_t sz, const intg32 nmin, const intg32 nmax, intg32 *const actualmin_p, intg32 *const actualmax_p, const intg32 rangeThresh)
 
void env_c_luminance_from_byte (const struct env_rgb_pixel *const src, const env_size_t sz, const env_size_t nbits, intg32 *const dst)
 get the luminance with nbits of precision of the input image More...
 
void env_c_image_div_scalar (const intg32 *const a, const env_size_t sz, intg32 val, intg32 *const dst)
 result = a / val More...
 
void env_c_image_div_scalar_accum (const intg32 *const a, const env_size_t sz, intg32 val, intg32 *const dst)
 result += a / val More...
 
void env_c_image_minus_image (const intg32 *const a, const intg32 *const b, const env_size_t sz, intg32 *const dst)
 result = a - b More...
 

Function Documentation

void env_c_get_min_max ( const intg32 src,
const env_size_t  sz,
intg32 xmini,
intg32 xmaxi 
)

Get min and max values.

Definition at line 277 of file env_c_math_ops.c.

References ENV_ASSERT.

Referenced by env_c_inplace_normalize().

void env_c_image_div_scalar ( const intg32 *const  a,
const env_size_t  sz,
intg32  val,
intg32 *const  dst 
)

result = a / val

Definition at line 390 of file env_c_math_ops.c.

Referenced by env_chan_orientation(), and env_motion_channel_input_and_consume_pyr().

void env_c_image_div_scalar_accum ( const intg32 *const  a,
const env_size_t  sz,
intg32  val,
intg32 *const  dst 
)

result += a / val

Definition at line 396 of file env_c_math_ops.c.

Referenced by env_chan_orientation(), env_chan_process_pyr(), and env_motion_channel_input_and_consume_pyr().

void env_c_image_minus_image ( const intg32 *const  a,
const intg32 *const  b,
const env_size_t  sz,
intg32 *const  dst 
)

result = a - b

Definition at line 402 of file env_c_math_ops.c.

Referenced by env_pyr_build_hipass_9().

void env_c_inplace_normalize ( intg32 *const  dst,
const env_size_t  sz,
const intg32  nmin,
const intg32  nmax,
intg32 *const  actualmin_p,
intg32 *const  actualmax_p,
const intg32  rangeThresh 
)
void env_c_inplace_rectify ( intg32 dst,
const env_size_t  sz 
)

Saturate values < 0.

Definition at line 289 of file env_c_math_ops.c.

Referenced by env_max_normalize_none_inplace(), and env_max_normalize_std_inplace().

void env_c_lowpass_5_x_dec_x_fewbits_optim ( const intg32 src,
const env_size_t  w,
const env_size_t  h,
intg32 dst,
const env_size_t  w2 
)

Definition at line 44 of file env_c_math_ops.c.

References ENV_ASSERT.

Referenced by env_lowpass_5_x_dec_x().

void env_c_lowpass_5_y_dec_y_fewbits_optim ( const intg32 src,
const env_size_t  w,
const env_size_t  h,
intg32 dst,
const env_size_t  h2 
)

Definition at line 81 of file env_c_math_ops.c.

References ENV_ASSERT.

Referenced by env_lowpass_5_y_dec_y().

void env_c_lowpass_9_x_fewbits_optim ( const intg32 src,
const env_size_t  w,
const env_size_t  h,
intg32 dst 
)

Like env_c_lowpass_9_x_fewbits() but uses optimized filter coefficients.

Definition at line 125 of file env_c_math_ops.c.

References ENV_ASSERT.

Referenced by env_lowpass_9_x().

void env_c_lowpass_9_y_fewbits_optim ( const intg32 src,
const env_size_t  w,
const env_size_t  h,
intg32 dst 
)

Like env_c_lowpass_9_y_fewbits() but uses optimized filter coefficients.

Definition at line 190 of file env_c_math_ops.c.

References ENV_ASSERT.

Referenced by env_lowpass_9_y().

void env_c_luminance_from_byte ( const struct env_rgb_pixel *const  src,
const env_size_t  sz,
const env_size_t  nbits,
intg32 *const  dst 
)

get the luminance with nbits of precision of the input image

Definition at line 375 of file env_c_math_ops.c.

Referenced by Saliency::process().