Package gda.device.detector
Class MoveableImageDetector
- All Implemented Interfaces:
Detector,NexusDetector,Device,Scannable,Configurable,Findable,gda.observable.IObservable,Serializable
- See Also:
-
Field Summary
Fields inherited from class gda.device.detector.DetectorBase
collectionTimeFields inherited from class gda.device.scannable.ScannableBase
__doc__, DEFAULT_INPUT_NAME, DEFAULT_OUTPUT_FORMAT, extraNames, inputNames, level, outputFormatFields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTYFields inherited from interface gda.device.Scannable
ATTR_NEXUS_CATEGORY, ATTR_NX_CLASS, DEFAULT_INPUT_NAME, VALUE_UNAVAILABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.january.dataset.IDatasetCompute Gaussian intensity distribution on 2-dimensional dataset.double[]doublegetIntensity(org.apache.commons.math3.geometry.euclidean.twod.Vector2D origin, double xpos, double ypos) Compute a intensity value of Gaussian, for coordinate (xpos, ypos) with Gaussian centred at 'origin'double[]org.apache.commons.math3.geometry.euclidean.twod.Vector2DgetPixelPosition(double xpos, double ypos) Compute pixel position on the image plane for given x and y 'real space' coordinates by : Convert real (xpos, ypos) to fractional position between lower and upper position limits Pixel position = Fractional position * image size (Image plane covers real positions from lowerPositionLimit (pixel=0,0) to upperPositionLimit (pixel=imageSize.x, imageSize.y))double[]voidsetImageSize(double[] imageSize) voidsetLowerPositionLimit(double[] lowerPositionLimit) voidsetUpperPositionLimit(double[] upperPositionLimit) voidsetxScannable(Scannable xScannable) voidsetyScannable(Scannable yScannable) Methods inherited from class gda.device.detector.DatasetNexusDetector
collectData, createNexusData, createsOwnFiles, getDataGroupName, getPosition, getStatus, readout, setDataGroupNameMethods inherited from class gda.device.detector.DetectorBase
asynchronousMoveTo, checkPositionValid, endCollection, getCollectionTime, getDataDimensions, getDescription, getDetectorID, getDetectorType, isBusy, prepareForCollection, setCollectionTime, toFormattedStringMethods inherited from class gda.device.scannable.ScannableBase
__call__, __call__, __doc__, __getitem__, __len__, __repr__, __str__, atCommandFailure, atLevelEnd, atLevelMoveStart, atLevelStart, atPointEnd, atPointStart, atScanEnd, atScanLineEnd, atScanLineStart, atScanStart, externalToInternal, getExtraNames, getInputNames, getLevel, getOutputFormat, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, internalToExternal, isAt, moveTo, rawAsynchronousMoveTo, rawGetPosition, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, stop, throwExceptionIfInvalidTarget, toString, validateScannable, valueUnavailableString, waitWhileBusy, waitWhileBusyMethods inherited from class gda.device.DeviceBase
addIObserver, close, deleteIObserver, deleteIObservers, getAttribute, getName, getProtectionLevel, isBeingObserved, isConfigureAtStartup, notifyIObservers, setAttribute, setConfigureAtStartup, setName, setProtectionLevelMethods inherited from class gda.factory.ConfigurableBase
configure, isConfigured, reconfigure, setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface gda.factory.Configurable
configure, isConfigureAtStartup, isConfigured, reconfigureMethods inherited from interface gda.device.Detector
endCollection, getCollectionTime, getDataDimensions, getDescription, getDetectorID, getDetectorType, getFileStructure, prepareForCollection, setCollectionTime, waitWhileBusyMethods inherited from interface gda.device.Device
close, getAttribute, getProtectionLevel, setAttribute, setProtectionLevelMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObserversMethods inherited from interface gda.device.Scannable
asynchronousMoveTo, atCommandFailure, atLevelEnd, atLevelMoveStart, atLevelStart, atPointEnd, atPointStart, atScanEnd, atScanLineEnd, atScanLineStart, atScanStart, checkPositionValid, getExtraNames, getInputNames, getLevel, getOutputFormat, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, isAt, isBusy, moveTo, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, stop, toFormattedString
-
Constructor Details
-
MoveableImageDetector
public MoveableImageDetector()
-
-
Method Details
-
getDataset
Compute Gaussian intensity distribution on 2-dimensional dataset. Intensity is centred on position given by xScannable and yScannable- Specified by:
getDatasetin classDatasetNexusDetector- Returns:
- A dataset object. .
- Throws:
DeviceException
-
getPixelPosition
public org.apache.commons.math3.geometry.euclidean.twod.Vector2D getPixelPosition(double xpos, double ypos) Compute pixel position on the image plane for given x and y 'real space' coordinates by :- Convert real (xpos, ypos) to fractional position between lower and upper position limits
- Pixel position = Fractional position * image size (Image plane covers real positions from lowerPositionLimit (pixel=0,0) to upperPositionLimit (pixel=imageSize.x, imageSize.y))
- Parameters:
xpos-ypos-- Returns:
-
getIntensity
public double getIntensity(org.apache.commons.math3.geometry.euclidean.twod.Vector2D origin, double xpos, double ypos) Compute a intensity value of Gaussian, for coordinate (xpos, ypos) with Gaussian centred at 'origin'- Parameters:
origin-xpos-ypos-- Returns:
-
getLowerPositionLimit
public double[] getLowerPositionLimit() -
setLowerPositionLimit
public void setLowerPositionLimit(double[] lowerPositionLimit) -
getUpperPositionLimit
public double[] getUpperPositionLimit() -
setUpperPositionLimit
public void setUpperPositionLimit(double[] upperPositionLimit) -
getImageSize
public double[] getImageSize() -
setImageSize
public void setImageSize(double[] imageSize) -
getxScannable
-
setxScannable
-
getyScannable
-
setyScannable
-