public class BoxCount<B extends BooleanType<B>> extends AbstractUnaryFunctionOp<RandomAccessibleInterval<B>,List<ValuePair<DoubleType,DoubleType>>> implements Ops.Topology.BoxCount
The algorithm repeatedly lays a fixed grid on the interval, and counts the
number of boxes that contain foreground. After each step the grid is made
finer by a factor of scaling. If the objects in the interval are
fractal, the proportion of foreground boxes should increase as the boxes
get smaller.
Produces a set of points (log(foreground count), -log(box size)) for curve fitting. The slope of the function gives the fractal dimension of the interval.
SpecialOp.FlavorNAME| Constructor and Description |
|---|
BoxCount() |
| Modifier and Type | Method and Description |
|---|---|
List<ValuePair<DoubleType,DoubleType>> |
calculate(RandomAccessibleInterval<B> input)
Counts the number of boxes that have foreground in the interval repeatedly with
different size boxes
|
in, out, run, setInputops, setEnvironmentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitops, setEnvironmentcalculate, getIndependentInstance, runruncandidates, filterArity, opinitializepublic List<ValuePair<DoubleType,DoubleType>> calculate(RandomAccessibleInterval<B> input)
calculate in interface UnaryFunctionOp<RandomAccessibleInterval<B extends BooleanType<B>>,List<ValuePair<DoubleType,DoubleType>>>input - An n-dimensional binary interval.ValuePair objects for curve fittingCopyright © 2014–2022 ImageJ. All rights reserved.