Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 1.14 KB

README.md

File metadata and controls

24 lines (18 loc) · 1.14 KB

Create_Random_ROIs

/* Creates a number of randomly generated non overlapping ROIs with the width, height and distance set by the user. *

  • Macro Instructions:
  • Under User variables, change the width, height and min distance as desired
  • Macro tested with ImageJ 1.53g, Java 1.8.0_172 (64bit) Windows 10
  • Macro by Johnny Gan Chong email:[email protected]
  • January 2021 */

Min distance: distance between ROIs. Left 10, right 50: image

Change size of ROI using ROI_height and ROI_width image

Change whether min distance is calculated from the center or from the border of ROI. Calculating from center may have overlapping ROIs if height/width is bigger than min distance. Left: Use_BorderToBorder = false, right: Use_BorderToBorder = true image

Change max_try to however many iterations to run before giving up.