This ImageJ macro merges paired fluorescence images from FDA and PI (Green and Red) channels, modifies filenames by truncating the first four characters, and logs each step of the process.
Developed by Daniel Waiger from the Bio-imaging & Flow Cytometry Core Facility at The Robert H. Smith – Faculty of Agriculture, Food and Environment of the Hebrew University of Jerusalem. This tool is designed to facilitate the analysis of dual-channel fluorescence images by automating the merging process.
- Ensure you have Fiji/ImageJ installed.
- Download the macro file from this repository.
- Open ImageJ, navigate to
Plugins > Macros > Run Macro
, and select the downloaded file.
- Start the Macro: Run the macro in ImageJ. Either by a drag-and-drop of the '.ijm' file, or by opening it through the 'Open...' dialog.
- Select the Directory: A dialog will prompt you to choose the directory containing your
.TIF
files.
-
File Listing: The macro lists all
.TIF
files in the selected directory and logs each filename. -
File Sorting: It sorts files into two lists based on their suffix:
-
Log Output: Both lists (GFP and RFP) are printed in the ImageJ log window for verification.
-
Error Checking: The macro checks if both lists have the same number of images. If not, it displays an error message and stops execution.
-
Image Processing:
-
Saving the Merged Image: The merged image is saved in the same directory with 'Merged_' prefixed to the modified filename.
-
Cleanup: After processing, all open images are closed to free up resources.
- Auto-detection of image pairs based on filenames.
- Filename modification by removing the first four characters.
- Detailed logging of all processed files.
Contributions to enhance this macro are welcome. Please fork this repository and submit a pull request with your improvements.
Distributed under the MIT License. See LICENSE
for more information.
- Daniel Waiger - [email protected]