Initial Geometrical Templates with Parameter Sets for Active Contour on Skin Cancer Boundary Segmentation
Algorithm 2
Parameter set determination for geometric templates.
(1)
START
(2)
SET Tp (j): geometrical templates (e.g., circle, rectangle, ellipse, etc.), rng: range of parameter, rng_st [i]: starting range of parameter, stp [i]: step for range increment in a parameter, rng_end [i]: maximum range in parameters, n: number of templates, m: number of parameters, prm [j][i]: parameters for geometrical templates
(3)
REPEAT
(4)
INPUT a skin cancer image
(5)
SET j = 1
(6)
REPEAT
(7)
SET i = 1
(8)
INPUT Tp (j)
(9)
REPEAT
(10)
SET rng = rng_st [i]
(11)
REPEAT
(12)
CALCULATE rng = rng + stp [i]
(13)
REPEAT
(14)
COMPUTE mapping of template with a skin cancer image
(15)
COMPUTE difference between template and skin cancer image
(16)
UNTIL 360 degrees rotation
(17)
SELECT parameter for a skin-cancer-image sample by the smallest difference
(18)
CALCULATE () and (i = i + 1)
(19)
UNTIL all ranges in a parameter ()
(20)
COMPUTE average of all selected parameters as a parameter in the set for a template (prm [j][i])