Skip to content

Commit 6ae9163

Browse files
Fix C4245 warning
1 parent a3d92a9 commit 6ae9163

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/ximgproc/src/run_length_morphology.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ CV_EXPORTS void fillHoles(InputArray rlSrc, OutputArray rlDest, int connectivity
915915
// Flags for each run:
916916
// 0: Run is adjacent to the outer background (not part of a hole)
917917
// 255: Run is isolated from the outer background (part of a hole region)
918-
std::vector<uchar> selectedFlags(backgroundRuns.size(), EMPTY);
918+
std::vector<uchar> selectedFlags(backgroundRuns.size(), (uchar)255);
919919
const int SELECTED = 0;
920920
selectedFlags[0] = SELECTED;
921921
const int neighborOffsets[] = { 0, 2 };

0 commit comments

Comments
 (0)