public void run(String arg) { if (IJ.versionLessThan("1.49d")) return; if (!showDialog()) return; SaveDialog sd = new SaveDialog("Save as Bricks...", "", ""); basename = sd.getFileName(); directory = sd.getDirectory(); if (basename == null || directory == null) return; build_bricks(); }
public boolean checkBeads() { rmanager = RoiManager.getInstance(); if (IJ.versionLessThan("1.26i")) return false; else if (rmanager == null) { IJ.error("Add bead ROIs to the RoiManager first (select region then press [t])."); return false; } nrois = rmanager.getCount(); if (nrois == 0) { IJ.error("Add bead ROIs to the RoiManager first (select region then press [t])."); return false; } rois = rmanager.getRoisAsArray(); return true; }