open-forest-observatory / tree-detection-framework

BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

Implement `RegionDetections` class #18

Closed russelldj closed 1 month ago

russelldj commented 1 month ago

This slightly modifies the initial interface for the region detections class and provides and initial implementation of the methods. The goal is to handle the majority of the boilerplate code in the class and have the user specify the simplest objects.

It also adds a convenience function to convert from a numpy transform matrix to the format expected by shapely.

russelldj commented 1 month ago

I rebased to clean up the nuisance commits from the auto-formatters.

russelldj commented 1 month ago

I refactored the __init__ method to be more flexible. There's still one TODO, but the rest of the logic should be done.