IEEE Access (Jan 2021)

Pencil Drawing Generation Algorithm Based on GMED

  • Huaping Zhou,
  • Chao Zhou,
  • Xiaoyan Wang

DOI
https://doi.org/10.1109/ACCESS.2021.3065428
Journal volume & issue
Vol. 9
pp. 41275 – 41282

Abstract

Read online

The automatic generation of pencil drawings from natural images has been a hot spot in the field of nonphotorealistic rendering in recent years and has attracted the attention of many scholars. Aiming at the characteristics of single line drawings generated by the existing pencil drawing algorithm and stiff lines, this paper proposes a new edge generation Gradlent Morphological Edge Detector (GMED) algorithm, which uses the generated edge convolution to generate pencil line drawings, making stylized pictures more natural. First, the gradient map of the input image is extracted according to the feature of the tone rate of change around the line at the boundary. Second, to make up for the shortcomings of too thin and discontinuous lines in the gradient map, morphological operations are performed on the gradient map and convolved to generate a hand-drawn pencil line drawing. Finally, texture filling and tone mapping are performed, and the resulting line drawing is fused to obtain the final pencil drawing effect. Compared with the existing pencil drawing algorithm, the proposed GMED edge generation method is applied to the line drawing generation process to generate a hand-drawn style, fine and concise line drawing, and the texture simulation process is simple and efficient, combined with histogram matching. In the process, a more suitable GML method is used, so that the final pencil drawing not only has natural lines but also colors closer to the input image.

Keywords