This patch adds in-place versions of existing
functions to coordinate-based augmentable classes,
i.e. keypoints, BBs, LineStrings and Polygons (both
single instances and *OnImage containers).
The in-place functions should improve performance
during augmentation by re-instantiating objects
less often.
Changes:
+ Add augmentables.utils.project_coords_()
+ Add setter for KeypointsOnImage.items
+ Add setter for BoundingBoxesOnImage.items
+ Add setter for LineStringsOnImage.items
+ Add setter for PolygonsOnImage.items
+ Add Keypoint.project_()
+ Add Keypoint.shift_()
+ Add KeypointsOnImage.on_()
+ Add KeypointsOnImage.remove_out_of_image_fraction_()
+ Add KeypointsOnImage.clip_out_of_image_fraction_()
+ Add KeypointsOnImage.shift_()
+ Add BoundingBox.project_()
+ Add BoundingBox.extend_()
+ Add BoundingBox.clip_out_of_image_()
+ Add BoundingBox.shift_()
+ Add BoundingBoxesOnImage.on_()
+ Add BoundingBoxesOnImage.clip_out_of_image_()
+ Add BoundingBoxesOnImage.remove_out_of_image_()
+ Add BoundingBoxesOnImage.remove_out_of_image_fraction_()
+ Add BoundingBoxesOnImage.shift_()
+ Add LineString.project_()
+ Add LineString.shift_()
+ Add LineStringsOnImage.on_()
+ Add LineStringsOnImage.remove_out_of_image_()
+ Add LineStringsOnImage.remove_out_of_image_fraction_()
+ Add LineStringsOnImage.clip_out_of_image_()
+ Add LineStringsOnImage.shift_()
+ Add Polygon.project_()
+ Add Polygon.shift_()
+ Add PolygonsOnImage.remove_out_of_image_()
+ Add PolygonsOnImage.remove_out_of_image_fraction_()
+ Add PolygonsOnImage.clip_out_of_image_()
+ Add PolygonsOnImage.shift_()
+ Add PolygonsOnImage.on_()
+ Add Polygon.subdivide_()
+ Add PolygonsOnImage.subdivide_()
+ Switch CBAOI augmentation to in-place calls
+ Switch BoundingBoxesOnImage.copy() to custom copy op
+ Switch KeypointsOnImage.copy() to custom copy op
+ Add bounding_boxes and shape args to BBSOI.copy()
+ Add bounding_boxes and shape args to BBSOI.deepcopy()
+ Add polygons and shape args to PSOI.copy()
+ Add polygons and shape args to PSOI.deepcopy()