Class ConvertToPhysicalAreaXY<T extends FeatureInputWithResolution>
Object
AnchorBean<Feature<T>>
InitializableBean<Feature<T>,FeatureInitialization>
Feature<T>
FeatureUnary<T,T>
FeatureUnaryGeneric<T>
WithResolutionBase<T>
FeatureConvertUnits<T>
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 FeatureCalculationException Converts 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
-