img = IJ.getImage(); roi = img.getRoi(); ip = new ByteProcessor(img.getWidth(),img.getHeight()); p = roi.getContainedFloatPoints(); for (i=0; i