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
) – Thex
coordinate of the starting point of the loop.jstart (
int
) – They
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
) – Thex
coordinates of all the loop points.yloop (
numpy.ndarray
) – They
coordinates of all the loop points.
- Returns:
numpy.ndarray
– Image with the loop and surrounding points zeroed out..