blace.ai
blace::ops::ToColorOp Class Reference

#include <public_ops.h>

Inheritance diagram for blace::ops::ToColorOp:

Public Member Functions

 ToColorOp (OpP input, ml_core::ColorFormatEnum color_format)
 
 ToColorOp (OpP input, ml_core::ColorFormatEnum color_format, ml_core::LAB_NORMS lab_norms)
 

Detailed Description

Converts a tensor from one color format into another.

Constructor & Destructor Documentation

◆ ToColorOp() [1/2]

blace::ops::ToColorOp::ToColorOp ( OpP  input,
ml_core::ColorFormatEnum  color_format 
)

Constructs an operator which converts a tensor from one color format into another.

Parameters
inputThe input node.
color_formatThe new color format.

◆ ToColorOp() [2/2]

blace::ops::ToColorOp::ToColorOp ( OpP  input,
ml_core::ColorFormatEnum  color_format,
ml_core::LAB_NORMS  lab_norms 
)

Constructs an operator which converts a tensor from one color format into another.

Parameters
inputThe input node.
color_formatThe new color format.
lab_normsLab norms.