Introduction - If you have any usage issues, please Google them yourself
This written in mathematical morphology of grayscale images and the source code of the binary image, do not use Matlab comes with function. Can achieve expansion, corrosion, and the opening and closing operation.