smlmlp.image_vectors module

smlmlp.image_vectors(col, /, xx, yy, azimuth, x_shape=None, y_shape=None, shape=None, *, pixel_sr_nm=15.0, line_length_nm=100.0, line_width_nm=None, color_limits=None, azimuth_unit='deg', x0=None, y0=None, cuda=False, parallel=False)[source]

Render one colored orientation segment per localization.

Parameters:
  • col (array-like) – Values encoded as hue, from blue at the lower color limit to red at the upper color limit.

  • xx (array-like) – Segment centers in nm.

  • yy (array-like) – Segment centers in nm.

  • azimuth (array-like) – Segment angles. Degrees are expected by default to match dataframe metadata.

  • line_length_nm (float, optional) – Segment length and thickness in nm.

  • line_width_nm (float, optional) – Segment length and thickness in nm.

  • color_limits (tuple, optional) – (min, max) used for color normalization. Finite data extrema are used by default.

Returns:

  • image (ndarray) – RGB float32 image with shape (y, x, 3) and values in [0, 1].

  • info (dict) – Rendering metadata.