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);
}
}
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();
}
Aggregations