min_distance_to_edge

jwst.ami.utils.min_distance_to_edge(img)[source]

Calculate distance from the brightest pixel in img to the nearest edge of img.

Parameters:
img2D array

Input array

Returns:
peakx, peakyinteger, integer

Coordinates of the peak pixel

hinteger

Distance to the nearest image edge