Function mindspore::dataset::Pad

Function Documentation

bool mindspore::dataset::Pad(const LiteMat &src, LiteMat &dst, int top, int bottom, int left, int right, PaddBorderType pad_type, uint8_t fill_b_or_gray = 0, uint8_t fill_g = 0, uint8_t fill_r = 0)

padd image, the channel supports is 3 and 1.

Parameters
  • src[in] Input image data.

  • dst[in] Output image data.

  • top[in] The length of top.

  • bottom[in] The length of bottom.

  • left[in] The length of left.

  • right[in] he length of right.

  • pad_type[in] The type of pad.

  • fill_b_or_gray[in] B or GRAY.

  • fill_g[in] G.

  • fill_r[in] R.