public class DefaultCompactness extends AbstractUnaryHybridCF<Mesh,DoubleType> implements Ops.Geometric.Compactness
Ops.Geometric.Compactness.
Based on http://www.sciencedirect.com/science/article/pii/S003132030700324X.
In the paper compactness is defined as area^3/volume^2. For a sphere this is
minimized and results in 36*PI. To get values between (0,1] we use
(36*PI)/(area^3/volume^2).SpecialOp.FlavorNAME| Constructor and Description |
|---|
DefaultCompactness() |
| Modifier and Type | Method and Description |
|---|---|
void |
compute(Mesh input,
DoubleType output)
Computes the output given some input.
|
DoubleType |
createOutput(Mesh input)
Create an output object given some input.
|
void |
initialize()
Initializes the object.
|
in, out, setInput, setOutputops, setEnvironmentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitops, setEnvironmentcalculate, calculate, createOutput, getIndependentInstance, run, runcomputein, setInputrunsetOutputcandidates, filterArity, oppublic void initialize()
Initializableinitialize in interface Initializablepublic void compute(Mesh input, DoubleType output)
UnaryComputerOpcompute in interface UnaryComputerOp<Mesh,DoubleType>input - 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 inputpublic DoubleType createOutput(Mesh input)
UnaryOutputFactorycreateOutput in interface UnaryOutputFactory<Mesh,DoubleType>input - which determines how to create the outputCopyright © 2014–2022 ImageJ. All rights reserved.