Research Article
Initial Geometrical Templates with Parameter Sets for Active Contour on Skin Cancer Boundary Segmentation
Algorithm 3
Template selection and applying the template to a skin cancer image.
(1) | START | (2) | SET Tp (i): candidate templates (e.g., circle, rectangle, ellipse, triangle, etc.), n: number of candidate templates, : template rotation angle, : offset of rough skin cancer image | (3) | INPUT an image of skin cancer | (4) | COMPUTE binarization | (5) | COMPUTE scaling the skin cancer image by offset () | (6) | COMPUTE centroid and the longest radius of skin cancer | (7) | REPEAT | (8) | INPUT candidate template () | (9) | COMPUTE centroid and the longest radius of template | (10) | COMPUTE mapping between candidate template and skin cancer image based on centroid and the longest radius | (11) | COMPUTE scaling the template based on the longest radius of skin cancer image with offset | (12) | SET | (13) | REPEAT | (14) | COMPUTE difference between candidate template () and skin cancer image | (15) | CALCULATE | (16) | COMPUTE rotation of candidate template on the centroid | (17) | UNTIL all rotation angles () | (18) | SELECT angle with the smallest difference | (19) | CALCULATE | (20) | UNTIL all candidate templates | (21) | SELECT template and angle with the smallest difference with the skin cancer image | (22) | COMPUTE template mapping on the offset skin cancer image | (23) | INPUT parameter set of the selected template | (24) | COMPUTE active contour | (25) | END |
|