public class Regions extends Object
| Constructor and Description |
|---|
Regions() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends BooleanType<T>> |
countTrue(RandomAccessibleInterval<T> interval) |
static <B extends BooleanType<B>> |
iterable(RandomAccessibleInterval<B> region) |
static <T> IterableInterval<T> |
sample(IterableInterval<Void> region,
RandomAccessible<T> img) |
static <T> IterableInterval<T> |
sample(RealMaskRealInterval mask,
RandomAccessible<T> img)
Given a mask and an image, return an
IterableInterval
over the pixels of the image inside the mask. |
public static <T> IterableInterval<T> sample(IterableInterval<Void> region, RandomAccessible<T> img)
public static <T> IterableInterval<T> sample(RealMaskRealInterval mask, RandomAccessible<T> img)
IterableInterval
over the pixels of the image inside the mask.mask - The mask that defines which pixels in img to iterate over.img - The source from which to grab the pixels inside the mask.public static <B extends BooleanType<B>> IterableRegion<B> iterable(RandomAccessibleInterval<B> region)
public static <T extends BooleanType<T>> long countTrue(RandomAccessibleInterval<T> interval)
Copyright © 2009–2019 ImgLib2. All rights reserved.