Compute Library
 21.02
GCFillBorder Class Reference

Basic function to run GCFillBorderKernel. More...

#include <GCFillBorder.h>

Collaboration diagram for GCFillBorder:
[legend]

Public Member Functions

void configure (IGCTensor *tensor, unsigned int border_width, BorderMode border_mode, const PixelValue &constant_border_value=PixelValue())
 Initialize the function. More...
 
- Public Member Functions inherited from IGCSimpleFunction
 IGCSimpleFunction (GCRuntimeContext *ctx=nullptr)
 Default Constructor. More...
 
 IGCSimpleFunction (const IGCSimpleFunction &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
 IGCSimpleFunction (IGCSimpleFunction &&)=default
 Default move constructor. More...
 
IGCSimpleFunctionoperator= (const IGCSimpleFunction &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
IGCSimpleFunctionoperator= (IGCSimpleFunction &&)=default
 Default move assignment operator. 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 GCFillBorderKernel.

Deprecated:
This function is deprecated and is intended to be removed in 21.05 release

Definition at line 41 of file GCFillBorder.h.

Member Function Documentation

◆ configure()

void configure ( IGCTensor tensor,
unsigned int  border_width,
BorderMode  border_mode,
const PixelValue constant_border_value = PixelValue() 
)

Initialize the function.

Parameters
[in,out]tensorSource tensor. Data types supported: F16/F32
[in]border_widthThe border width
[in]border_modeStrategy to use for borders.
[in]constant_border_value(Optional) Constant value to use for borders if border_mode is set to CONSTANT.

Definition at line 34 of file GCFillBorder.cpp.

35 {
36  auto k = std::make_unique<GCFillBorderKernel>();
37  k->configure(tensor, BorderSize(border_width), border_mode, constant_border_value);
38  _kernel = std::move(k);
39 }
Container for 2D border size.
Definition: Types.h:273

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