Class Longitude

Object
AnchorBean<Feature<FeatureInputImageMetadata>>
InitializableBean<Feature<FeatureInputImageMetadata>, FeatureInitialization>
Feature<FeatureInputImageMetadata>
FeatureImageMetadata

public class Longitude extends ExtractFromLocation
Extracts the longitude from the image metadata.

It is specified in degrees where positive values are east of the prime meridian, and negative values are west of it.

If the location is unknown, then Double.NaN is returned.

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected double
    extractValue(ImageLocation location)
    Extracts the value that is returned from the feature if an image-location is present.

    Methods inherited from class org.anchoranalysis.plugin.image.feature.bean.metadata.ExtractFromLocation

    calculate

    Methods inherited from class org.anchoranalysis.image.feature.bean.FeatureImageMetadata

    calculate, inputType

    Methods inherited from class org.anchoranalysis.feature.bean.Feature

    assignTo, beforeCalc, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, describeParameters, descriptionLong, duplicateChangeName, getCustomName, getFriendlyName, onInitialization, setCustomName, toString

    Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean

    getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized

    Methods inherited from class org.anchoranalysis.bean.AnchorBean

    checkMisconfigured, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Longitude

      public Longitude()
  • Method Details

    • extractValue

      protected double extractValue(ImageLocation location)
      Description copied from class: ExtractFromLocation
      Extracts the value that is returned from the feature if an image-location is present.
      Specified by:
      extractValue in class ExtractFromLocation
      Parameters:
      location - the location to extract the value from.
      Returns:
      the value to be returned.