public class MaximaFinder extends Object
Support various methods of finding maxima in ImageJ image.
Constructor and Description |
---|
MaximaFinder(ij.process.ImageProcessor ip)
Construct MaximaFinder object.
|
Modifier and Type | Method and Description |
---|---|
void |
computeMaximaIJ(double tolerance)
Compute maxima using ImageJ procedure.
|
void |
computeMaximaImage(ij.process.ImageProcessor mximaMap)
Compute maxima from image where points different from background stand for location of maxima
in ip.
|
Polygon |
getMaxima()
getMaxima.
|
int |
getMaximaNumber()
Number of points found.
|
double[] |
getMaxValues()
Return values corresponding to indexes returned by getMaxima.
|
void |
setMaxima(Collection<? extends Point2D> maxi)
Set maxima for this object.
|
void |
setMaximad(Collection<Point2d> maxi)
Set maxima for this object.
|
public MaximaFinder(ij.process.ImageProcessor ip)
ip
- Image processor with image to analyse.public void computeMaximaIJ(double tolerance)
tolerance
- tolerancepublic void computeMaximaImage(ij.process.ImageProcessor mximaMap)
This method can be used for restoring maxima in compatible format supported by this class from other image created outside.
mximaMap
- map of maxima in image used for constructing this objectpublic void setMaximad(Collection<Point2d> maxi)
This can be used for setting maxima explicitly. Any use of computeMaximaIJ(double)
or
computeMaximaImage(ImageProcessor)
will override these values.
maxi
- list of maxima coordinates.public void setMaxima(Collection<? extends Point2D> maxi)
This can be used for setting maxima explicitly. Any use of computeMaximaIJ(double)
or
computeMaximaImage(ImageProcessor)
will override these values.
maxi
- list of maxima coordinates. Note that these values should relate to image
coordinates (integer row and column) even if axis labels are different. Both coordinates
are used for indexing STmap
.public double[] getMaxValues()
Must be called after getMaxima.
public Polygon getMaxima()
computeMaximaIJ(double)
. The coordinates depend on
orientation of input image. For typical application like analysis of motility map, x
axis stands for frames and y-axis for outline indexes.public int getMaximaNumber()
Copyright © 2002–2019 Department of Computer Science, Warwick University. All rights reserved.