File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ namespace op
3131 // float* (deep net format): C x H x W
3232 // cv::Mat (OpenCV format): H x W x C
3333 if (cvMat.rows != resolutionSize.y || cvMat.cols != resolutionSize.x || cvMat.type () != CV_8UC3)
34- cvMat = cv::Mat{ resolutionSize.y , resolutionSize.x , CV_8UC3} ;
34+ cvMat = cv::Mat ( resolutionSize.y , resolutionSize.x , CV_8UC3) ;
3535 const auto offsetBetweenChannels = resolutionSize.x * resolutionSize.y ;
3636 for (auto c = 0 ; c < resolutionChannels; c++)
3737 {
@@ -70,7 +70,7 @@ namespace op
7070
7171 // Allocate cv::Mat
7272 if (cvMatResult.cols != channels * width || cvMatResult.rows != height)
73- cvMatResult = cv::Mat{ height, areaOutput, CV_8UC1} ;
73+ cvMatResult = cv::Mat ( height, areaOutput, CV_8UC1) ;
7474
7575 // Fill cv::Mat
7676 for (auto channel = 0 ; channel < channels ; channel++)
@@ -93,7 +93,7 @@ namespace op
9393 }
9494 }
9595 else
96- cvMatResult = cv::Mat{} ;
96+ cvMatResult = cv::Mat () ;
9797 }
9898 catch (const std::exception& e)
9999 {
You can’t perform that action at this time.
0 commit comments