bauerdavid / napari-nD-annotator

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

Do not store every coordinate of the bounding box #10

Closed bauerdavid closed 1 year ago

bauerdavid commented 2 years ago

Currently every corner of the BB is stored, but is actually not used (they are reduced to the minimum and maximum points). This is hard to use (to add a new bounding box, all corners have to be generated), and gives error opportunities (what happens if someone programmatically changes a single corner?) Instead every bounding box should be provided with two corners, which can be used to get every other corner.