Compute Library
18.05
|
Basic function to calculate the gradient for HOG. More...
#include <NEHOGGradient.h>
Public Member Functions | |
NEHOGGradient (std::shared_ptr< IMemoryManager > memory_manager=nullptr) | |
Default constructor. More... | |
void | configure (ITensor *input, ITensor *output_magnitude, ITensor *output_phase, PhaseType phase_type, BorderMode border_mode, uint8_t constant_border_value=0) |
Initialise the function's source, destinations, phase type and border mode. More... | |
void | run () override |
Run the kernels contained in the function. More... | |
Public Member Functions inherited from IFunction | |
virtual | ~IFunction ()=default |
Destructor. More... | |
virtual void | prepare () |
Prepare the function for executing. More... | |
Basic function to calculate the gradient for HOG.
This function calls the following NEON kernels:
Definition at line 47 of file NEHOGGradient.h.
NEHOGGradient | ( | std::shared_ptr< IMemoryManager > | memory_manager = nullptr | ) |
Default constructor.
void configure | ( | ITensor * | input, |
ITensor * | output_magnitude, | ||
ITensor * | output_phase, | ||
PhaseType | phase_type, | ||
BorderMode | border_mode, | ||
uint8_t | constant_border_value = 0 |
||
) |
Initialise the function's source, destinations, phase type and border mode.
[in,out] | input | Input tensor. Data type supported: U8. (Written to only for border_mode != UNDEFINED) |
[out] | output_magnitude | Output tensor (magnitude). Data type supported: U16. |
[out] | output_phase | Output tensor.(phase). Format supported: U8 |
[in] | phase_type | Type of PhaseType |
[in] | border_mode | Border mode to use |
[in] | constant_border_value | (Optional) Constant value to use for borders if border_mode is set to CONSTANT. |
|
overridevirtual |
Run the kernels contained in the function.
For NEON kernels:
For OpenCL kernels:
Implements IFunction.