Search in sources :

Example 6 with LocalisationModelSet

use of uk.ac.sussex.gdsc.smlm.model.LocalisationModelSet in project GDSC-SMLM by aherbert.

the class CreateData method createPsfModel.

private PsfModel createPsfModel(double[] xyz) {
    // Create a set with a single model
    final List<LocalisationModelSet> localisationSets = new LocalList<>(1);
    final LocalisationModelSet set = new LocalisationModelSet(0, 0);
    final LocalisationModel m = new LocalisationModel(0, 0, xyz, 1, 0);
    set.add(m);
    localisationSets.add(set);
    return createPsfModel(localisationSets);
}
Also used : LocalList(uk.ac.sussex.gdsc.core.utils.LocalList) LocalisationModel(uk.ac.sussex.gdsc.smlm.model.LocalisationModel) LocalisationModelSet(uk.ac.sussex.gdsc.smlm.model.LocalisationModelSet)

Aggregations

LocalisationModelSet (uk.ac.sussex.gdsc.smlm.model.LocalisationModelSet)6 LocalisationModel (uk.ac.sussex.gdsc.smlm.model.LocalisationModel)5 ReadHint (uk.ac.sussex.gdsc.smlm.results.ImageSource.ReadHint)4 TFloatArrayList (gnu.trove.list.array.TFloatArrayList)2 TIntArrayList (gnu.trove.list.array.TIntArrayList)2 ImagePlus (ij.ImagePlus)2 IOException (java.io.IOException)2 ArrayList (java.util.ArrayList)2 AtomicInteger (java.util.concurrent.atomic.AtomicInteger)2 NullArgumentException (org.apache.commons.math3.exception.NullArgumentException)2 DataException (uk.ac.sussex.gdsc.core.data.DataException)2 ConversionException (uk.ac.sussex.gdsc.core.data.utils.ConversionException)2 ConfigurationException (uk.ac.sussex.gdsc.smlm.data.config.ConfigurationException)2 ImagePsfModel (uk.ac.sussex.gdsc.smlm.model.ImagePsfModel)2 SpatialDistribution (uk.ac.sussex.gdsc.smlm.model.SpatialDistribution)2 TIntIntHashMap (gnu.trove.map.hash.TIntIntHashMap)1 TIntHashSet (gnu.trove.set.hash.TIntHashSet)1 ImageStack (ij.ImageStack)1 GenericDialog (ij.gui.GenericDialog)1 Rectangle (java.awt.Rectangle)1