Introduction - If you have any usage issues, please Google them yourself
this based on Matlab morphological image segmentation, segmentation principle is classic pyramid theory. This is the first step for segmentation, segmentation subsequent optimization and integration needs another write.