public class FillConverter extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FillConverter.ResultType |
Constructor and Description |
---|
FillConverter(Collection<FillerThread> fillers) |
Modifier and Type | Method and Description |
---|---|
<T extends Type<T>> |
convert(RandomAccessible<T> in,
RandomAccessible<T> out)
Map values between the input and output at fill voxel positions.
|
<T extends SetOne> |
convertBinary(RandomAccessible<T> out)
Set 1 at fill voxel positions.
|
<T extends RealType<T>> |
convertDistance(RandomAccessible<T> out)
Map the node distance measure to fill voxel positions.
|
<T extends IntegerType<T>> |
convertLabels(RandomAccessible<T> out)
Map the fill component label to fill voxel positions.
|
SearchImageStack<DefaultSearchNode> |
getFillerStack()
Merges the input
FillerThread s into a single SearchImageStack . |
public FillConverter(Collection<FillerThread> fillers)
public <T extends Type<T>> void convert(RandomAccessible<T> in, RandomAccessible<T> out)
T
- in
- the input raiout
- the output raipublic <T extends SetOne> void convertBinary(RandomAccessible<T> out)
T
- out
- the output raipublic <T extends RealType<T>> void convertDistance(RandomAccessible<T> out)
Double
.T
- out
- the output raipublic <T extends IntegerType<T>> void convertLabels(RandomAccessible<T> out)
IntegerType
should be chosen based on the cardinality of
the given Collection
of FillerThread
s.
For example, if there are less than 256 FillerThread
s,
choose UnsignedByteType
. If there are more than 255 but less than
65536, choose UnsignedShortType
, etc. Fill components are assigned
labels based on their order in the collection. If you want to ensure labels are assigned based on insertion
order, make sure to use an ordered collection such as List
or LinkedHashSet
.
The first component will have label == 1, the second label == 2, and so on.
The label 0 is not assigned to any voxel positions. 0-valued voxels may already exist in the output image.T
- out
- the output raipublic SearchImageStack<DefaultSearchNode> getFillerStack()
FillerThread
s into a single SearchImageStack
. When a filled voxel position
is present in multiple filler instances, the node with the lowest g-score is chosen for inclusion in the merged
stack.Copyright © 2015–2021 Fiji. All rights reserved.