21.02
|
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... | |
NEHOGGradient (const NEHOGGradient &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEHOGGradient & | operator= (const NEHOGGradient &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEHOGGradient (NEHOGGradient &&)=delete | |
Prevent instances of this class from being moved (As this class contains non movable objects) More... | |
NEHOGGradient & | operator= (NEHOGGradient &&)=delete |
Prevent instances of this class from being moved (As this class contains non movable objects) More... | |
~NEHOGGradient () | |
Default destructor. 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 50 of file NEHOGGradient.h.
NEHOGGradient | ( | std::shared_ptr< IMemoryManager > | memory_manager = nullptr | ) |
Default constructor.
Definition at line 36 of file NEHOGGradient.cpp.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
delete |
Prevent instances of this class from being moved (As this class contains non movable objects)
|
default |
Default destructor.
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. |
Definition at line 45 of file NEHOGGradient.cpp.
References TensorAllocator::allocate(), Tensor::allocator(), ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN, NEDerivative::configure(), ITensor::info(), arm_compute::test::validation::info, TensorAllocator::init(), MemoryGroup::manage(), arm_compute::S16, ITensorInfo::tensor_shape(), arm_compute::U8, and arm_compute::UNSIGNED.
Referenced by NEHOGDescriptor::configure(), and NEHOGMultiDetection::configure().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
delete |
Prevent instances of this class from being moved (As this class contains non movable objects)
|
overridevirtual |
Run the kernels contained in the function.
For Neon kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 84 of file NEHOGGradient.cpp.
References Window::DimY, Scheduler::get(), NEDerivative::run(), and IScheduler::schedule().
Referenced by NEHOGDescriptor::run(), and NEHOGMultiDetection::run().