Class DvppDecodeResizeCropJpeg
Defined in File vision_ascend.h
Inheritance Relationships
Base Type
public mindspore::dataset::TensorTransform
(Class TensorTransform)
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.
- 参数
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.
样例/* 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
-
~DvppDecodeResizeCropJpeg() = default
Destructor.
-
DvppDecodeResizeCropJpeg(const std::vector<uint32_t> &crop, const std::vector<uint32_t> &resize)