Package org.anchoranalysis.feature.input
Class FeatureInputEnergy
Object
FeatureInputDimensions
FeatureInputEnergy
- All Implemented Interfaces:
FeatureInput
,FeatureInputDictionary
,FeatureInputWithResolution
- Direct Known Subclasses:
FeatureInputAllMemo
,FeatureInputObjectCollection
,FeatureInputPairMemo
,FeatureInputPairObjects
,FeatureInputSingleMemo
,FeatureInputSingleObject
,FeatureInputStack
public abstract class FeatureInputEnergy
extends FeatureInputDimensions
implements FeatureInputDictionary
A
FeatureInputDimensions
that has an optional EnergyStack
associated with it.- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Creates without an associated energy-stack.FeatureInputEnergy
(Optional<EnergyStack> energyStack) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
The dimensions of the associated image.The image-dimensions associated with the energy-stack, if it exists.The image-dimensions associated with the energy-stack, or an exception if no energy-stack exists.boolean
The associated dictionary, if it exists.The associated energy-stack.The associated energy-stack or throws an exception if it isn't present.The resolution of the associated image, if it is available.Converts voxelized measurements to/from physical units.int
hashCode()
void
setEnergyStack
(Optional<EnergyStack> energyStack) Assigns an optionalEnergyStack
to be associated with the input.void
setEnergyStack
(EnergyStack energyStack) Assigns anEnergyStack
to be associated with the input.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, 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
-
FeatureInputEnergy
protected FeatureInputEnergy()Creates without an associated energy-stack. -
FeatureInputEnergy
-
-
Method Details
-
getUnitConverterOptional
Converts voxelized measurements to/from physical units.- Returns:
- a converter that will perform conversions using current resolution, if it exists.
-
getResolutionOptional
Description copied from interface:FeatureInputWithResolution
The resolution of the associated image, if it is available.- Specified by:
getResolutionOptional
in interfaceFeatureInputWithResolution
- Overrides:
getResolutionOptional
in classFeatureInputDimensions
- Returns:
- the resolution, if it is available.
-
getDictionaryOptional
Description copied from interface:FeatureInputDictionary
The associated dictionary, if it exists.- Specified by:
getDictionaryOptional
in interfaceFeatureInputDictionary
- Returns:
- the dictionary, if it exists.
-
dimensions
Description copied from class:FeatureInputDimensions
The dimensions of the associated image.- Specified by:
dimensions
in classFeatureInputDimensions
- Returns:
- the dimensions.
- Throws:
FeatureCalculationException
- if the dimensions cannot be calculated.
-
dimensionsRequired
The image-dimensions associated with the energy-stack, or an exception if no energy-stack exists.- Returns:
- the image-dimensions.
- Throws:
FeatureCalculationException
- if the dimensions are not known.
-
dimensionsOptional
The image-dimensions associated with the energy-stack, if it exists.- Returns:
- the image-dimensions, if it exists.
-
getEnergyStackRequired
The associated energy-stack or throws an exception if it isn't present.- Returns:
- the associated energy-stack.
- Throws:
FeatureCalculationException
- if the energy-stack isn't present
-
getEnergyStackOptional
The associated energy-stack.- Returns:
- the energy-stack, if present.
-
setEnergyStack
Assigns anEnergyStack
to be associated with the input.Any existing energy-stack is replaced.
- Parameters:
energyStack
- the energy-stack to assign.
-
setEnergyStack
Assigns an optionalEnergyStack
to be associated with the input.Any existing energy-stack state is replaced.
- Parameters:
energyStack
- the optional energy-stack to assign.
-
equals
- Overrides:
equals
in classFeatureInputDimensions
-
canEqual
- Overrides:
canEqual
in classFeatureInputDimensions
-
hashCode
public int hashCode()- Overrides:
hashCode
in classFeatureInputDimensions
-