Class RGB2BGR
Defined in File vision_lite.h
Inheritance Relationships
Base Type
public mindspore::dataset::TensorTransform
(Class TensorTransform)
Class Documentation
-
class RGB2BGR : public mindspore::dataset::TensorTransform
RGB2BGR TensorTransform.
Note
Convert the format of input image from RGB to BGR.
Public Functions
-
RGB2BGR() = default
Constructor.
- Example
/* Define operations */ auto decode_op = vision::Decode(); auto rgb2bgr_op = vision::RGB2BGR(); /* dataset is an instance of Dataset object */ dataset = dataset->Map({decode_op, rgb2bgr_op}, // operations {"image"}); // input columns
-
~RGB2BGR() = default
Destructor.
-
RGB2BGR() = default