The invention discloses an automatic generation
algorithm for a winding picture, and the
algorithm comprises the steps of carrying out the preprocessing of a picture through an
image enhancement algorithm, enabling the light and shade contrast of an enhanced gray-scale image to be more obvious, filtering image details which may cause winding interference, highlighting the main contour of the image, and improving the precision of simulating an original picture of the winding picture. The picture is preprocessed through the
image enhancement algorithm, so that the requirement of the algorithm for the original picture is low, the stability of simulating the original picture by the winding picture is improved, and the universality of the winding picture automatic generation algorithm is improved. The
greedy algorithm is used,
multiple edges are added each time, the probability that local winding of the winding picture is too dense is reduced, and the
processing speed of the winding pictureautomatic generation algorithm is increased. The size, the nail number and the winding number of the winding picture can be preset, and the universality of an automatic generation algorithm of the winding picture is improved.