Package org.anchoranalysis.feature.input
Class FeatureInputDimensions
Object
org.anchoranalysis.feature.input.FeatureInputDimensions
- All Implemented Interfaces:
FeatureInput,FeatureInputWithResolution
- Direct Known Subclasses:
FeatureInputEnergy
public abstract class FeatureInputDimensions extends Object implements FeatureInputWithResolution
A
FeatureInput that exposes the Dimensions of an image or scene.- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description FeatureInputDimensions() -
Method Summary
Modifier and Type Method Description protected booleancanEqual(Object other)abstract Dimensionsdimensions()The dimensions of the associated image.booleanequals(Object o)Optional<Resolution>getResolutionOptional()The resolution of the associated image, if it is available.inthashCode()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.anchoranalysis.feature.input.FeatureInputWithResolution
getResolutionRequired
-
Constructor Details
-
FeatureInputDimensions
public FeatureInputDimensions()
-
-
Method Details
-
dimensions
The dimensions of the associated image.- Returns:
- the dimensions.
- Throws:
FeatureCalculationException- if the dimensions cannot be calculated.
-
getResolutionOptional
Description copied from interface:FeatureInputWithResolutionThe resolution of the associated image, if it is available.- Specified by:
getResolutionOptionalin interfaceFeatureInputWithResolution- Returns:
- the resolution, if it is available.
-
equals
-
canEqual
-
hashCode
public int hashCode()
-