Search in sources :

Example 1 with MappedImageStack

use of uk.ac.sussex.gdsc.core.ij.MappedImageStack in project GDSC-SMLM by aherbert.

the class ImageJImagePeakResults method createNewImageStack.

private ImageStack createNewImageStack(int width, int height) {
    if ((displayFlags & DISPLAY_MAPPED) != 0) {
        final MappedImageStack stack = new MappedImageStack(width, height);
        stack.setMapZero((displayFlags & DISPLAY_MAP_ZERO) != 0);
        return stack;
    }
    if ((displayFlags & DISPLAY_NEGATIVES) != 0) {
        return new InfinityMappedImageStack(width, height);
    }
    return new ImageStack(width, height);
}
Also used : InfinityMappedImageStack(uk.ac.sussex.gdsc.core.ij.InfinityMappedImageStack) MappedImageStack(uk.ac.sussex.gdsc.core.ij.MappedImageStack) InfinityMappedImageStack(uk.ac.sussex.gdsc.core.ij.InfinityMappedImageStack) InfinityMappedImageStack(uk.ac.sussex.gdsc.core.ij.InfinityMappedImageStack) MappedImageStack(uk.ac.sussex.gdsc.core.ij.MappedImageStack) ImageStack(ij.ImageStack)

Aggregations

ImageStack (ij.ImageStack)1 InfinityMappedImageStack (uk.ac.sussex.gdsc.core.ij.InfinityMappedImageStack)1 MappedImageStack (uk.ac.sussex.gdsc.core.ij.MappedImageStack)1