public class FloodFill extends Object
Constructor and Description |
---|
FloodFill() |
Modifier and Type | Method and Description |
---|---|
static <T,U> void |
fill(RandomAccessible<T> source,
RandomAccessible<U> target,
Localizable seed,
Shape shape,
BiPredicate<T,U> filter,
Consumer<U> writer)
Iterative n-dimensional flood fill for arbitrary neighborhoods: Starting
at seed location, write fillLabel into target at current location and
continue for each pixel in neighborhood defined by shape if neighborhood
pixel is in the same connected component and fillLabel has not been
written into that location yet.
|
static <T,U extends Type<U>> |
fill(RandomAccessible<T> source,
RandomAccessible<U> target,
Localizable seed,
T seedLabel,
U fillLabel,
Shape shape,
Filter<Pair<T,U>,Pair<T,U>> filter)
Deprecated.
|
static <T,U> void |
fill(RandomAccessible<T> source,
RandomAccessible<U> target,
Localizable seed,
T seedLabel,
U fillLabel,
Shape shape,
Filter<Pair<T,U>,Pair<T,U>> filter,
Writer<U> writer)
Deprecated.
|
static <T extends Type<T>,U extends Type<U>> |
fill(RandomAccessible<T> source,
RandomAccessible<U> target,
Localizable seed,
U fillLabel,
Shape shape)
Iterative n-dimensional flood fill for arbitrary neighborhoods: Starting
at seed location, write fillLabel into target at current location and
continue for each pixel in neighborhood defined by shape if neighborhood
pixel is in the same connected component and fillLabel has not been
written into that location yet.
|
static <T,U extends Type<U>> |
fill(RandomAccessible<T> source,
RandomAccessible<U> target,
Localizable seed,
U fillLabel,
Shape shape,
BiPredicate<T,U> filter)
Iterative n-dimensional flood fill for arbitrary neighborhoods: Starting
at seed location, write fillLabel into target at current location and
continue for each pixel in neighborhood defined by shape if neighborhood
pixel is in the same connected component and fillLabel has not been
written into that location yet.
|
static <T extends Type<T>,U extends Type<U>> |
fill(RandomAccessible<T> source,
RandomAccessible<U> target,
Localizable seed,
U fillLabel,
Shape shape,
Filter<Pair<T,U>,Pair<T,U>> filter)
Deprecated.
|
public static <T extends Type<T>,U extends Type<U>> void fill(RandomAccessible<T> source, RandomAccessible<U> target, Localizable seed, U fillLabel, Shape shape)
fill(RandomAccessible, RandomAccessible, Localizable, Type, Shape, BiPredicate)
.
seedLabel is extracted from source at seed location.T
- input pixel typeU
- fill label typesource
- inputtarget
- RandomAccessible
to be written into. May be the same
as input.seed
- Start flood fill at this location.fillLabel
- Immutable. Value to be written into valid flood fill
locations.shape
- Defines neighborhood that is considered for connected
components, e.g.
DiamondShape
public static <T,U extends Type<U>> void fill(RandomAccessible<T> source, RandomAccessible<U> target, Localizable seed, U fillLabel, Shape shape, BiPredicate<T,U> filter)
fill(RandomAccessible, RandomAccessible, Localizable, Shape, BiPredicate, Consumer)
with Type.set(T)
as writer.T
- input pixel typeU
- fill label typesource
- inputtarget
- RandomAccessible
to be written into. May be the same
as input.seed
- Start flood fill at this location.fillLabel
- Immutable. Value to be written into valid flood fill
locations.shape
- Defines neighborhood that is considered for connected
components, e.g.
DiamondShape
filter
- Returns true if pixel has not been visited yet and should be
written into. Returns false if target pixel has been visited
or source pixel is not part of the same connected component.public static <T,U> void fill(RandomAccessible<T> source, RandomAccessible<U> target, Localizable seed, Shape shape, BiPredicate<T,U> filter, Consumer<U> writer)
T
- input pixel typeU
- fill label typesource
- inputtarget
- RandomAccessible
to be written into. May be the same
as input.seed
- Start flood fill at this location.shape
- Defines neighborhood that is considered for connected
components, e.g.
DiamondShape
filter
- Returns true if pixel has not been visited yet and should be
written into. Returns false if target pixel has been visited
or source pixel is not part of the same connected component.writer
- Defines how fill label is written into target at current
location.@Deprecated public static <T extends Type<T>,U extends Type<U>> void fill(RandomAccessible<T> source, RandomAccessible<U> target, Localizable seed, U fillLabel, Shape shape, Filter<Pair<T,U>,Pair<T,U>> filter)
fill(RandomAccessible, RandomAccessible, Localizable, Object, Type, Shape, Filter)
. seedLabel is extracted from source at seed location.T
- input pixel typeU
- fill label typesource
- inputtarget
- RandomAccessible
to be written into. May be the same
as input.seed
- Start flood fill at this location.fillLabel
- Immutable. Value to be written into valid flood fill
locations.filter
- Returns true if pixel has not been visited yet and should be
written into. Returns false if target pixel has been visited
or source pixel is not part of the same connected component.@Deprecated public static <T,U extends Type<U>> void fill(RandomAccessible<T> source, RandomAccessible<U> target, Localizable seed, T seedLabel, U fillLabel, Shape shape, Filter<Pair<T,U>,Pair<T,U>> filter)
fill(RandomAccessible, RandomAccessible, Localizable, Object, Object, Shape, Filter, Writer)
with TypeWriter
as writer.T
- input pixel typeU
- fill label typesource
- inputtarget
- RandomAccessible
to be written into. May be the same
as input.seed
- Start flood fill at this location.seedLabel
- Immutable. Reference value of input at seed location.fillLabel
- Immutable. Value to be written into valid flood fill
locations.filter
- Returns true if pixel has not been visited yet and should be
written into. Returns false if target pixel has been visited
or source pixel is not part of the same connected component.@Deprecated public static <T,U> void fill(RandomAccessible<T> source, RandomAccessible<U> target, Localizable seed, T seedLabel, U fillLabel, Shape shape, Filter<Pair<T,U>,Pair<T,U>> filter, Writer<U> writer)
T
- input pixel typeU
- fill label typesource
- inputtarget
- RandomAccessible
to be written into. May be the same
as input.seed
- Start flood fill at this location.seedLabel
- Immutable. Reference value of input at seed location.fillLabel
- Immutable. Value to be written into valid flood fill
locations.shape
- Defines neighborhood that is considered for connected
components, e.g.
DiamondShape
filter
- Returns true if pixel has not been visited yet and should be
written into. Returns false if target pixel has been visited
or source pixel is not part of the same connected component.writer
- Defines how fillLabel is written into target at current
location.Copyright © 2015–2022 ImgLib2. All rights reserved.