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)
,
CenterAwareComputerOp
SpecialOp.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, setOp
in1, in2, out, setInput1, setInput2, setOutput
ops, setEnvironment
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute, getIndependentInstance, run, run
in, in1, in2, setInput, setInput1, setInput2
compute, run
run
candidates, filterArity, op
ops, setEnvironment
setOutput
public void initialize()
Initializable
public void compute(RandomAccessibleInterval<I> in1, Shape in2, IterableInterval<O> out)
BinaryComputerOp
in1
- 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 input2
Copyright © 2014–2022 ImageJ. All rights reserved.