Compute Library
 19.08
CLChannelExtract Class Reference

Basic function to run CLChannelExtractKernel to perform channel extraction. More...

#include <CLChannelExtract.h>

Collaboration diagram for CLChannelExtract:
[legend]

Public Member Functions

void configure (const ICLTensor *input, Channel channel, ICLTensor *output)
 Initialize the function's source, destination. More...
 
void configure (const ICLMultiImage *input, Channel channel, ICLImage *output)
 Initialize the function's source, destination. More...
 
- Public Member Functions inherited from ICLSimpleFunction
 ICLSimpleFunction ()
 Default constructor. More...
 
void run () override final
 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...
 

Detailed Description

Basic function to run CLChannelExtractKernel to perform channel extraction.

Definition at line 37 of file CLChannelExtract.h.

Member Function Documentation

◆ configure() [1/2]

void configure ( const ICLTensor input,
Channel  channel,
ICLTensor output 
)

Initialize the function's source, destination.

Parameters
[in]inputThe input tensor to extract the channel from. Formats supported: RGB888/RGBA8888/YUYV422/UYVY422
[in]channelThe channel to extract.
[out]outputThe extracted channel. Must be of U8 format.

Definition at line 33 of file CLChannelExtract.cpp.

34 {
35  auto k = arm_compute::support::cpp14::make_unique<CLChannelExtractKernel>();
36  k->configure(input, channel, output);
37  _kernel = std::move(k);
38 }

◆ configure() [2/2]

void configure ( const ICLMultiImage input,
Channel  channel,
ICLImage output 
)

Initialize the function's source, destination.

Parameters
[in]inputThe multi-planar input image to extract channel from. Formats supported: NV12/NV21/IYUV/YUV444
[in]channelThe channel to extract.
[out]outputThe extracted 2D channel. Must be of U8 format.

Definition at line 40 of file CLChannelExtract.cpp.

41 {
42  auto k = arm_compute::support::cpp14::make_unique<CLChannelExtractKernel>();
43  k->configure(input, channel, output);
44  _kernel = std::move(k);
45 }

The documentation for this class was generated from the following files: