This macro automates the process of detecting spheroids and analyzing live/dead ratios in merged .tif
images. It iterates through images in a specified directory, processes each one, and saves the results. The merged images were created with Dual-Channel-Fluorescence-Image-Merger-with-Filename-Truncation.
Example - From Left to Right: Raw → 8-bit Gray (after conversion from composite to RGB) → Cellpose Label Image.
- BIOP Cellpose Wrapper Manual - to use Cellpose Advanced in Fiji.
- Open Fiji (ImageJ).
- Open the script editor (Plugins > New > Macro).
- Copy and paste the provided macro code into the editor.
- Or, you can drag-and-drop the macro file onto Fiji's main toolbar, automated-spheroid-detection.ijm.
- Run the macro (Run button in the script editor).
- When prompted, Choose the directory containing your merged
.tif
image files. - Monitor the console for progress logs.
- Results: After completion, the measurements will be saved in CSV files within the selected directory, and ROIs will be saved as
.zip
files.
- Adjust Calibration: Modify
pixelWidth
andpixelHeight
values to match your microscope's calibration. - Cellpose Parameters: Customize the parameters in the
Cellpose Advanced
function to suit your specific sample type and detection requirements. - Output: Ensure the directory has write permissions to save results correctly.