swtloc.core.ProxyLetter

class swtloc.core.ProxyLetter(label, sw_median, color_median, min_height, min_angle, inflated_radius, circular_mask, min_label_mask)[source]

Bases: object

A proxy class for the Letters object, housing only those properties which would be required by the Fusion Class. This is to support application of numba onto the Fusion Class as the Letter class object wont be acceptable by Fusion class were it to be run on nopython-jit mode

Methods

ProxyLetter.__init__(label, sw_median, ...)

Create a ProxyLetter object :param label: Letter identifier :type label: int :param sw_median: Median stroke width of this letter :type sw_median: float :param color_median: Median Color of this letter :type color_median: float :param min_height: Minimum Bounding Box height of this letter :type min_height: int :param min_angle: Rotation angle of the Minimum Bounding Box of this letter :type min_angle: float :param inflated_radius: Inflated Circum-Radius of the Minimum Bounding Box of this letter :type inflated_radius: int :param circular_mask: Circular filled mask of this letter of radius=inflated_radius and :type circular_mask: np.ndarray :param centre=Centre Co-Ordinates of the Minimum Bounding Box.: :param min_label_mask: Filled Minimum Bounding Box of the letter :type min_label_mask: np.ndarray