public class BoundingBoxZDistance extends FeaturePairMemoSingleRegion
This is useful for measuring how much two objects overlap in Z.
It is only calculated if there is overlap of the bounding boxes in XYZ, else 0 is returned.
Constructor and Description |
---|
BoundingBoxZDistance() |
Modifier and Type | Method and Description |
---|---|
double |
calculate(FeatureCalculationInput<FeatureInputPairMemo> input)
Calculates a value for some input.
|
box, getRegionID, overlappingNumVoxels, setRegionID
inputType
assignTo, beforeCalc, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, describeParameters, descriptionLong, duplicateChangeName, getCustomName, getFriendlyName, onInitialization, setCustomName, toString
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized
checkMisconfigured, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise
public double calculate(FeatureCalculationInput<FeatureInputPairMemo> input) throws FeatureCalculationException
Feature
calculate
in class Feature<FeatureInputPairMemo>
input
- the input to the calculation.FeatureCalculationException
- if the calculation cannot successfully complete.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.