public class MapNeighborhoodWithCenter<I,O> extends AbstractMapNeighborhood<I,O,RandomAccessibleInterval<I>,IterableInterval<O>,CenterAwareComputerOp<I,O>>
CenterAwareComputerOp for each Neighborhood on
the input RandomAccessibleInterval and sets the value of the
corresponding pixel on the output IterableInterval. Similar
to DefaultMapNeighborhood, but passes the center pixel to the op as well.OpEnvironment.map(IterableInterval, RandomAccessibleInterval, Shape,
CenterAwareComputerOp),
CenterAwareComputerOpSpecialOp.Flavor| Constructor and Description |
|---|
MapNeighborhoodWithCenter() |
| Modifier and Type | Method and Description |
|---|---|
void |
compute(RandomAccessibleInterval<I> in1,
Shape in2,
IterableInterval<O> out)
Computes the output given two inputs.
|
void |
initialize()
Initializes the object.
|
getOp, setOpin1, in2, out, setInput1, setInput2, setOutputops, setEnvironmentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompute, getIndependentInstance, run, runin, in1, in2, setInput, setInput1, setInput2compute, runruncandidates, filterArity, opops, setEnvironmentsetOutputpublic void initialize()
Initializablepublic void compute(RandomAccessibleInterval<I> in1, Shape in2, IterableInterval<O> out)
BinaryComputerOpin1 - first argument to the computation, which
must be non-nullin2 - second argument to the computation, which
must be non-nullout - object where the computation's result will be stored, which
must be non-null and a different object than
input1 and input2Copyright © 2014–2022 ImageJ. All rights reserved.