public class SamplingDefinition extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
constrain(AxisType axis,
AxisSubrange subrange)
Replaces the current constraining definition of a given axis within the
current SamplingDefinition with a given subrange.
|
ImageDisplay |
getDisplay()
Returns the input ImageDisplay of the SamplingDefinition.
|
String |
getError()
Returns the current value of the error string of the SamplingDefinition.
|
AxisType[] |
getInputAxes()
Returns the
AxisType s that are present in the input data. |
CalibratedAxis[] |
getInputCalibratedAxes()
Returns the set of
CalibratedAxis 's that are present in the input
data. |
List<List<Long>> |
getInputRanges()
Returns a multidimensional set of input axis values generated from the
input data of this SamplingDefinition.
|
AxisType[] |
getOutputAxes()
Returns the set of
AxisType s that will be present in the output
data. |
CalibratedAxis[] |
getOutputCalibratedAxes()
Returns the set of
CalibratedAxis 's that will be present in the
output data. |
double[] |
getOutputCalibration(AxisType[] outputAxes)
Deprecated.
|
long[] |
getOutputDims()
Returns the dimensions that will be present in the output data.
|
static SamplingDefinition |
sampleAllPlanes(ImageDisplay display)
A convenience method for defining a SamplingDefinition that returns a
complete copy of an ImageDisplay.
|
static SamplingDefinition |
sampleCompositeUVPlane(ImageDisplay display,
AxisType uAxis,
AxisType vAxis)
A convenience method for defining a SamplingDefinition that returns a
composite (multichannel) UV plane of an ImageDisplay.
|
static SamplingDefinition |
sampleCompositeXYPlane(ImageDisplay display)
A convenience method for defining a SamplingDefinition that returns a
composite (multichannel) XY plane of an ImageDisplay.
|
static SamplingDefinition |
sampleUVPlane(ImageDisplay display,
AxisType uAxis,
AxisType vAxis)
A convenience method for defining a SamplingDefinition that returns a
single UV plane of an ImageDisplay.
|
static SamplingDefinition |
sampleXYPlane(ImageDisplay display)
A convenience method for defining a SamplingDefinition that returns a
single XY plane of an ImageDisplay.
|
public ImageDisplay getDisplay()
public String getError()
public AxisType[] getInputAxes()
AxisType
s that are present in the input data.public CalibratedAxis[] getInputCalibratedAxes()
CalibratedAxis
's that are present in the input
data.public List<List<Long>> getInputRanges()
For example, if the sampling definition has two axes defined as "1-4" and "1-3" calling this routine would return something like this: [[1,2,3,4] , [1,2,3]]
public AxisType[] getOutputAxes()
AxisType
s that will be present in the output
data. Those input axes whose size is 1 are automatically collapsed.public CalibratedAxis[] getOutputCalibratedAxes()
CalibratedAxis
's that will be present in the
output data. Those input axes whose size is 1 are automatically collapsed.public long[] getOutputDims()
@Deprecated public double[] getOutputCalibration(AxisType[] outputAxes)
public boolean constrain(AxisType axis, AxisSubrange subrange)
axis
- The axis to associate the constraint withsubrange
- The new subrange defining the constraintpublic static SamplingDefinition sampleUVPlane(ImageDisplay display, AxisType uAxis, AxisType vAxis)
display
- The ImageDisplay to sampleuAxis
- The U axis of the sample spacevAxis
- The V axis of the sample spacepublic static SamplingDefinition sampleXYPlane(ImageDisplay display)
display
- The ImageDisplay to samplepublic static SamplingDefinition sampleCompositeUVPlane(ImageDisplay display, AxisType uAxis, AxisType vAxis)
display
- The ImageDisplay to sampleuAxis
- The U axis of the sample spacevAxis
- The V axis of the sample spacepublic static SamplingDefinition sampleCompositeXYPlane(ImageDisplay display)
display
- The ImageDisplay to samplepublic static SamplingDefinition sampleAllPlanes(ImageDisplay display)
display
- The ImageDisplay to sampleCopyright © 2014–2022 ImageJ. All rights reserved.