Class DvppDecodeResizeJpeg
Defined in File vision_ascend.h
Inheritance Relationships
Base Type
public mindspore::dataset::TensorTransform
(Class TensorTransform)
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.
- 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
- 参数
resize – [in] Parameter vector of two integers for each dimension, with respect to H,W order.
-
~DvppDecodeResizeJpeg() = default
Destructor.
-
explicit DvppDecodeResizeJpeg(const std::vector<uint32_t> &resize)