use of uk.ac.sussex.gdsc.smlm.engine.FitParameters in project GDSC-SMLM by aherbert.
the class PeakFit method createJob.
private FitJob createJob(int startFrame, int endFrame, float[] data, Rectangle bounds, float noise) {
FitParameters fitParams = null;
if (startFrame != endFrame) {
fitParams = new FitParameters();
fitParams.endT = endFrame;
}
if (maximaIdentification) {
if (fitParams == null) {
fitParams = new FitParameters();
}
fitParams.fitTask = FitTask.MAXIMA_IDENITIFICATION;
fitParams.noise = noise;
} else if (!Float.isNaN(noise)) {
if (fitParams == null) {
fitParams = new FitParameters();
}
fitParams.fitTask = FitTask.PSF_FITTING;
fitParams.noise = noise;
}
if (fitParams != null) {
return new ParameterisedFitJob(fitParams, startFrame, data, bounds);
}
return new FitJob(startFrame, data, bounds);
}
Aggregations