File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -292,7 +292,7 @@ std::vector<Contour> SegmentationModel::getContours(const ImageResultWithSoftPre
292292 std::vector<Contour> combined_contours = {};
293293 cv::Mat label_index_map;
294294 cv::Mat current_label_soft_prediction;
295- int find_contours_mode = include_nested_contours ? cv::RETR_EXTERNAL : cv::RETR_CCOMP ;
295+ int find_contours_mode = include_nested_contours ? cv::RETR_CCOMP : cv::RETR_EXTERNAL ;
296296 for (int index = 1 ; index < imageResult.soft_prediction .channels (); index++) {
297297 cv::extractChannel (imageResult.soft_prediction , current_label_soft_prediction, index);
298298 cv::inRange (imageResult.resultImage ,
Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ def get_contours(
203203 msg = "Cannot get contours from soft prediction with 1 layer"
204204 raise RuntimeError (msg )
205205
206- find_contours_mode = cv2 .RETR_CCOMP if not include_nested_contours else cv2 .RETR_EXTERNAL
206+ find_contours_mode = cv2 .RETR_CCOMP if include_nested_contours else cv2 .RETR_EXTERNAL
207207 combined_contours = []
208208 for layer_index in range (1 , n_layers ): # ignoring background
209209 label = self .get_label_name (layer_index - 1 )
You can’t perform that action at this time.
0 commit comments