Skip to content

Commit 3c6983a

Browse files
committed
Merge pull request opencv#10008 from Smorodov:master
2 parents 6936ec7 + c964aa3 commit 3c6983a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/dnn/fcn_semsegm.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ static void colorizeSegmentation(const Mat &score, const vector<cv::Vec3b> &colo
5050
const int cols = score.size[3];
5151
const int chns = score.size[1];
5252

53-
cv::Mat maxCl(rows, cols, CV_8UC1);
54-
cv::Mat maxVal(rows, cols, CV_32FC1);
53+
cv::Mat maxCl=cv::Mat::zeros(rows, cols, CV_8UC1);
54+
cv::Mat maxVal(rows, cols, CV_32FC1, cv::Scalar(-FLT_MAX));
5555
for (int ch = 0; ch < chns; ch++)
5656
{
5757
for (int row = 0; row < rows; row++)

0 commit comments

Comments
 (0)