Class NumberObjects
Calculates the number of objects in a
FeatureInputObjectCollection
.
This feature simply returns the size of the object collection.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
Calculates the feature-value for a givenFeatureInputObjectCollection
.Methods inherited from class org.anchoranalysis.image.feature.bean.object.collection.FeatureObjectCollection
calculate, inputType
Methods inherited from class org.anchoranalysis.feature.bean.Feature
assignTo, beforeCalc, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, describeParameters, descriptionLong, duplicateChangeName, getCustomName, getFriendlyName, onInitialization, setCustomName, toString
Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise
-
Constructor Details
-
NumberObjects
public NumberObjects()
-
-
Method Details
-
calculate
Description copied from class:FeatureObjectCollection
Calculates the feature-value for a givenFeatureInputObjectCollection
.- Specified by:
calculate
in classFeatureObjectCollection
- Parameters:
input
- the input..- Returns:
- the calculated feature-value.
- Throws:
FeatureCalculationException
- if the feature-value cannot be calculated.
-