ScanLines

class sonic.ScanLines
Constructor Summary
ScanLines(lines, ispos)

Constructs a sonic.ScanLines object which contains all the specified lines and their properties as well as a list of direction flags for each line which contains

Inputs
  • lines (1,1 sonic.Lines2): Lines2 object containing all the lines for a scan

  • ispos (n,1 logical): list of direction flagss for each line indicating the desired direction of scan. true for a positive direction (in direction of increasing u or top to bottom for verticle lines) or false for a negative direction (in direction of decreasing u or bottom to top for verticle lines).

Outputs
  • obj (1,1 sonic.ScanLines): ScanLines object containing the lines for a scan and their directionality

Last revised: 04/26/24 Last author: Ava Thrasher

Property Summary
ispos
lines
Method Summary
static getParallelLines(img_obj, drho, u_illum)

Constructs a sonic.ScanLines object which contains all the lines which are parallel, intersect with the image, and are spaced by drho

Inputs
  • img_obj (1,1 sonic.Image): Image for which to generate parallel scan lines

  • drho (1,1 double): Perpendicular distance between parallel lines

  • u_illum (2,1 double): Illumination direction in the image specified from the image top left corner (image pixel origin)

Outputs
  • obj (1,1 sonic.ScanLines): ScanLines object containing the lines for a scan and their directionality, which are parallel and intersect with the specified image

Last revised: 05/01/24 Last author: Ava Thrasher