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.FlavorNAME| 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, setOutputops, setEnvironmentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitops, setEnvironmentcalculate, calculate, createOutput, getIndependentInstance, run, runcomputein, in1, in2, setInput, setInput1, setInput2calculate, createOutput, runcomputerunsetOutputcandidates, filterArity, oppublic void initialize()
Initializableinitialize in interface Initializablepublic boolean conforms()
Contingentconforms in interface Contingentpublic void compute(ImgLabeling<L,I> input1, ImgLabeling<L,I> input2, ImgLabeling<L,I> output)
BinaryComputerOpcompute 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 input2public ImgLabeling<L,I> createOutput(ImgLabeling<L,I> input1, ImgLabeling<L,I> input2)
BinaryOutputFactorycreateOutput 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.