Skip to content

Extract Composites freezes on RhizoVision Explorer segmentations #200

Description

@Abe404

Extract Composites stalls at "1/300" and never advances when the segmentation folder contains RhizoVision Explorer segmentations rather than RootPainter Default ones.

gen_composite in im_utils.py assumes a 4-channel RGBA segmentation and reads annot.shape[2]. A RhizoVision Explorer segmentation is a single-channel (H, W) image, so this raises IndexError: tuple index out of range on the first file. The worker thread in extract_comp.py has no exception handling and emits progress before processing each file, so the crash leaves the progress dialog frozen at 1/300.

Extract Composites should accept both segmentation formats.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready for releasewhen an issue is in master but not yet in a release

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions