Class DvppDecodeResizeCropJpeg

Inheritance Relationships

Base Type

Class Documentation

class DvppDecodeResizeCropJpeg : public mindspore::dataset::TensorTransform

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

Public Functions

DvppDecodeResizeCropJpeg(const std::vector<uint32_t> &crop, const std::vector<uint32_t> &resize)

Constructor.

Example
/* Define operations */
auto dvpp_op = vision::DvppDecodeResizeCropJpeg({50, 50}, {100, 100});

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

Parameters
  • crop[in] Parameter vector of two integers for each dimension after final crop, with respect to H,W order.

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

~DvppDecodeResizeCropJpeg() = default

Destructor.