The disclosure extends to methods, systems, and computer program products for enhancing edges within an image in a light deficient environment, which utilizes knowledge of the expected noise pixel by pixel, to control the strength of the edge enhancement and thereby limit the impact of the enhancement on the perception of noise.