21.02
|
Basic function to execute min and max location. More...
#include <CLMinMaxLocation.h>
Public Member Functions | |
CLMinMaxLocation () | |
Constructor. More... | |
CLMinMaxLocation (const CLMinMaxLocation &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLMinMaxLocation & | operator= (const CLMinMaxLocation &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLMinMaxLocation (CLMinMaxLocation &&)=default | |
Allow instances of this class to be moved. More... | |
CLMinMaxLocation & | operator= (CLMinMaxLocation &&)=default |
Allow instances of this class to be moved. More... | |
~CLMinMaxLocation () | |
Default destructor. More... | |
void | configure (const ICLImage *input, void *min, void *max, CLCoordinates2DArray *min_loc=nullptr, CLCoordinates2DArray *max_loc=nullptr, uint32_t *min_count=nullptr, uint32_t *max_count=nullptr) |
Initialise the kernel's inputs and outputs. More... | |
void | configure (const CLCompileContext &compile_context, const ICLImage *input, void *min, void *max, CLCoordinates2DArray *min_loc=nullptr, CLCoordinates2DArray *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 OpenCL kernels:
Definition at line 48 of file CLMinMaxLocation.h.
CLMinMaxLocation | ( | ) |
Constructor.
Definition at line 30 of file CLMinMaxLocation.cpp.
References CLMinMaxLocation::~CLMinMaxLocation().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Allow instances of this class to be moved.
|
default |
Default destructor.
Referenced by CLMinMaxLocation::CLMinMaxLocation().
void configure | ( | const ICLImage * | input, |
void * | min, | ||
void * | max, | ||
CLCoordinates2DArray * | min_loc = nullptr , |
||
CLCoordinates2DArray * | 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 Coordinates2D used to store minimum value locations. |
[out] | max_loc | (Optional) Array of Coordinates2D used to store maximum value locations. |
[out] | min_count | (Optional) Number of minimum value encounters. |
[out] | max_count | (Optional) Number of maximum value encounters. |
Definition at line 46 of file CLMinMaxLocation.cpp.
References CLKernelLibrary::get().
void configure | ( | const CLCompileContext & | compile_context, |
const ICLImage * | input, | ||
void * | min, | ||
void * | max, | ||
CLCoordinates2DArray * | min_loc = nullptr , |
||
CLCoordinates2DArray * | max_loc = nullptr , |
||
uint32_t * | min_count = nullptr , |
||
uint32_t * | max_count = nullptr |
||
) |
Initialise the kernel's inputs and outputs.
[in] | compile_context | The compile context to be used. |
[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 Coordinates2D used to store minimum value locations. |
[out] | max_loc | (Optional) Array of Coordinates2D used to store maximum value locations. |
[out] | min_count | (Optional) Number of minimum value encounters. |
[out] | max_count | (Optional) Number of maximum value encounters. |
Definition at line 51 of file CLMinMaxLocation.cpp.
References ARM_COMPUTE_ERROR_ON, and CLScheduler::get().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Allow instances of this class to be moved.
|
overridevirtual |
Run the kernels contained in the function.
For Neon kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 71 of file CLMinMaxLocation.cpp.
References CLScheduler::enqueue(), CLScheduler::get(), IArray< T >::max_num_values(), CLScheduler::queue(), and IArray< T >::resize().