Function mindspore::dataset::GetRotationMatrix2D
- Defined in File image_process.h 
Function Documentation
- 
bool mindspore::dataset::GetRotationMatrix2D(float x, float y, double angle, double scale, LiteMat &M)
- Matrix rotation. - 参数
- x – [in] The value of the x-axis of the coordinate rotation point. 
- y – [in] The value of the y-axis of the coordinate rotation point. 
- angle – [in] Rotation angle. 
- scale – [in] Scaling ratio. 
- M – [in] Output transformation matrix. 
 
- 返回
- Return true if transform successfully. 样例
- /* Get Rotation matrix */ double angle = 60.0; double scale = 0.5; LiteMat M; GetRotationMatrix2D(1.0f, 2.0f, angle, scale, M); std::cout << M.width_ << " " << M.height_ << " " << M.channel_ << std::endl;