public abstract class AbstractRegionalExtremaFinder<T extends RealType<T>> extends Object implements RegionalExtremaFinder<T>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allowEdgeMax |
protected boolean |
doInterpolate |
protected Image<T> |
image |
protected ArrayList<ArrayList<int[]>> |
maxima |
protected OutOfBoundsStrategyFactory<T> |
outOfBoundsFactory |
protected T |
threshold |
| Constructor and Description |
|---|
AbstractRegionalExtremaFinder() |
| Modifier and Type | Method and Description |
|---|---|
void |
allowEdgeExtrema(boolean flag)
If set to true before the
Algorithm.process() method is called, then extrema found
at the edges of the image bounds (including time edges) will not be pruned, and will
be included in the result array. |
protected float[] |
findAveragePosition(ArrayList<int[]> coords)
Given an ArrayList of int[] (coordinates), computes the averaged coordinates and returns them.
|
ArrayList<ArrayList<int[]>> |
getRegionalExtrema()
Returns the ArrayList containing the coordinates of the local extrema found.
|
ArrayList<float[]> |
getRegionalExtremaCenters()
Computes the average coordinate of the extrema locations.
|
void |
setOutOfBoundsStrategyFactory(OutOfBoundsStrategyFactory<T> strategy)
Set the strategy used by this extrema finder to deal with edge pixels.
|
void |
setThreshold(T threshold)
Set the threshold value under which (or over which, in the case of a minima finder) pixels are ignored.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckInput, getErrorMessage, processgetProcessingTimeprotected OutOfBoundsStrategyFactory<T extends RealType<T>> outOfBoundsFactory
protected boolean allowEdgeMax
protected boolean doInterpolate
public void allowEdgeExtrema(boolean flag)
RegionalExtremaFinderAlgorithm.process() method is called, then extrema found
at the edges of the image bounds (including time edges) will not be pruned, and will
be included in the result array.allowEdgeExtrema in interface RegionalExtremaFinder<T extends RealType<T>>public ArrayList<ArrayList<int[]>> getRegionalExtrema()
RegionalExtremaFinderImage.getRegionalExtrema in interface RegionalExtremaFinder<T extends RealType<T>>public ArrayList<float[]> getRegionalExtremaCenters()
RegionalExtremaFindernull if the Algorithm.process() method
has not bee called.getRegionalExtremaCenters in interface RegionalExtremaFinder<T extends RealType<T>>public void setThreshold(T threshold)
RegionalExtremaFindernull, then all pixels are taken into account.setThreshold in interface RegionalExtremaFinder<T extends RealType<T>>protected float[] findAveragePosition(ArrayList<int[]> coords)
searched - public void setOutOfBoundsStrategyFactory(OutOfBoundsStrategyFactory<T> strategy)
RegionalExtremaFinderOutOfBoundsStrategyValueFactory set with the value
0 to avoid nasty edge effects.setOutOfBoundsStrategyFactory in interface RegionalExtremaFinder<T extends RealType<T>>strategy - the strategy to setCopyright © 2015–2021 Fiji. All rights reserved.