GammaContrast Class Reference

GammaContrast Class Reference#

2 min read time

Applies to Linux

rocCV: roccv::GammaContrast Class Reference
roccv::GammaContrast Class Referencefinal

Class for managing the Gamma Contrast operator. More...

#include <op_gamma_contrast.hpp>

Inheritance diagram for roccv::GammaContrast:
roccv::IOperator

Public Member Functions

 GammaContrast ()
 Default constructor. More...
 
void operator() (hipStream_t stream, const roccv::Tensor &input, const roccv::Tensor &output, float gamma, eDeviceType device=eDeviceType::GPU)
 Executes the Gamma Contrast operation. The operation adjusts the gamma contrast on the input images. More...
 
 ~GammaContrast ()
 Destructor. More...
 
- Public Member Functions inherited from roccv::IOperator
virtual ~IOperator ()
 

Detailed Description

Class for managing the Gamma Contrast operator.

Constructor & Destructor Documentation

◆ GammaContrast()

roccv::GammaContrast::GammaContrast ( )
inline

Default constructor.

◆ ~GammaContrast()

roccv::GammaContrast::~GammaContrast ( )
inline

Destructor.

Member Function Documentation

◆ operator()()

void roccv::GammaContrast::operator() ( hipStream_t  stream,
const roccv::Tensor input,
const roccv::Tensor output,
float  gamma,
eDeviceType  device = eDeviceType::GPU 
)

Executes the Gamma Contrast operation. The operation adjusts the gamma contrast on the input images.

Limitations:

Input: Supported TensorLayout(s): [NHWC, HWC] Channels: [1, 3, 4] Supported DataType(s): [U8, U16, U32, F32]

Output: Supported TensorLayout(s): [NHWC, HWC] Channels: [1, 3, 4] Supported DataType(s): [U8, U16, U32, F32]

Input/Output dependency:

  Property      |  Input == Output
 -------------- | -------------
  TensorLayout  | Yes
  DataType      | Yes
  Channels      | Yes
  Width         | Yes
  Height        | Yes
  Batch         | Yes
Parameters
[in]streamThe HIP stream to run this operation on.
[in]inputThe input tensor.
[out]outputThe output tensor with gamma correction applied.
[in]gammaThe gamma value to be applied.
[in]deviceThe device type to execute on (CPU/GPU).

The documentation for this class was generated from the following file:
  • /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-roccv/checkouts/latest/include/op_gamma_contrast.hpp