webknossos-libs
webknossos-libs copied to clipboard
Respect layer-bbox when handling wkw files
We should respect the layer's bounding box when handling wkw files explicitly in the (mag)view code, e.g.
MagView.get_bounding_boxes_on_disk()andMagView.get_views_on_disk()should get arespect_layer_bounding_box=Trueargument, which by default only yields the actual bboxes.- dataset upload should also only include wkw files within the bbox
- …?
Also, we should enable to remove wkw files outside the bbox, e.g.
- have a method to remove all wkw-files outside the layer bounding box
- warn when there are wkw-files outside the layer bbox, (on initialization and when shrinking the layer-bbox)
- we could also consider removing files when large parts are written as black, but that's probably a made-up edge-case