In mathematical morphology, opening is the dilation of the erosion of a set A by a structuring element B.
Together with closing, the opening serves in computer vision and image processing as a basic workhorse of morphological noise removal.
Opening removes small objects from the foreground (usually taken as the bright pixels) of an image,
placing them in the background, while closing removes small holes in the foreground, changing small islands of background into foreground. (Wikipedia)
In mathematical morphology, opening is the dilation of the erosion of a set A by a structuring element B. Together with closing, the opening serves in computer vision and image processing as a basic workhorse of morphological noise removal. Opening removes small objects from the foreground (usually taken as the bright pixels) of an image, placing them in the background, while closing removes small holes in the foreground, changing small islands of background into foreground. (Wikipedia)
See
http://docs.opencv.org/2.4/doc/tutorials/imgproc/opening_closing_hats/opening_closing_hats.html
Param: image
Image to process.
Param: options
Open options.
Returns
The opened image.