// applies a scale bar to images taken with the microscope at current camera settings. run("Set Scale...", "distance=746.04 known=1000 pixel=1 unit=um global"); ids=newArray(nImages); for (i=0;i