Skip to content

Commit a125a84

Browse files
committed
Fix build.
1 parent ac73676 commit a125a84

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

SerialPrograms/Source/ML/Programs/ML_LabelImages.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,7 @@ bool LabelImages::run_sam_to_create_annotation(
296296
size_t min_mask_y = INT_MAX, max_mask_y = 0;
297297
for (size_t y = 0; y < source_height; y++){
298298
for (size_t x = 0; x < source_width; x++){
299-
const bool mask = m_output_boolean_mask[y*source_width + x];
300-
if (mask){
299+
if (m_output_boolean_mask[y*source_width + x]){
301300
min_mask_x = std::min(x, min_mask_x);
302301
max_mask_x = std::max(x, max_mask_x);
303302
min_mask_y = std::min(y, min_mask_y);

0 commit comments

Comments
 (0)