Introduction - If you have any usage issues, please Google them yourself
The folder has six M-file, as follows: boundary_extraction.m: the main function of the target area boundary extraction, which calls ostu, four_neighbor, eight_neighbor, globe_graph otsu.m: class discriminant classification (otsu global binarization algorithm) four_neighbor . m: neighbors-domain method boundary extraction eight_neighbor.m: eight neighborhood boundary extraction method globe_graph.m: Global detection boundary extraction area_peri.m: calculate the circumference of the main function of the target area, call ostu 4A.bmp face.bmp gun.bmp : The original grayscale pictures PeriAnalysis.txt: recorded during the experiment the total number of the target area and their perimeter results Folder: to save the images generated during the experiment and the program flow chart