Class RGB2BGR

Inheritance Relationships

Base Type

Class Documentation

class RGB2BGR : public mindspore::dataset::TensorTransform

RGB2BGR TensorTransform.

说明

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.