Closed Rob174 closed 3 years ago
Pb:
min area rectangle stats computed in #22 show that most of the oil discharges are smaller than 500 px
Make cluster of shapes, use barycenters, use max distance between group of shape
Algo:
Pb: how to estimate minimal distance between shapes (represented as lists of points)
An edge between two point can be define in the following way:
Example:
We want to find the minimal distance between all possible of points on two edges from two shapes:
With this representation we can then compute the minimal distance between two points on each pair of edges possible
(Example with two edges possible)
To compute the minimal distince we will use scipe optimize minimize
{'num_of_shape_on_image=1': 'num_of_images=20', 'num_of_shape_on_image=2': 'num_of_images=16', 'num_of_shape_on_image=3': 'num_of_images=20', 'num_of_shape_on_image=4': 'num_of_images=17', 'num_of_shape_on_image=5': 'num_of_images=8', 'num_of_shape_on_image=6': 'num_of_images=9', 'num_of_shape_on_image=7': 'num_of_images=10', 'num_of_shape_on_image=8': 'num_of_images=6', 'num_of_shape_on_image=9': 'num_of_images=4', 'num_of_shape_on_image=10': 'num_of_images=4', 'num_of_shape_on_image=11': 'num_of_images=3', 'num_of_shape_on_image=12': 'num_of_images=1', 'num_of_shape_on_image=13': 'num_of_images=1', 'num_of_shape_on_image=15': 'num_of_images=4', 'num_of_shape_on_image=16': 'num_of_images=2', 'num_of_shape_on_image=17': 'num_of_images=3', 'num_of_shape_on_image=20': 'num_of_images=2', 'num_of_shape_on_image=21': 'num_of_images=1'}
Observation
Potential solutions: