public class CurveCollection extends Object implements CurveReporter
Modifier and Type | Field and Description |
---|---|
protected Vector |
curveListeners |
protected ICurveFitter[][][] |
curves
Curve fit data, dimensioned [maxDepth][numRows][numCols].
|
protected int |
depth
Total number of samplings, counting full-resolution image.
|
protected int |
numCols
Full image resolution.
|
protected int |
numRows
Full image resolution.
|
Constructor and Description |
---|
CurveCollection(ICurveFitter[][] curveFitters)
Creates an object to manage the given collection of curves.
|
CurveCollection(int[][][] data,
Class curveFitterClass,
int binRadius,
int firstIndex,
int lastIndex)
Creates an object to manage a collection of curves for the given data.
|
Modifier and Type | Method and Description |
---|---|
void |
addCurveListener(CurveListener l) |
void |
computeCurves()
Computes subsamplings.
|
void |
fireCurveEvent(CurveEvent e) |
ICurveFitter[][] |
getCurves()
Gets the collection of curves at full resolution.
|
ICurveFitter[][] |
getCurves(int depth)
Gets the collection of curves subsampled at the given depth.
|
boolean[][] |
getFixed()
Gets which parameters should be fixed, versus allowed to converge.
|
int |
getNumCols()
Gets the full X resolution.
|
int |
getNumRows()
Gets the full Y resolution.
|
int |
getSubsamplingDepth()
Gets the maximum subsampling depth of the curve collection.
|
static ICurveFitter[][] |
makeCurveFitters(int[][][] data,
Class curveFitterClass,
int binRadius,
int firstIndex,
int lastIndex)
Creates a list of curve fitters using the given data as a source.
|
static ICurveFitter |
newCurveFitter(Class c) |
void |
removeCurveListener(CurveListener l) |
void |
setComponentCount(int numExp)
Sets how many exponentials are expected to be fitted.
|
void |
setFixed(boolean[][] fixed)
Sets which parameters should be fixed, versus allowed to converge.
|
protected int numRows
protected int numCols
protected int depth
protected ICurveFitter[][][] curves
protected Vector curveListeners
public CurveCollection(int[][][] data, Class curveFitterClass, int binRadius, int firstIndex, int lastIndex)
data
- Data array dimensioned [numRows][numCols][timeBins].curveFitterClass
- Class representing the type of curve fitters to
use (e.g., loci.slim.fit.GACurveFitter or loci.slim.fit.LMCurveFitter).binRadius
- Radius of neighboring pixels to bin,
to improve signal-to-noise ratio.public CurveCollection(ICurveFitter[][] curveFitters)
curveFitters
- Array of curve fitters dimensioned [numRows][numCols].public void computeCurves()
public int getNumRows()
public int getNumCols()
public ICurveFitter[][] getCurves()
public ICurveFitter[][] getCurves(int depth)
IllegalArgumentException
- if the subsampling depth is greater than getSubsamplingDepth()
public int getSubsamplingDepth()
public void setComponentCount(int numExp)
public void setFixed(boolean[][] fixed)
public boolean[][] getFixed()
public void addCurveListener(CurveListener l)
addCurveListener
in interface CurveReporter
public void removeCurveListener(CurveListener l)
removeCurveListener
in interface CurveReporter
public void fireCurveEvent(CurveEvent e)
fireCurveEvent
in interface CurveReporter
public static ICurveFitter[][] makeCurveFitters(int[][][] data, Class curveFitterClass, int binRadius, int firstIndex, int lastIndex)
public static ICurveFitter newCurveFitter(Class c)
Copyright © 2015–2022 SciJava. All rights reserved.