snappysonic.algorithms.algorithms module¶
Functions for snappysonic
-
snappysonic.algorithms.algorithms.check_us_buffer(usbuffer)[source]¶ Checks that all ultrasound buffer contains all required key values.
Parameters: usbuffer – the buffer to check Raises: KeyError Raises: ValueError
-
snappysonic.algorithms.algorithms.configure_tracker(config)[source]¶ Configures a scikit-surgery tracker based on the passed config
Parameters: config – a tracker configuration dictionary Returns: The tracker Raises: KeyError
-
snappysonic.algorithms.algorithms.get_bg_image_size(config)[source]¶ Reads the geometry from a configuration and returns the extents of the buffer
Parameters: config – a tracker configuration dictionary Returns: the extents of the buffer
-
snappysonic.algorithms.algorithms.lookupimage(usbuffer, pts)[source]¶ determines whether a coordinate (pts) lies with an area defined by a usbuffer, and returns an image from the buffer if appropriate
Parameters: usbuffer – a dictionary containing bounding box information (x0,y0, x1,y1) and image data Returns: True if point in bounding box. Image.