Modifier and Type | Class and Description |
---|---|
static class |
ProfileProcessor.Metric |
static class |
ProfileProcessor.Shape |
Constructor and Description |
---|
ProfileProcessor(RandomAccessibleInterval<T> rai,
Path path) |
Modifier and Type | Method and Description |
---|---|
double[] |
call()
Process and return the profile values.
|
static ProfileProcessor.Metric[] |
getMetrics()
Gets the array of available
ProfileProcessor.Metric s |
static ProfileProcessor.Shape[] |
getShapes()
Gets the array of available
ProfileProcessor.Shape s |
double[] |
getValues()
The profile values, or null if they have not been processed yet.
|
static void |
main(String[] args) |
void |
process() |
static <T extends RealType<T>> |
profilePathNodes(RandomAccessible<T> rai,
Path path,
double[] values)
Get the intensities for the point coordinates of a Path
|
void |
setMetric(ProfileProcessor.Metric metric)
Sets the metric to be computed for each local neighborhood.
|
void |
setRadius(int radius)
Specify a fixed radius for each
ProfileProcessor.Shape region around each PointInImage . |
void |
setShape(ProfileProcessor.Shape shape)
Sets the shape to be iterated.
|
public ProfileProcessor(RandomAccessibleInterval<T> rai, Path path)
public static ProfileProcessor.Metric[] getMetrics()
ProfileProcessor.Metric
spublic static ProfileProcessor.Shape[] getShapes()
ProfileProcessor.Shape
spublic void setMetric(ProfileProcessor.Metric metric)
ProfileProcessor.Shape.CENTERLINE
.metric
- public void setShape(ProfileProcessor.Shape shape)
shape
- public void setRadius(int radius)
ProfileProcessor.Shape
region around each PointInImage
. Set to <= 0 to use the
actual PointInImage
radii.radius
- public double[] getValues()
public void process()
public double[] call()
call
in interface Callable<double[]>
ArrayIndexOutOfBoundsException
- if using CENTERLINE shape and any
Path nodes are outside the bounds of the imagepublic static <T extends RealType<T>> double[] profilePathNodes(RandomAccessible<T> rai, Path path, double[] values)
T
- rai
- the imagepath
- the Path to profilevalues
- the array to store the valuesArrayIndexOutOfBoundsException
- if the Path contains any points outside the image boundspublic static void main(String[] args)
Copyright © 2015–2021 Fiji. All rights reserved.