CN109584360A - A kind of inscription rubbing method and device - Google Patents

A kind of inscription rubbing method and device Download PDF

Info

Publication number
CN109584360A
CN109584360A CN201811467824.4A CN201811467824A CN109584360A CN 109584360 A CN109584360 A CN 109584360A CN 201811467824 A CN201811467824 A CN 201811467824A CN 109584360 A CN109584360 A CN 109584360A
Authority
CN
China
Prior art keywords
inscription rubbing
mask
data
layer
adjusted
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.)
Granted
Application number
CN201811467824.4A
Other languages
Chinese (zh)
Other versions
CN109584360B (en
Inventor
姚立
陈正魁
王少华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Shuwen Technology Co ltd
Original Assignee
Xi'an Digital Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Xi'an Digital Technology Co Ltd filed Critical Xi'an Digital Technology Co Ltd
Priority to CN201811467824.4A priority Critical patent/CN109584360B/en
Publication of CN109584360A publication Critical patent/CN109584360A/en
Application granted granted Critical
Publication of CN109584360B publication Critical patent/CN109584360B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1275Print workflow management, e.g. defining or changing a workflow, cross publishing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/10Geometric effects
    • G06T15/20Perspective computation
    • G06T15/205Image-based rendering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Graphics (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • Architecture (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The present invention provides a kind of inscription rubbing method and device, comprising: obtains the three-dimensional modeling data to inscription rubbing target, generates the threedimensional model to inscription rubbing target and the mask figure layer with preset resolution ratio according to three-dimensional modeling data;According to preset superposition transparency by mask map overlay to threedimensional model, then output is superimposed with the threedimensional model of mask figure layer;Obtain the touch data that user is inputted based on the threedimensional model for being superimposed with mask figure layer;According to touch data, three-dimensional modeling data and mask figure layer, the inscription rubbing picture to inscription rubbing target is generated.Inscription rubbing method and device provided by the invention, can be under the premise of not damaging to inscription rubbing target, this waits for the inscription rubbing of inscription rubbing target for simple and fast generation, and when carrying out inscription rubbing to historical relic, protection historical relic is not damaged.

Description

A kind of inscription rubbing method and device
Technical field
The present invention relates to field of computer technology, in particular to a kind of inscription rubbing method and device.
Background technique
Inscription rubbing is the manual duplicate to the surface of engraving or etching, and the correlative study with historical relic of engaging in archaeological studies frequently relies on Inscription rubbing.Existing inscription rubbing method is: first is clean to inscription rubbing target (such as calligraphy stone tablet, the copper coin for having decorative pattern) surface clean, A piece of sizeable rice paper is taken, it is gently soaked, then covers the wet rice paper to inscription rubbing target surface, while again On a surname surface, again then attached one layer of soft blotting paper is gently struck with hairbrush and is beaten to protect rice paper paper, and then makes wet rice paper It is attached to inscription rubbing target surface, then gets rid of the soft blotting paper on upper layer again, after equal rice paper are slightly dry, wrapped (also referred to as with opening up Flutter son) suitable ink is dipped in, it is gently patted in the image (being attached to the rice paper to inscription rubbing target surface) of protrusion, just will form black and white Clearly demarcated rubbing.However, it has been found in practice that existing inscription rubbing method needs to be covered on inscription rubbing tool to inscription rubbing object table Face is easy to treat inscription rubbing target and causes irreversible damage.
Summary of the invention
In view of the above problems, the present invention provides a kind of inscription rubbing method and devices, can not damage to inscription rubbing target Under the premise of, this waits for the inscription rubbing of inscription rubbing target for simple and fast generation, and when carrying out inscription rubbing to historical relic, protection historical relic is not damaged.
To achieve the goals above, the present invention adopts the following technical scheme that:
First aspect present invention discloses a kind of inscription rubbing method, comprising:
The three-dimensional modeling data to inscription rubbing target is obtained, and described to inscription rubbing target according to three-dimensional modeling data generation Threedimensional model and mask figure layer with preset resolution ratio;
According to preset superposition transparency by the mask map overlay to the threedimensional model, and export superposition State the threedimensional model of mask figure layer;
Obtain the touch data that user is inputted based on the threedimensional model for being superimposed with the mask figure layer;
According to the touch data, the three-dimensional modeling data and the mask figure layer, generate described to inscription rubbing target Inscription rubbing picture.
As an alternative embodiment, the touch data is included in the mask in first aspect present invention One or more of position of touch, touch-control area, touch-control time, touch-control dynamics in figure layer.
As an alternative embodiment, in first aspect present invention, according to the touch data, the three-dimensional mould Type data and the mask figure layer generate the inscription rubbing picture to inscription rubbing target, comprising:
According to the touch data, the three-dimensional modeling data and the mask figure layer, generates gray scale and adjust data, it is described It includes that multiple gray values to be adjusted and each gray value to be adjusted correspond to pixel to be adjusted in institute that gray scale, which adjusts data, State the position in mask figure layer;
Data are adjusted according to the gray scale, and all pixels to be adjusted are determined in the mask figure layer;
Data are adjusted according to the gray scale to be adjusted to the gray value of each pixel to be adjusted and the picture to be adjusted The corresponding gray value to be adjusted of vegetarian refreshments, and the transparency of all pixels to be adjusted is adjusted to fully opaque Value obtains the inscription rubbing picture to inscription rubbing target.
As an alternative embodiment, the three-dimensional modeling data includes three-dimensional empty in first aspect present invention Analog model data or the three dimensional point cloud collected by spatial digitizer.
As an alternative embodiment, in first aspect present invention, according to the touch data, the three-dimensional Model data and the mask figure layer, generate it is described to the inscription rubbing picture of inscription rubbing target after, the method also includes:
The inscription rubbing picture is exported, and judges whether to receive the completion instruction of user's input;
If not receiving the completion instruction of user's input, output is used to prompt to regenerate the prompt of inscription rubbing picture Information, and according to the three-dimensional modeling data output threedimensional model to inscription rubbing target described in execution, and according to default Superposition transparency will be exported on the mask map overlay to the threedimensional model.
Second aspect of the present invention discloses a kind of rubbing device, comprising:
First obtains module, for obtaining the three-dimensional modeling data to inscription rubbing target, and according to the three-dimensional modeling data Generate the threedimensional model to inscription rubbing target and the mask figure layer with preset resolution ratio;
Output module, for according to preset superposition transparency by the mask map overlay to the threedimensional model, And export the threedimensional model for being superimposed with the mask figure layer;
Second obtains module, is inputted for obtaining user based on the threedimensional model for being superimposed with the mask figure layer Touch data;
Generation module, for according to the touch data, the three-dimensional modeling data and the mask figure layer, described in generation Inscription rubbing picture to inscription rubbing target.
As an alternative embodiment, the touch data is included in the mask in second aspect of the present invention One or more of position of touch, touch-control area, touch-control time, touch-control dynamics in figure layer.
As an alternative embodiment, in second aspect of the present invention, the generation module, comprising:
First submodule, for generating ash according to the touch data, the three-dimensional modeling data and the mask figure layer Degree adjustment data, gray scale adjustment data include multiple gray values to be adjusted and each gray value to be adjusted it is corresponding to Adjust position of the pixel in the mask figure layer;
Second submodule, for according to the gray scale adjust data determined in the mask figure layer it is all described in Adjust pixel;
Third submodule adjusts the gray value of each pixel to be adjusted for adjusting data according to the gray scale For gray value to be adjusted corresponding with the pixel to be adjusted, and the transparency of all pixels to be adjusted is adjusted to Fully opaque value obtains the inscription rubbing picture to inscription rubbing target.
Third aspect present invention discloses a kind of computer equipment, including memory and processor, and the memory is used for Computer program is stored, the processor runs the computer program so that the computer equipment executes first aspect and discloses The some or all of inscription rubbing method.
Fourth aspect present invention discloses a kind of computer readable storage medium, is stored with computer described in the third aspect The computer program used in equipment.
The inscription rubbing method and device provided according to the present invention, the inscription rubbing method are applied to the rubbing device with touch screen, When treating the progress inscription rubbing of inscription rubbing target, rubbing device first obtains the three-dimensional modeling data for waiting for inscription rubbing target, and according to three-dimensional Model data generates the threedimensional model to inscription rubbing target and the mask figure layer with preset resolution ratio;Then rubbing device root again According to preset superposition transparency by mask map overlay to threedimensional model, and export the threedimensional model for being superimposed with mask figure layer; At this point, user input the touch data based on threedimensional model by touch screen on the threedimensional model of output, increase user and Interactivity between rubbing device is conducive to promote user experience, and further, rubbing device can be according to touch data, three Dimension module data and mask figure layer generate inscription rubbing picture to inscription rubbing target, have broken the limitation of spacial flex, can will be various The historical relic of various kinds conveniently and efficiently shows in front of the user, allows users under the premise of not damaging to inscription rubbing target, right Any one historical relic carries out inscription rubbing, simple and fast, and then is conducive to protect historical relic.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate Appended attached drawing, is described in detail below.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair The restriction of the scope of the invention.
Fig. 1 is a kind of flow diagram for inscription rubbing method that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow diagram of inscription rubbing method provided by Embodiment 2 of the present invention;
Fig. 3 is the display renderings of the threedimensional model of word upright stone tablet provided by Embodiment 2 of the present invention;
Fig. 4 is folded on mask map overlay provided by Embodiment 2 of the present invention to the threedimensional model of word upright stone tablet shown in Fig. 3 Add display renderings;
Fig. 5 is the partial region inscription rubbing effect of the threedimensional model provided by Embodiment 2 of the present invention based on word upright stone tablet shown in Fig. 3 Fruit figure;
Fig. 6 is the complete inscription rubbing picture of the threedimensional model provided by Embodiment 2 of the present invention based on word upright stone tablet shown in Fig. 3;
Fig. 7 is a kind of structural schematic diagram for rubbing device that the embodiment of the present invention three provides.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete Ground description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause This, is not intended to limit claimed invention to the detailed description of the embodiment of the present invention provided in the accompanying drawings below Range, but it is merely representative of selected embodiment of the invention.Based on the embodiment of the present invention, those skilled in the art are not doing Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
For the problems of the prior art, the present invention provides a kind of inscription rubbing method and devices;The inscription rubbing method is applied to Rubbing device with touch screen, treat inscription rubbing target carry out inscription rubbing when, rubbing device first obtain this wait for inscription rubbing target three Dimension module data, and generated according to three-dimensional modeling data to the threedimensional model of inscription rubbing target and the mask with preset resolution ratio Figure layer;Then rubbing device and exports superposition further according to preset superposition transparency by mask map overlay to threedimensional model There is the threedimensional model of mask figure layer;At this point, user is inputted on the threedimensional model of output based on threedimensional model by touch screen Touch data increases the interactivity between user and rubbing device, is conducive to promote user experience, further, inscription rubbing dress The inscription rubbing picture to inscription rubbing target can be generated, break displaying according to touch data, three-dimensional modeling data and mask figure layer by setting The limitation in space can conveniently and efficiently show various historical relics in front of the user, allow users to do not damaging Under the premise of to inscription rubbing target, inscription rubbing is carried out to any one historical relic, it is simple and fast, and then be conducive to protect historical relic not damaged. Also, the technology can use relevant software or hardware realization, be described below by embodiment.
Embodiment 1
Referring to Fig. 1, Fig. 1 is a kind of flow diagram of inscription rubbing method provided in an embodiment of the present invention.Wherein, such as Fig. 1 Shown, which may comprise steps of:
The three-dimensional modeling data of S101, acquisition to inscription rubbing target, and generated according to three-dimensional modeling data to inscription rubbing target Threedimensional model and mask figure layer with preset resolution ratio.
It can should be historical relic (such as stone tablet, implements with texture) to inscription rubbing target, with texture in the present embodiment Object etc., to this, this embodiment is not limited.
As an alternative embodiment, the three-dimensional modeling data can be 3-D scanning model data.It can use 3-D scanning digitizing technique treats inscription rubbing target by three-dimensional scanning device and carries out high-precision scanning survey, and foundation is swept It retouches measurement result and generates the three-dimensional modeling data for waiting for inscription rubbing target with high precision, precision is up to micron order.
As another optional embodiment, three-dimensional modeling data can also be three dimensional point cloud.Now, three-dimensional point Cloud data protect a kind of important means with propagation as cultural relic digitalization, and lot of domestic and foreign museum carries out cultural relics in the collection of cultural institution High-precision scanning modeling, and high-precision model data is published on internet, it visits and browses for public users, therefore, The three dimensional point cloud to inscription rubbing target accordingly can be obtained by internet.
Implement inscription rubbing method described in the present embodiment, is able to use family when carrying out inscription rubbing, can arbitrarily select felt emerging Interesting article object carries out inscription rubbing, has broken the limitation of spacial flex, various historical relics conveniently and efficiently can be presented in user In front, it enables user that can understand interested historical relic in depth, is conducive to promote user experience.
Mask figure layer described in the present embodiment, actually refers to a kind of picture, and each pixel is logical with RGB on the picture Road and the channel Alpha.Wherein, RGB channel refers to i.e. red channel, green channel and blue channel, and the channel Alpha is one 8 Gray channel, which records the transparence information in image with 256 grades of gray scales, defines transparent, opaque and half Transparent region, value are 0 to 1.
S102, according to preset superposition transparency by mask map overlay to threedimensional model, and export and be superimposed with mask The threedimensional model of figure layer.
In the present embodiment, if defining transparency is fully opaque value when being 0, transparency be 1 be it is fully transparent, then should Preset transparency can be 0.5,0.3,0.45 etc., and to this, this embodiment is not limited.
In the present embodiment, the size of mask figure layer and the size of threedimensional model match, the ruler of mask figure layer Very little size is determined by three-dimensional modeling data.
S103, the touch data that user is inputted based on the threedimensional model for being superimposed with mask figure layer is obtained.
In the present embodiment.The inscription rubbing method is applied to the rubbing device with touch screen, and user can be according to rubbing device The threedimensional model for being superimposed mask figure layer of output, by the touch screen carry out corresponding touch control operation (as touched, pressing or Pat etc.) touch data of the input based on threedimensional model.
In the present embodiment, user can input the touch data based on threedimensional model by hand or dedicated packet of opening up.
S104, according to touch data, three-dimensional modeling data and mask figure layer, generate the inscription rubbing picture to inscription rubbing target.
In the present embodiment, after output is superimposed with the threedimensional model of mask figure layer, actual output effect is equivalent to It is covered on the threedimensional model one layer " glass plate " with above-mentioned default transparency, user can be by inputting touch-control number According to, and then inscription rubbing picture of the generation to inscription rubbing target on " glass plate ".
Inscription rubbing method described in the present embodiment, can be in inscription rubbing in form and in inscription rubbing effect, to traditional-handwork inscription rubbing High analogue simulation is carried out, the sense of participation of user is improved, after the completion of simulating inscription rubbing, exportable inscription rubbing achievement promotes user experience Degree, while user can further appreciate that historical relic culture during carrying out inscription rubbing.
In the inscription rubbing method described in Fig. 1 institute, which is applied to the rubbing device with touch screen, is treating When inscription rubbing target carries out inscription rubbing, rubbing device first obtains the three-dimensional modeling data for waiting for inscription rubbing target, and according to threedimensional model number According to threedimensional model of the generation to inscription rubbing target and the mask figure layer with preset resolution ratio;Then rubbing device is further according to default Superposition transparency by mask map overlay to threedimensional model, and export the threedimensional model for being superimposed with mask figure layer;At this point, with Family inputs the touch data based on threedimensional model by touch screen on the threedimensional model of output, increases user and rubbing device Between interactivity, be conducive to promoted user experience, further, rubbing device can be according to touch data, threedimensional model number According to mask figure layer, generate inscription rubbing picture to inscription rubbing target.As it can be seen that implementing inscription rubbing method described in Fig. 1, displaying is broken The limitation in space can conveniently and efficiently show various historical relics in front of the user, allow users to do not damaging Under the premise of to inscription rubbing target, inscription rubbing is carried out to any one historical relic, it is simple and fast, and then be conducive to the protection of historical relic.
Embodiment 2
Referring to Fig. 2, Fig. 2 is a kind of flow diagram of inscription rubbing method provided in an embodiment of the present invention.Wherein, such as Fig. 2 Shown, which may comprise steps of:
The three-dimensional modeling data of S201, acquisition to inscription rubbing target, and generated according to three-dimensional modeling data to inscription rubbing target Threedimensional model and mask figure layer with preset resolution ratio.
S202, according to preset superposition transparency by mask map overlay to threedimensional model, and export and be superimposed with mask The threedimensional model of figure layer.
In the present embodiment, mask figure layer is size and one layer of translucent figure layer that the threedimensional model matches.If wait open up Print target is word upright stone tablet, please refers to Fig. 3 and Fig. 4, and Fig. 3 is the display renderings of the threedimensional model of the word upright stone tablet, and Fig. 4 is that mask figure layer is folded Add to the Overlapping display effect picture on the threedimensional model of word upright stone tablet shown in Fig. 3.
S203, the touch data that user is inputted based on the threedimensional model for being superimposed with mask figure layer is obtained.
In the present embodiment, touch data includes position of touch, touch-control area, touch-control time, touch-control in mask figure layer One or more of dynamics, to this, this embodiment is not limited.
S204, according to touch data, three-dimensional modeling data and mask figure layer, generate gray scale and adjust data.
In the present embodiment, gray scale adjustment data include multiple gray values to be adjusted and each gray value to be adjusted it is corresponding to Adjust position of the pixel in mask figure layer.
As an alternative embodiment, gray count algorithm can be prestored, it can be according to touch data, three-dimensional mould Type data and mask figure layer, the gray count algorithm prestored by this calculate the to be adjusted of in mask figure layer position corresponding position Gray value.
S205, all pixels to be adjusted are determined in mask figure layer according to gray scale adjustment data.
In the present embodiment, the original gray value of each pixel can be preset value, such as each pixel in mask figure layer The original gray value of point be 0 or the original gray value of each pixel be 225 etc.;Each pixel in mask figure layer Original gray value be all different, can be preset value, or the value generated at random does not limit this present embodiment It is fixed.
S206, the gray value of each pixel to be adjusted is adjusted to and the pixel to be adjusted according to gray scale adjustment data Corresponding gray value to be adjusted, and the transparency of all pixels to be adjusted is adjusted to fully opaque value, obtain to The inscription rubbing picture of inscription rubbing target.
In the present embodiment, execute above-mentioned steps S204~step S206, can according to touch data, three-dimensional modeling data and Mask figure layer generates the inscription rubbing picture to inscription rubbing target.
In the present embodiment, if define transparency be when being 0 it is completely opaque, transparency be 1 be it is fully transparent, then can will The transparency of all pixels to be adjusted is adjusted to 0, obtains the inscription rubbing picture to inscription rubbing target.
In the present embodiment, which is a series of obtained picture after carrying out processing to the mask figure layer.
Please refer to Fig. 5 and Fig. 6, the input of partial region on user's Overlapping display effect picture shown in Fig. 4 based on three After the touch data of dimension module, inscription rubbing effect picture in partial region shown in fig. 5 will be generated in real time, when user will be shown in Fig. 4 After all areas input touch data on Overlapping display effect picture, the complete inscription rubbing of word upright stone tablet as shown in Figure 5 will be generated Picture.
S207, output inscription rubbing picture, and judge whether to receive the completion instruction of user's input, if not receiving user The completion of input instructs, and executes step S208.
S208, output are used to prompt to regenerate the prompt information of inscription rubbing picture, and execute step S202~step S207.
As an alternative embodiment, executing step S209 if receiving the completion instruction of user's input.
S209, the inscription rubbing picture is stored.
It, can also be according to the instruction that user inputs to the inscription rubbing picture after storing the inscription rubbing picture in the present embodiment Printed, shared, mail send etc. processing operations.
In the present embodiment, three-dimensional modeling data includes three dimensional virtual models data or is collected by spatial digitizer Three dimensional point cloud, to this, this embodiment is not limited.
As it can be seen that implementing inscription rubbing method described in the present embodiment, the interactivity between user is not only increased, is conducive to User experience is promoted, and has broken the limitation of spacial flex, various historical relics can be conveniently and efficiently presented in use It in face of family, allows users under the premise of not damaging to inscription rubbing target, inscription rubbing is carried out to any one historical relic, it is simple and fast, And then be conducive to the protection of historical relic.
Embodiment 3
Referring to Fig. 7, Fig. 7 is a kind of structural schematic diagram of rubbing device provided in an embodiment of the present invention.Wherein, such as Fig. 7 Shown, which includes:
First obtains module 310, for obtaining the three-dimensional modeling data to inscription rubbing target, and it is raw according to three-dimensional modeling data At the threedimensional model to inscription rubbing target and with the mask figure layer of preset resolution ratio.
In the present embodiment, three-dimensional modeling data includes three dimensional virtual models data or is collected by spatial digitizer Three dimensional point cloud etc., to this, you are that city is not construed as limiting.
Output module 320 is used for mask map overlay to threedimensional model according to preset superposition transparency, and exports It is superimposed with the threedimensional model of mask figure layer.
Second obtains module 330, the touch-control inputted for obtaining user based on the threedimensional model for being superimposed with mask figure layer Data.
In the present embodiment, output module 320 can also trigger the after output is superimposed with the threedimensional model of mask figure layer Two acquisition modules 330 obtain the touch data that user is inputted based on the threedimensional model for being superimposed with mask figure layer.
Generation module 340, for generating to inscription rubbing target according to touch data, three-dimensional modeling data and mask figure layer Inscription rubbing picture.
In the present embodiment, touch data includes position of touch, touch-control area, touch-control time, touch-control in mask figure layer One or more of dynamics.
In the present embodiment, generation module 340, comprising:
First submodule 341, for generating gray scale and adjusting number according to touch data, three-dimensional modeling data and mask figure layer According to it includes that multiple gray values to be adjusted and each gray value to be adjusted correspond to pixel to be adjusted in mask that gray scale, which adjusts data, Position in figure layer.
Second submodule 342 determines all pixels to be adjusted for adjusting data according to gray scale in mask figure layer Point.
Third submodule 343, for according to gray scale adjust data by the gray value of each pixel to be adjusted be adjusted to The corresponding gray value to be adjusted of the pixel to be adjusted, and the transparency of all pixels to be adjusted is adjusted to completely impermeable Bright value obtains the inscription rubbing picture to inscription rubbing target.
As it can be seen that implementing inscription rubbing method described in the present embodiment, the interactivity between user is not only increased, is conducive to User experience is promoted, and has broken the limitation of spacial flex, various historical relics can be conveniently and efficiently presented in use It in face of family, allows users under the premise of not damaging to inscription rubbing target, inscription rubbing is carried out to any one historical relic, it is simple and fast, And then be conducive to the protection of historical relic.
In addition, the present invention also provides a kind of computer equipments.The computer equipment includes memory and processor, storage Device can be used for storing computer program, and processor is by operation computer program, so that the computer equipment be made to execute above-mentioned side The function of method or the modules in above-mentioned rubbing device.
Memory may include storing program area and storage data area, wherein storing program area can storage program area, at least Application program needed for one function (such as sound-playing function, image player function etc.) etc.;Storage data area can store root Created data (such as audio data, phone directory etc.) etc. are used according to mobile terminal.In addition, memory may include high speed Random access memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or Other volatile solid-state parts.
The present embodiment additionally provides a kind of computer storage medium, for storing calculating used in above-mentioned computer equipment Machine program.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, flow chart and structure in attached drawing Figure shows the system frame in the cards of the device of multiple embodiments according to the present invention, method and computer program product Structure, function and operation.In this regard, each box in flowchart or block diagram can represent a module, section or code A part, a part of the module, section or code includes one or more for implementing the specified logical function Executable instruction.It should also be noted that function marked in the box can also be to be different from the implementation as replacement The sequence marked in attached drawing occurs.For example, two continuous boxes can actually be basically executed in parallel, they are sometimes It can execute in the opposite order, this depends on the function involved.It is also noted that in structure chart and/or flow chart The combination of each box and the box in structure chart and/or flow chart, can function or movement as defined in executing it is dedicated Hardware based system realize, or can realize using a combination of dedicated hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present invention can integrate one independence of formation together Part, be also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be intelligence Can mobile phone, personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or Part steps.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), Random access memory (RAM, Random Access Memory), magnetic or disk etc. be various to can store program code Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. a kind of inscription rubbing method characterized by comprising
The three-dimensional modeling data to inscription rubbing target is obtained, and three to inscription rubbing target are generated according to the three-dimensional modeling data Dimension module and mask figure layer with preset resolution ratio;
According to preset superposition transparency by the mask map overlay to the threedimensional model, and exports and be superimposed with the illiteracy The threedimensional model of plate figure layer;
Obtain the touch data that user is inputted based on the threedimensional model for being superimposed with the mask figure layer;
According to the touch data, the three-dimensional modeling data and the mask figure layer, the inscription rubbing to inscription rubbing target is generated Picture.
2. inscription rubbing method according to claim 1, which is characterized in that the touch data includes in the mask figure layer Position of touch, touch-control area, touch-control time, one or more of touch-control dynamics.
3. inscription rubbing method according to claim 2, which is characterized in that according to the touch data, the threedimensional model number According to the mask figure layer, generate the inscription rubbing picture to inscription rubbing target, comprising:
According to the touch data, the three-dimensional modeling data and the mask figure layer, generates gray scale and adjust data, the gray scale Adjusting data includes that multiple gray values to be adjusted and each gray value to be adjusted correspond to pixel to be adjusted in the illiteracy Position in plate figure layer;
Data are adjusted according to the gray scale, and all pixels to be adjusted are determined in the mask figure layer;
Data are adjusted according to the gray scale to be adjusted to the gray value of each pixel to be adjusted and the pixel to be adjusted Corresponding gray value to be adjusted, and the transparency of all pixels to be adjusted is adjusted to fully opaque value, it obtains To the inscription rubbing picture to inscription rubbing target.
4. inscription rubbing method according to claim 1, which is characterized in that the three-dimensional modeling data includes three dimensional virtual models Data or the three dimensional point cloud collected by spatial digitizer.
5. inscription rubbing method according to claim 1, which is characterized in that according to the touch data, the threedimensional model Data and the mask figure layer, generate it is described to the inscription rubbing picture of inscription rubbing target after, the method also includes:
The inscription rubbing picture is exported, and judges whether to receive the completion instruction of user's input;
If not receiving the completion instruction of user's input, output is for prompting the prompt for regenerating inscription rubbing picture to believe Breath, and according to the three-dimensional modeling data output threedimensional model to inscription rubbing target described in execution, and according to preset Superposition transparency will export on the mask map overlay to the threedimensional model.
6. a kind of rubbing device characterized by comprising
First obtains module, generates for obtaining the three-dimensional modeling data to inscription rubbing target, and according to the three-dimensional modeling data The threedimensional model to inscription rubbing target and the mask figure layer with preset resolution ratio;
Output module, for according to preset superposition transparency by the mask map overlay to the threedimensional model, and it is defeated It is superimposed with the threedimensional model of the mask figure layer out;
Second obtains module, the touch-control inputted for obtaining user based on the threedimensional model for being superimposed with the mask figure layer Data;
Generation module, for generating described wait open up according to the touch data, the three-dimensional modeling data and the mask figure layer Print the inscription rubbing picture of target.
7. rubbing device according to claim 6, which is characterized in that the touch data includes in the mask figure layer Position of touch, touch-control area, touch-control time, one or more of touch-control dynamics.
8. rubbing device according to claim 7, which is characterized in that the generation module, comprising:
First submodule, for generating gray scale tune according to the touch data, the three-dimensional modeling data and the mask figure layer Entire data, gray scale adjustment data include multiple gray values to be adjusted and each gray value to be adjusted correspond to it is to be adjusted Position of the pixel in the mask figure layer;
Second submodule, for according to the gray scale adjust data determined in the mask figure layer it is all described to be adjusted Pixel;
Third submodule, for according to the gray scale adjust data by the gray value of each pixel to be adjusted be adjusted to The corresponding gray value to be adjusted of the pixel to be adjusted, and the transparency of all pixels to be adjusted is adjusted to complete Opaque value obtains the inscription rubbing picture to inscription rubbing target.
9. a kind of computer equipment, which is characterized in that including memory and processor, the memory is for storing computer Program, the processor runs the computer program so that the computer equipment perform claim requires any one of 1 to 5 institute The inscription rubbing method stated.
10. a kind of computer readable storage medium, which is characterized in that it is stored in computer equipment as claimed in claim 9 The used computer program.
CN201811467824.4A 2018-12-03 2018-12-03 Rubbing method and device Active CN109584360B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811467824.4A CN109584360B (en) 2018-12-03 2018-12-03 Rubbing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811467824.4A CN109584360B (en) 2018-12-03 2018-12-03 Rubbing method and device

Publications (2)

Publication Number Publication Date
CN109584360A true CN109584360A (en) 2019-04-05
CN109584360B CN109584360B (en) 2023-04-07

Family

ID=65925929

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811467824.4A Active CN109584360B (en) 2018-12-03 2018-12-03 Rubbing method and device

Country Status (1)

Country Link
CN (1) CN109584360B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113139216A (en) * 2021-05-18 2021-07-20 武汉数文科技有限公司 Digital rubbing method and device and computer equipment
CN113610960A (en) * 2021-07-19 2021-11-05 福建凯米网络科技有限公司 Method and device for preventing die penetration during three-dimensional model merging and storage medium
CN114387414A (en) * 2021-12-13 2022-04-22 武汉工程大学 Method and device for generating lunar soil particle model, electronic equipment and medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006029562A1 (en) * 2004-09-17 2006-03-23 Xunong Zhang A producing technology of simulating the art oil painting
CN108550101A (en) * 2018-04-19 2018-09-18 腾讯科技(深圳)有限公司 Image processing method, device and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006029562A1 (en) * 2004-09-17 2006-03-23 Xunong Zhang A producing technology of simulating the art oil painting
CN108550101A (en) * 2018-04-19 2018-09-18 腾讯科技(深圳)有限公司 Image processing method, device and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
徐亮等: "基于CT图像三维重建全骨盆模型与3D打印", 《精密制造与自动化》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113139216A (en) * 2021-05-18 2021-07-20 武汉数文科技有限公司 Digital rubbing method and device and computer equipment
CN113610960A (en) * 2021-07-19 2021-11-05 福建凯米网络科技有限公司 Method and device for preventing die penetration during three-dimensional model merging and storage medium
CN113610960B (en) * 2021-07-19 2024-04-02 福建凯米网络科技有限公司 Method, device and storage medium for preventing mold penetration during three-dimensional model merging
CN114387414A (en) * 2021-12-13 2022-04-22 武汉工程大学 Method and device for generating lunar soil particle model, electronic equipment and medium
CN114387414B (en) * 2021-12-13 2024-03-19 武汉工程大学 Lunar soil particle model generation method and device, electronic equipment and medium

Also Published As

Publication number Publication date
CN109584360B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN109584360A (en) A kind of inscription rubbing method and device
Perry et al. Kizamu: A system for sculpting digital characters
Semmo et al. Image stylization by interactive oil paint filtering
CN107045729B (en) A kind of image rendering method and device
TWI398158B (en) Method for generating the depth of a stereo image
CN106067185A (en) A kind of threedimensional model processing method and processing device
CN113448486A (en) Method and device for realizing pen point of electronic whiteboard, storage medium and electronic whiteboard
Gerl et al. Interactive example-based hatching
Pasko et al. Synthetic carving using implicit surface primitives
CN102663828B (en) Method for automatically generating three-dimensional calligraphic inscription or plaque
CN106297477A (en) A kind of method and device generating digitized copybook
JP4808975B2 (en) Simulation apparatus and simulation method for evaluating and simulating skin unevenness
Zhao et al. Artistic Style Analysis of Root Carving Visual Image Based on Texture Synthesis
CN104732570B (en) image generation method and device
CN115761095A (en) Leaf model generation method and device, storage medium and electronic equipment
CN104036547B (en) Method and device for three-dimensional brush to generate network module in real time based on Leap Motion control
CN105488360B (en) A kind of suffix is the anti-fake processing method and device of the threedimensional model file of fbx forms
Wu et al. Field Coupling‐Based Image Filter for Sand Painting Stylization
Pan et al. Salient structural elements based texture synthesis
Kerber Digital art of bas-relief sculpting
CN110473272A (en) Oil painting generation method, device, electronic equipment and storage medium based on image
CN109823068A (en) A kind of method of imitative wood type
CN114119925B (en) Game image modeling method and device and electronic equipment
Deng et al. Analysis of current situation of digital sculpture development
Wang et al. 3D sunken relief generation from a single image by feature line enhancement

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20221109

Address after: Room 04, 7 / F, building 1, wudahui garden, phase V, National Geospatial Information Industry base, No.7, wudayuan 1st Road, Donghu New Technology Development Zone, Wuhan City, Hubei Province, 430000

Applicant after: WUHAN SHUWEN TECHNOLOGY CO.,LTD.

Address before: 710000 Room 1315, Xi'an Innovation Design Center, No. 69, West Section of South Second Ring Road, Beilin District, Xi'an, Shaanxi

Applicant before: XI'AN SHUWEN TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant