Commit 1c8809ff authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

Merge pull request #1207 from natsuki14:master

parents 73dc666d f57d6fbb
......@@ -142,7 +142,7 @@ namespace cv {
Mat regions = regions_.getMat();
sizes = sizes_.getMat();
if (image_id != -1 && last_image_id != image_id) {
if (image_id == -1 || last_image_id != image_id) {
std::vector<Mat> img_planes;
split(img, img_planes);
......@@ -507,7 +507,7 @@ namespace cv {
Mat regions = regions_.getMat();
sizes = sizes_.getMat();
if (image_id != -1 && last_image_id != image_id) {
if (image_id == -1 || last_image_id != image_id) {
std::vector<Mat> img_planes;
split(img, img_planes);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment