Pencil sketch simulating method based on edge tangent stream

An edge tangent flow, pencil pixel technology, applied in 2D image generation, image data processing, instruments, etc., can solve the problem of not being able to automatically identify background and foreground, etc., to achieve the effect of enhancing stereoscopic and light-dark contrast relationship

Inactive Publication Date: 2014-07-09
SHANGHAI UNIV
View PDF4 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, when encountering a complex background, the background and foregroun...

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Pencil sketch simulating method based on edge tangent stream
  • Pencil sketch simulating method based on edge tangent stream
  • Pencil sketch simulating method based on edge tangent stream

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0035] see figure 1 , a simulated pencil sketch method based on edge tangent flow, the specific operation steps are as follows:

[0036] (1) Preprocess the original image: it is divided into bilateral filtering processing and generating white noise map;

[0037] (2) Constructing the structure vector field: On the basis of the gradient field, the edge tangent flow is calculated, and the area with no obvious brightness change is extracted, and the stroke direction of this area is set to 45°±5° to remove the eddy current.

[0038] (3) Generate pencil texture layer: Perform line integral convolution processing on the white noise map and the structure vector field to generate a pencil texture layer.

[0039] (4) Generate pencil sketch: On the basis of the structure vector field, rotate the stroke direction 90° counterclockwise, and use the line integral convolution algorithm to generate the background texture layer. Overlay this layer with the pencil texture layer, and adjust the...

Embodiment 2

[0041] see Figure 2-Figure 7 , this embodiment is basically the same as the first embodiment, and is described as follows in conjunction with the accompanying drawings:

[0042]The preprocessing of the original image in the step (1) is mainly divided into two parts: (1) bilateral filter processing, (2) generating a white noise map, such as figure 2 , image 3 shown.

[0043] A structure vector field is constructed in the step (2), and a line integral convolution algorithm is used in the step (3) to generate a pencil texture layer, such as Figure 4 , Figure 5 shown.

[0044] The generation pencil sketch drawing of described step (4), as Image 6 , Figure 7 shown.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a pencil sketch simulating method based on an edge tangent stream. The method includes the following steps that firstly, an original image is preprocessed, a bilateral filter is used for performing smoothing on image noise, meanwhile, edge information of an image is reserved, then, a color image is changed into a grey scale image, and therefore a white noise image is generated; secondly, a structure vector field is constructed, a 3*3Sobel gradient operator is used for performing convolution on pixels of the grey scale image in the horizontal direction and the perpendicular direction to generate a gradient field, processing of the edge tangent stream is performed on the basis of the gradient field, so that stroke direction conforms to object features, for an area where the luminance variation is not obvious, threshold value extraction is set, the stroke direction is set to be 45+/-5 degrees, and the vortex stream is removed; thirdly, line integral convolution processing is performed on the white noise image and the structure vector field, and a pencil texture layer is generated; fourthly, a background texture layer is constructed, the stoke direction is rotated anticlockwise by 90 degrees on the basis of the structure vector field, a line integral convolution algorithm is used for generating the background texture layer, the background texture layer is overlapped with the pencil texture layer finally, and the light and shade relation is adjusted to generate a pencil sketch.

Description

technical field [0001] The invention relates to a method for simulating pencil sketching based on edge tangent flow, and belongs to the field of non-realistic graphics. technical background [0002] In computer graphics, non-photorealistic graphics has become an increasingly important research field. Non-photorealistic rendering refers to the technique of generating graphics in a hand-drawn style that is not photorealistic by computer. Although this technology cannot depict a real scene like a photo, it pays more attention to expressing the artistic characteristics of the picture, simulating painting style, artistic feeling, etc. In recent years, a lot of research has been done in the field of non-photorealistic graphics, and attempts have been made in various artistic styles, which fully reflects its development space and people's desire for art. As a branch of non-realistic drawing technology, pencil sketch drawing technology is also one of the focuses of research. [0...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06T11/00
Inventor 莫晓斐丁友东
Owner SHANGHAI UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products