Compute Library
18.05
|
Basic function to execute min and max location. More...
#include <NEMinMaxLocation.h>
Public Member Functions | |
NEMinMaxLocation () | |
Constructor. More... | |
void | configure (const IImage *input, void *min, void *max, ICoordinates2DArray *min_loc=nullptr, ICoordinates2DArray *max_loc=nullptr, uint32_t *min_count=nullptr, uint32_t *max_count=nullptr) |
Initialise the kernel's inputs and outputs. 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 execute min and max location.
This function calls the following NEON kernels:
Definition at line 44 of file NEMinMaxLocation.h.
NEMinMaxLocation | ( | ) |
Constructor.
void configure | ( | const IImage * | input, |
void * | min, | ||
void * | max, | ||
ICoordinates2DArray * | min_loc = nullptr , |
||
ICoordinates2DArray * | max_loc = nullptr , |
||
uint32_t * | min_count = nullptr , |
||
uint32_t * | max_count = nullptr |
||
) |
Initialise the kernel's inputs and outputs.
[in] | input | Input image. Data types supported: U8/S16/F32. |
[out] | min | Minimum value of image. Data types supported: S32 if input type is U8/S16, F32 if input type is F32. |
[out] | max | Maximum value of image. Data types supported: S32 if input type is U8/S16, F32 if input type is F32. |
[out] | min_loc | (Optional) Array of minimum value locations. |
[out] | max_loc | (Optional) Array of maximum value locations. |
[out] | min_count | (Optional) Number of minimum value encounters. |
[out] | max_count | (Optional) Number of maximum value encounters. |
|
overridevirtual |
Run the kernels contained in the function.
For NEON kernels:
For OpenCL kernels:
Implements IFunction.