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.
1 parent ac73676 commit a125a84Copy full SHA for a125a84
SerialPrograms/Source/ML/Programs/ML_LabelImages.cpp
@@ -296,8 +296,7 @@ bool LabelImages::run_sam_to_create_annotation(
296
size_t min_mask_y = INT_MAX, max_mask_y = 0;
297
for (size_t y = 0; y < source_height; y++){
298
for (size_t x = 0; x < source_width; x++){
299
- const bool mask = m_output_boolean_mask[y*source_width + x];
300
- if (mask){
+ if (m_output_boolean_mask[y*source_width + x]){
301
min_mask_x = std::min(x, min_mask_x);
302
max_mask_x = std::max(x, max_mask_x);
303
min_mask_y = std::min(y, min_mask_y);
0 commit comments