AFL.automation.instrument.OpticalTurbidity#

Functions

canny(image[, sigma, low_threshold, ...])

Edge filter an image using the Canny algorithm.

circle_perimeter(r, c, radius[, method, shape])

Generate circle perimeter coordinates.

hough_circle(image, radius[, normalize, ...])

Perform a circular Hough transform.

hough_circle_peaks(hspaces, radii[, ...])

Return peaks in a circle Hough transform.

hough_ellipse(image[, threshold, accuracy, ...])

Perform an elliptical Hough transform.

img_as_ubyte(image[, force_copy])

Convert an image to 8-bit unsigned integer format.

rgb2gray(rgb, *[, channel_axis])

Compute luminance of an RGB image.

Classes

Driver(name[, defaults, overrides, useful_links])

OpticalTurbidity(camera[, overrides])

class AFL.automation.instrument.OpticalTurbidity.OpticalTurbidity(camera, overrides=None)[source]#
defaults = {'camera_id': 5, 'col_crop': [0, 479], 'hough_radii': 98, 'row_crop': [0, 479], 'save_path': '/home/afl642/2305_SINQ_TurbidityImages/'}#
__init__(camera, overrides=None)[source]#

Initalize OPticalTurbidity calculator driver

measure(set_empty=False, plotting=False, **kwargs)[source]#

This is an optical turbidity measurement observing the sans cell#

empty_fn: (str) is the path to the empty SANS cell image

filled_fn: (str) is the path to the filled SANS cell image