Class ProfilePlot
java.lang.Object
ij.gui.ProfilePlot
Creates a density profile plot of a line or rectangular selection.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProfilePlot(ImagePlus imp) Based on the current line or rectangular selection, creates a profile plot that can be retrieved using the getPlot() method.ProfilePlot(ImagePlus imp, boolean verticalPlot) Based on the current rectangular selection, creates profile plot, which is a vertical if verticalPlot is 'true'. -
Method Summary
Modifier and TypeMethodDescriptionvoidDisplays this profile plot in a window.static double[]getColumnAverageProfile(Rectangle rect, ImageProcessor ip) static doubleReturns the profile plot y-axis max.static doubleReturns the profile plot y-axis min.doublegetMax()Returns the calculated maximum value.doublegetMin()Returns the calculated minimum value.getPlot()Returns the profile plot as a Plot object.Returns the size of the plot that createWindow() creates.double[]Returns the profile plot data.static voidsetMinAndMax(double min, double max) Sets the y-axis min and max.
-
Field Details
-
imp
-
profile
protected double[] profile -
magnification
protected double magnification -
xInc
protected double xInc -
units
-
yLabel
-
xValues
protected float[] xValues
-
-
Constructor Details
-
ProfilePlot
public ProfilePlot() -
ProfilePlot
Based on the current line or rectangular selection, creates a profile plot that can be retrieved using the getPlot() method. -
ProfilePlot
Based on the current rectangular selection, creates profile plot, which is a vertical if verticalPlot is 'true'. Use the getPlot() method to retrieve the plot.
-
-
Method Details
-
getPlotSize
Returns the size of the plot that createWindow() creates. -
createWindow
public void createWindow()Displays this profile plot in a window. -
getPlot
Returns the profile plot as a Plot object. -
getProfile
public double[] getProfile()Returns the profile plot data. -
getMin
public double getMin()Returns the calculated minimum value. -
getMax
public double getMax()Returns the calculated maximum value. -
setMinAndMax
public static void setMinAndMax(double min, double max) Sets the y-axis min and max. Specify (0,0) to autoscale. -
getFixedMin
public static double getFixedMin()Returns the profile plot y-axis min. Auto-scaling is used if min=max=0. -
getFixedMax
public static double getFixedMax()Returns the profile plot y-axis max. Auto-scaling is used if min=max=0. -
getColumnAverageProfile
-