Function mindspore::dataset::Affine

Function Documentation

bool mindspore::dataset::Affine(LiteMat &src, LiteMat &out_img, const double M[6], std::vector<size_t> dsize, UINT8_C1 borderValue)

Apply affine transformation for 1 channel image.

Parameters
  • src[in] Input image data.

  • out_img[in] Output image data.

  • M[6][in] Affine transformation matrix.

  • dsize[in] The size of the output image.

  • borderValue[in] The pixel value is used for filing after the image is captured.