Class DvppDecodeResizeJpeg

Inheritance Relationships

Base Type

Class Documentation

class DvppDecodeResizeJpeg : public mindspore::dataset::TensorTransform

Decode and resize JPEG image using the hardware algorithm of Ascend series chip DVPP module.

Public Functions

explicit DvppDecodeResizeJpeg(const std::vector<uint32_t> &resize)

Constructor.

Parameters

resize[in] Parameter vector of two integers for each dimension, with respect to H,W order.

Example
/* Define operations */
auto dvpp_op = vision::DvppDecodeResizeJpeg({255, 255});

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

Destructor.