Class Observables

    • Constructor Detail

      • Observables

        public Observables​(int nbModels)
        Build a new instance.
        Parameters:
        nbModels - number of viewing models to map
    • Method Detail

      • addInterMapping

        public void addInterMapping​(SensorToSensorMapping interMapping)
        Add a mapping between two viewing models.
        Parameters:
        interMapping - sensor to sensor mapping
      • addGroundMapping

        public void addGroundMapping​(SensorToGroundMapping groundMapping)
        Add a ground mapping.

        A ground mapping is defined by a set of GCPs.

        Parameters:
        groundMapping - sensor to ground mapping
      • getGroundMappings

        public Collection<SensorToGroundMapping> getGroundMappings()
        Get all the ground mapping entries.
        Returns:
        an unmodifiable view of all mapping entries
      • getGroundMapping

        public SensorToGroundMapping getGroundMapping​(String ruggedName,
                                                      String sensorName)
        Get a ground Mapping for a sensor.
        Parameters:
        ruggedName - Rugged name
        sensorName - sensor name
        Returns:
        selected ground mapping or null if sensor is not found
      • getNbModels

        public int getNbModels()
        Get the number of viewing models to map.
        Returns:
        the number of viewing models to map
      • getInterMapping

        public SensorToSensorMapping getInterMapping​(String ruggedNameA,
                                                     String sensorNameA,
                                                     String ruggedNameB,
                                                     String sensorNameB)
        Get a sensor mapping for a sensor.

        returns sensor to sensor mapping associated with specific sensors and related rugged instance.

        Parameters:
        ruggedNameA - Rugged name A
        sensorNameA - sensor name A
        ruggedNameB - Rugged name B
        sensorNameB - sensor name B
        Returns:
        selected ground mapping or null if a sensor is not found