We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 73dc666 + f57d6fb commit 1c8809fCopy full SHA for 1c8809f
modules/ximgproc/src/selectivesearchsegmentation.cpp
@@ -142,7 +142,7 @@ namespace cv {
142
Mat regions = regions_.getMat();
143
sizes = sizes_.getMat();
144
145
- if (image_id != -1 && last_image_id != image_id) {
+ if (image_id == -1 || last_image_id != image_id) {
146
147
std::vector<Mat> img_planes;
148
split(img, img_planes);
@@ -507,7 +507,7 @@ namespace cv {
507
508
509
510
511
512
513
0 commit comments