Skip to content

Commit

Permalink
Syntax error in polygonizer
Browse files Browse the repository at this point in the history
Small oversight from the new polygon extraction code
  • Loading branch information
mittagessen committed Apr 8, 2024
1 parent da6c0a4 commit d814500
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kraken/lib/segmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ def _calc_seam(baseline, polygon, angle, im_feats, bias=150):
mask[line_locs] = 0
dist_bias = distance_transform_cdt(mask)
# absolute mask
mask = np.array(make_polygonal_mask(polygon-(r_min, c_min)), patch.shape[1::-1]) > 128
mask = np.array(make_polygonal_mask(polygon-(r_min, c_min), patch.shape[::-1])) > 128
# dilate mask to compensate for aliasing during rotation
mask = binary_erosion(mask, border_value=True, iterations=2)
# combine weights with features
Expand Down

0 comments on commit d814500

Please sign in to comment.