Search in sources :

Example 11 with ImageJImagePeakResults

use of uk.ac.sussex.gdsc.smlm.ij.results.ImageJImagePeakResults in project GDSC-SMLM by aherbert.

the class PulseActivationAnalysis method addImageResults.

private void addImageResults(PeakResultsList resultsList, String title, Rectangle bounds, double nmPerPixel, ResultsImageSettings imageSettings) {
    if (imageSettings.getImageTypeValue() > 0) {
        final ResultsImageSettings.Builder builder = imageSettings.toBuilder();
        builder.setImageMode(ResultsImageMode.IMAGE_ADD);
        final ImageJImagePeakResults image = ImagePeakResultsFactory.createPeakResultsImage(builder, title, bounds, nmPerPixel);
        image.setLiveImage(false);
        image.setDisplayImage(settings.channels == 1);
        resultsList.addOutput(image);
    }
}
Also used : ResultsImageSettings(uk.ac.sussex.gdsc.smlm.data.config.ResultsProtos.ResultsImageSettings) ImageJImagePeakResults(uk.ac.sussex.gdsc.smlm.ij.results.ImageJImagePeakResults)

Example 12 with ImageJImagePeakResults

use of uk.ac.sussex.gdsc.smlm.ij.results.ImageJImagePeakResults in project GDSC-SMLM by aherbert.

the class PulseActivationAnalysis method getImage.

private static ImageProcessor getImage(PeakResultsList peakResultsList) {
    final PeakResults[] list = peakResultsList.toArray();
    final ImageJImagePeakResults image = (ImageJImagePeakResults) list[1];
    return image.getImagePlus().getProcessor();
}
Also used : MemoryPeakResults(uk.ac.sussex.gdsc.smlm.results.MemoryPeakResults) ImageJImagePeakResults(uk.ac.sussex.gdsc.smlm.ij.results.ImageJImagePeakResults) PeakResults(uk.ac.sussex.gdsc.smlm.results.PeakResults) ImageJImagePeakResults(uk.ac.sussex.gdsc.smlm.ij.results.ImageJImagePeakResults)

Aggregations

ImageJImagePeakResults (uk.ac.sussex.gdsc.smlm.ij.results.ImageJImagePeakResults)12 ResultsImageSettings (uk.ac.sussex.gdsc.smlm.data.config.ResultsProtos.ResultsImageSettings)5 MemoryPeakResults (uk.ac.sussex.gdsc.smlm.results.MemoryPeakResults)5 ImageProcessor (ij.process.ImageProcessor)4 Rectangle (java.awt.Rectangle)4 UniformRandomProvider (org.apache.commons.rng.UniformRandomProvider)3 ImagePlus (ij.ImagePlus)2 FloatProcessor (ij.process.FloatProcessor)2 SharedStateContinuousSampler (org.apache.commons.rng.sampling.distribution.SharedStateContinuousSampler)2 PeakResult (uk.ac.sussex.gdsc.smlm.results.PeakResult)2 PeakResults (uk.ac.sussex.gdsc.smlm.results.PeakResults)2 SeededTest (uk.ac.sussex.gdsc.test.junit5.SeededTest)2 AtomicDouble (com.google.common.util.concurrent.AtomicDouble)1 TDoubleArrayList (gnu.trove.list.array.TDoubleArrayList)1 IJ (ij.IJ)1 Macro (ij.Macro)1 Prefs (ij.Prefs)1 WindowManager (ij.WindowManager)1 DialogListener (ij.gui.DialogListener)1 GenericDialog (ij.gui.GenericDialog)1