Class ConvertToPhysicalAreaXY<T extends FeatureInputWithResolution>
Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<Feature<T>,FeatureInitialization>
org.anchoranalysis.feature.bean.Feature<T>
org.anchoranalysis.feature.bean.operator.FeatureUnary<T,T>
org.anchoranalysis.feature.bean.operator.FeatureUnaryGeneric<T>
org.anchoranalysis.image.feature.bean.physical.WithResolutionBase<T>
org.anchoranalysis.image.feature.bean.physical.FeatureConvertUnits<T>
org.anchoranalysis.image.feature.bean.physical.ConvertToPhysicalAreaXY<T>
- Type Parameters:
T- the type of feature input, which must include resolution information
public class ConvertToPhysicalAreaXY<T extends FeatureInputWithResolution> extends FeatureConvertUnits<T>
Converts a feature value representing area in pixel units to physical area units in an isometric
XY plane.
This feature converter takes a measurement in pixel units and converts it to physical area units (e.g., square micrometers). It assumes an isometric XY plane in the image space, meaning that the X and Y dimensions have the same physical scale.
-
Constructor Summary
Constructors Constructor Description ConvertToPhysicalAreaXY() -
Method Summary
Modifier and Type Method Description protected doubleconvertToPhysical(double value, UnitConverter unitConverter)Converts the input value from pixel units to physical area units in an isometric XY plane.Methods inherited from class org.anchoranalysis.image.feature.bean.physical.FeatureConvertUnits
calculateWithResolution, getUnitType, setUnitTypeMethods inherited from class org.anchoranalysis.image.feature.bean.physical.WithResolutionBase
calculate, isAcceptMissingResolution, setAcceptMissingResolutionMethods inherited from class org.anchoranalysis.feature.bean.operator.FeatureUnary
getItem, inputType, setItemMethods inherited from class org.anchoranalysis.feature.bean.Feature
assignTo, beforeCalc, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, describeParameters, descriptionLong, duplicateChangeName, getCustomName, getFriendlyName, onInitialization, setCustomName, toStringMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitializedMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise
-
Constructor Details
-
ConvertToPhysicalAreaXY
public ConvertToPhysicalAreaXY()
-
-
Method Details
-
convertToPhysical
protected double convertToPhysical(double value, UnitConverter unitConverter) throws FeatureCalculationExceptionConverts the input value from pixel units to physical area units in an isometric XY plane.- Specified by:
convertToPhysicalin classFeatureConvertUnits<T extends FeatureInputWithResolution>- Parameters:
value- the input area value in pixel unitsunitConverter- the unit converter to use for the conversion- Returns:
- the converted area in physical units
- Throws:
FeatureCalculationException- if the conversion fails
-