public class TopHat extends Object
Modifier and Type | Method and Description |
---|---|
static <T extends RealType<T>> |
topHat(Img<T> source,
List<? extends Shape> strels,
int numThreads)
|
static <T extends Type<T> & Comparable<T> & Sub<T>> |
topHat(Img<T> source,
List<? extends Shape> strels,
T minVal,
T maxVal,
int numThreads)
Performs the top-hat (white top-hat) morphological operation, using a
list of
Shape s as a flat structuring element. |
static <T extends RealType<T>> |
topHat(Img<T> source,
Shape strel,
int numThreads)
|
static <T extends Type<T> & Comparable<T> & Sub<T>> |
topHat(Img<T> source,
Shape strel,
T minVal,
T maxVal,
int numThreads)
Performs the top-hat (white top-hat) morphological operation, using a
Shape as a flat structuring element. |
static <T extends RealType<T>> |
topHat(RandomAccessible<T> source,
IterableInterval<T> target,
List<? extends Shape> strels,
int numThreads)
Performs the top-hat (white top-hat) morphological operation on a
RealType source RandomAccessible , using a list of
Shape s as a structuring element, and writes the result on a
specified target which must be an IterableInterval . |
static <T extends Type<T> & Comparable<T> & Sub<T>> |
topHat(RandomAccessible<T> source,
IterableInterval<T> target,
List<? extends Shape> strels,
T minVal,
T maxVal,
int numThreads)
Performs the top-hat (white top-hat) morphological operation on a source
RandomAccessible , using a list of Shape s as a structuring
element, and writes the result on a specified target which must be an
IterableInterval . |
static <T extends RealType<T>> |
topHat(RandomAccessible<T> source,
IterableInterval<T> target,
Shape strel,
int numThreads)
Performs the top-hat (white top-hat) morphological operation on a
RealType source RandomAccessible , using a Shape
as a structuring element, and writes the result on a specified target
which must be an IterableInterval . |
static <T extends Type<T> & Comparable<T> & Sub<T>> |
topHat(RandomAccessible<T> source,
IterableInterval<T> target,
Shape strel,
T minVal,
T maxVal,
int numThreads)
Performs the top-hat (white top-hat) morphological operation on a source
RandomAccessible , using a Shape as a structuring element,
and writes the result on a specified target which must be an
IterableInterval . |
static <T extends RealType<T>> |
topHatInPlace(RandomAccessible<T> source,
Interval interval,
List<? extends Shape> strels,
int numThreads)
|
static <T extends Type<T> & Comparable<T> & Sub<T>> |
topHatInPlace(RandomAccessible<T> source,
Interval interval,
List<? extends Shape> strels,
T minVal,
T maxVal,
int numThreads)
Performs the top-hat (white top-hat) morphological operation, using a
list of
Shape s as a flat structuring element. |
static <T extends RealType<T>> |
topHatInPlace(RandomAccessible<T> source,
Interval interval,
Shape strel,
int numThreads)
|
static <T extends Type<T> & Comparable<T> & Sub<T>> |
topHatInPlace(RandomAccessible<T> source,
Interval interval,
Shape strel,
T minVal,
T maxVal,
int numThreads)
Performs the top-hat (white top-hat) morphological operation, using a
Shape as a flat structuring element. |
public static <T extends RealType<T>> Img<T> topHat(Img<T> source, List<? extends Shape> strels, int numThreads)
RealType
Img
using a list of Shape
s as a flat
structuring element.
See Top-hat
transform.
The result image has the same dimensions that of the source image. It is
limited to flat structuring elements, only having on/off
pixels, contrary to grayscale structuring elements. This allows to simply
use a Shape
as a type for these structuring elements.
The structuring element is specified through a list of Shape
s, to
allow for performance optimization through structuring element
decomposition. Each shape is processed in order as given in the list. If
the list is empty, the source image is returned.
T
- the type of the source image and the top-hat result. Must be a
sub-type of T extends RealType
.source
- the source image.strels
- the structuring element as a list of Shape
s.numThreads
- the number of threads to use for the calculation.Img
, of same dimensions than the source.public static <T extends Type<T> & Comparable<T> & Sub<T>> Img<T> topHat(Img<T> source, List<? extends Shape> strels, T minVal, T maxVal, int numThreads)
Shape
s as a flat structuring element.
See Top-hat
transform.
The result image has the same dimensions that of the source image. It is
limited to flat structuring elements, only having on/off
pixels, contrary to grayscale structuring elements. This allows to simply
use a Shape
as a type for these structuring elements.
The structuring element is specified through a list of Shape
s, to
allow for performance optimization through structuring element
decomposition. Each shape is processed in order as given in the list. If
the list is empty, the source image is returned.
This method relies on a specified minimal and maximal value to start
comparing to other pixels in the neighborhood. For this code to perform
properly, it is sufficient that the specified min value is smaller
(against Comparable
) than any of the value found in the source
image, and the converse for the max value. These normally unseen
parameters are required to operate on
T extends Comparable & Type
.
T
- the type of the source image and the top-hat result. Must be a
sub-type of T extends Comparable & Sub
,
because we want to be able to compare pixels between
themselves and to subtract them.source
- the source image.strels
- the structuring element as a list of Shape
s.minVal
- a T containing set to a value smaller than any of the values
in the source Img
(against Comparable
).maxVal
- a T containing set to a value larger than any of the values in
the source Img
(against Comparable
).numThreads
- the number of threads to use for the calculation.Img
, of same dimensions than the source.public static <T extends RealType<T>> Img<T> topHat(Img<T> source, Shape strel, int numThreads)
RealType
Img
using a Shape
as a flat structuring
element.
See Top-hat
transform.
The result image has the same dimensions that of the source image. It is
limited to flat structuring elements, only having on/off
pixels, contrary to grayscale structuring elements. This allows to simply
use a Shape
as a type for these structuring elements.
T
- the type of the source image and the top-hat result. Must be a
sub-type of T extends RealType
.source
- the source image.strel
- the structuring element as a Shape
.numThreads
- the number of threads to use for the calculation.Img
, of same dimensions than the source.public static <T extends Type<T> & Comparable<T> & Sub<T>> Img<T> topHat(Img<T> source, Shape strel, T minVal, T maxVal, int numThreads)
Shape
as a flat structuring element.
See Top-hat
transform.
The result image has the same dimensions that of the source image. It is
limited to flat structuring elements, only having on/off
pixels, contrary to grayscale structuring elements. This allows to simply
use a Shape
as a type for these structuring elements.
This method relies on a specified minimal and maximal value to start
comparing to other pixels in the neighborhood. For this code to perform
properly, it is sufficient that the specified min value is smaller
(against Comparable
) than any of the value found in the source
image, and the converse for the max value. These normally unseen
parameters are required to operate on
T extends Comparable & Sub
.
T
- the type of the source image and the top-hat result. Must be a
sub-type of T extends Comparable & Sub
,
because we want to be able to compare pixels between
themselves and to subtract them.source
- the source image.strel
- the structuring element as a Shape
.minVal
- a T containing set to a value smaller than any of the values
in the source Img
(against Comparable
).maxVal
- a T containing set to a value larger than any of the values in
the source Img
(against Comparable
).numThreads
- the number of threads to use for the calculation.Img
, of same dimensions than the source.public static <T extends RealType<T>> void topHat(RandomAccessible<T> source, IterableInterval<T> target, List<? extends Shape> strels, int numThreads)
RealType
source RandomAccessible
, using a list of
Shape
s as a structuring element, and writes the result on a
specified target which must be an IterableInterval
.
See Top-hat
transform.
Careful: Target must point to a different structure than source. In place operation will not work but will not generate an error.
It is the caller responsibility to ensure that the source is sufficiently
padded to properly cover the target range plus the shape size. See
e.g. Views.extendValue(RandomAccessibleInterval, Type)
It is limited to flat structuring elements, only having
on/off
pixels, contrary to grayscale structuring elements.
This allows to simply use a Shape
as a type for these structuring
elements.
The structuring element is specified through a list of Shape
s, to
allow for performance optimization through structuring element
decomposition. Each shape is processed in order as given in the list. If
the list is empty, the target receives a copy of the source.
T
- the type of the source and the result. Must extends
RealType
.source
- the RandomAccessible
to operate on.target
- the IterableInterval
to write the results on.strels
- the list of Shape
s that serves as a structuring
element.numThreads
- the number of threads to use for calculation.public static <T extends Type<T> & Comparable<T> & Sub<T>> void topHat(RandomAccessible<T> source, IterableInterval<T> target, List<? extends Shape> strels, T minVal, T maxVal, int numThreads)
RandomAccessible
, using a list of Shape
s as a structuring
element, and writes the result on a specified target which must be an
IterableInterval
.
See Top-hat
transform.
Careful: Target must point to a different structure than source. In place operation will not work but will not generate an error.
It is the caller responsibility to ensure that the source is sufficiently
padded to properly cover the target range plus the shape size. See
e.g. Views.extendValue(RandomAccessibleInterval, Type)
It is limited to flat structuring elements, only having
on/off
pixels, contrary to grayscale structuring elements.
This allows to simply use a Shape
as a type for these structuring
elements.
The structuring element is specified through a list of Shape
s, to
allow for performance optimization through structuring element
decomposition. Each shape is processed in order as given in the list. If
the list is empty, the target receives a copy of the source.
This method relies on specified minimal and maximal values to start
comparing to other pixels in the neighborhood. For this code to properly
perform, it is sufficient that the specified max value is larger (against
Comparable
) than any of the value found in the source image, and
conversely for the min value. These normally unseen parameters are
required to operate on
T extends Comparable & Sub
.
T
- the type of the source image and the top-hat result. Must be a
sub-type of T extends Comparable & Sub
,
because we want to be able to compare pixels between
themselves and to subtract them.source
- the RandomAccessible
to operate on.target
- the IterableInterval
to write the results on.strels
- the list of Shape
s that serves as a structuring
element.minVal
- a T containing set to a value smaller than any of the values
in the source (against Comparable
).maxVal
- a T containing set to a value larger than any of the values in
the source (against Comparable
).numThreads
- the number of threads to use for calculation.public static <T extends RealType<T>> void topHat(RandomAccessible<T> source, IterableInterval<T> target, Shape strel, int numThreads)
RealType
source RandomAccessible
, using a Shape
as a structuring element, and writes the result on a specified target
which must be an IterableInterval
.
See Top-hat
transform.
Careful: Target must point to a different structure than source. In place operation will not work but will not generate an error.
It is the caller responsibility to ensure that the source is sufficiently
padded to properly cover the target range plus the shape size. See
e.g. Views.extendValue(RandomAccessibleInterval, Type)
It is limited to flat structuring elements, only having
on/off
pixels, contrary to grayscale structuring elements.
This allows to simply use a Shape
as a type for these structuring
elements.
T
- the type of the source and the result. Must extends
RealType
.source
- the RandomAccessible
to operate on.target
- the IterableInterval
to write the results on.strel
- the Shape
that serves as a structuring element.numThreads
- the number of threads to use for calculation.public static <T extends Type<T> & Comparable<T> & Sub<T>> void topHat(RandomAccessible<T> source, IterableInterval<T> target, Shape strel, T minVal, T maxVal, int numThreads)
RandomAccessible
, using a Shape
as a structuring element,
and writes the result on a specified target which must be an
IterableInterval
.
See Top-hat
transform.
Careful: Target must point to a different structure than source. In place operation will not work but will not generate an error.
It is the caller responsibility to ensure that the source is sufficiently
padded to properly cover the target range plus the shape size. See
e.g. Views.extendValue(RandomAccessibleInterval, Type)
It is limited to flat structuring elements, only having
on/off
pixels, contrary to grayscale structuring elements.
This allows to simply use a Shape
as a type for these structuring
elements.
This method relies on specified minimal and maximal values to start
comparing to other pixels in the neighborhood. For this code to properly
perform, it is sufficient that the specified max value is larger (against
Comparable
) than any of the value found in the source image, and
conversely for the min value. These normally unseen parameters are
required to operate on
T extends Comparable & Sub
.
T
- the type of the source image and the top-hat result. Must be a
sub-type of T extends Comparable & Sub
,
because we want to be able to compare pixels between
themselves and to subtract them.source
- the RandomAccessible
to operate on.target
- the IterableInterval
to write the results on.strel
- the Shape
that serves as a structuring element.minVal
- a T containing set to a value smaller than any of the values
in the source (against Comparable
).maxVal
- a T containing set to a value larger than any of the values in
the source (against Comparable
).numThreads
- the number of threads to use for calculation.public static <T extends RealType<T>> void topHatInPlace(RandomAccessible<T> source, Interval interval, List<? extends Shape> strels, int numThreads)
RealType
Img
using a list of Shape
s as a flat
structuring element.
See Top-hat
transform.
The result is written in the source image. This method is limited to flat
structuring elements, only having on/off
pixels, contrary to
grayscale structuring elements. This allows to simply use a Shape
as a type for these structuring elements.
It is the caller responsibility to ensure that the source is sufficiently
padded to properly cover the target range plus the shape size. See
e.g. Views.extendValue(RandomAccessibleInterval, Type)
.
The structuring element is specified through a list of Shape
s, to
allow for performance optimization through structuring element
decomposition. Each shape is processed in order as given in the list. If
the list is empty, the source image is left untouched.
T
- the type of the source image. Must be a sub-type of
T extends RealType
.source
- the source image.interval
- an interval in the source image to process.strels
- the structuring element as a list of Shape
s.numThreads
- the number of threads to use for the calculation.public static <T extends Type<T> & Comparable<T> & Sub<T>> void topHatInPlace(RandomAccessible<T> source, Interval interval, List<? extends Shape> strels, T minVal, T maxVal, int numThreads)
Shape
s as a flat structuring element.
See Top-hat
transform.
The result is written in the source image. This method is limited to flat
structuring elements, only having on/off
pixels, contrary to
grayscale structuring elements. This allows to simply use a Shape
as a type for these structuring elements.
It is the caller responsibility to ensure that the source is sufficiently
padded to properly cover the target range plus the shape size. See
e.g. Views.extendValue(RandomAccessibleInterval, Type)
The structuring element is specified through a list of Shape
s, to
allow for performance optimization through structuring element
decomposition. Each shape is processed in order as given in the list. If
the list is empty, the source image is left untouched.
This method relies on specified minimal and maximal values to start
comparing to other pixels in the neighborhood. For this code to properly
perform, it is sufficient that the specified max value is larger (against
Comparable
) than any of the value found in the source image, and
conversely for the min value. These normally unseen parameters are
required to operate on
T extends Comparable & Sub
.
T
- the type of the source image and the top-hat result. Must be a
sub-type of T extends Comparable & Sub
,
because we want to be able to compare pixels between
themselves and to subtract them.source
- the source image.interval
- an interval in the source image to process.strels
- the structuring element as a list of Shape
s.minVal
- a T containing set to a value smaller than any of the values
in the source (against Comparable
).maxVal
- a T containing set to a value larger than any of the values in
the source (against Comparable
).numThreads
- the number of threads to use for the calculation.public static <T extends RealType<T>> void topHatInPlace(RandomAccessible<T> source, Interval interval, Shape strel, int numThreads)
RealType
Img
using a Shape
as a flat structuring
element.
See Top-hat
transform.
The result is written in the source image. This method is limited to flat
structuring elements, only having on/off
pixels, contrary to
grayscale structuring elements. This allows to simply use a Shape
as a type for these structuring elements.
It is the caller responsibility to ensure that the source is sufficiently
padded to properly cover the target range plus the shape size. See
e.g. Views.extendValue(RandomAccessibleInterval, Type)
.
T
- the type of the source image. Must be a sub-type of
T extends RealType
.source
- the source image.interval
- an interval in the source image to process.strel
- the structuring element as a Shape
.numThreads
- the number of threads to use for the calculation.public static <T extends Type<T> & Comparable<T> & Sub<T>> void topHatInPlace(RandomAccessible<T> source, Interval interval, Shape strel, T minVal, T maxVal, int numThreads)
Shape
as a flat structuring element.
See Top-hat
transform.
The result is written in the source image. This method is limited to flat
structuring elements, only having on/off
pixels, contrary to
grayscale structuring elements. This allows to simply use a Shape
as a type for these structuring elements.
It is the caller responsibility to ensure that the source is sufficiently
padded to properly cover the target range plus the shape size. See
e.g. Views.extendValue(RandomAccessibleInterval, Type)
This method relies on specified minimal and maximal values to start
comparing to other pixels in the neighborhood. For this code to properly
perform, it is sufficient that the specified max value is larger (against
Comparable
) than any of the value found in the source image, and
conversely for the min value. These normally unseen parameters are
required to operate on
T extends Comparable & Sub
.
T
- the type of the source image and the top-hat result. Must be a
sub-type of T extends Comparable & Sub
,
because we want to be able to compare pixels between
themselves and to subtract them.source
- the source image.interval
- an interval in the source image to process.strel
- the structuring element as a Shape
.minVal
- a T containing set to a value smaller than any of the values
in the source (against Comparable
).maxVal
- a T containing set to a value larger than any of the values in
the source (against Comparable
).numThreads
- the number of threads to use for the calculation.Copyright © 2015–2022 ImgLib2. All rights reserved.