Package gda.images.camera
Class PixelToMicronConvertor
java.lang.Object
gda.images.camera.PixelToMicronConvertor
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PixelToMicronConvertordouble[]movePointToBeam(int xPixel, int yPixel) Given a pixel location, returns the three element array required to move an object at that point into the beam.
-
Constructor Details
-
PixelToMicronConvertor
public PixelToMicronConvertor()
-
-
Method Details
-
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:
IOExceptionorg.apache.commons.configuration.ConfigurationException
-