Skip to content

Commit

Permalink
Adjust the length of the value array. (#955)
Browse files Browse the repository at this point in the history
When boundaries are turned on, this should be half the number of
superpixel indices.
  • Loading branch information
manthey authored Sep 1, 2022
1 parent 6b12259 commit fdd21ac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def createSuperPixels(opts): # noqa
'yoffset': region_dict.get('region', {}).get('top', 0) / scale,
'matrix': [[scale, 0], [0, scale]],
},
'values': [0] * found,
'values': [0] * (found // (2 if opts.boundaries else 1)),
'categories': categories,
'boundaries': opts.boundaries,
}],
Expand Down

0 comments on commit fdd21ac

Please sign in to comment.