Search in sources :

Example 1 with LocalisationList

use of gdsc.smlm.ij.plugins.LoadLocalisations.LocalisationList in project GDSC-SMLM by aherbert.

the class CreateData method getSimulationResults.

private MemoryPeakResults getSimulationResults() {
    if (benchmarkAuto) {
        // Load directly from a results file. This is mainly to be used to load simulations 
        // saved to memory then saved to file. This is because the z-depth must be in the 
        // error field of the results.
        PeakResultsReader r = new PeakResultsReader(benchmarkFile);
        MemoryPeakResults results = r.getResults();
        if (results != null) {
            ResultsManager.checkCalibration(results);
            return results;
        }
    }
    // Load using a universal text file
    LocalisationList localisations = LoadLocalisations.loadLocalisations(benchmarkFile);
    if (localisations.isEmpty())
        return null;
    return localisations.toPeakResults();
}
Also used : LocalisationList(gdsc.smlm.ij.plugins.LoadLocalisations.LocalisationList) MemoryPeakResults(gdsc.smlm.results.MemoryPeakResults) PeakResultsReader(gdsc.smlm.results.PeakResultsReader)

Aggregations

LocalisationList (gdsc.smlm.ij.plugins.LoadLocalisations.LocalisationList)1 MemoryPeakResults (gdsc.smlm.results.MemoryPeakResults)1 PeakResultsReader (gdsc.smlm.results.PeakResultsReader)1