opencv数据格式转换

A.convertTo(A, CV_8UC1);

原文地址:https://www.cnblogs.com/happyamyhope/p/8989261.html