public class Peak extends AbstractJsonConvertibleRecord implements net.imglib2.RealLocalizable
RealLocalizable
to allow for KDTree searches. Depending on the
implementation, Peaks can be assigned a UID, colorName, Rsquared, as well as
t and c position. All parameters from subpixel localization are included as
well as error margins. Peaks can be linked to other peaks. The valid
parameter is used for convenience in tracking algorithms.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AREA |
static java.lang.String |
BASELINE |
static java.lang.String |
CIRCULARITY |
static java.lang.String |
HEIGHT |
static java.util.concurrent.atomic.AtomicLong |
idGenerator |
static java.lang.String |
INTENSITY |
static java.lang.String |
MEAN_BACKGROUND |
static java.lang.String |
MEDIAN_BACKGROUND |
static java.lang.String |
PERIMETER |
static java.lang.String |
R2 |
static java.lang.String |
SIGMA |
static java.lang.String |
T |
static java.lang.String |
UNCORRECTED_INTENSITY |
static java.lang.String |
X |
static java.lang.String |
Y |
Constructor and Description |
---|
Peak(double[] values) |
Peak(double x,
double y) |
Peak(double x,
double y,
double height,
double baseline,
double sigma,
int t) |
Peak(double x,
double y,
int t) |
Peak(com.fasterxml.jackson.core.JsonParser jParser) |
Peak(Peak peak) |
Peak(java.lang.String trackUID,
double x,
double y) |
Modifier and Type | Method and Description |
---|---|
protected void |
createIOMaps()
Must be implemented in subclasses to define how fields, objects, arrays
should be saved based on the Jackson streaming API.
|
Peak |
getBackwardLink() |
long |
getBackwardLinkID() |
double |
getBaseline() |
int |
getC() |
java.lang.String |
getColorName() |
double |
getDoublePosition(int arg0) |
float |
getFloatPosition(int arg0) |
Peak |
getForwardLink() |
long |
getForwardLinkID() |
double |
getHeight() |
long |
getID() |
double |
getIntensity() |
double |
getMeanBackground() |
double |
getMedianBackground() |
java.util.Map<java.lang.String,java.lang.Double> |
getProperties() |
double |
getRSquared() |
PeakShape |
getShape() |
double |
getSigma() |
int |
getT() |
java.lang.String |
getTrackUID() |
double |
getX() |
double |
getY() |
boolean |
isValid() |
void |
localize(double[] arg0) |
void |
localize(float[] arg0) |
int |
numDimensions() |
void |
reset() |
void |
reset(double x,
double y,
int t) |
void |
setBackwardLink(Peak link) |
void |
setBackwardLinkID(long backwardLinkID) |
void |
setC(int c) |
void |
setColorName(java.lang.String colorName) |
void |
setForwardLink(Peak link) |
void |
setForwardLinkID(long forwardLinkID) |
void |
setID(long id) |
void |
setIntensity(double intensity) |
void |
setMeanBackground(double meanBackground) |
void |
setMedianBackground(double medianBackground) |
void |
setProperty(java.lang.String name,
java.lang.Double value) |
void |
setRsquared(double R2value) |
void |
setShape(PeakShape peakShape) |
void |
setT(int t) |
void |
setTrackUID(java.lang.String trackUID) |
void |
setValid(boolean valid) |
void |
setValues(double[] values) |
void |
setX(double x) |
void |
setY(double y) |
dumpJSON, fromJSON, getJsonGenerator, getJsonParser, setJsonField, setShowWarnings, toJSON
public static final java.util.concurrent.atomic.AtomicLong idGenerator
public static final java.lang.String X
public static final java.lang.String Y
public static final java.lang.String T
public static final java.lang.String HEIGHT
public static final java.lang.String BASELINE
public static final java.lang.String SIGMA
public static final java.lang.String R2
public static final java.lang.String MEDIAN_BACKGROUND
public static final java.lang.String INTENSITY
public static final java.lang.String AREA
public static final java.lang.String PERIMETER
public static final java.lang.String CIRCULARITY
public static final java.lang.String UNCORRECTED_INTENSITY
public static final java.lang.String MEAN_BACKGROUND
public Peak(com.fasterxml.jackson.core.JsonParser jParser) throws java.io.IOException
java.io.IOException
public Peak(double[] values)
public Peak(double x, double y, double height, double baseline, double sigma, int t)
public Peak(double x, double y, int t)
public Peak(java.lang.String trackUID, double x, double y)
public Peak(double x, double y)
public Peak(Peak peak)
public void reset()
public void reset(double x, double y, int t)
public double getX()
public void setX(double x)
public double getY()
public void setY(double y)
public double getHeight()
public double getBaseline()
public double getSigma()
public PeakShape getShape()
public void setShape(PeakShape peakShape)
public boolean isValid()
public void setValid(boolean valid)
public void setID(long id)
public long getID()
public void setTrackUID(java.lang.String trackUID)
public java.lang.String getTrackUID()
public int getT()
public void setT(int t)
public int getC()
public void setC(int c)
public void setColorName(java.lang.String colorName)
public java.lang.String getColorName()
public java.util.Map<java.lang.String,java.lang.Double> getProperties()
public void setProperty(java.lang.String name, java.lang.Double value)
public void setValues(double[] values)
public void setForwardLink(Peak link)
public Peak getForwardLink()
public void setForwardLinkID(long forwardLinkID)
public long getForwardLinkID()
public void setBackwardLink(Peak link)
public Peak getBackwardLink()
public void setBackwardLinkID(long backwardLinkID)
public long getBackwardLinkID()
public void setIntensity(double intensity)
public double getIntensity()
public void setMedianBackground(double medianBackground)
public double getMedianBackground()
public void setMeanBackground(double meanBackground)
public double getMeanBackground()
public void setRsquared(double R2value)
public double getRSquared()
public int numDimensions()
numDimensions
in interface net.imglib2.EuclideanSpace
public double getDoublePosition(int arg0)
getDoublePosition
in interface net.imglib2.RealLocalizable
public float getFloatPosition(int arg0)
getFloatPosition
in interface net.imglib2.RealLocalizable
public void localize(float[] arg0)
localize
in interface net.imglib2.RealLocalizable
public void localize(double[] arg0)
localize
in interface net.imglib2.RealLocalizable
protected void createIOMaps()
AbstractJsonConvertibleRecord
createIOMaps
in class AbstractJsonConvertibleRecord