biigle / magic-sam

:m: BIIGLE module for the Magic SAM image annotation instrument
GNU General Public License v3.0
0 stars 0 forks source link

Check that mouse pos is inside polygons #15

Closed dlangenk closed 10 months ago

dlangenk commented 11 months ago

Since SAM generates masks but Biigle can only deal with polygons this leads to ambiguous results. Add a check that discards polygons that do not contain the mouse position.

dlangenk commented 11 months ago

A good example for this "bug" is https://biigle.de/images/2514245/annotations?r=32&x=1287&y=879 The fish is split into two parts. SAM always picks up the left part so you cannot annotate the right part.