[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN110191332A - The generation method and device of grating picture - Google Patents

The generation method and device of grating picture Download PDF

Info

Publication number
CN110191332A
CN110191332A CN201810155084.4A CN201810155084A CN110191332A CN 110191332 A CN110191332 A CN 110191332A CN 201810155084 A CN201810155084 A CN 201810155084A CN 110191332 A CN110191332 A CN 110191332A
Authority
CN
China
Prior art keywords
picture
pictures
grating
target
range information
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.)
Withdrawn
Application number
CN201810155084.4A
Other languages
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201810155084.4A priority Critical patent/CN110191332A/en
Priority to PCT/CN2019/071990 priority patent/WO2019161717A1/en
Publication of CN110191332A publication Critical patent/CN110191332A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N13/00Stereoscopic video systems; Multi-view video systems; Details thereof
    • H04N13/20Image signal generators
    • H04N13/204Image signal generators using stereoscopic image cameras
    • H04N13/207Image signal generators using stereoscopic image cameras using a single 2D image sensor
    • H04N13/218Image signal generators using stereoscopic image cameras using a single 2D image sensor using spatial multiplexing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N13/00Stereoscopic video systems; Multi-view video systems; Details thereof
    • H04N13/30Image reproducers
    • H04N13/302Image reproducers for viewing without the aid of special glasses, i.e. using autostereoscopic displays
    • H04N13/31Image reproducers for viewing without the aid of special glasses, i.e. using autostereoscopic displays using parallax barriers

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Abstract

The present invention provides the generation methods and device of a kind of grating picture, wherein, this method comprises: using camera acquire original image, and obtain multiple targets to camera range information, wherein, multiple target pictures corresponding with multiple targets are shown in original image;Multiple target pictures are shifted according to range information;Grating picture after generating displacement.Through the invention, it solves the problems, such as that grating picture can only be made using artificial in the related technology, while enhancing the playability of terminal.

Description

The generation method and device of grating picture
Technical field
The present invention relates to computer field, in particular to the generation method and device of a kind of grating picture.
Background technique
Apparent stereoscopic effect can be presented in grating stereo photo in the related technology, compared with planar picture, have longitudinal Information.I.e. under naked state, user can differentiate the prospect of grating stereoscopic photograph, middle scape, the various levels of information such as background.
Production grating stereo photo is all the bat in whole process by manually completing according to different processes in the related technology It takes the photograph, makes raster file, print, production stereoscopic photograph and etc., it is more demanding to profession, it especially shoots and makes grating text Part, needs to have stronger professional knowledge, and general user is difficult to be competent at.
In the related technology, grating stereo photo is all manual progress, is needed by multiple steps, production is cumbersome, at high cost It does not occupy, individual subscriber customization is few, and there is stereotome custom service in Taobao shop, i.e., by a picture, is made by hand by Taobao shop Make 3 D grating file, batch prints, and this mode shares the cost of hand-made raster file, contributory plan by largely printing Make the cost of halftone, but the demand of the photo of this and shooting required for user 1 or several grating stereo photo of production is variant.
For the above problem present in the relevant technologies, at present it is not yet found that the solution of effect.
Summary of the invention
The embodiment of the invention provides the generation methods and device of a kind of grating picture.
According to one embodiment of present invention, a kind of generation method of grating picture is provided, comprising: adopt using camera The original image of collection, and obtain multiple targets to the camera range information, wherein shown in the original image with The corresponding multiple target pictures of the multiple target;The multiple target picture is shifted according to the range information;It is raw At the grating picture after displacement.
According to another embodiment of the invention, a kind of generating means of grating picture are provided, comprising: processing module, For use camera acquire original image, and obtain multiple targets to the camera range information, wherein the original Multiple target pictures corresponding with the multiple target are shown in beginning picture;Shift module, for according to the range information The multiple target picture is shifted;Generation module, for generating the grating picture after shifting.
According to still another embodiment of the invention, a kind of storage medium is additionally provided.The storage medium is set as storage and uses In the program code for executing following steps:
Using camera acquire original image, and obtain multiple targets to the camera range information, wherein institute It states and shows multiple target pictures corresponding with the multiple target in original image;
The multiple target picture is shifted according to the range information;
Grating picture after generating displacement.
Through the invention, the scheme that using terminal camera automatically generates grating picture is provided, can solve correlation Grating picture problem can only be made using artificial in technology, while enhance the playability of terminal.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of hardware block diagram of the mobile terminal of the generation method of grating picture of the embodiment of the present invention;
Fig. 2 is the flow chart of the generation method of grating picture according to an embodiment of the present invention;
Fig. 3 is the structural block diagram of the generating means of grating picture according to an embodiment of the present invention;
Fig. 4 is the system block diagram of the synthesis system of grating stereo photo provided in this embodiment;
Fig. 5 is stereoscopic photograph imaging schematic diagram provided in this embodiment;
Fig. 6 is the photo schematic diagram of the present embodiment dual camera shooting;
Fig. 7 is that the present embodiment Dual-camera handset is taken pictures relative position schematic diagram;
Fig. 8 is that the present embodiment P1 is converted into P2 schematic diagram;
Fig. 9 is the schematic diagram that the present embodiment P11 is converted to P21;
Figure 10 is that the present embodiment P12 carries out column sampling generation P13 schematic diagram;
Figure 11 is that the present embodiment P22 carries out column sampling generation P23 schematic diagram;
Figure 12 is the grating stereo diagram intention that the present embodiment 4 opens figure synthesis;
Figure 13 is the overall flow figure of the embodiment of the present invention.
Specific embodiment
Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in combination with Examples.It should be noted that not conflicting In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.
Embodiment 1
Embodiment of the method provided by the embodiment of the present application one can be in mobile terminal, terminal or similar fortune It calculates and is executed in device.For running on mobile terminals, Fig. 1 is a kind of generation method of grating picture of the embodiment of the present invention Mobile terminal hardware block diagram.As shown in Figure 1, mobile terminal 10 may include that one or more (only shows one in figure It is a) (processor 102 can include but is not limited to the processing of Micro-processor MCV or programmable logic device FPGA etc. to processor 102 Device), memory 104 for storing data and the transmitting device 106 for communication function, camera module 108, use In acquisition picture and take pictures.It will appreciated by the skilled person that structure shown in FIG. 1 is only to illustrate, not to upper The structure for stating electronic device causes to limit.For example, mobile terminal 10 may also include than shown in Fig. 1 more or less groups Part, or with the configuration different from shown in Fig. 1.
Memory 104 can be used for storing the software program and module of application software, such as the grating in the embodiment of the present invention Corresponding program instruction/the module of the generation method of picture, the software journey that processor 102 is stored in memory 104 by operation Sequence and module realize above-mentioned method thereby executing various function application and data processing.Memory 104 may include High speed random access memory, may also include nonvolatile memory, as one or more magnetic storage device, flash memory or its His non-volatile solid state memory.In some instances, memory 104 can further comprise remotely setting relative to processor 102 The memory set, these remote memories can pass through network connection to mobile terminal 10.The example of above-mentioned network includes but not It is limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Transmitting device 106 is used to that data to be received or sent via a network.Above-mentioned network specific example may include The wireless network that the communication providers of mobile terminal 10 provide.In an example, transmitting device 106 includes a Network adaptation Device (Network Interface Controller, NIC), can be connected by base station with other network equipments so as to it is mutual Networking is communicated.In an example, transmitting device 106 can be radio frequency (Radio Frequency, RF) module, use In wirelessly being communicated with internet.
A kind of generation method of grating picture for running on above-mentioned mobile terminal is provided in the present embodiment, and Fig. 2 is root According to the flow chart of the generation method of the grating picture of the embodiment of the present invention, as shown in Fig. 2, the process includes the following steps:
Step S202, the original image acquired using camera, and the distance for obtaining multiple targets to the camera is believed Breath, wherein multiple target pictures corresponding with the multiple target are shown in the original image;
Step S204 shifts the multiple target picture according to the range information;
Step S206, the grating picture after generating displacement.
Through the above steps, the scheme that using terminal camera automatically generates grating picture is provided, can solve phase Grating picture problem can only be made using artificial in the technology of pass, while enhance the playability of terminal.
Optionally, the executing subject of above-mentioned steps can be for arbitrarily with a camera (camera or more than one Camera) terminal, such as mobile phone, but not limited to this.
Optionally, carrying out displacement to the multiple target picture according to the range information includes:
S11 separates the profile of each target in all target pictures;
S12 is layered the profile according to the range information;
S13, using the original image as reference point, to the main body picture of each layer to obtaining multiple the after first direction translation Two pictures;
S14 obtains multiple the to second direction translation second distance to multiple second pictures using original image as reference point Three pictures;Optionally, when first direction is left, second direction is the right side, and when first direction is right, second direction is a left side, first party To be upper when, under second direction is, first direction be under when, second direction be it is upper, first direction is opposite with second direction.
Optionally, carrying out layering to profile according to range information includes one of mode: the mesh within the scope of a predeterminable area What mark profile conformed to a predetermined condition is divided into one layer, wherein the range information includes one or more predeterminable area ranges; A region of one or more objective contours in pre-determined distance is divided into one layer, wherein the range information is greater than described pre- If distance.Different target but apart from same or similar, point in same layer.
Optionally, the quantity of second picture is identical as layering quantity.
Optionally, the range information for obtaining multiple targets to camera lens includes:
S21 carries out ranging to multiple targets using camera respectively;
S22, the range information of multiple targets that record ranging obtains to camera lens.
It optionally, can also be with sensor (such as Distance Transmission device) come ranging.
Optionally, generating the picture step after shifting includes:
S31 intercepts the intersection of multiple third pictures using original image as reference point;
S32 carries out per inch pixel number DPI to intersection and is converted to resolution ratio and original screen panel matched multiple the Four pictures;
S33 carries out column sampling in different lines to multiple 4th pictures and generates multiple 5th pictures;
S34 is interleaved superposition to multiple 5th pictures and generates grating picture.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing The part that technology contributes can be embodied in the form of software products, which is stored in a storage In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 2
Additionally provide a kind of generating means of grating picture in the present embodiment, the device for realizing above-described embodiment and Preferred embodiment, the descriptions that have already been made will not be repeated.As used below, predetermined function may be implemented in term " module " The combination of the software and/or hardware of energy.It is hard although device described in following embodiment is preferably realized with software The realization of the combination of part or software and hardware is also that may and be contemplated.
Fig. 3 is the structural block diagram of the generating means of grating picture according to an embodiment of the present invention, as shown in figure 3, the device Include:
Processing module 30, for use camera acquire original image, and obtain multiple targets to camera distance Information, wherein multiple target pictures corresponding with multiple targets are shown in original image;
Shift module 32, for being shifted according to range information to multiple target pictures;
Generation module 34, for generating the grating picture after shifting.
Optionally, shift module includes: separative unit, for separating the profile of each target in all target pictures;Layering Unit, for being layered according to range information to profile;First translation unit is used for using original image as reference point, to each The main body picture of layer obtains multiple second pictures after translating to first direction;Second translation unit, for being ginseng with original image Examination point obtains multiple third pictures to second direction translation second distance to multiple second pictures.
Optionally, generation module includes: interception unit, for intercepting multiple third pictures using original image as reference point Intersection;Converting unit is converted to resolution ratio and original screen panel for carrying out per inch pixel number DPI to intersection Matched multiple 4th pictures;Sampling unit generates the multiple 5th for carrying out column sampling in different lines to multiple 4th pictures Picture;Generation unit generates grating picture for being interleaved superposition to multiple 5th pictures.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong Following manner realization is crossed, but not limited to this: above-mentioned module is respectively positioned in same processor;Alternatively, above-mentioned modules are with any Combined form is located in different processors.
Embodiment 3
The present embodiment is the alternative embodiment according to the application, detailed for combining concrete implementation mode to carry out the application Thin explanation and illustration:
As double smart phones of taking the photograph occur, the photo of shooting has to multiple photographic subjects front-rear position writing functions. In this way, user takes the photograph taking photograph of intelligent mobile phone using double, so that it may directly output grating stereoscopic photograph file.
In actual use scene, user is taken pictures using Dual-camera handset, and selection enters grating stereo picture mode, right Quasi- target is taken pictures, and mobile phone generates grating stereo photo files.File is output to printer by user, and photograph print fills Grating Film, Or it is directly output to flat-panel printer, the photograph print on Grating Film.
A kind of synthesis system of grating stereo photo is present embodiments provided, Fig. 4 is grating stereo provided in this embodiment The system block diagram of the synthesis system of photo, comprising: dual camera shooting unit 40, photographic subjects.Image processing unit 42, to double The photo that camera is taken is analyzed, and the front-rear position relationship of each target in photo is obtained, and isolates the profile of each target. Central processing unit 44, system program unit 46 are responsible for whole system operation, data exchange etc..Storage unit 48, store data and Program.
Stereoscopic photograph image-forming principle is that left eye is made to see that left eye photo, right eye see right eye photo, left eye photo and right eye Photo is that the eyes of simulation people see big scene.People perceives object preceding, and rear, a major reason is and eyes object It is related to the angle of object.
Fig. 5 is stereoscopic photograph imaging schematic diagram provided in this embodiment, as shown in figure 5, being people's eyes perception object front and back The schematic diagram of position, to preceding object, ∠ right eye-left eye-object 1 angle is less than ∠ right eye-left eye-object 2 angle, together Sample, ∠ left eye-right eye-object 1 angle are less than ∠ left eye-right eye-object 2 angle, and the brain of people is judged as object 1 and exists Before, object 2 is rear, and for stereoscopic photograph, for the scenery of all shootings all on this display carrier of photographic paper, photographic paper is obvious It is plane, allows user to feel object preceding, object allows people to perceive stereoscopic effect, the method used is exactly rear Front and back object, visual angle is different, i.e., close to the preceding object of human eye, visual angle is small, the object far from human eye, visual angle angle Greatly.
Stereoscopic photograph key point is exactly that left eye is made to see that left eye photo, right eye see right eye photo, and the mesh in photo Mark, visual angle is not of uniform size, makes one the front-rear position relationship for forming target in the brain.Grating has isolation in the same plane The picture in 2 directions out realizes that left eye sees that left eye picture, right eye see the function of right eye picture.The photograph that the present embodiment is related to The movement of target in piece, purpose is exactly to adjust the visual angle of target, so that people be allowed to perceive the front-rear position relationship of each target.
The present invention be to double photos for taking the photograph mobile phone shooting and to target hierarchy on the basis of, it is vertical to propose that one kind automatically generates grating The scheme of body photo files, so that grating stereo photo production threshold is greatly reduced.
As shown in fig. 6, Fig. 6 is the photo schematic diagram of the present embodiment dual camera shooting, to simplify description, the photo of shooting In have A1, A2, B, three targets, wherein A1 is foremost close to double targets for taking the photograph mobile phone, and B is that farthest target (can be seen At being background, background can be moved or not moved), at the position of A2 between A1, B.Picture lower left corner O is defined as picture system System origin, O (0,0), picture X-axis are X ', and Y-axis is Y '.Mobile phone and mating image processing software have the ranging energy to target Power scratches figure vertical resolution, can be by dual camera to object ranging, by the target A1, A2 with taking lens different distance It is separated from background B.
As shown in fig. 7, Fig. 7 is that the present embodiment Dual-camera handset is taken pictures relative position schematic diagram.Wherein Lens is double takes the photograph As head cell phone cameras shoots eyeglass.Lens be at a distance from A1 be at a distance from Da1, with A2 be Db at a distance from Da2, with B.It is double to take the photograph As head mobile phone and image processing software, has and calculate Da1, the ability of Da2, Db, and target A1 is scratched into figure point from background B Target A2 is scratched figure layering by layer from background B.
Known Da1, Da2, Db
It is found that Da1b=Db-Da1, Da2b=Db-Da2
A1 is now defined, A2 mobile corresponding relationship, using B as origin, A1, A2 transverse shifting pixel needs A1, A2 and B Apart from directly proportional.If A1 moves f pixel, A2 by apart from directly proportional mobile pixel,
A2=(Da2b/Da1b) f
Grating stereo photo files need to be displaced photographic subjects according to front and back relative position, synthesize.It is retouched for simplification It states, grating stereo figure is described by taking 4 pictures as an example herein.
Step 1, double smart phones of taking the photograph are taken pictures under grating stereo picture mode, obtain A1 in photo, A2, the position of B target Set data, Da1b, Da2b, the figure layer of Db and corresponding target A1, the figure layer of target A2.
Step 2, based on picture 2, original graph 6 is defined as P1, image processing unit by the target A1 in picture to the right Mobile R1 pixel, A2 move right R2=(Da2b/Da1b) R1 pixel.It will complete mobile target A1, A2 and background B It is overlapped, forms P2.Fig. 8 is that the present embodiment P1 is converted into P2 schematic diagram.
Step 3, based on P1, image processing unit moves right A1 2R1 pixel, and A2 moves right A2=2 (Da2b/Da1b) R1 pixel, and A1, A2 and B are overlapped, generate P3
Step 4, based on P1, image processing unit moves right A1 3R1 pixel, and A2 moves right A2=3 (Da2b/Da1b) R1 pixel, and A1, A2, B are overlapped, generate P4.
(current P1, P2, A1 in 4 pictures of P3, P4, the position of A2 is variant, but the position of origin be it is identical, all It is the origin of P1)
Step 5, based on P1, definition P1 picture is P11, and the origin O1 of P11 does not change in picture system coordinate, is O1(0,0).In Picture Coordinate System, picture P2 to L pixel of left, is formed P21 by image processing unit.The original of P21 Position of the coordinate of point O21 in system coordinates is O21 (- L, 0).Fig. 9 is the schematic diagram that the present embodiment P11 is converted to P21.
Step 6, in Picture Coordinate System, by picture P3 to 2L pixel of left, P31 is formed.The origin O31 of P31 Position of the coordinate in system coordinates be O31 (- 2L, 0).
Step 7, in Picture Coordinate System, by picture P4 to 3L pixel of left, P41 is formed.The origin O41 of P41 Position of the coordinate in system coordinates be O41 (- 3L, 0).
Note: being empirically worth, L < R,
Step 9, to P11, P21, P31, P41 picture is cut, and obtains 4 picture intersections.Based on P11, The picture transverse direction X axis coordinate of P11 is up to X ' pixel, and longitudinal Y axis coordinate is Y ', obtains the picture ruler of 4 picture intersections Very little, the cut size Y direction is constant, because P41 figure has been moved to the left 3L pixel, the coincidence maximum pixel of 4 picture X-directions For X ' -3L pixel.The origin of 4 figures is returned to O (0,0) after cutting, and picture X-axis pixel is X ' -3L, and Y-axis pixel is constant, is Y′。
Step 10, by the 3 D grating film specifications parameter of output, carrying out DPI to 4 pictures, (resolution ratio, per inch have more Few pixel) conversion.Original screen panel specification is nLPI (per inch has n prism bar number), and 4 picture resolution parameters are revised as 4nDPI generates P12, P22, P32, P42 respectively.
Step 11, column sampling is carried out to 4 pictures, the 1st column pixel on extraction origin O (0,0) left side in P12 figure, the 4th + 1 column pixel, 8+1 column pixel ... generate picture P13.The 2nd column pixel on origin O (0,0) left side is extracted in P22 picture, 4+2 column pixel, 8+2 column pixel ... .. generate picture P23 picture.Similarly, it is sampled by column, generates picture P33, P43. It should be appreciated that the mode of sampling is not limited to method described herein.Figure 10 be the present embodiment P12 carry out column sampling generate P13 show It is intended to, Figure 11 is that the present embodiment P22 carries out column sampling generation P23 schematic diagram.
Step 12,4 figure P13, P23, P33, P43 are overlapped, generate grating stereo photo composite document Pf.Figure 12 It is the grating stereo diagram intention that the present embodiment 4 opens figure synthesis.
Subsequently through printing picture, stereotome production is completed in grating assembly.It can also be direct by file with flat-panel printer It beats on grating, because grating printing need to beat the smooth surface in grating, sees that perspective view is the prism facets in grating, use flat-panel printer Picture is printed, needs to print picture or so reverse phase, guarantees that realistic objective of 3 D grating photo and shooting or so is consistent.
When grating stereo figure assembles grating, grating prism direction need to be made to be consistent with pixel sampling bar direction, i.e. grating Vertically, the raster stereoscopic picture element sampling bar of synthesis is also at vertical direction to prism bar, and Grating Film is tightly attached to conjunction At on picture, Grating Film is finely tuned in the horizontal direction with picture, so that right and left eyes see different images, stereoscopic effect will emerge It is before eyes.
Figure 13 is the overall flow figure of the embodiment of the present invention, and to simplify description, still based on Fig. 6, photographic subjects are pressed A1, A2, B are described.
It should be noted that obtaining P1, P2, P3, P4 picture aspect can also pass through 4 cameras shootings and realize.It takes the photograph As head is arranged in a row, the picture of equidistant arrangement between camera, camera shooting passes to intelligent hand by wired or wireless Machine is handled by mobile phone by step 5 and subsequent step.
Calibration error t2 can be added when being moved to the left L with P2 to eliminate the installation error of 4 camera X-directions Pixel, i.e. P2 are moved to the left L+t2, generate P21.Similarly, when being moved to the left 2L with P3, calibration error t3 is added, i.e. P3 is to moving to left Momentum is 2L+t3, generates P31.P4 is moved to the left 3L+t4, generates P41.
The present embodiment, which is illustrated, generates grating stereo photo with 4 pictures, can also make 2-8 picture.
The present embodiment illustrates the target in picture and moves right, the scheme that background is moved to the left, other such as by target to It moves left, the grating stereo composite diagram that background, which moves right, etc. produces also belongs to be carried out a protection scope.
By dual camera smart phone, or the dual camera of the operating system with image-capable, or more camera shootings Head device directly generates grating stereo photo, changes current raster stereoscopic photograph and need professional in electricity after shooting photo It is handled on brain, the trouble of grating stereo photo could be generated.Mobile phone photograph is the focus of each mobile phone producer competition, has pickup light The smart phone of grid stereoscopic photograph is a huge attraction, can be taken off in the serious market environment of current smart phone homogeneity Grain husk and go out.Grating stereo photograph taking and generation, greatly reduce the threshold of current raster stereoscopic photograph, may change at present Plane printing paper is changed to grating printing paper by enlargement of color photos industry.Grating stereo photo can easily be shot, and it is vertical to develop out grating Body photo camera, twin-lens or more camera lens grating stereo photo cameras.
Embodiment 4
The embodiments of the present invention also provide a kind of storage mediums.Optionally, in the present embodiment, above-mentioned storage medium can To be arranged to store the program code for executing following steps:
S1, using camera acquire original image, and obtain multiple targets arrive camera range information, wherein original Multiple target pictures corresponding with multiple targets are shown in beginning picture;
S2 shifts multiple target pictures according to range information;
S3, the grating picture after generating displacement.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or The various media that can store program code such as CD.
Optionally, in the present embodiment, processor is executed according to program code stored in storage medium using camera shooting Head acquisition original image, and obtain multiple targets to camera range information, wherein shown in original image with it is multiple The corresponding multiple target pictures of target;
Optionally, in the present embodiment, processor is executed according to program code stored in storage medium according to distance Information shifts multiple target pictures;
Optionally, in the present embodiment, processor executes according to program code stored in storage medium and generates displacement Grating picture afterwards.
Optionally, the specific example in the present embodiment can be with reference to described in above-described embodiment and optional embodiment Example, details are not described herein for the present embodiment.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein Out or description the step of, perhaps they are fabricated to each integrated circuit modules or by them multiple modules or Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (11)

1. a kind of generation method of grating picture characterized by comprising
Using camera acquire original image, and obtain multiple targets to the camera range information, wherein the original Multiple target pictures corresponding with the multiple target are shown in beginning picture;
The multiple target picture is shifted according to the range information;
Grating picture after generating displacement.
2. the method according to claim 1, wherein according to the range information to the multiple target picture into Row shifts
Separate the profile of each target in all target pictures;
The profile is layered according to the range information;
Using the original image as reference point, multiple second pictures are obtained after translating to the main body picture of each layer to first direction;
Using the original image as reference point, multiple the are obtained to second direction translation second distance to multiple second pictures Three pictures.
3. according to the method described in claim 2, it is characterized in that, carrying out layering packet to the profile according to the range information Include at least one of:
What objective contour conformed to a predetermined condition within the scope of a predeterminable area is divided into one layer, wherein the range information includes One or more predeterminable area ranges;
A region of one or more objective contours in pre-determined distance is divided into one layer, wherein the range information is greater than institute State pre-determined distance.
4. according to the method described in claim 2, it is characterized in that, the quantity of the second picture is identical as layering quantity.
5. the method according to claim 1, wherein obtain the multiple target to the cam lens away from Include: from information
Ranging is carried out respectively to the multiple target using the camera;
Range information of the multiple target that record ranging obtains to the camera.
6. according to the method described in claim 2, it is characterized in that, the picture after generation displacement includes:
Using the original image as reference point, the intersection of the multiple third picture is intercepted;
Per inch pixel number DPI is carried out to the intersection and is converted to resolution ratio and matched multiple 4th figures of original screen panel Piece;
Column sampling is carried out in different lines to the multiple 4th picture and generates multiple 5th pictures;
Superposition is interleaved to the multiple 5th picture and generates grating picture.
7. a kind of generating means of grating picture characterized by comprising
Processing module, the original image for using camera to acquire, and the distance for obtaining multiple targets to the camera is believed Breath, wherein multiple target pictures corresponding with the multiple target are shown in the original image;
Shift module, for being shifted according to the range information to the multiple target picture;
Generation module, for generating the grating picture after shifting.
8. device according to claim 7, which is characterized in that the shift module includes:
Separative unit, for separating the profile of each target in all target pictures;
Delaminating units, for being layered according to the range information to the profile;
First translation unit is used for using the original image as reference point, after translating to the main body picture of each layer to first direction Obtain multiple second pictures;
Second translation unit, for being translated to second direction to multiple second pictures using the original image as reference point Second distance obtains multiple third pictures.
9. device according to claim 8, which is characterized in that the generation module includes:
Interception unit, for intercepting the intersection of the multiple third picture using the original image as reference point;
Converting unit is converted to resolution ratio and original screen panel for carrying out per inch pixel number DPI to the intersection Multiple 4th pictures matched;
Sampling unit generates multiple 5th pictures for carrying out column sampling in different lines to the multiple 4th picture;
Generation unit generates grating picture for being interleaved superposition to the multiple 5th picture.
10. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein when described program is run Method described in any one of perform claim requirement 1 to 6.
11. a kind of processor, which is characterized in that the processor is for running program, wherein right of execution when described program is run Benefit require any one of 1 to 6 described in method.
CN201810155084.4A 2018-02-23 2018-02-23 The generation method and device of grating picture Withdrawn CN110191332A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810155084.4A CN110191332A (en) 2018-02-23 2018-02-23 The generation method and device of grating picture
PCT/CN2019/071990 WO2019161717A1 (en) 2018-02-23 2019-01-16 Method and device for generating raster image, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810155084.4A CN110191332A (en) 2018-02-23 2018-02-23 The generation method and device of grating picture

Publications (1)

Publication Number Publication Date
CN110191332A true CN110191332A (en) 2019-08-30

Family

ID=67686945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810155084.4A Withdrawn CN110191332A (en) 2018-02-23 2018-02-23 The generation method and device of grating picture

Country Status (2)

Country Link
CN (1) CN110191332A (en)
WO (1) WO2019161717A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1231456A (en) * 1999-01-23 1999-10-13 中国科学院固体物理研究所 Stereo picture making process by using computer image-matching and synthesizing method
CN1547156A (en) * 2003-12-01 2004-11-17 济南三宝经贸有限公司 Method for making stereo advertisement image by home computer
CN101408972A (en) * 2007-10-08 2009-04-15 陈伟明 Method for making personalized three-dimensional pattern by using computer
CN102999943A (en) * 2012-12-21 2013-03-27 吴心妮 Method and system for image processing

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105447895A (en) * 2014-09-22 2016-03-30 酷派软件技术(深圳)有限公司 Hierarchical picture pasting method, device and terminal equipment
CN106296574A (en) * 2016-08-02 2017-01-04 乐视控股(北京)有限公司 3-d photographs generates method and apparatus
CN106899781B (en) * 2017-03-06 2020-11-10 宇龙计算机通信科技(深圳)有限公司 Image processing method and electronic equipment
CN106993112B (en) * 2017-03-09 2020-01-10 Oppo广东移动通信有限公司 Background blurring method and device based on depth of field and electronic device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1231456A (en) * 1999-01-23 1999-10-13 中国科学院固体物理研究所 Stereo picture making process by using computer image-matching and synthesizing method
CN1547156A (en) * 2003-12-01 2004-11-17 济南三宝经贸有限公司 Method for making stereo advertisement image by home computer
CN101408972A (en) * 2007-10-08 2009-04-15 陈伟明 Method for making personalized three-dimensional pattern by using computer
CN102999943A (en) * 2012-12-21 2013-03-27 吴心妮 Method and system for image processing

Also Published As

Publication number Publication date
WO2019161717A1 (en) 2019-08-29

Similar Documents

Publication Publication Date Title
CN106165398B (en) Photographing element, photographic device and image processing apparatus
CN107105216B (en) A kind of 3 d light fields display device of continuous parallax based on pinhole array, wide viewing angle
CN103688536B (en) Image processing apparatus, image processing method
CN104333747B (en) Stereoscopic photographing method and stereoscopic photographing equipment
CN105122793B (en) Image processing device, image capture device, and image processing program
CN104871058B (en) Image processing device, imaging device and image processing method
CN106233329A (en) 3D draws generation and the use of east image
US9197877B2 (en) Smart pseudoscopic-to-orthoscopic conversion (SPOC) protocol for three-dimensional (3D) display
CN102860019A (en) Stereoscopic image reproduction device and method, stereoscopic image capturing device, stereoscopic display device
CN106550184A (en) Photo processing method and device
CN104255026B (en) Image processing equipment, information processing equipment and image processing method
CN108616742B (en) 3D panoramic shooting system and method
CN104599317A (en) Mobile terminal and method for achieving 3D (three-dimensional) scanning modeling function
CN106572339B (en) A kind of image acquisition device and image capturing system
WO2013146066A1 (en) Image processing device and method, and imaging device
CN106296789B (en) It is a kind of to be virtually implanted the method and terminal that object shuttles in outdoor scene
CN104272732B (en) Image processing apparatus, method and shooting device
JP2009059113A (en) Stereoscopic image generation device and program
CN102860017A (en) Stereoscopic image pickup device and control method therefor
CN104903769B (en) Image processing apparatus, camera head and image processing method
JP2011013993A (en) Image display apparatus and method, as well as program
CN109660786A (en) A kind of naked eye 3D three-dimensional imaging and observation method
CN110446021A (en) A kind of implementation method of mobile phone and its dual camera
CN110191332A (en) The generation method and device of grating picture
CN106162149B (en) A kind of method and mobile terminal shooting 3D photo

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20190830

WW01 Invention patent application withdrawn after publication