TwiceAsNice
2019-02-18
|
Public Member Functions | |
def | autofocusNumber (self) |
def | autofocusNumber (self, val) |
def | autofocusOffset (self) |
def | autofocusOffset (self, val) |
def | autostart (self) |
def | autostart (self, val) |
def | gain (self) |
def | gain (self, val) |
def | limit (self) |
def | limit (self, val) |
def | medianSize (self) |
def | medianSize (self, val) |
def | numImages (self) |
def | numImages (self, val) |
def | snr (self) |
def | snr (self, val) |
def | tracking (self) |
def | tracking (self, val) |
def | zTracking (self) |
def | zTracking (self, val) |
def | numIterations (self) |
def | bin1Mask (self) |
def | bin2Mask (self) |
def | bin4Mask (self) |
def | referenceImage (self) |
def | referenceImage (self, img) |
def | currentImage (self) |
def | currentImage (self, img) |
def | currentImageOverlay (self) |
def | currentImageOverlay (self, spdList) |
def | thresholdImage (self) |
def | thresholdImage (self, img) |
def | __init__ (self, _svcName) |
def | init (self) |
def | idleOffline (self) |
def | idleOnline (self) |
def | abort (self) |
def | stop (self) |
def | start (self) |
def | setReference (self) |
def | resetBuffers (self) |
def | centerCCD (self, x, y) |
def | autofocus (self) |
def | autofocusPMin (self) |
def | autofocusLineFit (self) |
def | moveToAltitude (self, position) |
def | getShift (self) |
def | trackShift (self, shift) |
def | getCrossCorrelation (self, newImage) |
def | getContourCircle (self, numMeasurements=1) |
def | getMetaPupilMask (self) |
def | getThresholdMask (self, image, snr) |
def | moveXYMotor (self, x, y, logMovement=False) |
def | moveZMotor (self, z) |
def | coAddQuadrants (self, image, ccdBinning) |
def | autofocusNumber (self) |
def | autofocusNumber (self, val) |
def | autofocusOffset (self) |
def | autofocusOffset (self, val) |
def | autostart (self) |
def | autostart (self, val) |
def | gain (self) |
def | gain (self, val) |
def | limit (self) |
def | limit (self, val) |
def | medianSize (self) |
def | medianSize (self, val) |
def | numImages (self) |
def | numImages (self, val) |
def | snr (self) |
def | snr (self, val) |
def | tracking (self) |
def | tracking (self, val) |
def | zTracking (self) |
def | zTracking (self, val) |
def | numIterations (self) |
def | bin1Mask (self) |
def | bin2Mask (self) |
def | bin4Mask (self) |
def | referenceImage (self) |
def | referenceImage (self, img) |
def | currentImage (self) |
def | currentImage (self, img) |
def | currentImageOverlay (self) |
def | currentImageOverlay (self, spdList) |
def | thresholdImage (self) |
def | thresholdImage (self, img) |
def | __init__ (self, _svcName) |
def | init (self) |
def | idleOffline (self) |
def | idleOnline (self) |
def | abort (self) |
def | stop (self) |
def | start (self) |
def | setReference (self) |
def | resetBuffers (self) |
def | centerCCD (self, x, y) |
def | autofocus (self) |
def | autofocusPMin (self) |
def | autofocusLineFit (self) |
def | moveToAltitude (self, position) |
def | getShift (self) |
def | trackShift (self, shift) |
def | getCrossCorrelation (self, newImage) |
def | getContourCircle (self, numMeasurements=1) |
def | getMetaPupilMask (self) |
def | getThresholdMask (self, image, snr) |
def | moveXYMotor (self, x, y, logMovement=False) |
def | moveZMotor (self, z) |
def | coAddQuadrants (self, image, ccdBinning) |
![]() | |
def | __init__ (self, _svcName) |
def | cmdStart (self, _str) |
initiate a command. More... | |
def | cmdDone (self) |
actions after terminating the command. More... | |
def | cmdPercent (self, _i) |
declare the command be partially completed. More... | |
def | cmdAction (self, _i, _str) |
declare the command be partially completed. More... | |
def | __init__ (self, _svcName) |
def | cmdStart (self, _str) |
initiate a command. More... | |
def | cmdDone (self) |
actions after terminating the command. More... | |
def | cmdPercent (self, _i) |
declare the command be partially completed. More... | |
def | cmdAction (self, _i, _str) |
declare the command be partially completed. More... | |
![]() | |
def | __init__ (self, _svcName) |
def | name (self) |
def | config (self, _node) |
def | cfg (self, _node) |
def | var (self, _node) |
def | abort (self) |
dummy (does nothing) More... | |
def | stop (self) |
dummy (does nothing) More... | |
def | init (self) |
dummy (does nothing) More... | |
def | deinit (self) |
dummy (does nothing) More... | |
def | activate (self) |
dummy (does nothing) More... | |
def | deactivate (self) |
dummy (does nothing) More... | |
def | idleOffline (self) |
dummy (waits for state change) More... | |
def | idleStandby (self) |
dummy (waits for state change) More... | |
def | idleOnline (self) |
dummy (waits for state change) More... | |
def | errorOffline (self) |
action in response to an error while offline Sets the state to OFFLINE More... | |
def | errorStandby (self) |
action in response to an error while in standby Sets the state to OFFLINE More... | |
def | errorOnline (self) |
action in response to an error while online Sets the state to OFFLINE More... | |
def | errorWorking (self) |
action in response to an error while executing a command Sets the state to OFFLINE More... | |
def | __init__ (self, _svcName) |
def | name (self) |
def | config (self, _node) |
def | cfg (self, _node) |
def | var (self, _node) |
def | abort (self) |
dummy (does nothing) More... | |
def | stop (self) |
dummy (does nothing) More... | |
def | init (self) |
dummy (does nothing) More... | |
def | deinit (self) |
dummy (does nothing) More... | |
def | activate (self) |
dummy (does nothing) More... | |
def | deactivate (self) |
dummy (does nothing) More... | |
def | idleOffline (self) |
dummy (waits for state change) More... | |
def | idleStandby (self) |
dummy (waits for state change) More... | |
def | idleOnline (self) |
dummy (waits for state change) More... | |
def | errorOffline (self) |
action in response to an error while offline Sets the state to OFFLINE More... | |
def | errorStandby (self) |
action in response to an error while in standby Sets the state to OFFLINE More... | |
def | errorOnline (self) |
action in response to an error while online Sets the state to OFFLINE More... | |
def | errorWorking (self) |
action in response to an error while executing a command Sets the state to OFFLINE More... | |
Static Public Member Functions | |
def | adaptiveThreshold (image, variationLimit, windowSize) |
def | getRadius (binaryImage, kernelSize=3) |
def | adaptiveThreshold (image, variationLimit, windowSize) |
def | getRadius (binaryImage, kernelSize=3) |
Public Attributes | |
referenceCircle | |
cfgNode | |
varNode | |
cmdNode | |
onlineWait | |
trackInterval | |
pupilSeparation | |
minShiftXY | |
maxShiftXY | |
shiftLimitXY | |
minShiftZ | |
maxShiftZ | |
variationLimit | |
windowSize | |
corrPtsPerPix | |
corrMaskType | |
autostart | |
tracking | |
zTracking | |
numImages | |
medianSize | |
autofocusOffset | |
autofocusNumber | |
limit | |
gain | |
bufferSize | |
bufferIndex | |
motorXY | |
motorZ | |
camera | |
cameraBinning | |
metaPupilMask | |
referenceCenter | |
referenceRadius | |
hws | |
running | |
thresholdImage | |
currentImageOverlay | |
referenceImage | |
circleBuffer | |
shiftBuffer | |
currentImage | |
![]() | |
worker | |
![]() | |
name | |
worker | |
Private Attributes | |
_referenceImage | |
CcdTrackServiceWorkerImpl Worker to monitor and correct CCD translations due to flexure.
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.__init__ | ( | self, | |
_svcName | |||
) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.__init__ | ( | self, | |
_svcName | |||
) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.abort | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.abort | ( | self | ) |
|
static |
Finds the optimal binary threshold value and radius of the smallest enclosing circle. Applies increasing threshold values staring at the median value and finds the radius of the smallest enclosing circle. Uses a trailing window of specified size to determine where the radius values start to "level off" (i.e. where the coefficent of variance of the radius in the window is less than the specified value). Parameters ---------- image : ndarray 2D image on which to get the threshold variationLimit: float The coefficient of variation for the radii in the window at which to accept the threshold value. For example,a value of 0.005 corresponds to the point where the standard deviation of the radii in the window is less than 0.5% of the mean. windowSize: int The size of the trailing window. i.e. The number of past radii to consider when determining where the values "level off." Note that this number must be less than or equal to the thresholdStart value. Returns ------- center : tuple of float The center of the circle. The mean x and y coordinates in the window are returned. radius : float The radius of the circle. The mean radius of the window is returned. imageMask : ndarray 2D mask array for the threshold value. Raises ------ CcdTrackServiceException If a threshold value can not be found.
|
static |
Finds the optimal binary threshold value and radius of the smallest enclosing circle. Applies increasing threshold values staring at the median value and finds the radius of the smallest enclosing circle. Uses a trailing window of specified size to determine where the radius values start to "level off" (i.e. where the coefficent of variance of the radius in the window is less than the specified value). Parameters ---------- image : ndarray 2D image on which to get the threshold variationLimit: float The coefficient of variation for the radii in the window at which to accept the threshold value. For example,a value of 0.005 corresponds to the point where the standard deviation of the radii in the window is less than 0.5% of the mean. windowSize: int The size of the trailing window. i.e. The number of past radii to consider when determining where the values "level off." Note that this number must be less than or equal to the thresholdStart value. Returns ------- center : tuple of float The center of the circle. The mean x and y coordinates in the window are returned. radius : float The radius of the circle. The mean radius of the window is returned. imageMask : ndarray 2D mask array for the threshold value. Raises ------ CcdTrackServiceException If a threshold value can not be found.
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.autofocus | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.autofocus | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.autofocusLineFit | ( | self | ) |
Refocuses CCD by adjusting Z-axis until minimum radius is found
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.autofocusLineFit | ( | self | ) |
Refocuses CCD by adjusting Z-axis until minimum radius is found
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.autofocusNumber | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.autofocusNumber | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.autofocusNumber | ( | self, | |
val | |||
) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.autofocusNumber | ( | self, | |
val | |||
) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.autofocusOffset | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.autofocusOffset | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.autofocusOffset | ( | self, | |
val | |||
) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.autofocusOffset | ( | self, | |
val | |||
) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.autofocusPMin | ( | self | ) |
Refocuses CCD by adjusting Z-axis until minimum radius is found
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.autofocusPMin | ( | self | ) |
Refocuses CCD by adjusting Z-axis until minimum radius is found
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.autostart | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.autostart | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.autostart | ( | self, | |
val | |||
) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.autostart | ( | self, | |
val | |||
) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.bin1Mask | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.bin1Mask | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.bin2Mask | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.bin2Mask | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.bin4Mask | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.bin4Mask | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.centerCCD | ( | self, | |
x, | |||
y | |||
) |
Center the CCD to the coordinates provided
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.centerCCD | ( | self, | |
x, | |||
y | |||
) |
Center the CCD to the coordinates provided
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.coAddQuadrants | ( | self, | |
image, | |||
ccdBinning | |||
) |
Split image into quadrants and add them together. Also, considers the case where the metapupils are not separated by half the image width/height. Parameters ---------- image : ndarray 2D image. Note that the width and height should be multiples of 2. ccdBinning : int The binning for the current program of the CCD. Returns ------- corrImg : ndarray 2D image of the sum of the quadrants.
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.coAddQuadrants | ( | self, | |
image, | |||
ccdBinning | |||
) |
Split image into quadrants and add them together. Also, considers the case where the metapupils are not separated by half the image width/height. Parameters ---------- image : ndarray 2D image. Note that the width and height should be multiples of 2. ccdBinning : int The binning for the current program of the CCD. Returns ------- corrImg : ndarray 2D image of the sum of the quadrants.
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.currentImage | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.currentImage | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.currentImage | ( | self, | |
img | |||
) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.currentImage | ( | self, | |
img | |||
) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.currentImageOverlay | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.currentImageOverlay | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.currentImageOverlay | ( | self, | |
spdList | |||
) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.currentImageOverlay | ( | self, | |
spdList | |||
) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.gain | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.gain | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.gain | ( | self, | |
val | |||
) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.gain | ( | self, | |
val | |||
) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.getContourCircle | ( | self, | |
numMeasurements = 1 |
|||
) |
Gets an image from the camera, applies mask if set, sums quadrants of image, and fits a circle to the contours of the image. If specified, will take multiple measurements and return the median (for outlier rejection). Parameters ---------- numMeasurements : int, optional The number of measurements to take. The median of these will be returned. Returns ------- center : tuple of float The coordinates of the center of the circle. radius : float The radius of the circle. image : ndarray 2D array of the quadrant-summed image. Raises ------ VinoCameraCtrlIsIdle If the camera service is not running. CcdTrackServiceException If a circle cannot be fit to the image.
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.getContourCircle | ( | self, | |
numMeasurements = 1 |
|||
) |
Gets an image from the camera, applies mask if set, sums quadrants of image, and fits a circle to the contours of the image. If specified, will take multiple measurements and return the median (for outlier rejection). Parameters ---------- numMeasurements : int, optional The number of measurements to take. The median of these will be returned. Returns ------- center : tuple of float The coordinates of the center of the circle. radius : float The radius of the circle. image : ndarray 2D array of the quadrant-summed image. Raises ------ VinoCameraCtrlIsIdle If the camera service is not running. CcdTrackServiceException If a circle cannot be fit to the image.
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.getCrossCorrelation | ( | self, | |
newImage | |||
) |
Get X, Y translation in pixels between referenceImage and newImage. Uses cross-correlation and least-squares interpolation to find sub-pixel translation between the reference image and a new image. Parameters ---------- newImage : ndarray 2D image to calculate xy-translation for. Returns ------- xShift : float Translation in x direction in pixels. yShift : float Translation in y direction in pixels.
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.getCrossCorrelation | ( | self, | |
newImage | |||
) |
Get X, Y translation in pixels between referenceImage and newImage. Uses cross-correlation and least-squares interpolation to find sub-pixel translation between the reference image and a new image. Parameters ---------- newImage : ndarray 2D image to calculate xy-translation for. Returns ------- xShift : float Translation in x direction in pixels. yShift : float Translation in y direction in pixels.
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.getMetaPupilMask | ( | self | ) |
Get the metapupil mask for the current ccd binning from the location specified in the config file. Returns ------- mask : ndarray or None 2D mask array of the metapupils for the current binning. Returns None if binning mode not recognized or cannot find mask file.
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.getMetaPupilMask | ( | self | ) |
Get the metapupil mask for the current ccd binning from the location specified in the config file. Returns ------- mask : ndarray or None 2D mask array of the metapupils for the current binning. Returns None if binning mode not recognized or cannot find mask file.
|
static |
Finds the contours of a binary image and returns the center and radius of a the smallest enclosing circle. If a kernelSize is specified than attempts to 'open' then 'close' the contour. See link below for more details. https://docs.opencv.org/3.0-beta/doc/py_tutorials/py_imgproc/py_morphological_ops/py_morphological_ops.html Parameters ---------- binaryImage: ndarray 2D mask array (containing data with boolean type) kernelSize : int, optional If specified, uses a kernel of this size to 'open' then 'close' the image. This may help to reduce noise and ensure better contour fitting. Returns ------- center : tuple of float Center of the enclosing circle in (x, y) coordinates radius : float Radius of the enclosing circle. imageMask : ndarray 2D mask array used to find the enclosing circle Raises ------ CcdTrackServiceException If no contours are found
|
static |
Finds the contours of a binary image and returns the center and radius of a the smallest enclosing circle. If a kernelSize is specified than attempts to 'open' then 'close' the contour. See link below for more details. https://docs.opencv.org/3.0-beta/doc/py_tutorials/py_imgproc/py_morphological_ops/py_morphological_ops.html Parameters ---------- binaryImage: ndarray 2D mask array (containing data with boolean type) kernelSize : int, optional If specified, uses a kernel of this size to 'open' then 'close' the image. This may help to reduce noise and ensure better contour fitting. Returns ------- center : tuple of float Center of the enclosing circle in (x, y) coordinates radius : float Radius of the enclosing circle. imageMask : ndarray 2D mask array used to find the enclosing circle Raises ------ CcdTrackServiceException If no contours are found
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.getShift | ( | self | ) |
Take an image and measure x, y, z shifts against the reference image. Measures the x and y shift using cross-correlation and the z shift by comparing a circle fit to the contours of the metapupil. Uses a ring buffer (size specified in config) to smooth measurements and avoid instability due to spurious measurements. Returns ------- shift : ndarray The x, y, z shifts as measured. Raises ------ VinoCameraCtrlIsIdle If the camera service is not running. CcdTrackServiceException If an error occurs while measuring the shifts. See Also -------- getContourCircle : contour circle fitting for measuring z shift. getCrossCorrelation : cross-correlation for measuring x and y shifts.
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.getShift | ( | self | ) |
Take an image and measure x, y, z shifts against the reference image. Measures the x and y shift using cross-correlation and the z shift by comparing a circle fit to the contours of the metapupil. Uses a ring buffer (size specified in config) to smooth measurements and avoid instability due to spurious measurements. Returns ------- shift : ndarray The x, y, z shifts as measured. Raises ------ VinoCameraCtrlIsIdle If the camera service is not running. CcdTrackServiceException If an error occurs while measuring the shifts. See Also -------- getContourCircle : contour circle fitting for measuring z shift. getCrossCorrelation : cross-correlation for measuring x and y shifts.
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.getThresholdMask | ( | self, | |
image, | |||
snr | |||
) |
Return an image mask which only passes values above the specified signal-to-noise ratio. Parameters ---------- image : ndarray 2D array of the pupil image snr : float The signal-to-noise ratio to threshold the image with. Returns ------- mask : ndarray 2D mask array which a threshold set to the specified SNR.
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.getThresholdMask | ( | self, | |
image, | |||
snr | |||
) |
Return an image mask which only passes values above the specified signal-to-noise ratio. Parameters ---------- image : ndarray 2D array of the pupil image snr : float The signal-to-noise ratio to threshold the image with. Returns ------- mask : ndarray 2D mask array which a threshold set to the specified SNR.
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.idleOffline | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.idleOffline | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.idleOnline | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.idleOnline | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.init | ( | self | ) |
Connect to the camera and motor services specified in the config file.
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.init | ( | self | ) |
Connect to the camera and motor services specified in the config file.
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.limit | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.limit | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.limit | ( | self, | |
val | |||
) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.limit | ( | self, | |
val | |||
) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.medianSize | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.medianSize | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.medianSize | ( | self, | |
val | |||
) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.medianSize | ( | self, | |
val | |||
) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.moveToAltitude | ( | self, | |
position | |||
) |
Moves the CCD by the relative distance between ground conjugation and altitude conjugation.
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.moveToAltitude | ( | self, | |
position | |||
) |
Moves the CCD by the relative distance between ground conjugation and altitude conjugation.
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.moveXYMotor | ( | self, | |
x, | |||
y, | |||
logMovement = False |
|||
) |
Moves the CCD in the x-axis and y-axis by the amount specified. Will adjust for CCD binning. Parameterspixels ---------- x : float The amount in pixels to move the motor by. y : float The amount in pixels to move the motor by.
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.moveXYMotor | ( | self, | |
x, | |||
y, | |||
logMovement = False |
|||
) |
Moves the CCD in the x-axis and y-axis by the amount specified. Will adjust for CCD binning. Parameterspixels ---------- x : float The amount in pixels to move the motor by. y : float The amount in pixels to move the motor by.
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.moveZMotor | ( | self, | |
z | |||
) |
Moves the CCD in the z-axis by the amount specified. Parameters ---------- z : float The amount in pixels to move the motor by.
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.moveZMotor | ( | self, | |
z | |||
) |
Moves the CCD in the z-axis by the amount specified. Parameters ---------- z : float The amount in pixels to move the motor by.
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.numImages | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.numImages | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.numImages | ( | self, | |
val | |||
) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.numImages | ( | self, | |
val | |||
) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.numIterations | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.numIterations | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.referenceImage | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.referenceImage | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.referenceImage | ( | self, | |
img | |||
) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.referenceImage | ( | self, | |
img | |||
) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.resetBuffers | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.resetBuffers | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.setReference | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.setReference | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.snr | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.snr | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.snr | ( | self, | |
val | |||
) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.snr | ( | self, | |
val | |||
) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.start | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.start | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.stop | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.stop | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.thresholdImage | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.thresholdImage | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.thresholdImage | ( | self, | |
img | |||
) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.thresholdImage | ( | self, | |
img | |||
) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.tracking | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.tracking | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.tracking | ( | self, | |
val | |||
) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.tracking | ( | self, | |
val | |||
) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.trackShift | ( | self, | |
shift | |||
) |
Tracks x, y, z shifts and move motors if shifts within limits (as set in config file) are detected. If any elements of shift are above maxShift then stops tracking (as a safeguard against runaway corrections). The following logic applies: Z-shift ? move Z-motor : (XY-Shift ? XY-move motor : pause before next loop) Parameters ---------- shift : ndarray The x, y, z shifts (in pixels) to track.
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.trackShift | ( | self, | |
shift | |||
) |
Tracks x, y, z shifts and move motors if shifts within limits (as set in config file) are detected. If any elements of shift are above maxShift then stops tracking (as a safeguard against runaway corrections). The following logic applies: Z-shift ? move Z-motor : (XY-Shift ? XY-move motor : pause before next loop) Parameters ---------- shift : ndarray The x, y, z shifts (in pixels) to track.
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.zTracking | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.zTracking | ( | self | ) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.zTracking | ( | self, | |
val | |||
) |
def Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.zTracking | ( | self, | |
val | |||
) |
|
private |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.autofocusNumber |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.autofocusOffset |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.autostart |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.bufferIndex |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.bufferSize |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.camera |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.cameraBinning |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.cfgNode |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.circleBuffer |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.cmdNode |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.corrMaskType |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.corrPtsPerPix |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.currentImage |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.currentImageOverlay |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.gain |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.hws |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.limit |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.maxShiftXY |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.maxShiftZ |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.medianSize |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.metaPupilMask |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.minShiftXY |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.minShiftZ |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.motorXY |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.motorZ |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.numImages |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.onlineWait |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.pupilSeparation |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.referenceCenter |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.referenceCircle |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.referenceImage |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.referenceRadius |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.running |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.shiftBuffer |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.shiftLimitXY |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.thresholdImage |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.tracking |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.trackInterval |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.variationLimit |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.varNode |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.windowSize |
Laos.Aoc.CcdTrackServiceWorkerImpl.CcdTrackServiceWorkerImpl.zTracking |