JeVoisBase  1.21
JeVois Smart Embedded Machine Vision Toolkit Base Modules
Share this page:
Loading...
Searching...
No Matches
env_c_math_ops.h File Reference
Include dependency graph for env_c_math_ops.h:
This graph shows which files directly or indirectly include this file:

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.
 
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.
 
void env_c_get_min_max (const intg32 *src, const env_size_t sz, intg32 *mini, intg32 *maxi)
 Get min and max values.
 
void env_c_inplace_rectify (intg32 *dst, const env_size_t sz)
 Saturate values < 0.
 
void env_c_inplace_normalize (intg32 *dst, const env_size_t sz, const intg32 nmin, const intg32 nmax, intg32 *actualmin, intg32 *actualmax, 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
 
void env_c_image_div_scalar (const intg32 *const a, const env_size_t sz, intg32 val, intg32 *const dst)
 result = a / val
 
void env_c_image_div_scalar_accum (const intg32 *const a, const env_size_t sz, intg32 val, intg32 *const dst)
 result += a / val
 
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
 

Detailed Description

Fixed-point integer math versions of some of our floating-point image functions

Definition in file env_c_math_ops.h.

Function Documentation

◆ env_c_get_min_max()

void env_c_get_min_max ( const intg32 src,
const env_size_t  sz,
intg32 mini,
intg32 maxi 
)

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

◆ env_c_image_div_scalar()

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

◆ env_c_image_div_scalar_accum()

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

◆ env_c_image_minus_image()

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

◆ env_c_inplace_normalize()

void env_c_inplace_normalize ( intg32 dst,
const env_size_t  sz,
const intg32  nmin,
const intg32  nmax,
intg32 actualmin,
intg32 actualmax,
intg32  rangeThresh 
)

◆ env_c_inplace_rectify()

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

◆ env_c_lowpass_5_x_dec_x_fewbits_optim()

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, and h.

Referenced by env_lowpass_5_x_dec_x().

◆ env_c_lowpass_5_y_dec_y_fewbits_optim()

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, and h.

Referenced by env_lowpass_5_y_dec_y().

◆ env_c_lowpass_9_x_fewbits_optim()

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, and h.

Referenced by env_lowpass_9_x().

◆ env_c_lowpass_9_y_fewbits_optim()

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, and h.

Referenced by env_lowpass_9_y().

◆ env_c_luminance_from_byte()

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