This chapter presents methods for image enhancement and correction. Sometimes, it is necessary to reduce the noise in an image or emphasize or suppress certain details in it. These procedures are usually carried out by modifying pixel values, performing some operations on them, or on their local neighborhood as well. By definition, image-enhancement operations are used to improve important image details. Enhancement operations include noise reduction, smoothing, and edge enhancement. On the other hand, image correction attempts to restore a damaged image. In OpenCV, the imgproc module contains functions for image processing.
In this chapter, we will cover: