|
|
@ -50,8 +50,8 @@ static void colorizeSegmentation(const Mat &score, const vector<cv::Vec3b> &colo |
|
|
|
const int cols = score.size[3]; |
|
|
|
const int cols = score.size[3]; |
|
|
|
const int chns = score.size[1]; |
|
|
|
const int chns = score.size[1]; |
|
|
|
|
|
|
|
|
|
|
|
cv::Mat maxCl(rows, cols, CV_8UC1); |
|
|
|
cv::Mat maxCl=cv::Mat::zeros(rows, cols, CV_8UC1); |
|
|
|
cv::Mat maxVal(rows, cols, CV_32FC1); |
|
|
|
cv::Mat maxVal(rows, cols, CV_32FC1, cv::Scalar(-FLT_MAX)); |
|
|
|
for (int ch = 0; ch < chns; ch++) |
|
|
|
for (int ch = 0; ch < chns; ch++) |
|
|
|
{ |
|
|
|
{ |
|
|
|
for (int row = 0; row < rows; row++) |
|
|
|
for (int row = 0; row < rows; row++) |
|
|
|