Implemented a hysteresis segmentation algorithm.
Removed an unecessary numpy array copy.
Experimenting with a version of segment_by_velocity adapted to use hysteresis_thresh.
Control points are now filtered to remove those within the bounding rectangle but outside the contour.