Skip to content

Commit 1ee9867

Browse files
committed
fix ximgproc casting
1 parent 8740be2 commit 1ee9867

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/ximgproc/src/selectivesearchsegmentation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ namespace cv {
169169
char* mask_data = (char*)mask.data;
170170

171171
for (unsigned int x = 0; x < regions.total(); x++) {
172-
mask_data[x] = regions_data[x] == r ? 255 : 0;
172+
mask_data[x] = (char)(regions_data[x] == r ? 255 : 0);
173173
}
174174

175175
// Compute histogram for each channels

0 commit comments

Comments
 (0)