Class PixelToMicronConvertor

java.lang.Object
gda.images.camera.PixelToMicronConvertor

public class PixelToMicronConvertor extends Object
Singleton object which, given the location on a image of the sample in pixels, returns where an xyz stage supporting the sample should move to so that whatever was at that pixel location is now in the beam.

This relies on the data file and objects use by the BeamDataComponent class working properly.

This also relies on a correct calibration file.

NOT IN USE AT THE MOMENT!! This is for a possible upgrade to sample viewing camera calibrations only

  • Constructor Details

    • PixelToMicronConvertor

      public PixelToMicronConvertor()
  • Method Details

    • getInstance

      public static PixelToMicronConvertor getInstance()
      Returns:
      the singleton PixelToMicronConvertor object
    • movePointToBeam

      public double[] movePointToBeam(int xPixel, int yPixel) throws org.apache.commons.configuration.ConfigurationException, IOException
      Given a pixel location, returns the three element array required to move an object at that point into the beam.
      Parameters:
      xPixel -
      yPixel -
      Returns:
      the micron movement required
      Throws:
      IOException
      org.apache.commons.configuration.ConfigurationException