Voronoi_macro
Relevant to Extended Data Figure 1
This ImageJ macro runs the built-in Voronoi function using a set of multipoint markers. The multipoint marker set should be saved as a single ROI.
The image should have just 1 frame/slice, but can have multiple channels.
Start by opening the image used for the mosaic analysis and opening the multipoint marker set.
Parameters to change:
scale of the image
file_path: enter the file path for where you want to save the results
group: used to name the output files (useful if you are analysing multiple RGC types)
normal: set to true if you want to calculate and save ROIs of Voronois that touch the edge of the image
exclusion: set to true if you want to exclude Voronois areas that touch the edges
Ouput:
- The macro will output a list of Voronoi domain areas (scaled) for the normal and excluded settings. These should be copied/saved.
- The macro will save a ROIset of the Voronoi domain areas for the normal and excluded settings