Simd Library Documentation.

Home | Release Notes | Download | Documentation | Forum | SourceForge | GitHub
Interference Detection

Functions for detection of interference in motion detection algorithm. More...

Functions

SIMD_API void SimdInterferenceIncrement (uint8_t *statistic, size_t stride, size_t width, size_t height, uint8_t increment, int16_t saturation)
 Increments statistic of interference detector. More...
 
SIMD_API void SimdInterferenceIncrementMasked (uint8_t *statistic, size_t statisticStride, size_t width, size_t height, uint8_t increment, int16_t saturation, const uint8_t *mask, size_t maskStride, uint8_t index)
 Increments statistic of interference detector with using segmentation mask. More...
 
SIMD_API void SimdInterferenceDecrement (uint8_t *statistic, size_t stride, size_t width, size_t height, uint8_t decrement, int16_t saturation)
 Decrements statistic of interference detector. More...
 
SIMD_API void SimdInterferenceDecrementMasked (uint8_t *statistic, size_t statisticStride, size_t width, size_t height, uint8_t decrement, int16_t saturation, const uint8_t *mask, size_t maskStride, uint8_t index)
 Decrements statistic of interference detector with using segmentation mask. More...
 
template<template< class > class A>
SIMD_INLINE void InterferenceIncrement (View< A > &dst, uint8_t increment, int16_t saturation)
 Increments statistic of interference detector. More...
 
template<template< class > class A>
SIMD_INLINE void InterferenceIncrementMasked (View< A > &dst, uint8_t increment, int16_t saturation, const View< A > &mask, uint8_t index)
 Increments statistic of interference detector with using segmentation mask. More...
 
template<template< class > class A>
SIMD_INLINE void InterferenceDecrement (View< A > &dst, uint8_t decrement, int16_t saturation)
 Decrements statistic of interference detector. More...
 
template<template< class > class A>
SIMD_INLINE void InterferenceDecrementMasked (View< A > &dst, uint8_t decrement, int16_t saturation, const View< A > &mask, uint8_t index)
 Decrements statistic of interference detector with using segmentation mask. More...
 

Detailed Description

Functions for detection of interference in motion detection algorithm.

Function Documentation

void SimdInterferenceIncrement ( uint8_t *  statistic,
size_t  stride,
size_t  width,
size_t  height,
uint8_t  increment,
int16_t  saturation 
)

Increments statistic of interference detector.

For every point:

statistic[i] = min(statistic[i] + increment, saturation); 

This function is used for interference detection in motion detection algorithm.

Note
This function has a C++ wrappers: Simd::InterferenceIncrement(View<A> & dst, uint8_t increment, int16_t saturation).
Parameters
[in,out]statistic- a pointer to pixels data of 16-bit signed integer image with statistic.
[in]stride- a row size of statistic image.
[in]width- an image width.
[in]height- an image height.
[in]increment- an increment of statistic.
[in]saturation- an upper saturation of statistic.
void SimdInterferenceIncrementMasked ( uint8_t *  statistic,
size_t  statisticStride,
size_t  width,
size_t  height,
uint8_t  increment,
int16_t  saturation,
const uint8_t *  mask,
size_t  maskStride,
uint8_t  index 
)

Increments statistic of interference detector with using segmentation mask.

For every point:

if(mask[i] == index)
    statistic[i] = min(statistic[i] + increment, saturation); 

All images must have the same width, height. This function is used for interference detection in motion detection algorithm.

Note
This function has a C++ wrappers: Simd::InterferenceIncrementMasked(View<A> & dst, uint8_t increment, int16_t saturation, const View<A>& mask, uint8_t index).
Parameters
[in,out]statistic- a pointer to pixels data of 16-bit signed integer image with statistic.
[in]statisticStride- a row size of statistic image.
[in]width- an image width.
[in]height- an image height.
[in]increment- an increment of statistic.
[in]saturation- an upper saturation of statistic.
[in]mask- a pointer to pixels data of 8-bit gray image with mask.
[in]maskStride- a row size of mask image.
[in]index- an index of mask.
void SimdInterferenceDecrement ( uint8_t *  statistic,
size_t  stride,
size_t  width,
size_t  height,
uint8_t  decrement,
int16_t  saturation 
)

Decrements statistic of interference detector.

For every point:

statistic[i] = max(statistic[i] - decrement, saturation); 

This function is used for interference detection in motion detection algorithm.

Note
This function has a C++ wrappers: Simd::InterferenceDecrement(View<A> & dst, uint8_t decrement, int16_t saturation).
Parameters
[in,out]statistic- a pointer to pixels data of 16-bit signed integer image with statistic.
[in]stride- a row size of statistic image.
[in]width- an image width.
[in]height- an image height.
[in]decrement- a decrement of statistic.
[in]saturation- a lower saturation of statistic.
void SimdInterferenceDecrementMasked ( uint8_t *  statistic,
size_t  statisticStride,
size_t  width,
size_t  height,
uint8_t  decrement,
int16_t  saturation,
const uint8_t *  mask,
size_t  maskStride,
uint8_t  index 
)

Decrements statistic of interference detector with using segmentation mask.

For every point:

if(mask[i] == index)
    statistic[i] = max(statistic[i] - decrement, saturation); 

All images must have the same width, height. This function is used for interference detection in motion detection algorithm.

Note
This function has a C++ wrappers: Simd::InterferenceDecrementMasked(View<A> & dst, uint8_t decrement, int16_t saturation, const View<A>& mask, uint8_t index).
Parameters
[in,out]statistic- a pointer to pixels data of 16-bit signed integer image with statistic.
[in]statisticStride- a row size of statistic image.
[in]width- an image width.
[in]height- an image height.
[in]decrement- a decrement of statistic.
[in]saturation- a lower saturation of statistic.
[in]mask- a pointer to pixels data of 8-bit gray image with mask.
[in]maskStride- a row size of mask image.
[in]index- an index of mask.
void InterferenceIncrement ( View< A > &  dst,
uint8_t  increment,
int16_t  saturation 
)

Increments statistic of interference detector.

For every point:

statistic[i] = min(statistic[i] + increment, saturation); 

This function is used for interference detection in motion detection algorithm.

Note
This function is a C++ wrapper for function SimdInterferenceIncrement.
Parameters
[in,out]dst- a 16-bit signed integer image with statistic.
[in]increment- an increment of statistic.
[in]saturation- an upper saturation of statistic.
void InterferenceIncrementMasked ( View< A > &  dst,
uint8_t  increment,
int16_t  saturation,
const View< A > &  mask,
uint8_t  index 
)

Increments statistic of interference detector with using segmentation mask.

For every point:

if(mask[i] == index)
    statistic[i] = min(statistic[i] + increment, saturation); 

All images must have the same width, height. This function is used for interference detection in motion detection algorithm.

Note
This function is a C++ wrapper for function SimdInterferenceIncrementMasked.
Parameters
[in,out]dst- a 16-bit signed integer image with statistic.
[in]increment- an increment of statistic.
[in]saturation- an upper saturation of statistic.
[in]mask- a 8-bit gray image with mask.
[in]index- an index of mask.
void InterferenceDecrement ( View< A > &  dst,
uint8_t  decrement,
int16_t  saturation 
)

Decrements statistic of interference detector.

For every point:

statistic[i] = max(statistic[i] - decrement, saturation); 

This function is used for interference detection in motion detection algorithm.

Note
This function is a C++ wrapper for function SimdInterferenceDecrement.
Parameters
[in,out]dst- a 16-bit signed integer image with statistic.
[in]decrement- a decrement of statistic.
[in]saturation- a lower saturation of statistic.
void InterferenceDecrementMasked ( View< A > &  dst,
uint8_t  decrement,
int16_t  saturation,
const View< A > &  mask,
uint8_t  index 
)

Decrements statistic of interference detector with using segmentation mask.

For every point:

if(mask[i] == index)
    statistic[i] = max(statistic[i] - decrement, saturation); 

All images must have the same width, height. This function is used for interference detection in motion detection algorithm.

Note
This function is a C++ wrapper for function SimdInterferenceDecrementMasked.
Parameters
[in,out]dst- a 16-bit signed integer image with statistic.
[in]decrement- a decrement of statistic.
[in]saturation- a lower saturation of statistic.
[in]mask- a 8-bit gray image with mask.
[in]index- an index of mask.