public class MergeLabeling<L,I extends IntegerType<I>,B extends BooleanType<B>> extends AbstractBinaryHybridCF<ImgLabeling<L,I>,ImgLabeling<L,I>,ImgLabeling<L,I>> implements Contingent, Ops.Labeling.Merge
ImgLabeling
within a defined mask (if
provided). Outside of the mask, labels will be empty.SpecialOp.Flavor
NAME
Constructor and Description |
---|
MergeLabeling() |
Modifier and Type | Method and Description |
---|---|
void |
compute(ImgLabeling<L,I> input1,
ImgLabeling<L,I> input2,
ImgLabeling<L,I> output)
Computes the output given two inputs.
|
boolean |
conforms()
True if the contingency holds; i.e., the current circumstances conform to
the contingency's requirements.
|
ImgLabeling<L,I> |
createOutput(ImgLabeling<L,I> input1,
ImgLabeling<L,I> 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 boolean conforms()
Contingent
conforms
in interface Contingent
public void compute(ImgLabeling<L,I> input1, ImgLabeling<L,I> input2, ImgLabeling<L,I> output)
BinaryComputerOp
compute
in interface BinaryComputerOp<ImgLabeling<L,I extends IntegerType<I>>,ImgLabeling<L,I extends IntegerType<I>>,ImgLabeling<L,I extends IntegerType<I>>>
input1
- first argument to the computation, which
must be non-nullinput2
- second argument to the computation, which
must be non-nulloutput
- object where the computation's result will be stored, which
must be non-null and a different object than
input1
and input2
public ImgLabeling<L,I> createOutput(ImgLabeling<L,I> input1, ImgLabeling<L,I> input2)
BinaryOutputFactory
createOutput
in interface BinaryOutputFactory<ImgLabeling<L,I extends IntegerType<I>>,ImgLabeling<L,I extends IntegerType<I>>,ImgLabeling<L,I extends IntegerType<I>>>
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.