Skip to content

Commit c2e5d5d

Browse files
Working on OpenCV3.3-rc
1 parent 0533e79 commit c2e5d5d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/openpose/utilities/openCv.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
{

0 commit comments

Comments
 (0)