Skip to content

Flood fill bounding box size maximum should take into account available mags #8366

@daniel-wer

Description

@daniel-wer

Context

I tried to use the restricted flood fill tool in 3D for a segmentation layer which is restricted to mag 16, in mag 16, for a bounding box of size 1280³ vx.

Expected Behavior

The flood fill should work, since the finest available mag is 16 and the flood fill tool is used in mag 16. The bounding box size in mag 16 is 512,000 vx, so way below the maximum.

Current Behavior

There is an error toast: "The bounding box that encloses the clicked position is too large. Shrink its size so that it does not contain more than 8847360 voxels."

Steps to Reproduce the bug

  • Cannot reproduce the bug anymore / needs deeper investigation.
  1. Create an annotation with the volume layer restricted to mag 16.
  2. Create a bounding box of size 1280³ vx and perform a brush stroke inside.
  3. Zoom out to mag 16.
  4. Activate the flood fill tool and try to use it to relabel the brushed segment.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions