Compute Library
 20.08
ScaleKernelInfo Struct Reference

#include <KernelDescriptors.h>

Collaboration diagram for ScaleKernelInfo:
[legend]

Public Member Functions

 ScaleKernelInfo (InterpolationPolicy interpolation_policy, BorderMode border_mode, PixelValue constant_border_value=PixelValue(), SamplingPolicy sampling_policy=SamplingPolicy::CENTER, bool use_padding=true, bool align_corners=false)
 Constructor. More...
 

Data Fields

InterpolationPolicy interpolation_policy
 Interpolation type to use. More...
 
BorderMode border_mode
 Border mode policy. More...
 
PixelValue constant_border_value
 Constant value to use for constant border mode policy. More...
 
SamplingPolicy sampling_policy
 Sampling policy used by the interpolation. More...
 
bool use_padding
 Indication of using padding. More...
 
bool align_corners
 Align corners of input and output. More...
 

Detailed Description

Definition at line 173 of file KernelDescriptors.h.

Constructor & Destructor Documentation

◆ ScaleKernelInfo()

ScaleKernelInfo ( InterpolationPolicy  interpolation_policy,
BorderMode  border_mode,
PixelValue  constant_border_value = PixelValue(),
SamplingPolicy  sampling_policy = SamplingPolicy::CENTER,
bool  use_padding = true,
bool  align_corners = false 
)
inline

Constructor.

Parameters
[in]interpolation_policyInterpolation type to use
[in]border_modeBorder mode policy
[in]constant_border_value(Optional) Constant value to use for borders if border_mode is set to CONSTANT and use_padding is set to false. Defaults to default PixelValue
[in]sampling_policy(Optional) Sampling policy used by the interpolation. Defaults to SamplingPolicy::CENTER
[in]use_padding(Optional) Is padding in use or not. Defaults to true.
[in]align_corners(Optional) Align corners of input and output, only affecting bilinear policy with TOP_LEFT sampling policy. Defaults to false.

Definition at line 184 of file KernelDescriptors.h.

196  {
197  }
BorderMode border_mode
Border mode policy.
InterpolationPolicy interpolation_policy
Interpolation type to use.
bool align_corners
Align corners of input and output.
bool use_padding
Indication of using padding.
SamplingPolicy sampling_policy
Sampling policy used by the interpolation.
PixelValue constant_border_value
Constant value to use for constant border mode policy.

References ScaleKernelInfo::interpolation_policy.

Field Documentation

◆ align_corners

bool align_corners

Align corners of input and output.

Definition at line 204 of file KernelDescriptors.h.

◆ border_mode

BorderMode border_mode

Border mode policy.

Definition at line 200 of file KernelDescriptors.h.

◆ constant_border_value

PixelValue constant_border_value

Constant value to use for constant border mode policy.

Definition at line 201 of file KernelDescriptors.h.

◆ interpolation_policy

InterpolationPolicy interpolation_policy

Interpolation type to use.

Definition at line 199 of file KernelDescriptors.h.

Referenced by ScaleKernelInfo::ScaleKernelInfo().

◆ sampling_policy

SamplingPolicy sampling_policy

Sampling policy used by the interpolation.

Definition at line 202 of file KernelDescriptors.h.

◆ use_padding

bool use_padding

Indication of using padding.

Definition at line 203 of file KernelDescriptors.h.


The documentation for this struct was generated from the following file: