WO2019113888A1 - 一种基于交互式的中国水墨画风格笔画生成方法以及装置 - Google Patents
一种基于交互式的中国水墨画风格笔画生成方法以及装置 Download PDFInfo
- Publication number
- WO2019113888A1 WO2019113888A1 PCT/CN2017/116182 CN2017116182W WO2019113888A1 WO 2019113888 A1 WO2019113888 A1 WO 2019113888A1 CN 2017116182 W CN2017116182 W CN 2017116182W WO 2019113888 A1 WO2019113888 A1 WO 2019113888A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- sample
- stroke
- path
- morphological
- final
- Prior art date
Links
- 238000010422 painting Methods 0.000 title claims abstract description 74
- 239000000976 ink Substances 0.000 title claims abstract description 64
- 238000000034 method Methods 0.000 title claims abstract description 29
- 230000002452 interceptive effect Effects 0.000 title claims abstract description 22
- 230000000877 morphologic effect Effects 0.000 claims abstract description 52
- 238000013507 mapping Methods 0.000 claims abstract description 20
- 238000006073 displacement reaction Methods 0.000 claims description 12
- 238000010845 search algorithm Methods 0.000 claims description 4
- 210000000988 bone and bone Anatomy 0.000 claims description 3
- 238000012937 correction Methods 0.000 claims description 3
- 238000004590 computer program Methods 0.000 description 13
- 230000008569 process Effects 0.000 description 7
- 238000003860 storage Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 238000009877 rendering Methods 0.000 description 5
- 230000006872 improvement Effects 0.000 description 4
- 238000013508 migration Methods 0.000 description 3
- 230000005012 migration Effects 0.000 description 3
- 230000002745 absorbent Effects 0.000 description 2
- 239000002250 absorbent Substances 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 230000036544 posture Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 101100346764 Mus musculus Mtln gene Proteins 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000009792 diffusion process Methods 0.000 description 1
- 239000006185 dispersion Substances 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000007943 implant Substances 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000010428 oil painting Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000704 physical effect Effects 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 238000003786 synthesis reaction Methods 0.000 description 1
- 238000012549 training Methods 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
- 238000010429 water colour painting Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/20—Drawing from basic elements, e.g. lines or circles
- G06T11/203—Drawing of straight lines or curves
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/001—Texturing; Colouring; Generation of texture or colour
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/56—Extraction of image or video features relating to colour
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/10—Character recognition
- G06V30/32—Digital ink
- G06V30/333—Preprocessing; Feature extraction
- G06V30/347—Sampling; Contour coding; Stroke extraction
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/10—Character recognition
- G06V30/32—Digital ink
- G06V30/36—Matching; Classification
- G06V30/387—Matching; Classification using human interaction, e.g. selection of the best displayed recognition candidate
Definitions
- the invention relates to a style migration technique for computer graphics non-photorealistic rendering, in particular to an interactive Chinese ink painting style stroke generation method and device.
- Flower ink painting is one of the main categories in Chinese ink painting, and it represents an important artistic feature of oriental painting.
- the typical pen and ink in floral paintings form the unique artistic charm and value of ink painting: its strokes are curved or straight, or rigid or soft, or wide or narrow, or pale or thick; its The ink color spreads through a mixture of water and ink to achieve a variety of changes in dryness, wetness, and lightness. Therefore, the diversity and complexity of strokes and inks, as well as the professional skills of painting, make the work of generating paintings challenging.
- non-photorealistic rendering refers to the production of artistic strokes by constructing different brush models, depicting specific objects like hand-drawn.
- non-photorealistic drawing that are worth learning and learning.
- a pen-like device simulates the physical process of painting by modeling the physical properties of a pen or other medium.
- Chu and Tai in the literature [Chu NSH, Tai C.-L., "MoXi: Real-Time Ink Dispersion in Absorbent Paper", ACM Transactions on Graphics, vol. 24 (3), pp. 504-511, 2005 Design a real-time painting system to simulate ink diffusion on absorbent paper Effect.
- Xu et al. [Xu S., Tang M., LAU F., et al., "Virtual Hairy Brush for Painterly Rendering", Graphical Models, vol.
- a novel "electronic brush” for Chinese calligraphy and painting is proposed, which defines the basic characteristics of a real brush with only four attributes.
- Lu et al. [Lu J., Barnes C., DiVerdi S., et al., "RealBrush: Painting with Examples of Physical Media", ACM Transactions on Graphics, vol. 32(4), pp. 117, 2013]
- An interactive data-driven painting system is proposed, which can synthesize new strokes using scanned images of real media, avoiding the computation of complex physical simulations.
- digital painting software such as Adobe brush packages, ArtRage, and Corel Painter, users use a real mouse to draw a mouse or digital pen.
- image-based models Compared to physical models, such models avoid large-scale computations and complex manipulations.
- Herzmann et al. Hertzmann A., Jacobs CE, Oliver N., et al., "Image analogies", In: Proceedings of the 28th Annual Conference on Computer Graphics and Interactive Techniques, New York, USA , pp. 327-340, 2001] uses the "image analogy" technique to process photo images to produce artistically effective images, but in their experimental results, for Chinese painting, different images are drawn in different styles.
- Texture mapping and texture synthesis techniques transform images into images with Chinese ink styles.
- the existing models that simulate the oriental painting style mainly deal with the entire image, rather than the strokes that make up the image, which makes it difficult to express the rich and varied artistic characteristics of Chinese painting.
- the present invention provides an interaction based
- the Chinese ink painting style stroke generation method and device can provide a series of algorithms to transform the guide lines drawn by the user on the photo into strokes with a certain Chinese ink painting style, and realize the effect of the Chinese ink style migration to the photo image.
- the present invention provides an interactive Chinese ink painting style stroke generating method, comprising the following steps:
- an accurate stroke sample is obtained as a candidate stroke sample; and the candidate stroke sample is used as a reference to generate a morphological sample group;
- the step of obtaining an accurate stroke sample as a candidate stroke sample by correcting a stroke contour in the stroke sample comprises:
- each of the morphological sample groups includes at least four morphological samples, and the four morphological samples include the candidate as a reference a stroke sample, a mirror stroke sample of the candidate stroke sample, an inverse path stroke of the candidate stroke sample, and an inverse path stroke of the candidate stroke sample mirror stroke.
- the step of correcting the preliminary basic path to obtain an accurate basic path includes:
- the preliminary basic path is smoothed by a non-uniform rational B-spline curve algorithm to obtain the accurate basic path.
- the selecting, in the group of the morphological samples, the morphological sample that best matches the accurate basic path is used as the final stroke sample, including:
- a morphological sample that best matches the path portion is selected as the final stroke sample of the path portion in the morphological sample group.
- the step of selecting, by using an energy formula, a morphological sample that best matches the path portion in the morphological sample group as a final stroke sample of the path portion includes:
- the energy formula is The space defines an energy term for describing an overall difference between the displacement term of the stroke profile in the final stroke sample and the displacement term of the corresponding path portion, and minimizing the overall difference, thereby automatically selecting the final Stroke sample
- the displacement item is used to describe a displacement amount between a stroke contour in the final stroke sample and a relative position vector and a stroke direction vector of an arbitrary point on the accurate basic path.
- mapping of the style features of the final stroke sample to the accuracy includes:
- the step of mapping the style feature of the final stroke sample onto the accurate basic path further includes:
- the rasterized fill region is implemented with scan lines and filled into the path portion corresponding to the final stroke with pixels selected from within the final stroke.
- the pixels are constrained by the following conditions:
- p S is closest to the average color value of pixels around p P ;
- p S is the best pixel selected in the ink stroke area
- p F is any pixel in the fill area
- p P is the pixel in the input image
- E b (p S ) corresponding to the constraint a, describing the sum of the difference in color values of the neighboring pixels between p S and p F ;
- E p (p S ) corresponds to constraint b, describing the degree of proximity between p S and p F and the corresponding skeleton path, respectively;
- ⁇ (p) represents the color value of p
- Is a neighborhood pixel of p S and Is a neighborhood pixel of p F
- the closest point to the p F on the skeleton path, the same Value, Is a corresponding point on the skeleton path in the final stroke sample, r S and r P are respectively half of the width of the final stroke sample
- N represents the total number of pixels in the circle of the specified radius R
- the pixel-based texture mapping algorithm is utilized in An energy equation consisting of three energy terms is defined in the space and three of the energy terms are minimized to obtain the optimal pixel. This step satisfies the following formula:
- ⁇ 1 , ⁇ 2 and ⁇ 3 represent equilibrium weight parameters.
- the first aspect of the present invention has the beneficial effects that
- the invention corrects the blank area in the circled operation by correcting the stroke sample, and obtains the stroke The exact contour in the sample.
- the invention corrects the initial basic path, removes the unevenness of the initial basic path edge contour, and smoothes it.
- the invention generates a mirror image, an inverse path and a mirrored inverse path based on the candidate sample group, and classifies the above four cases into a morphological sample group; in the process of optimally matching with the accurate basic path, the candidate sample is expanded.
- the internal shape adapts to the line form of different accurate basic paths, and it is convenient for the path part to find the best matching candidate sample form.
- the invention adopts the method of style feature mapping, maps the width feature and the color feature of the final stroke to the accurate basic path, and realizes the effect of replacing the accurate basic path of the final stroke sample.
- the present invention provides an apparatus for generating an ink painting style stroke based on an interactive Chinese ink painting, comprising:
- An image selection unit for selecting an image containing a pattern as an image object
- a stroke sample selection unit for delineating at least one stroke sample on the pre-stored ink painting sample
- a preliminary basic path selecting unit configured to draw a basic outline of the pattern on the image object, and constitute a preliminary basic path of the stroke to be generated
- a stroke sample correcting unit configured to correct a stroke outline in the circled stroke sample, and obtain an accurate stroke sample as a candidate stroke sample
- a morphological sample group generating unit configured to generate a morphological sample group by using the candidate stroke sample as a reference
- a preliminary basic path correction unit for correcting the preliminary basic path to obtain an accurate basic path
- a final stroke sample selection unit wherein a morphological sample that most closely matches the accurate basic path is selected as the final stroke sample in the morphological sample group
- a style feature mapping unit is configured to map the style features of the final stroke sample onto the accurate basic path to generate an output image having a Chinese ink painting style.
- Figure 3 is a schematic overall view of the apparatus of the present invention.
- FIG. 1 is a first embodiment of the present invention, including the following steps:
- the image content contained in the image object may be an animal, a plant, or the like, and may specifically be a cow, a horse, a flower, or a vegetation; the subject matter of the pre-stored ink painting sample may also be an animal, a plant, etc., and the subject matter of the ink painting sample needs to be
- the patterns in the image objects are consistent.
- the theme of ink painting is flower, and the theme of the pattern needs to be consistent; in other words, the image object is selected as the template of the basic path that the user wants to outline, and the stroke sample is what the user wants.
- the stroke style characteristics of the basic path are consistent.
- S20 Acquire a basic outline drawn by a user on the image object, where the basic outline constitutes a preliminary basic path of a stroke to be generated;
- the sketch mentioned here may not achieve the effect of being completely consistent with the basic outline of the pattern, and may be a rough outline, and may also include the user's creativity in it, for example, adding a line that does not exist in the pattern template to the preliminary basic path.
- the non-stroke area referred to here is the part that does not include the stroke line
- the effect is that the information contained in the sample area of the stroke is not accurate.
- the interference factor is not conducive to the extraction of the specific stroke outline in the stroke sample.
- such interference factor is unavoidable, so the extraction of the stroke sample outline in the stroke sample cannot be Avoided.
- a contour search algorithm is used to determine a contour of the stroke sample that is closest to the edge of the stroke, and the candidate stroke sample is obtained;
- each of the morphological sample groups includes at least four morphological samples, and the four The morphological sample includes the candidate stroke sample as a reference, a mirror stroke sample of the candidate stroke sample, an inverse path stroke of the candidate stroke sample, and an inverse path stroke of the candidate stroke sample mirror stroke.
- formula (1) is satisfied, and formula (1) is defined as:
- n is the number of samples of a number of strokes, consisting of 4 cases of each stroke and a candidate set containing 4n elements: Then the four cases of strokes are
- the initial basic path is outlined by the user. This rough outline will make the part of the path uneven and rough.
- the edges of the stroke are all displayed in a relatively smooth posture.
- the non-uniform rational B-spline curve algorithm is used to smooth the preliminary basic path to obtain a smooth and accurate basic path.
- the preliminary basic path in the image object is represented by a three-curve structure (C P , L P , R P ), and the tri-curve structure (C P , L P , R P ) is smoothed by a non-uniform rational B-spline curve algorithm.
- S50 selecting, in the morphological sample group, a morphological sample that most closely matches the accurate basic path as a final stroke sample;
- the basic path is divided into a plurality of path portions, and a morphological sample that best matches the path portion is selected as the final stroke sample of the path portion by the energy formula.
- the morphology of the candidate stroke samples is relatively simple, which makes it difficult to match the exact basic path.
- the multiple candidate stroke patterns generated by the morphological sample group increase the matching probability of the path portion and the candidate strokes.
- the energy formula is Spatial definition description
- An overall difference in displacement term ⁇ from C P wherein the displacement term is used to describe a relationship between a stroke contour in the final stroke sample and a relative position vector and a stroke direction vector at any point on the accurate fundamental path The amount of displacement. This overall difference is then minimized to automatically select the optimal stroke template. Satisfy formula (2) and define formula (2) as:
- the morphological sample corresponding to each path part is obtained by the energy formula, and then the morphological sample corresponding to each path part is substituted for the original path part, and the contour corresponding to the stroke sample feature selected by the user is generated; then the final adjustment is performed.
- the aspect ratio of the stroke sample is such that the final stroke sample is consistent with the length to width ratio of the corresponding path portion; and the pixel-based texture mapping algorithm is used to implement the rasterization fill region with the scan line and use the final stroke The internally selected pixels are filled into the path portion corresponding to the final stroke.
- the final stroke width w P (t) and the photo object The length of the exact base path C P is related to the curvature.
- the w P (t) is calculated by the formula (4), and the formula (4) is defined as:
- k w (t) is a coefficient that scales the width of the final stroke sample
- L P and ⁇ P (t) represent the length and curvature of the exact base path, respectively.
- the coefficient term k w (t) is calculated by the formula (5), and the formula (5) is defined as:
- ⁇ S (t) represents the curvature of the fundamental path C S (t) and L S represents the length of C S (t).
- the pixel is constrained by the following conditions:
- p S is closest to the average color value of pixels around p P ;
- p S is the best pixel selected in the ink stroke area
- p F is any pixel in the filling area
- p P is the pixel in the input image
- E b (p S ) corresponds to the constraint a, describing the sum of the difference in color values of the neighboring pixels between p S and p F ;
- E p (p S ) corresponds to constraint b, describing the degree of proximity between p S and p F and the corresponding skeleton path, respectively;
- ⁇ (p) represents the color value of p
- Is a neighborhood pixel of p S and Is a neighborhood pixel of p F
- the closest point to the p F on the skeleton path, the same Value, Is a corresponding point on the skeleton path in the final stroke sample, r S and r P are respectively half of the width of the final stroke sample
- N represents the total number of pixels in the circle of the specified radius R
- the pixel-based texture mapping algorithm is utilized in An energy equation consisting of three energy terms is defined in the space and the three energy terms are minimized to obtain the optimal pixel. This step satisfies the following formula:
- ⁇ 1 , ⁇ 2 and ⁇ 3 represent equilibrium weight parameters.
- the decorative element is selected according to the user intention to implant the painting result, that is, the final drawing result is generated.
- the painting element referred to here can be a literati inscription.
- FIG. 3 is a second embodiment of the present invention, including:
- An image selection unit for selecting an image containing a pattern as an image object
- a stroke sample selection unit for delineating at least one stroke sample on the pre-stored ink painting sample
- a preliminary basic path selecting unit configured to draw a basic outline of the pattern on the image object, and constitute a preliminary basic path of the stroke to be generated
- a stroke sample correcting unit configured to correct the contour of the circled stroke sample, and obtain an accurate stroke sample as a candidate stroke sample
- a morphological sample group generating unit configured to generate a morphological sample group by using the candidate stroke sample as a reference
- a preliminary basic path correction unit for correcting the preliminary basic path to obtain an accurate basic path
- a final stroke sample selection unit wherein a morphological sample that most closely matches the accurate basic path is selected as the final stroke sample in the morphological sample group
- a style feature mapping unit is configured to map the style features of the final stroke sample onto the accurate basic path to generate an output image having a Chinese ink painting style.
- a third embodiment of the present invention provides a cloud-based secure access device comprising: a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, the processor executing the a computer program, such as the interactive Chinese ink painting style stroke generation program;
- the computer program can be partitioned into one or more modules, one or more of which are stored in the memory and executed by the processor to perform the present embodiment.
- the one or more of the modules may be a series of computer program instructions capable of performing a particular function for describing the execution of the computer program in an interactive Chinese ink painting style stroke generating terminal device.
- the interactive Chinese ink painting style stroke generating device may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
- the interactive Chinese ink painting style stroke generating device may include, but is not limited to, processing , memory, display. It will be understood by those skilled in the art that the schematic diagram is merely an example of an interactive Chinese ink painting style stroke generating apparatus, and does not constitute a limitation on an interactive Chinese ink painting style stroke generating apparatus, and may include more than the illustration or Fewer components, or a combination of certain components, or different components, such as an interactive Chinese ink painting style stroke generating device, may also include input and output devices, network access devices, buses, and the like.
- the so-called processor can be a central processing unit (CPU), or other general-purpose processor, digital signal processor (DSP), application specific integrated circuit (ASIC), ready-made Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.
- the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, which is a control center of the interactive Chinese ink painting style stroke generating device, which is connected by various interfaces and lines. The entire part of the interactive Chinese-based ink painting style stroke generation device.
- the memory can be used to store the computer program and/or module, the processor implementing the basis by running or executing a computer program and/or module stored in the memory, and invoking data stored in the memory
- Interactive Chinese ink painting style strokes generate various functions of the device.
- the memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, a text conversion function, etc.), and the like; the storage data area may be stored. Data created based on the use of the mobile phone (such as audio data, text message data, etc.).
- the memory may include a high-speed random access memory, and may also include non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SMC), and a Secure Digital (SD) card.
- non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SMC), and a Secure Digital (SD) card.
- Flash Card at least one disk storage device, flash memory device, or other volatile solid-state storage device.
- the module integrated by the interactive Chinese ink painting style stroke generating device can be stored in a computer readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product.
- the present invention implements all or part of the processes in the foregoing embodiments, and may also be completed by a computer program for instructing related hardware.
- the computer program may be stored in a computer readable storage medium. The steps of the various method embodiments described above may be implemented when the program is executed by the processor.
- the computer program comprises computer program code, the meter
- the computer program code can be in the form of source code, object code form, executable file or some intermediate form.
- the computer readable medium may include any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM). , random access memory (RAM, Random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media. It should be noted that the content contained in the computer readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in a jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, computer readable media Does not include electrical carrier signals and telecommunication signals.
- the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical. Units can be located in one place or distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
- the connection relationship between the modules indicates that there is a communication connection between them, and specifically, one or more communication buses or signal lines can be realized.
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Multimedia (AREA)
- Processing Or Creating Images (AREA)
- Image Generation (AREA)
Abstract
Description
Claims (10)
- 一种基于交互式的中国水墨画风格笔画生成方法,其特征在于,包括以下步骤,获取一张包含图案的图像作为图像对象;在预存的水墨画绘画样本上获取一个圈定操作,所述圈定操作包括至少一个笔画样本;获取用户在所述图像对象上勾画的基本轮廓,所述基本轮廓构成待生成笔画的初步基本路径;通过对所述笔画样本中的笔画轮廓进行纠正,得到准确的笔画样本作为候选笔画样本;以所述候选笔画样本为参照,生成形态样本组;纠正所述初步基本路径,得到准确基本路径;在所述形态样本组中选择与所述准确基本路径最匹配的形态样本作为最终笔画样本;将所述最终笔画样本的风格特征映射到所述准确基本路径上,生成具有中国水墨画风格的输出图像。
- 根据权利要求1所述的方法,其特征在于,通过对所述笔画样本中的笔画轮廓进行纠正,得到准确的笔画样本作为候选笔画样本的步骤包括:采用相向搜索算法确定所述笔画样本中最贴近笔画边缘的轮廓,得到所述候选笔画样本;以所述候选笔画样本作为参照,通过镜像与反路径的方式生成形态样本组;其中,每一所述形态样本组至少包括四个形态样本,四个所述四个形态样本包括作为参照的所述候选笔画样本、该候选笔画样本的镜像笔画样本、所述候选笔画样本的反路径笔画以及所述候选笔画样本镜像笔画的反路径笔画。
- 根据权利要求1所述的方法,其特征在于,所述纠正所述初步基本路径,得到准确基本路径的步骤包括,采用非均匀有理B样条曲线算法平滑所述初步基本路径,得到所述准确基本路径。
- 根据权利要求1所述的方法,其特征在于,所述在所述形态样本组中选择与所述准确基本路径最匹配的形态样本作为最终笔画样本,包括,将所述基本路径划分成若干路径部分,通过能量公式,在所述形态样本组中选取与所述路径部分最匹配的形态样本作为该路径部分的最终笔画样本。
- 根据权利要求4所述的方法,其特征在于,所述通过能量公式,在所述形态样本组中选取与所述路径部分最匹配的形态样本作为该路径部分的最终笔画样本的步骤包括,所述能量公式在l2空间定义一能量项,用于描述所述最终笔画样本中的笔画轮廓的位移项以及与其对应的路径部分的位移项的总体差异,并使所述总体差异最小化,从而自动选择所述最终的笔画样本;其中,所述位移项用于描述所述最终笔画样本中的笔画轮廓与所述准确基本路径上任意一点的相对位置向量与笔画方向向量之间的位移量。
- 根据权利要求5所述的方法,其特征在于,所述将所述最终笔画样本的风格特征映射到所述准确基本路径上的步骤包括,调整所述最终笔画样本的长宽比例,使得所述最终笔画样本与对应的所述路径部分的长宽比例相一致。
- 根据权利要求5所述的方法,其特征在于,所述将所述最终笔画样本的风格特征映射到所述准确基本路径上的步骤还包括,通过基于像素的纹理映射算法,用扫描线实现光栅化填充区域并用从所述最终笔画内选择出的像素填充至与所述最终笔画对应的路径部分中。
- 根据权利要求7所述的方法,其特征在于,包括:以下列条件约束所述像素:a、pS的相邻像素具有距离pF的邻域最近的颜色值;b、pS与pF相对其各自骨骼路径的位置是最近的;c、pS与pP周围的像素的平均颜色值最接近;其中,pS是在水墨笔画区域内选出的最佳像素;pF为填充区域内的任一像素;pP为输入图像中的像素;且由3个能量项衡量以上约束条件,Eb(pS)对应约束条件a,描述pS与pF之间邻域像素的颜色值差异的总和;Ep(pS)对应约束条件b,描述pS与pF分别与对应的骨架路径之间的接近 程度;Ea(pS)对应约束条件c,描述pS与pP分别以某个R为半径的圆内像素的平均颜色值的差异;具体地满足以下公式:
- 一种基于交互式的中国水墨画风格笔画生成的装置,其特征在于,包括图像选取单元,用于选取一张包含图案的图像作为图像对象;笔画样本选取单元,用于在预存的水墨画绘画样本上圈定至少一个笔画样本;初步基本路径选取单元,用于在所述图像对象上勾画该图案的基本轮廓,构成待生成笔画的初步基本路径;笔画样本纠正单元,用于对圈定出的所述笔画样本的轮廓进行纠正,得到准 确的笔画样本作为候选笔画样本;形态样本组生成单元,用于以所述候选笔画样本为参照,生成形态样本组;初步基本路径纠正单元,用于纠正所述初步基本路径,得到准确基本路径;最终笔画样本选取单元,在所述形态样本组中选择与所述准确基本路径最匹配的形态样本作为最终笔画样本;风格特征映射单元,用于将所述最终笔画样本的风格特征映射到所述准确基本路径上,生成具有中国水墨画风格的输出图像。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2017/116182 WO2019113888A1 (zh) | 2017-12-14 | 2017-12-14 | 一种基于交互式的中国水墨画风格笔画生成方法以及装置 |
US16/898,463 US11288499B2 (en) | 2017-12-14 | 2020-06-11 | Interactive method for generating strokes with Chinese ink painting style and device thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2017/116182 WO2019113888A1 (zh) | 2017-12-14 | 2017-12-14 | 一种基于交互式的中国水墨画风格笔画生成方法以及装置 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US16/898,463 Continuation US11288499B2 (en) | 2017-12-14 | 2020-06-11 | Interactive method for generating strokes with Chinese ink painting style and device thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019113888A1 true WO2019113888A1 (zh) | 2019-06-20 |
Family
ID=66818774
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/116182 WO2019113888A1 (zh) | 2017-12-14 | 2017-12-14 | 一种基于交互式的中国水墨画风格笔画生成方法以及装置 |
Country Status (2)
Country | Link |
---|---|
US (1) | US11288499B2 (zh) |
WO (1) | WO2019113888A1 (zh) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110570346A (zh) * | 2019-08-19 | 2019-12-13 | 西安理工大学 | 一种基于循环生成对抗网络对书法进行风格迁移的方法 |
CN115063808A (zh) * | 2022-08-18 | 2022-09-16 | 京华信息科技股份有限公司 | 一种基于聚类特征提取的ocr字体识别方法及系统 |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019113888A1 (zh) * | 2017-12-14 | 2019-06-20 | 华侨大学 | 一种基于交互式的中国水墨画风格笔画生成方法以及装置 |
US11113578B1 (en) * | 2020-04-13 | 2021-09-07 | Adobe, Inc. | Learned model-based image rendering |
EP4029579A1 (en) * | 2021-01-18 | 2022-07-20 | Société BIC | Generating artwork tutorials |
CN114063872A (zh) * | 2021-11-25 | 2022-02-18 | 广州繁星互娱信息科技有限公司 | 图画生成方法和装置、存储介质及电子设备 |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1991915A (zh) * | 2005-12-28 | 2007-07-04 | 腾讯科技(深圳)有限公司 | 一种交互式水墨风格实时3d渲染及实现动画的方法 |
CN102354402A (zh) * | 2011-09-21 | 2012-02-15 | 西安交通大学 | 基于风格学习的绘画渲染方法 |
CN103793930A (zh) * | 2014-01-27 | 2014-05-14 | 汉王科技股份有限公司 | 铅笔画图像生成方法及装置 |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH066386B2 (ja) * | 1988-04-18 | 1994-01-26 | キヤノン株式会社 | 出力装置 |
JP2962937B2 (ja) * | 1992-07-14 | 1999-10-12 | キヤノン株式会社 | 文字処理装置及び方法 |
US5734748A (en) * | 1993-12-30 | 1998-03-31 | Canon Kabushiki Kaisha | Character pattern generation apparatus and method |
US5621868A (en) * | 1994-04-15 | 1997-04-15 | Sony Corporation | Generating imitation custom artwork by simulating brush strokes and enhancing edges |
JP3576611B2 (ja) * | 1994-12-05 | 2004-10-13 | キヤノン株式会社 | 文字発生装置ならびに方法 |
US5847712A (en) * | 1995-01-03 | 1998-12-08 | University Of Washington | Method and system for generating graphic illustrations according to a stroke texture and a tone |
US6179485B1 (en) * | 1996-11-18 | 2001-01-30 | Xerox Corporation | Printing black and white reproducible colored stroke documents |
US20030001864A1 (en) * | 2001-06-29 | 2003-01-02 | Bitflash Graphics, Inc. | Method and system for manipulation of garphics information |
US8203564B2 (en) * | 2007-02-16 | 2012-06-19 | Qualcomm Incorporated | Efficient 2-D and 3-D graphics processing |
JP4367511B2 (ja) * | 2007-03-26 | 2009-11-18 | セイコーエプソン株式会社 | 文字描画装置、表示装置及び印刷装置 |
WO2019113888A1 (zh) * | 2017-12-14 | 2019-06-20 | 华侨大学 | 一种基于交互式的中国水墨画风格笔画生成方法以及装置 |
-
2017
- 2017-12-14 WO PCT/CN2017/116182 patent/WO2019113888A1/zh active Application Filing
-
2020
- 2020-06-11 US US16/898,463 patent/US11288499B2/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1991915A (zh) * | 2005-12-28 | 2007-07-04 | 腾讯科技(深圳)有限公司 | 一种交互式水墨风格实时3d渲染及实现动画的方法 |
CN102354402A (zh) * | 2011-09-21 | 2012-02-15 | 西安交通大学 | 基于风格学习的绘画渲染方法 |
CN103793930A (zh) * | 2014-01-27 | 2014-05-14 | 汉王科技股份有限公司 | 铅笔画图像生成方法及装置 |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110570346A (zh) * | 2019-08-19 | 2019-12-13 | 西安理工大学 | 一种基于循环生成对抗网络对书法进行风格迁移的方法 |
CN110570346B (zh) * | 2019-08-19 | 2022-11-04 | 西安理工大学 | 一种基于循环生成对抗网络对书法进行风格迁移的方法 |
CN115063808A (zh) * | 2022-08-18 | 2022-09-16 | 京华信息科技股份有限公司 | 一种基于聚类特征提取的ocr字体识别方法及系统 |
Also Published As
Publication number | Publication date |
---|---|
US11288499B2 (en) | 2022-03-29 |
US20200327316A1 (en) | 2020-10-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019113888A1 (zh) | 一种基于交互式的中国水墨画风格笔画生成方法以及装置 | |
CN110211192B (zh) | 一种基于深度学习的三维模型到二维图像的渲染方法 | |
CN108171650B (zh) | 一种具有笔画优化功能中国花卉水墨画风格笔画生成方法 | |
US8917283B2 (en) | Polygon processing techniques in procedural painting algorithms | |
US8896622B2 (en) | Methods and apparatus for marker-based stylistic rendering | |
CN108122264A (zh) | 促进草图到绘画变换 | |
Lu et al. | Decobrush: Drawing structured decorative patterns by example | |
US7876336B2 (en) | Scale-dependent rendering of natural media styles | |
CN105374007A (zh) | 融合骨架笔画和纹理特征的铅笔画生成方法和装置 | |
CN114037802A (zh) | 三维人脸模型重建方法、装置、存储介质及计算机设备 | |
CN108876868B (zh) | 通过根据方向指导放置简单形状的实例来计算机化生成装饰设计 | |
Yang et al. | Easy drawing: Generation of artistic Chinese flower painting by stroke-based stylization | |
CN108171766B (zh) | 一种具有笔画轮廓纠正功能的图像生成方法 | |
Doyle et al. | Automated pebble mosaic stylization of images | |
Wang et al. | Stroke-GAN Painter: Learning to paint artworks using stroke-style generative adversarial networks | |
Yang et al. | Animating Chinese ink painting through generating reproducible brush strokes | |
Yang et al. | Binary image carving for 3D printing | |
CN108038819B (zh) | 一种基于交互式的笔画生成方法 | |
CN108171767B (zh) | 一种具有曲线纠正功能的图像生成方法 | |
CN107481184B (zh) | 一种低多边形风格图生成交互系统 | |
Liu et al. | Animating characters in Chinese painting using two-dimensional skeleton-based deformation | |
Seah et al. | Modeling and Rendering with eXpressive B-Spline Curves | |
Huang et al. | Stereoscopic oil paintings from RGBD images | |
Yang et al. | Sketch-based stroke generation in Chinese flower painting | |
TWI525585B (zh) | An image processing system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17934592 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17934592 Country of ref document: EP Kind code of ref document: A1 |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17934592 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 03.12.2020) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17934592 Country of ref document: EP Kind code of ref document: A1 |