Class FeatureInputPairObjects
Object
FeatureInputDimensions
FeatureInputEnergy
FeatureInputPairObjects
- All Implemented Interfaces:
FeatureInput
,FeatureInputDictionary
,FeatureInputWithResolution
A pair of objects (first and second) and optionally a merged version of both.
Note that first and second simply identify two parts of the pair (tuple). It has no physical meaning related to where the objects are located in the scene.
If a merged version doesn't exist, it is created and cached on demand.
- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Copy constructor for FeatureInputPairObjects.FeatureInputPairObjects
(ObjectMask first, ObjectMask second) Constructs a FeatureInputPairObjects with two ObjectMasks.FeatureInputPairObjects
(ObjectMask first, ObjectMask second, Optional<EnergyStack> energyStack) Constructs a FeatureInputPairObjects with two ObjectMasks and an optional EnergyStack.FeatureInputPairObjects
(ObjectMask first, ObjectMask second, Optional<EnergyStack> energyStack, Optional<ObjectMask> merged) Constructs a FeatureInputPairObjects with two ObjectMasks, an optional EnergyStack, and an optional merged ObjectMask.FeatureInputPairObjects
(ObjectMask first, ObjectMask second, EnergyStack energyStack) Constructs a FeatureInputPairObjects with two ObjectMasks and an EnergyStack. -
Method Summary
Methods inherited from class org.anchoranalysis.feature.input.FeatureInputEnergy
dimensions, dimensionsOptional, dimensionsRequired, getDictionaryOptional, getEnergyStackOptional, getEnergyStackRequired, getResolutionOptional, getUnitConverterOptional, setEnergyStack, setEnergyStack
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.anchoranalysis.feature.input.FeatureInputDictionary
getDictionaryRequired
Methods inherited from interface org.anchoranalysis.feature.input.FeatureInputWithResolution
getResolutionRequired
-
Constructor Details
-
FeatureInputPairObjects
Constructs a FeatureInputPairObjects with two ObjectMasks.- Parameters:
first
- the first ObjectMasksecond
- the second ObjectMask
-
FeatureInputPairObjects
Constructs a FeatureInputPairObjects with two ObjectMasks and an EnergyStack.- Parameters:
first
- the first ObjectMasksecond
- the second ObjectMaskenergyStack
- the EnergyStack
-
FeatureInputPairObjects
public FeatureInputPairObjects(ObjectMask first, ObjectMask second, Optional<EnergyStack> energyStack) Constructs a FeatureInputPairObjects with two ObjectMasks and an optional EnergyStack.- Parameters:
first
- the first ObjectMasksecond
- the second ObjectMaskenergyStack
- an optional EnergyStack
-
FeatureInputPairObjects
public FeatureInputPairObjects(ObjectMask first, ObjectMask second, Optional<EnergyStack> energyStack, Optional<ObjectMask> merged) Constructs a FeatureInputPairObjects with two ObjectMasks, an optional EnergyStack, and an optional merged ObjectMask.- Parameters:
first
- the first ObjectMasksecond
- the second ObjectMaskenergyStack
- an optional EnergyStackmerged
- an optional merged ObjectMask
-
FeatureInputPairObjects
Copy constructor for FeatureInputPairObjects.- Parameters:
src
- the FeatureInputPairObjects to copy
-
-
Method Details
-
getFirst
Gets the first ObjectMask.- Returns:
- the first ObjectMask
-
getSecond
Gets the second ObjectMask.- Returns:
- the second ObjectMask
-
getMerged
Returns a merged version of the two objects.If a merged version doesn't exist, it is created and cached.
- Returns:
- the merged ObjectMask
-
getMergedOptional
Gets the optional merged ObjectMask.- Returns:
- an Optional containing the merged ObjectMask, or empty if not present
-
toString
Returns a string representation of the object. -
equals
- Overrides:
equals
in classFeatureInputEnergy
-
canEqual
- Overrides:
canEqual
in classFeatureInputEnergy
-
hashCode
public int hashCode()- Overrides:
hashCode
in classFeatureInputEnergy
-