public class BoundingBoxZOverlapRatio extends FeaturePairMemoSingleRegion
Expresses it as a fraction of the minimum Z-extent
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 |
---|
BoundingBoxZOverlapRatio() |
Modifier and Type | Method and Description |
---|---|
double |
calculate(FeatureCalculationInput<FeatureInputPairMemo> input)
Calculates a value for some input.
|
boolean |
isNormalize() |
void |
setNormalize(boolean normalize) |
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.public boolean isNormalize()
public void setNormalize(boolean normalize)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.