curvature_radius

sunkit_image.trace.curvature_radius(image, rmin, xl, yl, zl, al, ir, ip, nlen, idir)[source]

Finds the radius of curvature at the given loop point and then uses it to find the next point in the loop.

Parameters
  • image (numpy.ndarray) – Image in which the loops are being detected.

  • rmin (float) – The minimum radius of curvature of any point in the loop.

  • xl (numpy.ndarray) – The x coordinates of all the points of the loop.

  • yl (nump.ndarray) – The y coordinates of all the points of the loop.

  • zl (nump.ndarray) – The flux intensity at all the points of the loop.

  • al (nump.ndarray) – The angles associated with every point of the loop.

  • ir (nump.ndarray) – The radius associated with every point of the loop.

  • ip (int) – The current number of the point being traced in a loop.

  • nlen (int) – The length of the guiding segment.

  • idir (int) – The flag which denotes whether it is a forward pass or a backward pass. 0 denotes forward pass and 1 denotes backward pass.

Returns

float – The angle of the starting point of the loop.