Array bug in getConstCvMat if mVolume=0, now returning empty Mat

This commit is contained in:
gineshidalgo99
2017-06-08 13:49:51 -04:00
parent 44398bd622
commit 2a1cd5fedc
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -191,12 +191,12 @@ We use standard formats (JSON, XML, PNG, JPG, ...) to save our results, so there
#### Pose Output Format
<p align="center">
<img src="doc/media/keypoints_body.gif", width="480">
<img src="doc/media/keypoints_body.png", width="480">
</p>
#### Face Output Format
<p align="center">
<img src="doc/media/keypoints_face.gif", width="480">
<img src="doc/media/keypoints_face.png", width="480">
</p>
+2 -1
View File
@@ -174,7 +174,8 @@ namespace op
mSize = {};
mVolume = 0;
spData.reset();
mCvMatData = std::make_pair(false, cv::Mat{});
// cv::Mat available but empty
mCvMatData = std::make_pair(true, cv::Mat{});
}
}
catch (const std::exception& e)