Creating Simulated Synapse Images
Justin T Savage
Abstract
How to create simulated synapse images using FIJI.
Steps
Prepare images
Copy some synapse images into a folder to serve as a source of synaptic puncta. Example images are available on Zenodo at DOI: 10.5281/zenodo.12191805
Set up a larger folder for the code to use that contains a subfolder called "raw_images" that contains the images to use.
Run ImageJ Macro
Open 20240312_sim_synapse_data_sparse.ijm from the SynBot GitHub by dragging it into FIJI
Change the noise multiplier in line 7 of the code if necessary. You can also adjust the minimum pixel size and threshold values to use in lines 13-20. These values should be stringent since you only want to use good puncta for making the simulated images and aren't trying to capture everything.
Choose the source folder prepared as explained in step 2.
Simulated images will be saved to the ouput folder created within the source folder from step 2. Text files are also written there which have the coordinates of the green and red puncta to serve as the ground truth for future analysis.