Function mindspore::dataset::Transpose
- Defined in File image_process.h 
Function Documentation
- 
bool mindspore::dataset::Transpose(const LiteMat &src, LiteMat &dst)
- Matrix transpose. - 参数
- src – [in] Input matrix. 
- dst – [in] Output matrix. 
 
- 返回
- Return true if transform successfully. 样例
- /* Assume p_rgb is a pointer that points to an image with shape (width, height, channel) */ LiteMat lite_mat_src(width, height, channel, (void *)p_rgb, LDataType::UINT8); LiteMat lite_mat_src2; ConvertTo(lite_mat_src, lite_mat_src2); LiteMat lite_mat_dst; /* Transpose image */ Transpose(lite_mat_src2, lite_mat_dst); std::cout << lite_mat_dst.width_ << " " << lite_mat_dst.height_ << " " << lite_mat_dst.channel_ << std::endl;