Class MxOpticalCameraBase

All Implemented Interfaces:
Device, Configurable, Findable, Camera, ImageScaleProvider, gda.observable.IObservable
Direct Known Subclasses:
MxOpticalCamera, MxOpticalCameraNoZoom, MxOpticalCameraZoomPositioner

public abstract class MxOpticalCameraBase extends CameraBase
  • Constructor Details

    • MxOpticalCameraBase

      public MxOpticalCameraBase()
  • Method Details

    • applyCameraZoomSettings

      protected final void applyCameraZoomSettings(CameraZoomLevels zoomSettings)
      Sets the Camera zoom levels, an input of null clears the existing settings
      Parameters:
      zoomSettings -
    • getVideoReceiver

      public VideoReceiver<Image> getVideoReceiver()
    • setVideoReceiver

      public void setVideoReceiver(VideoReceiver<Image> videoReceiver)
    • hasZoomAxis

      public boolean hasZoomAxis()
    • captureImage

      public void captureImage(String imageName) throws DeviceException
      Description copied from interface: Camera
      Writes the current image to disk.

      Filename should be the full path of the file to create. If it is null then the file listed in the configuration file will be overwritten.

      Parameters:
      imageName -
      Throws:
      DeviceException
    • closeConnection

      public void closeConnection()
    • createConnection

      public void createConnection()
    • resetConnection

      public void resetConnection()
    • getImage

      public BufferedImage getImage() throws DeviceException
      Description copied from interface: Camera
      Captures and returns an image.
      Throws:
      DeviceException
    • getFocus

      public double getFocus() throws DeviceException
      Returns:
      double - current focus level
      Throws:
      DeviceException
    • setFocus

      public void setFocus(double focus) throws DeviceException
      Description copied from interface: Camera
      Sets the focus level. Number must be a member of the list returned by getFcouslevels.
      Parameters:
      focus -
      Throws:
      DeviceException
    • getFocusLevels

      public double[] getFocusLevels() throws DeviceException
      Returns:
      double[] - the possible focus levels
      Throws:
      DeviceException
    • getMicronsPerXPixel

      public double getMicronsPerXPixel()
      get image resolution in X direction in micronsPerPixel
      Returns:
      micronsPerXPixel
    • getMicronsPerYPixel

      public double getMicronsPerYPixel()
      get image resolution in Y direction in micronsPerPixel
      Returns:
      micronsPerYPixel
    • findNearestZoomLevel

      protected Optional<ZoomLevel> findNearestZoomLevel(double zoom) throws DeviceException
      Throws:
      DeviceException
    • getZoomSimilarityTolerance

      protected double getZoomSimilarityTolerance()
      Specified by:
      getZoomSimilarityTolerance in class CameraBase
    • listZoomSettings

      protected final List<ZoomLevel> listZoomSettings()