public class DefaultFloodFill<T extends Type<T> & Comparable<T>> extends AbstractBinaryHybridCF<RandomAccessibleInterval<T>,Localizable,RandomAccessibleInterval<T>> implements Ops.Morphology.FloodFill
SpecialOp.Flavor
NAME
Constructor and Description |
---|
DefaultFloodFill() |
Modifier and Type | Method and Description |
---|---|
void |
compute(RandomAccessibleInterval<T> op0,
Localizable loc,
RandomAccessibleInterval<T> r)
Computes the output given two inputs.
|
RandomAccessibleInterval<T> |
createOutput(RandomAccessibleInterval<T> input1,
Localizable input2)
Create an output object given two inputs.
|
void |
initialize()
Initializes the object.
|
in1, in2, out, setInput1, setInput2, setOutput
ops, setEnvironment
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
ops, setEnvironment
calculate, calculate, createOutput, getIndependentInstance, run, run
compute
in, in1, in2, setInput, setInput1, setInput2
calculate, createOutput, run
compute
run
setOutput
candidates, filterArity, op
public void initialize()
Initializable
initialize
in interface Initializable
public void compute(RandomAccessibleInterval<T> op0, Localizable loc, RandomAccessibleInterval<T> r)
BinaryComputerOp
compute
in interface BinaryComputerOp<RandomAccessibleInterval<T extends Type<T> & Comparable<T>>,Localizable,RandomAccessibleInterval<T extends Type<T> & Comparable<T>>>
op0
- first argument to the computation, which
must be non-nullloc
- second argument to the computation, which
must be non-nullr
- object where the computation's result will be stored, which
must be non-null and a different object than
input1
and input2
public RandomAccessibleInterval<T> createOutput(RandomAccessibleInterval<T> input1, Localizable input2)
BinaryOutputFactory
createOutput
in interface BinaryOutputFactory<RandomAccessibleInterval<T extends Type<T> & Comparable<T>>,Localizable,RandomAccessibleInterval<T extends Type<T> & Comparable<T>>>
input1
- first input which determines how to create the outputinput2
- second input which determines how to create the outputCopyright © 2014–2022 ImageJ. All rights reserved.