gd.addChoice("Which Outliers", outlierStrings, outlierStrings[whichOutliers]);
}
gd.addPreviewCheckbox(pfr); //passing pfr makes the filter ready for preview
gd.addDialogListener(this); //the DialogItemChanged method will be called on user input
gd.showDialog(); //display the dialog; preview runs in the now
if (gd.wasCanceled()) return DONE;
IJ.register(this.getClass()); //protect static class variables (filter parameters) from garbage collection
}
return IJ.setupDialog(imp, flags); //ask whether to process all slices of stack (if a stack)
}