CN104616246A - Method, device for processing image and terminal device - Google Patents

Method, device for processing image and terminal device Download PDF

Info

Publication number
CN104616246A
CN104616246A CN201510050059.6A CN201510050059A CN104616246A CN 104616246 A CN104616246 A CN 104616246A CN 201510050059 A CN201510050059 A CN 201510050059A CN 104616246 A CN104616246 A CN 104616246A
Authority
CN
China
Prior art keywords
background image
image
pending
scaling
region
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
CN201510050059.6A
Other languages
Chinese (zh)
Other versions
CN104616246B (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.)
Coolpad Software Technology Shenzhen Co Ltd
Original Assignee
Coolpad Software Technology Shenzhen 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 Coolpad Software Technology Shenzhen Co Ltd filed Critical Coolpad Software Technology Shenzhen Co Ltd
Priority to CN201510050059.6A priority Critical patent/CN104616246B/en
Publication of CN104616246A publication Critical patent/CN104616246A/en
Application granted granted Critical
Publication of CN104616246B publication Critical patent/CN104616246B/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
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • G06T3/4038Scaling the whole image or part thereof for image mosaicing, i.e. plane images composed of plane sub-images

Abstract

An embodiment of the invention discloses a method and a device for processing image and a terminal device, relates to the communication technical field and is capable of improving the trueness of the processed image. The method of the embodiment comprises the following steps: obtaining the 3D region to be processed and the initial position of the 3D region to be processed in the 3D initial image; moving the 3D region to be processed to the target position of the 3D background image from the initial position of 3D initial image; obtaining the scaling ratio according to the initial position and the target position; and processing the 3D region to be processed in the 3D background image according to the scaling ratio and taking the 3D image composed of the processed 3D region to be processed and the 3D background image as the 3D target image. The method and the device are suitable for the terminal device.

Description

A kind of method, device and terminal device processing image
Technical field
The present invention relates to communication technical field, particularly relate to a kind of method, device and the terminal device that process image.
Background technology
Along with the development of the communication technology, especially smart mobile phone is universal, and it instead of the function of camera gradually.In actual applications, user after use smart mobile phone completes and takes pictures, can carry out image procossing by third party software comparison film, such as: the character image of position a certain in photo is moved to the optional position in photo.Smart mobile phone can extract the profile of character image by image processor, afterwards character image is moved to the optional position in the background image of photo, pass through the further process of profile to character image and background image again, obtain carrying out the photo after image procossing.
2D in photo is (English: 2Dimension, Chinese: 2 dimension) character image moving process in, 2D character image is moved in the plane apart from camera lens certain distance, the change of 2D character image to the distance of camera lens is not related in moving process, namely 2D character image is when ensureing that size is constant, the position changed in 2D background image occurs, the position of the 2D character image in the photo after image procossing is changed, and size does not change, but, take pictures in process actual, after the position of personage changes, while the position of the 2D character image in the photo obtained by taking pictures changes, the size of 2D character image also can change, therefore, photo after image procossing accurately cannot embody the change in 2D character image moving process, the image after process is made to occur distortion.
Summary of the invention
The embodiment of the present invention provides a kind of method, device and the terminal device that process image, can improve the validity of image after process.
For achieving the above object, the embodiment of the present invention adopts following technical scheme:
First aspect, the embodiment of the present invention provides a kind of method processing image, and described method comprises:
Obtain the pending region of 3D, and the initial position of the pending region of described 3D in 3D initial pictures;
Pending for described 3D region is moved to the target location in 3D background image from the initial position described 3D initial pictures;
According to described initial position and described target location, obtain scaling;
The pending region of described 3D in described 3D background image is processed according to described scaling, and by the 3D rendering that the pending region of described 3D after process and described 3D background image form, as 3D target image.
Second aspect, the embodiment of the present invention provides a kind of device processing image, and described device comprises:
Acquisition module, for obtaining the pending region of 3D, and the initial position of the pending region of described 3D in 3D initial pictures;
Processing module, for moving to the target location in 3D background image from the initial position described 3D initial pictures by pending for described 3D region;
Computing module, for according to described initial position and described target location, obtains scaling;
Described processing module, also for being processed according to described scaling in the pending region of described 3D in described 3D background image, and by the 3D rendering that the pending region of described 3D after process and described 3D background image form, as 3D target image.
The third aspect, the embodiment of the present invention provides a kind of terminal device, and described terminal device at least comprises device described in any one in described second aspect.
A kind of method, device and terminal device processing image that the embodiment of the present invention provides, obtain the pending region of 3D, with the initial position of the pending region of 3D in 3D initial pictures, again pending for 3D region is moved to the target location 3D background image from initial position, and the scaling in the pending region of 3D is obtained according to initial position and target location, and according to scaling, pending for 3D region is processed, obtain the 3D rendering of the pending region of 3D after processing and 3D background image composition, as 3D target image.Be compared to prior art, position relationship before and after the embodiment of the present invention can move according to the pending region of 3D, obtain scaling, and pending for the 3D moved in 3D background image region is processed according to scaling, obtain the 3D rendering of the pending region of 3D after processing and 3D background image composition, as 3D target image, instead of in the image processing process carried out after obtaining 2D image only when 2D character image does not change size, 2D character image is moved in 2D background image, the embodiment of the present invention is by obtaining 3D rendering, and 3D character image is processed according to scaling, the ratio of 3D character image in 3D background image after moving is made to meet the ratio of 3D character image in 3D background image obtained by normally taking pictures, thus improve the validity of the rear image of process.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
A kind of method flow diagram processing image that Fig. 1 provides for the embodiment of the present invention;
The method flow diagram of the another kind process image that Fig. 2 provides for the embodiment of the present invention;
The schematic diagram of the three-dimensional cartesian coordinate system in a kind of embody rule scene that Fig. 3 provides for the embodiment of the present invention;
The method flow diagram of the another kind process image that Fig. 4 provides for the embodiment of the present invention;
A kind of apparatus structure schematic diagram processing image that Fig. 5 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.
The term used in embodiments of the present invention is only for the object describing specific embodiment, and not intended to be limiting the present invention." one " and " described " of the singulative used in the embodiment of the present invention and appended claims is also intended to comprise most form, unless context clearly represents other implications.It is also understood that term "and/or" used herein refers to and comprises any of one or more project of listing be associated, or likely combine.
The embodiment of the present invention provides a kind of method processing image, and as shown in Figure 1, described method comprises:
101, the pending region of 3D is obtained, and the initial position of the pending region of described 3D in 3D initial pictures.
102, pending for described 3D region is moved to the target location in 3D background image from the initial position described 3D initial pictures.
It should be noted that, 3D initial pictures and 3D background image are two different images, and wherein, 3D initial pictures and 3D background image are in acquisition process, the position of finding a view of terminal can be identical with mode, and the background parts namely in 3D initial pictures is identical with 3D background image.
To have the terminal device of dual camera, terminal device comprises the first camera and second camera, with the light sensor of the first camera for starting point, and with the initial point that the mid point of the light sensor of the second camera line segment that is terminal is three-dimensional cartesian coordinate system, line segment place straight line is the x-axis of three-dimensional cartesian coordinate system, wherein, the positive dirction of x-axis can be the direction of initial point to the first camera, or initial point is to the direction of second camera, the light sensor of the first camera and the light sensor of second camera straight line vertical with x-axis be in the plane the y-axis of three-dimensional cartesian coordinate system, wherein, the positive dirction of y-axis can for initial point be to the direction on ground, or initial point is to the opposite direction on ground, perpendicular to x-axis and y-axis place plane, i.e. xy plane, and be the z-axis of three-dimensional cartesian coordinate system with the light sensor of the first camera in xy plane and the light sensor place Plane intersects of second camera in the straight line of initial point.The image processor of terminal device according to above-mentioned three-dimensional cartesian coordinate system, can obtain the pending region of 3D, and obtains the point coordinate (x of the pending regional center point of 3D in 3D initial pictures 1, y 1, z 1), the pending region of 3D during user can choose shown by terminal device display screen by contact action 3D initial pictures afterwards, and the target location pending for 3D region moved to from the initial position 3D initial pictures in 3D background image, obtain the mobile rear point coordinate (x of the pending regional center point of 3D in 3D background image 2, y 2, z 2).
Wherein, the representation of the position in three-dimensional cartesian coordinate system can have multiple, such as: coordinate, vector etc.It should be noted that, the mode obtaining initial position and target location is not limited only to the mode setting up three-dimensional cartesian coordinate system mentioned in the embodiment of the present invention, position coordinates can also be determined by the coordinate system setting up other types, or adopt other measurement means to obtain positional information, such as: initial position and target location are for the angle of the first camera and/or second camera, in three-dimensional cartesian coordinate system, the point coordinate of the central point in the pending region of 3D that the mode obtaining the position coordinates in the pending region of 3D is not limited only to mention in the embodiment of the present invention, the profile in the pending region of 3D can also be obtained by prior art, the point coordinate of each pixel on the profile obtaining the pending region of 3D afterwards again, or the point coordinate of some/multiple specified pixel points, thus obtain initial position and target location, it should be noted that, for determining that the point coordinate of initial position and target location should meet certain corresponding relation, such as: the pending region of 3D is quadrilateral, for representing that the point coordinate of initial position is the coordinate on four summits of quadrilateral, then for representing that the point coordinate of the target location in the mobile rear pending region of 3D is the coordinate on four summits of mobile rear quadrilateral, and front and after moving point coordinate one_to_one corresponding is moved on each summit.
In actual mechanical process, after terminal device to receive the pending region of 3D that user chosen by touch screen by sensor, and terminal device is when receiving user-selected " perspective is mobile to start " button, can by display three-dimensional cartesian coordinate system on the display screen of terminal device, user is made to see the position of the pending region of chosen 3D in z-axis intuitively, by the mode of touch screen, pending for chosen 3D region is dragged in z-axis by user afterwards, move in z-axis so that realize the pending region of 3D; Terminal device, after receiving user-selected " perspective is mobile complete " button, still there is three-dimensional cartesian coordinate system in the display screen of terminal device, and other button prompting, and user can continue to select other buttons to operate 3D rendering; After completing all operations process, when terminal device receives user-selected " image procossing is complete " button, display eventually pass through image processing process after 3D rendering, the display screen of now terminal device does not show three-dimensional cartesian coordinate system.It should be noted that, in z-axis, the method in the pending region of mobile 3 D is not limited only to the method mentioned in the embodiment of the present invention, can also move the pending region of 3D by other means, such as: come the position of the pending region of 3D in z-axis after optional m igration by the direction key of terminal device.
3D rendering comprises multiple layer, wherein, the pending region of 3D can comprise the multiple pixels in multiple layer, the image processor of terminal device detect user-selected in the pending region of 3D after, obtain the layer at each the pixel place in the pending region of 3D respectively, afterwards after user drags the pending region of 3D on a display screen, image processor detect user move after the layer at each pixel place original that covers of the pending region of 3D, image processor is analyzed by the position of each pixel original covered the mobile rear pending region of 3D, and the position of each pixel original covered in the mobile rear pending region of 3D replaces with each pixel in the pending region of 3D.
103, according to described initial position and described target location, scaling is obtained.
Wherein, described scaling be the pending region of described 3D after treatment with the ratio in the pending region of described 3D.Point coordinate (the x of the pending regional center point of the 3D that image processor can obtain according to 101 and 103 in 3D initial pictures 1, y 1, z 1), and the mobile rear point coordinate (x of the pending regional center point of 3D in 3D background image 2, y 2, z 2) in z 1and z 2, obtain scaling.
It should be noted that, initial point due to three-dimensional cartesian coordinate system is for starting point with the light sensor of the first camera, the mid point of the line segment being terminal with the light sensor of second camera, and the pending region of 3D, the pending region of 3D after mobile, 3D initial pictures and 3D background image all belong to the picture of the 3D that material object is generated by the first camera and second camera, therefore, in the process in the pending region of mobile 3 D, before mobile, the pending region of 3D and the mobile rear pending region of 3D are all the time in the positive axis side of the z-axis of three-dimensional cartesian coordinate system, or the negative semiaxis side of z-axis, z 1and z 2jack per line, i.e. z 1and z 2just be, or z 1and z 2be negative, therefore with z 1and z 2the scaling calculated for parameter is just.
104, the pending region of described 3D in described 3D background image is processed according to described scaling.
105, by the 3D rendering that the pending region of described 3D after process and described 3D background image form, as 3D target image.
Process the pending region of 3D according to the scaling obtained by 103, to reduce according to scaling by the pending region of 3D or amplify certain multiple, or keep mobile before the size in the pending region of 3D.
A kind of method processing image that the embodiment of the present invention provides, obtain the pending region of 3D, with the initial position of the pending region of 3D in 3D initial pictures, again pending for 3D region is moved to the target location 3D background image from initial position, and the scaling in the pending region of 3D is obtained according to initial position and target location, and according to scaling, pending for 3D region is processed, obtain the 3D rendering of the pending region of 3D after processing and 3D background image composition, as 3D target image.Be compared to prior art, position relationship before and after the embodiment of the present invention can move according to the pending region of 3D, obtain scaling, and pending for the 3D moved in 3D background image region is processed according to scaling, obtain the 3D rendering of the pending region of 3D after processing and 3D background image composition, as 3D target image, instead of in the image processing process carried out after obtaining 2D image only when 2D character image does not change size, 2D character image is moved in 2D background image, the embodiment of the present invention is by obtaining 3D rendering, and 3D character image is processed according to scaling, the ratio of 3D character image in 3D background image after moving is made to meet the ratio of 3D character image in 3D background image obtained by normally taking pictures, thus improve the validity of the rear image of process.
In embodiments of the present invention, described method is used for a kind of terminal device, described terminal device comprises the first camera and second camera, with the light sensor of described first camera for starting point, and using the mid point of the light sensor of the described second camera line segment that is terminal as specified point, any layer in described 3D initial pictures is parallel with any layer in described 3D background image, therefore, on the basis of implementation as shown in Figure 1,103 can be implemented as 1031-1033 as shown in Figure 2:
1031, from described initial position, the distance of described specified point to the pending region of described 3D in described 3D initial pictures is obtained, as the first distance.
1032, from described target location, the distance in the pending region of described 3D after described specified point to the described movement in described 3D background image is obtained, as second distance.
Point coordinate (the x of the pending regional center point of the 3D that image processor can obtain according to 101 and 103 in 3D initial pictures 1, y 1, z 1), and the mobile rear point coordinate (x of the pending regional center point of 3D in 3D background image 2, y 2, z 2) obtain z 1and z 2value, namely first distance be z 1, second distance is z 2.
It should be noted that, the method obtaining the first Distance geometry second distance is not limited only to the method mentioned in the embodiment of the present invention, can also obtain the first Distance geometry second distance respectively according to the principle of parallax of the first camera and second camera.
1033, second distance according to described first Distance geometry, obtains described scaling.
The first distance z that image processor can obtain according to 107 and 108 1with second distance z 2, by calculating scaling.Such as: in three-dimensional cartesian coordinate system as shown in Figure 3, the pending region of 3D is square, and specified point is initial point (0,0,0), specified point is 18 to the distance in the mobile front pending region of 3D, specified point is 9 to the distance in the mobile rear pending region of 3D, and scaling is (18 2/ 9 2)=4:1, therefore, quadruplication on the basis in pending region of 3D before moving, the mobile rear pending region of 3D.
It should be noted that, as preferred plan, can in the process determining specified point, with the center of the light sensor of the first camera for starting point, and the mid point of the line segment being terminal using the center of the light sensor of second camera is as specified point.
A kind of method processing image that the embodiment of the present invention provides, with the light sensor of the first camera for starting point, and using the mid point of the light sensor of the second camera line segment that is terminal as specified point, obtain the pending region of 3D, with first distance of specified point to the pending region of the 3D in 3D initial pictures, and the second distance in the pending region of 3D after specified point to the movement in 3D background image, and the scaling in the pending region of 3D is obtained according to the first Distance geometry second distance, and according to scaling, pending for 3D region is processed, obtain the 3D rendering of the pending region of 3D after processing and 3D background image composition, as 3D target image.Be compared to prior art, position relationship before and after the embodiment of the present invention can move according to the pending region of 3D, obtain scaling, and pending for the 3D moved in 3D background image region is processed according to scaling, obtain the 3D rendering of the pending region of 3D after processing and 3D background image composition, as 3D target image, instead of in the image processing process carried out after obtaining 2D image only when 2D character image does not change size, 2D character image is moved in 2D background image, the embodiment of the present invention is by obtaining 3D rendering, and 3D character image is processed according to scaling, the ratio of 3D character image in 3D background image after moving is made to meet the ratio of 3D character image in 3D background image obtained by normally taking pictures, thus improve the validity of the rear image of process.
In embodiments of the present invention, on the basis of implementation as shown in Figure 2,105 can be implemented as 1051-1053 as shown in Figure 4:
1051, judge whether described scaling equals 1.
1052, when described scaling equals 1, the 3D rendering of the pending region of described 3D and described 3D background image composition after described movement, as described 3D target image.
It should be noted that, in the three-dimensional cartesian coordinate system that 101 and 103 acquisition point coordinate times are set up, when the pending region of 3D is moved in the plane that x-axis and y-axis are formed, the scaling in the pending region of 3D is 1.
1053, when described scaling be greater than 1 or be less than 1 time, will the pending area reduction of 3D described after described movement or after amplifying and the 3D rendering of described 3D background image composition according to described scaling, as described 3D target image.
It should be noted that, the pending region of 3D after process and 3D background image are formed the mode of 3D rendering, can comprise: the pixel each pixel in the pending region of 3D after process being covered same position in 3D background image.
A kind of method processing image that the embodiment of the present invention provides, with the light sensor of the first camera for starting point, and using the mid point of the light sensor of the second camera line segment that is terminal as specified point, obtain first distance of specified point to the pending region of the 3D in 3D initial pictures, and the second distance in the pending region of 3D after specified point to the movement in 3D background image, and the scaling in the pending region of 3D is obtained according to the first Distance geometry second distance, and according to scaling, pending for 3D region is processed, obtain the 3D rendering of the pending region of 3D after processing and 3D background image composition, as 3D target image.Be compared to prior art, position relationship before and after the embodiment of the present invention can move according to the pending region of 3D, obtain scaling, and pending for the 3D moved in 3D background image region is processed according to scaling, when scaling equals 1, the 3D rendering of the pending region of 3D and 3D background image composition after mobile, as 3D target image, when scaling be greater than 1 or be less than 1 time, according to the 3D rendering that scaling will form with 3D background image after the mobile rear pending area reduction of 3D or amplification, as 3D target image, instead of in the image processing process carried out after obtaining 2D image only when 2D character image does not change size, 2D character image is moved in 2D background image, the embodiment of the present invention is by obtaining 3D rendering, and 3D character image is processed according to scaling, the ratio of 3D character image in 3D background image after moving is made to meet the ratio of 3D character image in 3D background image obtained by normally taking pictures, thus improve the validity of the rear image of process.
The embodiment of the present invention provides a kind of device 20 processing image, and as shown in Figure 5, described device 20 comprises:
Acquisition module 21, for obtaining the pending region of 3D, and the initial position of the pending region of described 3D in 3D initial pictures.
Processing module 22, for moving to the target location in 3D background image from the initial position described 3D initial pictures by pending for described 3D region.
Computing module 23, for according to described initial position and described target location, obtains scaling.
Described processing module 22, also for being processed according to described scaling in the pending region of described 3D in described 3D background image, and by the 3D rendering that the pending region of described 3D after process and described 3D background image form, as 3D target image.
In embodiments of the present invention, described device 20 is for a kind of terminal device, described terminal device comprises the first camera and second camera, with the light sensor of described first camera for starting point, and using the mid point of the light sensor of the described second camera line segment that is terminal as specified point, any layer in described 3D initial pictures is parallel with any layer in described 3D background image.
Described computing module 23, specifically for obtaining the distance of described specified point to the pending region of described 3D in described 3D initial pictures from described initial position, as the first distance.
Described computing module 23, specifically also for obtaining the distance in the pending region of described 3D after described specified point to the described movement in described 3D background image from described target location, as second distance.
Described computing module 23, specifically also for second distance according to described first Distance geometry, obtains described scaling.
In embodiments of the present invention, described processing module 22, specifically for judging whether described scaling equals 1;
When described scaling equals 1, the 3D rendering of the pending region of described 3D and described 3D background image composition after described movement, as described 3D target image;
When described scaling is greater than or less than 1, the 3D rendering will formed with described 3D background image after the pending area reduction of 3D described after described movement or amplification according to described scaling, as described 3D target image.
In embodiments of the present invention, the described mode pending region of described 3D after process and described 3D background image being formed 3D rendering, comprising: the pixel in the pending region of described 3D after process is covered the pixel of described 3D background image.
A kind of device processing image that the embodiment of the present invention provides, obtain the pending region of 3D, with the initial position of the pending region of 3D in 3D initial pictures, again pending for 3D region is moved to the target location 3D background image from initial position, and the scaling in the pending region of 3D is obtained according to initial position and target location, and according to scaling, pending for 3D region is processed, obtain the 3D rendering of the pending region of 3D after processing and 3D background image composition, as 3D target image.Be compared to prior art, position relationship before and after the embodiment of the present invention can move according to the pending region of 3D, obtain scaling, and pending for the 3D moved in 3D background image region is processed according to scaling, obtain the 3D rendering of the pending region of 3D after processing and 3D background image composition, as 3D target image, instead of in the image processing process carried out after obtaining 2D image only when 2D character image does not change size, 2D character image is moved in 2D background image, the embodiment of the present invention is by obtaining 3D rendering, and 3D character image is processed according to scaling, the ratio of 3D character image in 3D background image after moving is made to meet the ratio of 3D character image in 3D background image obtained by normally taking pictures, thus improve the validity of the rear image of process.
Embodiments provide a kind of terminal device, described terminal device at least comprises device 20 described in above-mentioned any one.
A kind of terminal device processing image that the embodiment of the present invention provides, obtain the pending region of 3D, with the initial position of the pending region of 3D in 3D initial pictures, again pending for 3D region is moved to the target location 3D background image from initial position, and the scaling in the pending region of 3D is obtained according to initial position and target location, and according to scaling, pending for 3D region is processed, obtain the 3D rendering of the pending region of 3D after processing and 3D background image composition, as 3D target image.Be compared to prior art, position relationship before and after the embodiment of the present invention can move according to the pending region of 3D, obtain scaling, and pending for the 3D moved in 3D background image region is processed according to scaling, obtain the 3D rendering of the pending region of 3D after processing and 3D background image composition, as 3D target image, instead of in the image processing process carried out after obtaining 2D image only when 2D character image does not change size, 2D character image is moved in 2D background image, the embodiment of the present invention is by obtaining 3D rendering, and 3D character image is processed according to scaling, the ratio of 3D character image in 3D background image after moving is made to meet the ratio of 3D character image in 3D background image obtained by normally taking pictures, thus improve the validity of the rear image of process.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is from other embodiments different it
Place.Especially, for apparatus embodiments, because it is substantially similar to embodiment of the method, so describe fairly simple, relevant part illustrates see the part of embodiment of the method.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claim.

Claims (9)

1. process a method for image, it is characterized in that, described method comprises:
Obtain the pending region of 3D, and the initial position of the pending region of described 3D in 3D initial pictures;
Pending for described 3D region is moved to the target location in 3D background image from the initial position described 3D initial pictures;
According to described initial position and described target location, obtain scaling;
The pending region of described 3D in described 3D background image is processed according to described scaling, and by the 3D rendering that the pending region of described 3D after process and described 3D background image form, as 3D target image.
2. method according to claim 1, it is characterized in that, described method is used for a kind of terminal device, described terminal device comprises the first camera and second camera, with the light sensor of described first camera for starting point, and using the mid point of the light sensor of the described second camera line segment that is terminal as specified point, any layer in described 3D initial pictures is parallel with any layer in described 3D background image;
Described according to described initial position and described target location, obtain scaling, comprising:
The distance of described specified point to the pending region of described 3D in described 3D initial pictures is obtained, as the first distance from described initial position;
The distance in the pending region of described 3D after described specified point to the described movement in described 3D background image is obtained, as second distance from described target location;
Second distance according to described first Distance geometry, obtains described scaling.
3. method according to claim 2, it is characterized in that, described the pending region of described 3D in described 3D background image to be processed according to described scaling, and will the 3D rendering of the pending region of described 3D and described 3D background image composition after process, as 3D target image, comprising:
Judge whether described scaling equals 1;
When described scaling equals 1, the 3D rendering of the pending region of described 3D and described 3D background image composition after described movement, as described 3D target image;
When described scaling be greater than 1 or be less than 1 time, will the pending area reduction of 3D described after described movement or after amplifying and the 3D rendering of described 3D background image composition according to described scaling, as described 3D target image.
4. method according to claim 1, it is characterized in that, the described mode pending region of described 3D after process and described 3D background image being formed 3D rendering, comprising: the pixel in the pending region of described 3D after process is covered the pixel of described 3D background image.
5. process a device for image, it is characterized in that, described device comprises:
Acquisition module, for obtaining the pending region of 3D, and the initial position of the pending region of described 3D in 3D initial pictures;
Processing module, for moving to the target location in 3D background image from the initial position described 3D initial pictures by pending for described 3D region;
Computing module, for according to described initial position and described target location, obtains scaling;
Described processing module, also for being processed according to described scaling in the pending region of described 3D in described 3D background image, and by the 3D rendering that the pending region of described 3D after process and described 3D background image form, as 3D target image.
6. device according to claim 4, it is characterized in that, described device is used for a kind of terminal device, described terminal device comprises the first camera and second camera, with the light sensor of described first camera for starting point, and using the mid point of the light sensor of the described second camera line segment that is terminal as specified point, any layer in described 3D initial pictures is parallel with any layer in described 3D background image;
Described computing module, specifically for obtaining the distance of described specified point to the pending region of described 3D in described 3D initial pictures from described initial position, as the first distance;
Described computing module, specifically also for obtaining the distance in the pending region of described 3D after described specified point to the described movement in described 3D background image from described target location, as second distance;
Described computing module, specifically also for second distance according to described first Distance geometry, obtains described scaling.
7. device according to claim 5, is characterized in that, described processing module, specifically for judging whether described scaling equals 1;
When described scaling equals 1, the 3D rendering of the pending region of described 3D and described 3D background image composition after described movement, as described 3D target image;
When described scaling be greater than 1 or be less than 1 time, will the pending area reduction of 3D described after described movement or after amplifying and the 3D rendering of described 3D background image composition according to described scaling, as described 3D target image.
8. device according to claim 5, it is characterized in that, the described mode pending region of described 3D after process and described 3D background image being formed 3D rendering, comprising: the pixel in the pending region of described 3D after process is covered the pixel of described 3D background image.
9. a terminal device, is characterized in that, described terminal device at least comprises device described in any one in the claims 4 to 6.
CN201510050059.6A 2015-01-30 2015-01-30 A kind of method, apparatus and terminal device for handling image Active CN104616246B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510050059.6A CN104616246B (en) 2015-01-30 2015-01-30 A kind of method, apparatus and terminal device for handling image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510050059.6A CN104616246B (en) 2015-01-30 2015-01-30 A kind of method, apparatus and terminal device for handling image

Publications (2)

Publication Number Publication Date
CN104616246A true CN104616246A (en) 2015-05-13
CN104616246B CN104616246B (en) 2018-06-15

Family

ID=53150679

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510050059.6A Active CN104616246B (en) 2015-01-30 2015-01-30 A kind of method, apparatus and terminal device for handling image

Country Status (1)

Country Link
CN (1) CN104616246B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107393018A (en) * 2017-07-27 2017-11-24 北京中达金桥技术股份有限公司 A kind of method that the superposition of real-time virtual image is realized using Kinect

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1343341A (en) * 1999-03-01 2002-04-03 索尼电脑娱乐公司 Image forming method and apparatus
EP2383701A1 (en) * 2009-01-22 2011-11-02 Huawei Device Co., Ltd. Image processing method and apparatus
CN103595912A (en) * 2013-09-30 2014-02-19 北京智谷睿拓技术服务有限公司 Method and device for local zoom imaging

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1343341A (en) * 1999-03-01 2002-04-03 索尼电脑娱乐公司 Image forming method and apparatus
EP2383701A1 (en) * 2009-01-22 2011-11-02 Huawei Device Co., Ltd. Image processing method and apparatus
CN103595912A (en) * 2013-09-30 2014-02-19 北京智谷睿拓技术服务有限公司 Method and device for local zoom imaging

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107393018A (en) * 2017-07-27 2017-11-24 北京中达金桥技术股份有限公司 A kind of method that the superposition of real-time virtual image is realized using Kinect

Also Published As

Publication number Publication date
CN104616246B (en) 2018-06-15

Similar Documents

Publication Publication Date Title
CN106846410B (en) Driving environment imaging method and device based on three dimensions
EP3340170B1 (en) Multi-depth image fusion method and apparatus
US10091489B2 (en) Image capturing device, image processing method, and recording medium
US9311565B2 (en) 3D scanning with depth cameras using mesh sculpting
AU2018211217B2 (en) Virtual reality parallax correction
CN110163912B (en) Two-dimensional code pose calibration method, device and system
JP2018522429A (en) Capture and render panoramic virtual reality content
CN110214340B (en) Refinement of structured light depth map using RGB color data
US20210158560A1 (en) Method and device for obtaining localization information and storage medium
JP6016226B2 (en) Length measuring device, length measuring method, program
KR20140053313A (en) Systems and methods to capture a stereoscopic image pair
JP2013228267A (en) Display device, display method, and program
KR101703013B1 (en) 3d scanner and 3d scanning method
CN103365488A (en) Information processing apparatus, program, and information processing method
CN112771438B (en) Depth sculpturing three-dimensional depth images using two-dimensional input selection
CN105118086A (en) 3D point cloud data registering method and system in 3D-AOI device
US20180213156A1 (en) Method for displaying on a screen at least one representation of an object, related computer program, electronic display device and apparatus
CN110930336A (en) Image processing method and device, electronic equipment and storage medium
CN102663731B (en) Fast calibration method and system of optical axis of camera lens in optical touch system
CN111104893A (en) Target detection method and device, computer equipment and storage medium
CN102307308B (en) Method and equipment for generating three-dimensional image on touch screen
CN104616246A (en) Method, device for processing image and terminal device
JP5996233B2 (en) Imaging device
CN106989730A (en) A kind of system and method that diving under water device control is carried out based on binocular flake panoramic vision
CN105136135A (en) Information obtaining method and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant