GammaContrast Class Reference#
2 min read time
Applies to Linux
roccv::GammaContrast Class Referencefinal
Class for managing the Gamma Contrast operator. More...
#include <op_gamma_contrast.hpp>
Inheritance diagram for roccv::GammaContrast:

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... | |
![]() | |
virtual | ~IOperator () |
Detailed Description
Class for managing the Gamma Contrast operator.
Constructor & Destructor Documentation
◆ GammaContrast()
|
inline |
Default constructor.
◆ ~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] stream The HIP stream to run this operation on. [in] input The input tensor. [out] output The output tensor with gamma correction applied. [in] gamma The gamma value to be applied. [in] device The 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