public class Thresholder extends Object
BitType images from
Comparable images.| Constructor and Description |
|---|
Thresholder() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Type<T> & Comparable<T>> |
threshold(Img<T> source,
T threshold,
boolean above,
int numThreads)
Returns a new boolean
Img generated by thresholding the values of
the source image. |
public static final <T extends Type<T> & Comparable<T>> Img<BitType> threshold(Img<T> source, T threshold, boolean above, int numThreads)
Img generated by thresholding the values of
the source image.source - the image to threshold.threshold - the threshold.above - if true, the target value will be true for source
values above the threshold, false otherwise.numThreads - the number of threads to use for thresholding.Img of type BitType and of same dimension
that the source image.Copyright © 2015–2022 ImgLib2. All rights reserved.