CN103501433B - A kind of 3D painting and calligraphy display packing and device - Google Patents
A kind of 3D painting and calligraphy display packing and device Download PDFInfo
- Publication number
- CN103501433B CN103501433B CN201310443402.4A CN201310443402A CN103501433B CN 103501433 B CN103501433 B CN 103501433B CN 201310443402 A CN201310443402 A CN 201310443402A CN 103501433 B CN103501433 B CN 103501433B
- Authority
- CN
- China
- Prior art keywords
- graph
- handwriting
- painting
- new
- module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000010422 painting Methods 0.000 title claims abstract description 73
- 238000012856 packing Methods 0.000 title abstract 3
- 239000002131 composite material Substances 0.000 claims abstract description 33
- 230000015572 biosynthetic process Effects 0.000 claims abstract description 8
- 238000000034 method Methods 0.000 claims description 30
- 230000002194 synthesizing effect Effects 0.000 claims description 27
- 238000003786 synthesis reaction Methods 0.000 claims description 7
- 230000000694 effects Effects 0.000 abstract description 9
- 238000010586 diagram Methods 0.000 abstract description 4
- 230000009286 beneficial effect Effects 0.000 abstract description 3
- 239000011521 glass Substances 0.000 abstract description 2
- 238000006073 displacement reaction Methods 0.000 abstract 1
- 230000000007 visual effect Effects 0.000 abstract 1
- 230000004438 eyesight Effects 0.000 description 3
- 230000007547 defect Effects 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 230000004313 glare Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Landscapes
- Processing Or Creating Images (AREA)
Abstract
The present invention relates to a kind of 3D painting and calligraphy display packing and device, by receiving the view data of the former person's handwriting figure on painting and calligraphy screen and the Background containing specific background, former person's handwriting figure displacement obtains new person's handwriting figure, former person's handwriting figure and new person's handwriting figure is synthesized formation composite diagram, Background is scaled the size identical with composite diagram, stereogram is obtained after composite diagram superposes with Background, after being exported by signal output module, user can watch painting and calligraphy person's handwriting to be suspended in the stereogram with 3D effect on background by wearing red blue glasses or use 3D display.Enforcement the invention has the beneficial effects as follows: the invention provides a kind of 3D painting and calligraphy display packing and device, not only have the major function of existing painting and calligraphy device concurrently, also increase 3D painting and calligraphy Presentation Function on its basis newly, can with the 3D display mode display painting and calligraphy with stereoscopic visual effect, effectively strengthen display effect, improve Consumer's Experience.
Description
Technical Field
The invention relates to a painting and calligraphy display method, in particular to a 3D painting and calligraphy display method. Furthermore, the invention relates to a 3D painting and calligraphy display device.
Background
Existing painting and calligraphy devices are increasingly in widespread use. By utilizing the existing painting and calligraphy device, a painting and calligraphy person utilizes data processing equipment such as a computer and the like to combine the painting and calligraphy power of the person to perform personal painting and calligraphy creation, can create beautiful characters and vivid pictures, and stores the pictures in the data processing equipment, so that the pictures can be conveniently displayed and copied at any time. However, in the conventional painting and calligraphy devices, when painting and calligraphy are displayed, painting and calligraphy images can be displayed only in a 2D form, and 3D display with a stereoscopic vision effect cannot be performed on the painting and calligraphy.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a 3D painting and calligraphy display method and a 3D painting and calligraphy display device, aiming at the above-mentioned defects in the prior art.
The technical scheme adopted by the invention for solving the technical problems is as follows: A3D painting and calligraphy display method comprises the following steps:
s1: receiving image data of an original handwriting graph and a background graph containing a specific background on a painting and calligraphy screen;
s2: shifting the original handwriting graph according to a set parallax value according to image data of the original handwriting graph to obtain a new handwriting graph;
s3: synthesizing the original handwriting graph and the new handwriting graph according to a red-blue format or a Side-By-Side format to obtain a synthetic graph;
s4: zooming the background image according to the size of the composite image, so that the size of the background image is consistent with that of the composite image after zooming;
s5: superposing the composite image obtained in the step S3 on the background image processed in the step S4, wherein the superposing method comprises the following steps: copying the part with handwriting on the composite image to the background image, and not copying the part without handwriting to form a three-dimensional image;
s6: the image data of the perspective view obtained in step S5 is output, and 3D painting and calligraphy display is performed.
Preferably, the parallax value set in step S2 is within the range of [ -40,40] pixels.
Preferably, the method for synthesizing the original handwriting graph and the new handwriting graph according to the red-blue format in step S3 includes: setting the G, B channel value of the original handwriting graph as 0, and setting the R channel value of the new handwriting graph as 0; and correspondingly adding the R, G, B channel values of the original handwriting graph and the new handwriting graph respectively, and taking 255 when the added value is larger than 255 to obtain a composite graph.
Optionally, in step S3, the method for synthesizing the original handwriting graph and the new handwriting graph according to the Side-By-Side format includes:
determining whether the Side-By-Side format currently used for synthesizing the original handwriting graph and the new handwriting graph is a Halfside-By-Side format or a Fullside-By-Side format;
if the Side-By-Side format currently used for synthesizing the original handwriting graph and the new handwriting graph is the Halfside-By-Side format, the synthesizing method is as follows: designing a new drawing according to the size of the original handwriting drawing; or the even columns of the original handwriting pattern are taken as the odd columns of the new pattern, and the odd columns of the new handwriting pattern are taken as the even columns of the new pattern, so as to obtain an interwoven pattern, wherein the interwoven pattern is a composite pattern;
if the Side-By-Side format currently used for synthesizing the original handwriting graph and the new handwriting graph is the Fullside-By-Side format, the synthesizing method is as follows: designing a new graph, wherein the height of the new graph is equal to that of the original handwriting graph, and the width of the new graph is twice that of the original handwriting graph; and taking all columns of the original handwriting graph as odd columns of the new graph, taking all columns of the new handwriting graph as even columns of the new graph, and obtaining an interwoven graph, wherein the graph is a composite graph.
A3D painting and calligraphy display device comprises a signal receiving module, a 3D painting and calligraphy display module, a signal output module and a power supply module, wherein the power supply module is electrically connected with the signal receiving module, the 3D painting and calligraphy display module and the signal output module,
the signal receiving module is used for receiving image data of an original handwriting image containing the handwriting and a background image containing a specific background on a painting and calligraphy screen;
the 3D painting and calligraphy display module is used for processing the image data of the received original handwriting graph according to the 3D painting and calligraphy display method to obtain a three-dimensional graph in a red-blue format or a Side-By-Side format; transmitting the image data of the stereogram to the signal output module;
the signal output module is used for outputting the image data of the three-dimensional image processed by the 3D painting and calligraphy display module;
the power supply module is used for supplying power to the signal receiving module, the 3D painting and calligraphy display module and the signal output module.
Preferably, the 3D painting and calligraphy display module comprises a shift module, a synthesis module, a zoom module, and an overlay module;
the shifting module is used for shifting the original handwriting graph according to a set parallax value to obtain a new handwriting graph;
the synthesis module is used for synthesizing the original handwriting graph and the new handwriting graph according to a red-blue format or a Side-By-Side format to obtain a synthesis graph;
the scaling module is used for scaling the background image according to the size of the composite image, so that the size of the background image is consistent with that of the composite image after scaling;
the superposition module is used for copying the handwriting places on the composite image to the background image, and not copying the handwriting places, so that the handwriting is superposed on the background image.
The beneficial effects of the implementation of the invention are as follows: the invention provides a 3D painting and calligraphy display method and device, which not only have the main functions of the existing painting and calligraphy device, but also have the 3D painting and calligraphy display function on the basis of the existing painting and calligraphy device, can display painting and calligraphy in a 3D display mode with a stereoscopic vision effect, effectively enhances the display effect and improves the user experience.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
FIG. 1 is a flow chart of a preferred embodiment of a 3D painting display method of the present invention;
fig. 2 is a schematic structural diagram of a preferred embodiment of a 3D painting and calligraphy display device according to the present invention.
Detailed Description
The invention is further explained below with reference to the drawings.
As shown in fig. 1, a preferred embodiment of the present invention provides a 3D painting and calligraphy display method, including the following steps:
s1: receiving image data of an original handwriting graph and a background graph containing a specific background on a painting and calligraphy screen;
s2: shifting the original handwriting graph according to a set parallax value according to image data of the original handwriting graph to obtain a new handwriting graph;
s3: synthesizing the original handwriting graph and the new handwriting graph according to a red-blue format or a Side-By-Side format to obtain a synthetic graph;
s4: zooming the background image according to the size of the composite image, so that the size of the background image is consistent with that of the composite image after zooming;
s5: superposing the composite image obtained in the step S3 on the background image processed in the step S4, wherein the superposing method comprises the following steps: copying the part with handwriting on the composite image to the background image, and not copying the part without handwriting to form a three-dimensional image;
s6: the image data of the perspective view obtained in step S5 is output, and 3D painting and calligraphy display is performed.
The user can watch the 3D effect stereoscopic picture with the painting and calligraphy handwriting suspended above the background by wearing red and blue glasses or using a 3D display.
The parallax value set in step S2 is within the range of [ -40,40] pixels; although the more the parallax value deviates from 0, the better the displayed 3D effect is generally, but at the same time the discomfort of glare to the eyes may also be stronger, it has been confirmed through experiments that the parallax value is better in the range of-40, 40 pixels. In this embodiment, the disparity value may be-20, -10, 7, 10, 15, 20, or 25 pixels.
Preferably, the method for synthesizing the original handwriting graph and the new handwriting graph according to the red-blue format in step S3 includes: setting the G, B channel value of the original handwriting graph as 0, and setting the R channel value of the new handwriting graph as 0; the R, G, B channel values of the original handwriting graph and the new handwriting graph are respectively and correspondingly added, 255 is taken when the added value is larger than 255, and a composite graph is obtained (RGB is a color mode, an RGB model is used for distributing an intensity value in the range of 0-255 for the RGB component of each pixel in the image, and the meanings of R, G, B three letters are red, green and blue respectively).
However, optionally, the method for synthesizing the original handwriting map and the new handwriting map in the Side-By-Side format (left-right format) in step S3 is as follows:
determining whether the Side-By-Side format currently used to synthesize the original handwriting graph and the new handwriting graph is the Halfside-By-Side format (left-right half-width format) or the Fullside-By-Side format (left-right full-width format);
if the Side-By-Side format currently used for synthesizing the original handwriting graph and the new handwriting graph is the Halfside-By-Side format, the synthesizing method is as follows: designing a new drawing according to the size of the original handwriting drawing; or the even columns of the original handwriting pattern are taken as the odd columns of the new pattern, and the odd columns of the new handwriting pattern are taken as the even columns of the new pattern, so as to obtain an interwoven pattern, wherein the interwoven pattern is a composite pattern;
if the Side-By-Side format currently used for synthesizing the original handwriting graph and the new handwriting graph is the Fullside-By-Side format, the synthesizing method is as follows: designing a new graph, wherein the height of the new graph is equal to that of the original handwriting graph, and the width of the new graph is twice that of the original handwriting graph; and taking all columns of the original handwriting graph as odd columns of the new graph, taking all columns of the new handwriting graph as even columns of the new graph, and obtaining an interwoven graph, wherein the graph is a composite graph.
As shown in fig. 2, another preferred embodiment of the present invention provides a 3D painting and calligraphy display device, which includes a signal receiving module 100, a 3D painting and calligraphy display module 200, a signal output module 300 and a power supply module, wherein the power supply module is electrically connected to the signal receiving module 100, the 3D painting and calligraphy display module 200 and the signal output module 300, and the signal receiving module 100, the 3D painting and calligraphy display module 200 and the signal output module 300 are electrically connected in sequence; wherein,
a signal receiving module 100, which may be an input terminal of a computer, for receiving image data of an original handwriting image containing handwriting and a background image containing a specific background on a painting and calligraphy screen;
the 3D painting and calligraphy display module 200, which may be a CPU of a computer, is configured to process the received image data of the original handwriting map according to a 3D painting and calligraphy display method to obtain a three-dimensional map in a red-blue format or a Side-By-Side format; and transmits the image data of the perspective view to the signal output module 300;
a signal output module 300, which may be an output terminal of a computer, for outputting the image data of the perspective view processed by the 3D painting and calligraphy display module 200;
the power supply module is used for supplying power to the signal receiving module 100, the 3D painting and calligraphy display module 200 and the signal output module 300.
The 3D painting and calligraphy display module 200 comprises a shifting module 201, a synthesizing module 202, a scaling module 203 and an overlaying module 204;
the shifting module 201 is configured to shift the original handwriting graph according to a set parallax value to obtain a new handwriting graph;
the synthesis module 202 is configured to synthesize the original handwriting graph and the new handwriting graph according to a red-blue format or a Side-By-Side format to obtain a synthesis graph;
the scaling module 203 is configured to scale the background image according to the size of the composite image, so that the size of the background image and the size of the composite image are kept consistent after scaling;
the superimposing module 204 is used to copy the handwriting places on the composite image onto the background image, and not copy the handwriting places, so as to superimpose the handwriting on the background image.
The beneficial effects of the implementation of the invention are as follows: the invention provides a 3D painting and calligraphy display method and device, which not only have the main functions of the existing painting and calligraphy device, but also have the 3D painting and calligraphy display function on the basis of the existing painting and calligraphy device, can display painting and calligraphy in a 3D display mode with a stereoscopic vision effect, effectively enhances the display effect and improves the user experience.
The above embodiments are merely illustrative of the technical ideas and features of the present invention, and are intended to enable those skilled in the art to understand the contents of the present invention and implement the present invention, and not to limit the scope of the present invention. All equivalent changes and modifications made within the scope of the claims of the present invention should be covered by the claims of the present invention.
Claims (2)
1. A3D painting and calligraphy display method is characterized by comprising the following steps:
s1: receiving image data of an original handwriting graph and a background graph containing a specific background on a painting and calligraphy screen;
s2: shifting the original handwriting graph according to a set parallax value according to image data of the original handwriting graph to obtain a new handwriting graph, wherein the set parallax value is in a range of [ -40,40] pixels;
s3: synthesizing the original handwriting graph and the new handwriting graph according to a red-blue format or a Side-By-Side format to obtain a synthetic graph;
s4: zooming the background image according to the size of the composite image, so that the size of the background image is consistent with that of the composite image after zooming;
s5: superposing the composite image obtained in the step S3 on the background image processed in the step S4, wherein the superposing method comprises the following steps: copying the part with handwriting on the composite image to the background image, and not copying the part without handwriting to form a three-dimensional image;
s6: outputting the image data of the perspective view obtained in step S5, and performing 3D painting and calligraphy display;
in step S3, the method for synthesizing the original handwriting map and the new handwriting map according to the red-blue format includes: setting the G, B channel value of the original handwriting graph as 0, and setting the R channel value of the new handwriting graph as 0; correspondingly adding R, G, B channel values of the original handwriting graph and the new handwriting graph respectively, and taking 255 when the added value is larger than 255 to obtain a composite graph;
in step S3, the method for synthesizing the original handwriting map and the new handwriting map according to the Side-By-Side format comprises the following steps: determining whether the Side-By-Side format currently used for synthesizing the original handwriting graph and the new handwriting graph is a Halfside-By-Side format or a Fullside-By-Side format;
if the Side-By-Side format currently used for synthesizing the original handwriting graph and the new handwriting graph is the Halfside-By-Side format, the synthesizing method is as follows: designing a new drawing according to the size of the original handwriting drawing; taking odd columns of the original handwriting graph as odd columns of the new graph, and taking even columns of the new handwriting graph as even columns of the new graph; or even columns of the original handwriting graph are taken as odd columns of the new graph, odd columns of the new handwriting graph are taken as even columns of the new graph, and thus an interwoven graph is obtained, and the interwoven graph is a composite graph;
if the Side-By-Side format currently used for synthesizing the original handwriting graph and the new handwriting graph is the Fullside-By-Side format, the synthesizing method is as follows: designing a new graph, wherein the height of the new graph is equal to that of the original handwriting graph, and the width of the new graph is twice that of the original handwriting graph; and taking all columns of the original handwriting graph as odd columns of the new graph, taking all columns of the new handwriting graph as even columns of the new graph, and obtaining an interwoven graph, wherein the graph is a composite graph.
2. A3D painting and calligraphy display device is characterized by comprising a signal receiving module (100), a 3D painting and calligraphy display module (200), a signal output module (300) and a power supply module, wherein the power supply module is electrically connected with the signal receiving module (100), the 3D painting and calligraphy display module (200) and the signal output module (300),
the signal receiving module (100) is used for receiving image data of an original handwriting graph containing the handwriting and a background graph containing a specific background on a painting and calligraphy screen;
the 3D painting and calligraphy display module (200) is configured to process the received image data of the original handwriting map according to the 3D painting and calligraphy display method of step S3 in claim 1 to obtain a three-dimensional map in red-blue format or Side-By-Side format; and transmitting the image data of the perspective view to the signal output module (300); the signal output module (300) is used for outputting the image data of the stereogram processed by the 3D painting and calligraphy display module (200);
the power supply module is used for supplying power to the signal receiving module (100), the 3D painting and calligraphy display module (200) and the signal output module (300);
the 3D painting and calligraphy display module (200) comprises a shifting module (201), a synthesizing module (202), a zooming module (203) and an overlaying module (204); the shifting module (201) is used for shifting the original handwriting graph according to a set parallax value to obtain a new handwriting graph, and the set parallax value is in the range of [ -40,40] pixels; the synthesis module (202) is used for synthesizing the original handwriting graph and the new handwriting graph according to a red-blue format or a Side-By-Side format to obtain a synthesis graph; the scaling module (203) is used for scaling the background image according to the size of the composite image, so that the size of the background image and the size of the composite image are kept consistent after scaling; the superposition module (204) is used for copying the handwriting places on the composite image to the background image, and not copying the handwriting places, so that the handwriting is superposed on the background image.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310443402.4A CN103501433B (en) | 2013-09-26 | 2013-09-26 | A kind of 3D painting and calligraphy display packing and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310443402.4A CN103501433B (en) | 2013-09-26 | 2013-09-26 | A kind of 3D painting and calligraphy display packing and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103501433A CN103501433A (en) | 2014-01-08 |
CN103501433B true CN103501433B (en) | 2015-12-23 |
Family
ID=49866596
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310443402.4A Expired - Fee Related CN103501433B (en) | 2013-09-26 | 2013-09-26 | A kind of 3D painting and calligraphy display packing and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103501433B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106296574A (en) * | 2016-08-02 | 2017-01-04 | 乐视控股(北京)有限公司 | 3-d photographs generates method and apparatus |
CN108566515A (en) * | 2018-04-28 | 2018-09-21 | 努比亚技术有限公司 | It takes pictures processing method, mobile terminal and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102356630A (en) * | 2009-03-19 | 2012-02-15 | 弗莱克斯电子有限责任公司 | Dual sensor camera |
CN102932662A (en) * | 2012-12-05 | 2013-02-13 | 青岛海信信芯科技有限公司 | Single-view-to-multi-view stereoscopic video generation method and method for solving depth information graph and generating disparity map |
CN102939763A (en) * | 2010-06-14 | 2013-02-20 | 高通股份有限公司 | Calculating disparity for three-dimensional images |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103310477B (en) * | 2013-06-27 | 2016-05-11 | 北京青青树动漫科技有限公司 | A kind of 3-dimensional image generation method |
-
2013
- 2013-09-26 CN CN201310443402.4A patent/CN103501433B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102356630A (en) * | 2009-03-19 | 2012-02-15 | 弗莱克斯电子有限责任公司 | Dual sensor camera |
CN102939763A (en) * | 2010-06-14 | 2013-02-20 | 高通股份有限公司 | Calculating disparity for three-dimensional images |
CN102932662A (en) * | 2012-12-05 | 2013-02-13 | 青岛海信信芯科技有限公司 | Single-view-to-multi-view stereoscopic video generation method and method for solving depth information graph and generating disparity map |
Also Published As
Publication number | Publication date |
---|---|
CN103501433A (en) | 2014-01-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4098235B2 (en) | Stereoscopic image processing apparatus and method | |
CN102055998B (en) | Image processing apparatus, image processing method | |
KR101675041B1 (en) | Resolution enhanced 3d vedio rendering systems and methods | |
US9791922B2 (en) | User interface control device, user interface control method, computer program and integrated circuit | |
CN103238337B (en) | Three-dimensional image acquisition system and method | |
RU2010123652A (en) | SYSTEM AND METHOD FOR VISUALIZING STEREO IMAGES AND MULTI-VIEW IMAGES FOR CONTROL THE PERCEPTION OF DEPTH OF A STEREOSCOPIC IMAGE CREATED BY A TV RECEIVER | |
CN102014293B (en) | Three-dimensional rendering method of plane video | |
US20030086601A1 (en) | Apparatus for producing real-time anaglyphs | |
CN102932662B (en) | Single-view-to-multi-view stereoscopic video generation method and method for solving depth information graph and generating disparity map | |
JP2011078036A (en) | Quasi three-dimensional image preparation device and quasi three-dimensional image display system | |
CN108076208B (en) | Display processing method and device and terminal | |
CN102143371A (en) | Image processing apparatus, 3D display apparatus and image processing method | |
US20090262125A1 (en) | Rendering A Multiple Viewpoint Image Into A Single Frame Buffer Using Off-Screen Rendering Surfaces | |
CN103501433B (en) | A kind of 3D painting and calligraphy display packing and device | |
CN101299843B (en) | 3D display mobile phone and 3D image display method | |
Chen et al. | A method of stereoscopic display for dynamic 3D graphics on android platform | |
KR101781869B1 (en) | Apparatus for tranforming image | |
WO2007017834A3 (en) | Disparity value generator | |
CN108124148A (en) | A kind of method and device of the multiple view images of single view video conversion | |
JP2015037282A (en) | Image processing device, image processing method, and program | |
Kang et al. | Stereo 3D spatial phase diagrams | |
CN102780900A (en) | Image display method of multi-person multi-view stereoscopic display | |
US10554946B2 (en) | Image processing for dynamic OSD image | |
KR20170100229A (en) | System for displaying multiview image | |
CN102447926B (en) | Method for warping three-dimensional image without camera calibration parameters |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C56 | Change in the name or address of the patentee | ||
CP03 | Change of name, title or address |
Address after: 518000 Beek science and technology building, room, No. 9 research road, Nanshan District high tech Zone, Guangdong, China, 1501-B Patentee after: INLIFE-HANDNET Co.,Ltd. Address before: 518054 Guangdong city of Shenzhen province Nanshan District Nanhai Road Guangdong sea (Shenzhen city) 7 Building 3 floor Patentee before: Inlife-handnet Co.,Ltd. |
|
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20151223 |
|
CF01 | Termination of patent right due to non-payment of annual fee |