A simple GUI application for processing 3D segmentation data and separating follicles using morphological operations and watershed segmentation.
Make sure you have Python 3.9+ installed.
Install the package using pip:
pip install git+https://github.com/guignardlab/follicleseparationAfter installation, launch the GUI:
follicle-separation-
Select Input Folder
- Contains
.h5segmentation files.
- Contains
-
Set File Formats
-
Intensity Format (currently unused but required):
time_{t:03d}_zstack_10-24.h5 -
Segmentation Format:
time_{t:03d}_zstack_10-24-data_Simple Segmentation.h5
-
-
Set Outside Label
- Integer label corresponding to the background (default:
3).
- Integer label corresponding to the background (default:
-
Select Output Folder
- Results will be saved as
.tifffiles.
- Results will be saved as
-
Run Separation
- Click "Run Separation" to process all timepoints.
-
HDF5 files (
.h5) must contain:/exported_datawith segmentation labels in the first channel.
-
Filenames must include a time index formatted like:
time_XXXwhere
XXXis a zero-padded integer.
For each timepoint, a file is generated:
result_time_XXX.tiff
Each output contains labeled regions after watershed-based separation.
-
The algorithm:
- Extracts the largest connected background component
- Identifies nuclei regions
- Computes a distance transform
- Applies watershed segmentation
-
Processing is done per timepoint automatically.
-
No files processed
- Check filename patterns match the expected format.
-
GUI not opening
- Ensure
tkinteris installed.
- Ensure
-
Errors during processing
- Verify
.h5file structure and labels.
- Verify
MIT (or specify your license)