Skip to content

Macro to generate random ROIs with user specified width, height and min distance between ROIs.

Notifications You must be signed in to change notification settings

JGanChong/Create_Random_ROIs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

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.

About

Macro to generate random ROIs with user specified width, height and min distance between ROIs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published