| 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.Metrics |
static ProfileProcessor.Shape[] |
getShapes()
Gets the array of available
ProfileProcessor.Shapes |
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.Metricspublic static ProfileProcessor.Shape[] getShapes()
ProfileProcessor.Shapespublic 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 © 2018–2021 Morphonets. All rights reserved.