Class SwapRedBlue

Inheritance Relationships

Base Type

Class Documentation

class SwapRedBlue : public mindspore::dataset::TensorTransform

Swap the red and blue channels of the input image.

Public Functions

SwapRedBlue()

Constructor.

Example
/* Define operations */
auto decode_op = vision::Decode();
auto swap_red_blue_op = vision::SwapRedBlue();

/* dataset is an instance of Dataset object */
dataset = dataset->Map({decode_op, swap_red_blue_op},  // operations
                       {"image"});                     // input columns

~SwapRedBlue() = default

Destructor.