public class MaskFactory extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MaskFactory.CombinationMode |
Constructor and Description |
---|
MaskFactory() |
Modifier and Type | Method and Description |
---|---|
static RandomAccessibleInterval<BitType> |
createMask(long[] dim)
Create a new mask image without any specific content, but with
a defined size.
|
static RandomAccessibleInterval<BitType> |
createMask(long[] dim,
boolean val)
Create a new mask image with a defined size and preset content.
|
static RandomAccessibleInterval<BitType> |
createMask(long[] dim,
long[] roiOffset,
long[] roiDim)
Create a new mask image with a defined size and preset content.
|
static <T extends RealType<T>> |
createMask(long[] dim,
RandomAccessibleInterval<T> origMask)
Creates a new mask of the given dimensions, based on the image data
in the passed image.
|
static <T extends RealType<T>> |
createMask(RandomAccessibleInterval<T> ch1,
RandomAccessibleInterval<T> ch2,
T threshold1,
T threshold2,
ThresholdMode tMode,
MaskFactory.CombinationMode cMode)
Create a new mask based on a threshold condition for two images.
|
public static RandomAccessibleInterval<BitType> createMask(long[] dim)
public static RandomAccessibleInterval<BitType> createMask(long[] dim, boolean val)
public static RandomAccessibleInterval<BitType> createMask(long[] dim, long[] roiOffset, long[] roiDim) throws MissingPreconditionException
MissingPreconditionException
public static <T extends RealType<T>> RandomAccessibleInterval<BitType> createMask(RandomAccessibleInterval<T> ch1, RandomAccessibleInterval<T> ch2, T threshold1, T threshold2, ThresholdMode tMode, MaskFactory.CombinationMode cMode)
public static <T extends RealType<T>> RandomAccessibleInterval<BitType> createMask(long[] dim, RandomAccessibleInterval<T> origMask)
dim
- The dimensions of the new mask imageorigMask
- The image from which the mask should be created fromCopyright © 2015–2021 Fiji. All rights reserved.