Class Sensor

java.lang.Object
com.agisoft.metashape.Sensor
All Implemented Interfaces:
AutoCloseable

public class Sensor extends Object implements AutoCloseable
  • Field Details

    • swigCMemOwn

      protected transient boolean swigCMemOwn
  • Constructor Details

    • Sensor

      protected Sensor(long cPtr, boolean cMemoryOwn)
    • Sensor

      public Sensor(Sensor sensor)
  • Method Details

    • getCPtr

      protected static long getCPtr(Sensor obj)
    • finalize

      protected void finalize()
      Overrides:
      finalize in class Object
    • delete

      public void delete()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • getKey

      public int getKey()
      Sensor identifier.
    • getChunk

      public Optional<Chunk> getChunk()
      Chunk container, may be null.
    • setLabel

      public void setLabel(String label)
      Sensor label.
    • getLabel

      public String getLabel()
      Sensor label.
    • setResolution

      public void setResolution(long width, long height)
      Image resolution.
    • getWidth

      public long getWidth()
      Image width.
    • getHeight

      public long getHeight()
      Image width.
    • setCameraModel

      public void setCameraModel(Calibration.Type type)
      Sensor projection model.
    • getCameraModel

      public Calibration.Type getCameraModel()
      Sensor projection model.
    • setCalibration

      public void setCalibration(Calibration calibration)
      Adjusted calibration of the photo.
    • getCalibration

      public Calibration getCalibration()
      Adjusted calibration of the photo.
    • setUserCalib

      public void setUserCalib(Optional<Calibration> calibration)
      Custom calibration used as initial calibration during photo alignment, may be null.
    • getUserCalib

      public Optional<Calibration> getUserCalib()
      Custom calibration used as initial calibration during photo alignment, may be null.
    • setFixed

      public void setFixed(boolean fixed)
      Fix calibration flag.
    • isFixed

      public boolean isFixed()
      Fix calibration flag.
    • setPixelSize

      public void setPixelSize(double width, double height)
      Pixel size in mm.
    • getPixelWidth

      public double getPixelWidth()
      Pixel width in mm.
    • getPixelHeight

      public double getPixelHeight()
      Pixel height in mm.
    • setFocalLength

      public void setFocalLength(double focal_length)
      Focal length in mm.
    • getFocalLength

      public double getFocalLength()
      Focal length in mm.
    • setMaster

      public void setMaster(Optional<Sensor> sensor)
      Sensor master, may be null.
    • getMaster

      public Optional<Sensor> getMaster()
      Sensor master, may be null.
    • setReference

      public void setReference(Sensor.Reference reference)
      Sensor reference data.
    • getReference

      public Sensor.Reference getReference()
      Sensor reference data.
    • setAntenna

      public void setAntenna(Antenna antenna)
      GPS antenna correction.
    • getAntenna

      public Antenna getAntenna()
      GPS antenna correction.
    • setVignetting

      public void setVignetting(Vignetting[] vignetting)
      Vignetting for each band.
    • getVignetting

      public Vignetting[] getVignetting()
      Vignetting for each band.
    • setMeta

      public void setMeta(Map<String,String> meta)
      Sensor meta data.
    • getMeta

      public Map<String,String> getMeta()
      Sensor meta data.
    • makeMaster

      public void makeMaster()
      Make this sensor master in the multi-camera system.