use of uk.ac.sussex.gdsc.smlm.ij.settings.GUIProtos.PSFCalculatorSettings in project GDSC-SMLM by aherbert.
the class PsfCalculator method run.
@Override
public void run(String arg) {
SmlmUsageTracker.recordPlugin(this.getClass(), arg);
final PSFCalculatorSettings settings = SettingsManager.readPsfCalculatorSettings(0);
final double sd = calculate(settings, false);
if (sd < 0) {
return;
}
SettingsManager.writeSettings(this.settingsBuilder);
final FitEngineConfiguration config = SettingsManager.readFitEngineConfiguration(0);
final FitConfiguration fitConfig = config.getFitConfiguration();
fitConfig.setNmPerPixel(getPixelPitch());
fitConfig.setPsfType(PSFType.ONE_AXIS_GAUSSIAN_2D);
fitConfig.setInitialPeakStdDev(sd);
SettingsManager.writeSettings(config, 0);
}
Aggregations