If a formation begins with a blank row, e.g. / < > / < >, that row won't be cropped. This is because min_y is initialialzed to 0.0, so even if the first dancer is lower in the image, 0.0 will always be included in the bounds.
This also happens if e.g. all the dancers are on one side (left or right) of the formation: > > . . . will be 1½ dancers wider than > >.
Maybe empty spaces (.) should be counted as dancers for the purpose of calculating bounds?
If a formation begins with a blank row, e.g.
/ < > / < >
, that row won't be cropped. This is becausemin_y
is initialialzed to 0.0, so even if the first dancer is lower in the image, 0.0 will always be included in the bounds.This also happens if e.g. all the dancers are on one side (left or right) of the formation:
> > . . .
will be 1½ dancers wider than> >
.Maybe empty spaces (
.
) should be counted as dancers for the purpose of calculating bounds?