Function mindspore::dataset::Crop
Defined in File image_process.h
Function Documentation
-
bool mindspore::dataset::Crop(const LiteMat &src, LiteMat &dst, int x, int y, int w, int h)
crop image, the channel supports is 3 and 1.
- Parameters
src – [in] Input image data.
dst – [in] Output image data.
x – [in] The x coordinate value of the starting point of the screenshot.
y – [in] The y coordinate value of the starting point of the screenshot.
w – [in] The width of the screenshot.
h – [in] The height of the screenshot.