The function pixelgrid superimposes a grid of pixel edges on an image. The purpose is to easily visualize pixel extents when zooming in closely on an image. The grid is drawing using lines with contrasting colors so that it is visible regardless of the colors of the underlying pixels.
Steve Eddins (2020). Pixel Grid (https://github.com/mathworks/pixelgrid), GitHub. Retrieved .
Link to GitHub repository