-
Notifications
You must be signed in to change notification settings - Fork 0
PECAM Mask Processing Tool
The PECAM Mask Processing Tool is an ImageJ macro designed to refine cell-cell junctions from label images of whole-cell labels and save the corrected junctions as mask images. This macro processes PECAM (Platelet Endothelial Cell Adhesion Molecule) staining images alongside corresponding label images, allowing users to inspect and manually adjust cell boundaries.
After adjustments, the macro converts the label boundaries into a binary mask, applies post-processing steps (morphological operations such as closing, and skeletonization), and saves the processed mask as a TIFF file. The final mask represents the refined cell-cell junctions.
Macro location: https://github.com/CellMigrationLab/PDAC_DL/blob/main/Analysis_scripts/PECAM_mask_processing_tool.ijm
- Open PECAM Image: Opens the PECAM staining image from a selected directory.
- Open Corresponding Label Image: Opens the corresponding label/mask image from a selected directory.
- Convert Mask to ROIs: Converts the label image into ROIs (Regions of Interest).
- Display Boundaries: Generates and displays the label boundaries on top of the PECAM image.
- User Interaction: Provides an interface for the user to inspect and manually adjust the label boundaries using the Channels Tool.
- Post-Processing: After user confirmation, the macro converts the mask to a binary image, applies morphological operations (e.g., closing), and skeletonizes the result.
- Save Processed Mask: The final processed mask is saved as a TIFF file in the specified output directory.
- Step 1: When prompted, select the directory containing PECAM sequence images.
- Step 2: Select the directory containing the corresponding label images.
- Step 3: Select the directory where you want to save the final processed masks.
- Step 4: The macro will overlay the PECAM images with the mask boundaries and prompt you to inspect the results.
- Step 5: Use the Channels Tool and the Drawing Tools to inspect and improve the boundaries if necessary, then click "OK" when satisfied.
- Step 6: The macro will automatically process the masks and save them in the output directory.
- ImageJ/Fiji with the necessary plugins for ROI and mask processing.
- A folder containing PECAM staining images.
- A folder containing corresponding label images (mask files).
- Processed mask images will be saved in the output directory as TIFF files with the suffix
_processed
. The processed mask is skeletonized and represents the refined cell-cell junctions.
- Ensure that the filenames of the PECAM images and the mask/label images correspond to each other to avoid processing mismatches.
- The macro will only save the final processed mask, not the intermediate images.
- The script works best when the mask and PECAM images are carefully aligned.