T - the comparable RealType representing information stored in the
Img to pick peaks from.public class PickImagePeaks<T extends RealType<T>> extends Object implements OutputAlgorithm<Img<BitType>>, Benchmark
Cursor irrespective of how it traverses the Img,
and a localizable by dim Cursor 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(RandomAccessibleInterval<T> inputImage) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkInput() |
String |
getErrorMessage() |
ArrayList<long[]> |
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() |
Img<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 PickImagePeaks(RandomAccessibleInterval<T> inputImage)
public boolean checkInput()
checkInput in interface Algorithmpublic String getErrorMessage()
getErrorMessage in interface Algorithmpublic long getProcessingTime()
getProcessingTime in interface Benchmarkpublic Img<BitType> getResult()
getResult in interface OutputAlgorithm<Img<BitType>>public ArrayList<long[]> 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
Img with which this PickImagePeaks was
created, and represents the extent of the ellipsoidCopyright © 2015–2022 ImgLib2. All rights reserved.