// This macro creates a point selection and // draws the smallest rectangle that encloses // the points. It not work correctly with // versions of ImageJ prior to 1.53s31. newImage("Points", "8-bit noise", 50, 50, 1); xp = newArray(7,8,9,10,8,8,7); yp = newArray(7,6,7,9,10,8,9); makeSelection("point large red dot", xp, yp); Roi.getBounds(x, y, width, height); run("Add Selection..."); makeRectangle(x, y, width, height); run("To Selection"); for (i=0; i