public class Outline<B extends BooleanType<B>> extends AbstractBinaryHybridCF<RandomAccessibleInterval<B>,Boolean,RandomAccessibleInterval<BitType>> implements Ops.Morphology.Outline
SpecialOp.Flavor
NAME
Constructor and Description |
---|
Outline() |
Modifier and Type | Method and Description |
---|---|
void |
compute(RandomAccessibleInterval<B> input,
Boolean excludeEdges,
RandomAccessibleInterval<BitType> output)
Copies the outlines of the objects in the input interval into the output
|
RandomAccessibleInterval<BitType> |
createOutput(RandomAccessibleInterval<B> input,
Boolean input2)
Create an output object given two inputs.
|
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
initialize
public RandomAccessibleInterval<BitType> createOutput(RandomAccessibleInterval<B> input, Boolean input2)
BinaryOutputFactory
createOutput
in interface BinaryOutputFactory<RandomAccessibleInterval<B extends BooleanType<B>>,Boolean,RandomAccessibleInterval<BitType>>
input
- first input which determines how to create the outputinput2
- second input which determines how to create the outputpublic void compute(RandomAccessibleInterval<B> input, Boolean excludeEdges, RandomAccessibleInterval<BitType> output)
compute
in interface BinaryComputerOp<RandomAccessibleInterval<B extends BooleanType<B>>,Boolean,RandomAccessibleInterval<BitType>>
input
- an N-dimensional binary intervalexcludeEdges
- are elements on stack edges outline or not
For example, a 2D square:
0 0 0 0
1 1 1 0
E 1 1 0
1 1 1 0
0 0 0 0
Element E is removed if parameter true, kept if false
output
- outlines of the objects in intervalCopyright © 2014–2022 ImageJ. All rights reserved.