erase_loop_in_image

sunkit_image.trace.erase_loop_in_image(image, istart, jstart, width, xloop, yloop)[source]

Makes all the points in a loop and its vicinity as zero in the original image to prevent them from being traced again.

Parameters
  • image (numpy.ndarray) – Image in which the points of a loop and surrounding it are to be made zero.

  • istart (int) – The x coordinate of the starting point of the loop.

  • jstart (int) – The y coordinate of the starting point of the loop.

  • width (int) – The number of pixels around a loop point which are also to be removed.

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

  • yloop (numpy.ndarray) – The y coordinates of all the loop points.

Returns

numpy.ndarray – Image with the loop and surrounding points zeroed out..