Introduction - If you have any usage issues, please Google them yourself
"Digital image processing and machine vision: Visual C++ and Matlab to achieve" 3
Binary image of the basic morphological operations, gray image of basic morphological operations