Class FeatureInputSingleObject
Object
org.anchoranalysis.feature.input.FeatureInputDimensions
org.anchoranalysis.feature.input.FeatureInputEnergy
org.anchoranalysis.image.feature.input.FeatureInputSingleObject
- All Implemented Interfaces:
FeatureInput,FeatureInputDictionary,FeatureInputWithResolution
public class FeatureInputSingleObject extends FeatureInputEnergy
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
Constructors Constructor Description FeatureInputSingleObject(org.anchoranalysis.image.voxel.object.ObjectMask object)Constructs a FeatureInputSingleObject with an ObjectMask.FeatureInputSingleObject(org.anchoranalysis.image.voxel.object.ObjectMask object, Optional<EnergyStack> energyStack)Constructs a FeatureInputSingleObject with an ObjectMask and an optional EnergyStack.FeatureInputSingleObject(org.anchoranalysis.image.voxel.object.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
public FeatureInputSingleObject(org.anchoranalysis.image.voxel.object.ObjectMask object)Constructs a FeatureInputSingleObject with an ObjectMask.- Parameters:
object- the ObjectMask to be associated with this input
-
FeatureInputSingleObject
public FeatureInputSingleObject(org.anchoranalysis.image.voxel.object.ObjectMask object, EnergyStack energyStack)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
public FeatureInputSingleObject(org.anchoranalysis.image.voxel.object.ObjectMask object, Optional<EnergyStack> energyStack)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
public org.anchoranalysis.image.voxel.object.ObjectMask getObject()The object mask associated with this input.
-