Add flexible label locations and ROI management#1
Open
TorecLuik wants to merge 2 commits intoNFDI4BIOIMAGE:mainfrom
Open
Add flexible label locations and ROI management#1TorecLuik wants to merge 2 commits intoNFDI4BIOIMAGE:mainfrom
TorecLuik wants to merge 2 commits intoNFDI4BIOIMAGE:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add flexible label image locations and ROI management features 🤖✨
This PR enhances the Labels2Rois script to support more flexible workflows for comparing different segmentation methods on the same images.
Key Features Added: 🚀
Custom label suffixes: Configurable suffix parameter (default:
-label) allows for varied naming conventions like_cellpose,_stardist,.0, etc.Cross-dataset label search: New "Specific Dataset" mode enables storing label images in a separate dataset from target images via
Label_Dataset_IDparameterNamed ROIs with method identification: ROIs are now named with suffix prefix (e.g.,
cellpose_1,stardist_2) making it easy to distinguish between different segmentation methodsSelective ROI clearing: Optional ROI management with filtering - clear all existing ROIs or only those matching specific text (e.g., remove only "cellpose" ROIs while preserving manual annotations)
Use Cases: 🔬
Backward Compatibility: 🔄
All existing workflows continue to work unchanged. New features are opt-in via additional script parameters.
Files Changed: 📝
Labels2Rois.py: Core functionality enhancementsREADME.md: Documentation updates with examples and parameter reference*🤖 Enhanced