@param stop last slice */
protected GenericDialog buildControlDialog(int start, int stop) {
GenericDialog gd = new GenericDialog("ZProjection",IJ.getInstance());
gd.addNumericField("Start slice:",startSlice,0/*digits*/);
gd.addNumericField("Stop slice:",stopSlice,0/*digits*/);
gd.addChoice("Projection Type", METHODS, METHODS[method]);
if (isHyperStack && imp.getNFrames()>1)
gd.addCheckbox("All Time Frames", allTimeFrames);
return gd;
}