- java.lang.Object
-
- ij.plugin.ZProjector
-
-
Field Summary
Fields Modifier and Type Field Description static intAVG_METHODstatic StringlutMessagestatic intMAX_METHODstatic intMEDIAN_METHODstatic String[]METHODSstatic intMIN_METHODstatic intSD_METHODstatic intSUM_METHOD
-
Constructor Summary
Constructors Constructor Description ZProjector()ZProjector(ImagePlus imp)Construction of ZProjector with image to be projected.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected GenericDialogbuildControlDialog(int start, int stop)Builds dialog to query users for projection parameters.voiddoHyperStackProjection(boolean allTimeFrames)voiddoProjection()Performs actual projection using specified method.voiddoProjection(boolean handleOverlay)Performs actual projection using specified method.voiddoRGBProjection()voiddoRGBProjection(boolean handleOverlay)ImagePlusgetProjection()Retrieve results of most recent projection operation.static ImagePlusrun(ImagePlus imp, String method)Performs projection on the entire stack using the specified method and returns the result, where 'method' is "avg", "min", "max", "sum", "sd" or "median".static ImagePlusrun(ImagePlus imp, String method, int startSlice, int stopSlice)Performs projection using the specified method and stack range, and returns the result, where 'method' is "avg", "min", "max", "sum", "sd" or "median".voidrun(String arg)This method is called when the plugin is loaded.voidrun2(ImagePlus img, String arg)voidsetImage(ImagePlus imp)Explicitly set image to be projected.voidsetMethod(int projMethod)voidsetStartSlice(int slice)voidsetStopSlice(int slice)
-
-
-
Field Detail
-
AVG_METHOD
public static final int AVG_METHOD
- See Also:
- Constant Field Values
-
MAX_METHOD
public static final int MAX_METHOD
- See Also:
- Constant Field Values
-
MIN_METHOD
public static final int MIN_METHOD
- See Also:
- Constant Field Values
-
SUM_METHOD
public static final int SUM_METHOD
- See Also:
- Constant Field Values
-
SD_METHOD
public static final int SD_METHOD
- See Also:
- Constant Field Values
-
MEDIAN_METHOD
public static final int MEDIAN_METHOD
- See Also:
- Constant Field Values
-
METHODS
public static final String[] METHODS
-
lutMessage
public static final String lutMessage
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ZProjector
public ZProjector()
-
ZProjector
public ZProjector(ImagePlus imp)
Construction of ZProjector with image to be projected.
-
-
Method Detail
-
run
public static ImagePlus run(ImagePlus imp, String method)
Performs projection on the entire stack using the specified method and returns the result, where 'method' is "avg", "min", "max", "sum", "sd" or "median". Add " all" to 'method' to project all hyperstack time points.
-
run
public static ImagePlus run(ImagePlus imp, String method, int startSlice, int stopSlice)
Performs projection using the specified method and stack range, and returns the result, where 'method' is "avg", "min", "max", "sum", "sd" or "median". Add " all" to 'method' to project all hyperstack time points.
Example: http://imagej.net/ij/macros/js/ProjectionDemo.js
-
setImage
public void setImage(ImagePlus imp)
Explicitly set image to be projected. This is useful if ZProjection_ object is to be used not as a plugin but as a stand alone processing object.
-
setStartSlice
public void setStartSlice(int slice)
-
setStopSlice
public void setStopSlice(int slice)
-
setMethod
public void setMethod(int projMethod)
-
getProjection
public ImagePlus getProjection()
Retrieve results of most recent projection operation.
-
run
public void run(String arg)
Description copied from interface:PlugInThis method is called when the plugin is loaded. 'arg', which may be blank, is the argument specified for this plugin in IJ_Props.txt.
-
doRGBProjection
public void doRGBProjection()
-
doRGBProjection
public void doRGBProjection(boolean handleOverlay)
-
buildControlDialog
protected GenericDialog buildControlDialog(int start, int stop)
Builds dialog to query users for projection parameters.- Parameters:
start- starting slice to displaystop- last slice
-
doProjection
public void doProjection()
Performs actual projection using specified method.
-
doProjection
public void doProjection(boolean handleOverlay)
Performs actual projection using specified method. If handleOverlay, adds stack overlay elements from startSlice to stopSlice to projection.
-
doHyperStackProjection
public void doHyperStackProjection(boolean allTimeFrames)
-
-