T
- the ComparableType
representing information stored in the Image
to
pick peaks from.public class PickImagePeaks<T extends RealType<T>> extends Object implements OutputAlgorithm<BitType>, Benchmark
LocalizableCursor
irrespective of how it traverses the Image
, and a
LocalizableByDimCursor
that is set to its 2^n-connected neighbors (where n is
dimensionality).
The result is that this is a fairly simple, (hopefully) fast peak-picker, but it is accurate only for strict peaks, that is, peaks that have no neighbors of equal value.
This picker does no pre-processing, so it may be advisable to smooth your peak image before using this.
Constructor and Description |
---|
PickImagePeaks(Image<T> inputImage) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkInput() |
String |
getErrorMessage() |
ArrayList<int[]> |
getPeakList()
Returns an ArrayList containing the locations of peaks in the image associated with this
peak picker, as calculated by running the process() method.
|
long |
getProcessingTime() |
Image<BitType> |
getResult() |
boolean |
process() |
void |
setAllowBorderPeak(boolean allowBorderPeak)
Set the behavior for finding peak at the image boundaries.
|
void |
setSuppression(double r)
Sets the peak suppression region to a spheroid of radius r.
|
void |
setSuppression(double[] r)
Sets the peak suppression region to an ellipsoid with dimensional axes corresponding to the
elements in r.
|
public boolean checkInput()
checkInput
in interface Algorithm
public String getErrorMessage()
getErrorMessage
in interface Algorithm
public long getProcessingTime()
getProcessingTime
in interface Benchmark
public Image<BitType> getResult()
getResult
in interface OutputAlgorithm<BitType>
public ArrayList<int[]> getPeakList()
public void setSuppression(double r)
r
- the radius of the spheroid of peak suppression.public void setAllowBorderPeak(boolean allowBorderPeak)
public void setSuppression(double[] r)
r
- an array with as many elements as there are dimensions in the Image
with
which this PickImagePeaks
was created, and represents the extent of the ellipsoidCopyright © 2015–2021 Fiji. All rights reserved.