1 | initial version |
It should be:
cv::Mat mat = cv::imread(fileName, cv::IMREAD_GRAYSCALE);
mat.convertTo(mat,CV_32F);
std::vector<float> array((float*)mat.data, (float*)mat.data + mat.rows * mat.cols);
2 | No.2 Revision |
It should be:
cv::Mat mat = cv::imread(fileName, cv::IMREAD_GRAYSCALE);
mat.convertTo(mat,CV_32F);
std::vector<float> array((float*)mat.data, array**((float*)mat.data, (float*)mat.data + mat.rows * mat.cols);
mat.cols);**
3 | No.3 Revision |
It should be:
cv::Mat mat = cv::imread(fileName, cv::IMREAD_GRAYSCALE);
mat.convertTo(mat,CV_32F);
std::vector<float> array**((float*)mat.data, array((float*)mat.data, (float*)mat.data + mat.rows * mat.cols);**
mat.cols);