In order to add new macros always need to include:

 

  1. setBatchMode(true);
  2. open("#file#"); (open the file)
  3. run("8-bit"); (8bits conversion)
  4. run("Set Scale...", "distance=0 known=0 pixel=1 unit=pixel"); (scale reset)
  5. run("Rotate 90 Degrees Right"); just for confocals
  6. for mosaics: run("Set Measurements...", "  bounding redirect=None decimal=3"); 
  7. for cells: run("Set Measurements...", "  center redirect=None decimal=0"); 
  8. setThreshold(#thresholdMin#, #thresholdMax#); variables for thresholds 
  9. run("Analyze Particles...", "size=#size#-#maxsize# pixel circularity=#circularity#-1.00 show=Nothing display exclude clear"); variable values