This class provides functions allowing to calculate a response for one pixel.
More...
#include <FrameFilterSobelMagnitude.h>
|
OCEAN_FORCE_INLINE void | maxMagnitudeResponse (const uint8_t *const source0, const uint8_t *const source1, const uint8_t *const source2, TTarget *const response) |
|
OCEAN_FORCE_INLINE void | maxMagnitudeResponse (const uint8_t *const source0, const uint8_t *const source1, const uint8_t *const source2, TTarget *const response) |
|
OCEAN_FORCE_INLINE void | maxMagnitudeResponse (const uint8_t *const source0, const uint8_t *const source1, const uint8_t *const source2, TTarget *const response) |
|
|
template<typename TTarget > |
static OCEAN_FORCE_INLINE TTarget | response0 (const uint8_t *const source0, const uint8_t *const source1, const uint8_t *const source2) |
| Determines the horizontal Sobel response for one channel.
|
|
template<typename TTarget > |
static OCEAN_FORCE_INLINE TTarget | response90 (const uint8_t *const source0, const uint8_t *const source1, const uint8_t *const source2) |
| Determines the vertical Sobel response for one channel.
|
|
template<typename TTarget > |
static OCEAN_FORCE_INLINE TTarget | response45 (const uint8_t *const source0, const uint8_t *const source1, const uint8_t *const source2) |
| Determines the diagonal Sobel response for one channel.
|
|
template<typename TTarget > |
static OCEAN_FORCE_INLINE TTarget | response135 (const uint8_t *const source0, const uint8_t *const source1, const uint8_t *const source2) |
| Determines the diagonal Sobel response for one channel.
|
|
template<typename TTarget , TTarget(*)(const uint8_t *const, const uint8_t *, const uint8_t *const) tResponseA, TTarget(*)(const uint8_t *const, const uint8_t *, const uint8_t *const) tResponseB> |
static OCEAN_FORCE_INLINE void | maxMagnitudeResponse (const uint8_t *const source0, const uint8_t *const source1, const uint8_t *const source2, TTarget *const responses) |
| Determines the maximal horizontal and vertical Sobel response across all channels.
|
|
template<unsigned int tChannels>
class Ocean::CV::FrameFilterSobelMagnitude::PixelResponse< tChannels >
This class provides functions allowing to calculate a response for one pixel.
- Template Parameters
-
tChannels | The number of frame channels, with range [1, infinity) |
◆ maxMagnitudeResponse() [1/4]
◆ maxMagnitudeResponse() [2/4]
◆ maxMagnitudeResponse() [3/4]
◆ maxMagnitudeResponse() [4/4]
template<unsigned int tChannels>
template<typename TTarget , TTarget(*)(const uint8_t *const, const uint8_t *, const uint8_t *const) tResponseA, TTarget(*)(const uint8_t *const, const uint8_t *, const uint8_t *const) tResponseB>
Determines the maximal horizontal and vertical Sobel response across all channels.
- Parameters
-
source0 | The top left location of the 3x3 box filter, must be valid |
source1 | The center left location of the 3x3 box filter, must be valid |
source2 | the bottom left location of the 3x3 box filter, must be valid |
responses | The maximal horizontal and vertical Sobel response across all channels based on the magnitude, normalized by 32 |
- Template Parameters
-
TTarget | The data type oft he target response frame, must be int8_t or int16_t |
TResponseA | |
TResponseB | |
◆ response0()
template<unsigned int tChannels>
template<typename TTarget >
Determines the horizontal Sobel response for one channel.
- Parameters
-
source0 | The top left location of the 3x3 box filter, must be valid |
source1 | The center left location of the 3x3 box filter, must be valid |
source2 | the bottom left location of the 3x3 box filter, must be valid |
- Returns
- The horizontal Sobel response, normalized by 32
- Template Parameters
-
TTarget | The data type oft he target response frame, must be int8_t or int16_t |
◆ response135()
template<unsigned int tChannels>
template<typename TTarget >
Determines the diagonal Sobel response for one channel.
- Parameters
-
source0 | The top left location of the 3x3 box filter, must be valid |
source1 | The center left location of the 3x3 box filter, must be valid |
source2 | the bottom left location of the 3x3 box filter, must be valid |
- Returns
- The vertical Sobel response, normalized by 32
- Template Parameters
-
TTarget | The data type oft he target response frame, must be int8_t or int16_t |
◆ response45()
template<unsigned int tChannels>
template<typename TTarget >
Determines the diagonal Sobel response for one channel.
- Parameters
-
source0 | The top left location of the 3x3 box filter, must be valid |
source1 | The center left location of the 3x3 box filter, must be valid |
source2 | the bottom left location of the 3x3 box filter, must be valid |
- Returns
- The horizontal Sobel response, normalized by 32
- Template Parameters
-
TTarget | The data type oft he target response frame, must be int8_t or int16_t |
tAngle | The angle of the filter, one of the following values {0, 45, 90, 135} |
◆ response90()
template<unsigned int tChannels>
template<typename TTarget >
Determines the vertical Sobel response for one channel.
- Parameters
-
source0 | The top left location of the 3x3 box filter, must be valid |
source1 | The center left location of the 3x3 box filter, must be valid |
source2 | the bottom left location of the 3x3 box filter, must be valid |
- Returns
- The vertical Sobel response, normalized by 32
- Template Parameters
-
TTarget | The data type oft he target response frame, must be int8_t or int16_t |
The documentation for this class was generated from the following file: