Class Invert

Inheritance Relationships

Base Type

Class Documentation

class Invert : public mindspore::dataset::TensorTransform

Apply invert on the input image in RGB mode.

Public Functions

Invert()

Constructor.

Example
/* dataset is an instance of Dataset object */
dataset = dataset->Map({std::make_shared<vision::Decode>(),
                        std::make_shared<vision::Invert>()}, // operations
                       {"image"});                           // input columns

~Invert() = default

Destructor.