Class Decode
Defined in File vision_lite.h
Inheritance Relationships
Base Type
public mindspore::dataset::TensorTransform
(Class TensorTransform)
Class Documentation
-
class Decode : public mindspore::dataset::TensorTransform
Decode the input image in RGB mode.
Public Functions
-
explicit Decode(bool rgb = true)
Constructor.
- Example
/* Define operations */ auto decode_op = vision::Decode(); /* dataset is an instance of Dataset object */ dataset = dataset->Map({decode_op}, // operations {"image"}); // input columns
- 参数
rgb – [in] A boolean indicating whether to decode the image in RGB mode or not.
-
~Decode() = default
Destructor.
-
explicit Decode(bool rgb = true)