Class FeatureInputSingleObject
Object
FeatureInputDimensions
FeatureInputEnergy
FeatureInputSingleObject
- All Implemented Interfaces:
FeatureInput,FeatureInputDictionary,FeatureInputWithResolution
An input representing a single object-mask (with maybe an energy-stack associated).
Equals and hash-code must be sensibly defined as these inputs can be used as keys in a cache.
The equals implementation assumes equals of ObjectMask is shallow and computationally
inexpensive.
- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionFeatureInputSingleObject(ObjectMask object) Constructs a FeatureInputSingleObject with an ObjectMask.FeatureInputSingleObject(ObjectMask object, Optional<EnergyStack> energyStack) Constructs a FeatureInputSingleObject with an ObjectMask and an optional EnergyStack.FeatureInputSingleObject(ObjectMask object, EnergyStack energyStack) Constructs a FeatureInputSingleObject with an ObjectMask and an EnergyStack. -
Method Summary
Methods inherited from class org.anchoranalysis.feature.input.FeatureInputEnergy
dimensions, dimensionsOptional, dimensionsRequired, getDictionaryOptional, getEnergyStackOptional, getEnergyStackRequired, getResolutionOptional, getUnitConverterOptional, setEnergyStack, setEnergyStackMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.anchoranalysis.feature.input.FeatureInputDictionary
getDictionaryRequiredMethods inherited from interface org.anchoranalysis.feature.input.FeatureInputWithResolution
getResolutionRequired
-
Constructor Details
-
FeatureInputSingleObject
Constructs a FeatureInputSingleObject with an ObjectMask.- Parameters:
object- the ObjectMask to be associated with this input
-
FeatureInputSingleObject
Constructs a FeatureInputSingleObject with an ObjectMask and an EnergyStack.- Parameters:
object- the ObjectMask to be associated with this inputenergyStack- the EnergyStack to be associated with this input
-
FeatureInputSingleObject
Constructs a FeatureInputSingleObject with an ObjectMask and an optional EnergyStack.- Parameters:
object- the ObjectMask to be associated with this inputenergyStack- an optional EnergyStack to be associated with this input
-
-
Method Details
-
toString
Returns a string representation of the object. -
equals
- Overrides:
equalsin classFeatureInputEnergy
-
canEqual
- Overrides:
canEqualin classFeatureInputEnergy
-
hashCode
public int hashCode()- Overrides:
hashCodein classFeatureInputEnergy
-
getObject
The object mask associated with this input.
-