CN105578070A - Image processing method and terminal - Google Patents

Image processing method and terminal Download PDF

Info

Publication number
CN105578070A
CN105578070A CN201510970865.5A CN201510970865A CN105578070A CN 105578070 A CN105578070 A CN 105578070A CN 201510970865 A CN201510970865 A CN 201510970865A CN 105578070 A CN105578070 A CN 105578070A
Authority
CN
China
Prior art keywords
image
reset
distant view
clearing
needing
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.)
Pending
Application number
CN201510970865.5A
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.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment 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 Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201510970865.5A priority Critical patent/CN105578070A/en
Publication of CN105578070A publication Critical patent/CN105578070A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/2621Cameras specially adapted for the electronic generation of special effects during image pickup, e.g. digital cameras, camcorders, video cameras having integrated special effects capability

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Processing (AREA)

Abstract

The invention provides an image processing method and a terminal. The image processing method comprises steps of determining an area needing foreground blurring and an area needing distant view clearness of an image to be processed, performing zero clearing on the area needing the foreground blurring in the image to be processed to obtain a first zero clearing image, performing zero clearing on the area needing the distant view clearness area in the image to be processed, performing blurring processing on the second zero clearing image, and performing superposition on the second zero clearing image and the first zero clearing image which have gone through the blurring processing. The invention also provides a terminal. Through the embodiment of the invention, an image according with the optical rube and having a natural blurring effect is obtained.

Description

A kind of method of image procossing and terminal
Technical field
The present invention relates to technical field of image processing, be specifically related to a kind of method and terminal of image procossing.
Background technology
Along with the development of technology, the take pictures requirement of people to terminal (as mobile phone, panel computer etc.) is also more and more higher, and existing terminal also complies with the demand of user, can realize the requirement of taking pictures under different mode, various landscaping treatment can be done, comprising background blurring image to image.
But according to the background blurring image that the treatment technology of current terminal to image virtualization obtains, there is such a phenomenon: the border between close shot virtualization region (namely needing to carry out close shot the region of Fuzzy processing) and distant view clear area (namely needing to keep region clearly to distant view) is clearly.And according to optical imagery rule, close shot can produce distant view and block, distant view can not produce the relation of blocking to close shot, so the border between close shot virtualization region and distant view clear area should be fuzzy.So the background blurring image virtualization effect that the treatment technology of existing image virtualization obtains is nature not, do not meet optics rule.
Summary of the invention
Embodiments provide a kind of method and terminal of image procossing, can obtain meeting optics rule and virtualization effect comparatively naturally image.
Embodiment of the present invention first aspect provides a kind of method of image procossing, comprising:
Determine needing close shot virtualization region and needing distant view clear area of pending image;
The close shot virtualization region clearing acquisition first that needs in described pending image is reset image;
The distant view clear area clearing acquisition second that needs in described pending image is reset image;
Reset image to described second and carry out Fuzzy processing;
The second clearing image and described first after described Fuzzy processing is reset image superpose.
Embodiment of the present invention second aspect provides a kind of terminal, comprising:
First determining unit, for determining needing close shot virtualization region and needing distant view clear area of pending image;
First resets unit, for needing close shot virtualization region to reset acquisition first to reset image in the described pending image described first determining unit determined;
Second resets unit, for needing distant view clear area to reset acquisition second to reset image in the described pending image described first determining unit determined;
Processing unit, carries out Fuzzy processing for the described second clearing image after resetting unit clearing to described second;
Superpositing unit, for second after described processing unit Fuzzy processing is reset image and described first reset unit reset after described first reset image and superpose.
Implement the embodiment of the present invention, there is following beneficial effect:
Needing close shot virtualization region and needing distant view clear area of pending image is determined by the embodiment of the present invention; The close shot virtualization region clearing acquisition first that needs in described pending image is reset image; The distant view clear area clearing acquisition second that needs in described pending image is reset image; Reset image to described second and carry out Fuzzy processing; The second clearing image and described first after described Fuzzy processing is reset image superpose.Thus, resetting image second carries out in the process of Fuzzy processing, that all Fuzzy processing is carried out to whole image, so, when the second clearing image and first after Fuzzy processing being reset image and superposing, needing close shot virtualization region and needing the border of distant view clear area to produce blur effect originally, thus, can obtain meeting optics rule and virtualization effect comparatively naturally image.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is 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.
Fig. 1 is the first embodiment schematic flow sheet of the method for a kind of image procossing that the embodiment of the present invention provides;
Fig. 1 a is the image-forming principle schematic diagram that the embodiment of the present invention provides;
Fig. 1 b is the schematic diagram of two scenes that the embodiment of the present invention provides;
Fig. 1 c is the result figure of the schematic diagram of two scenes in Fig. 1 b of providing of the embodiment of the present invention;
Fig. 2 is the second embodiment schematic flow sheet of the method for a kind of image procossing that the embodiment of the present invention provides;
Fig. 3 a is the first example structure schematic diagram of a kind of terminal that the embodiment of the present invention provides;
Fig. 3 b is the another structural representation of the first embodiment of a kind of terminal that the embodiment of the present invention provides;
Fig. 3 c is the another structural representation of the first embodiment of a kind of terminal that the embodiment of the present invention provides;
Fig. 3 d is the another structural representation of the first embodiment of a kind of terminal that the embodiment of the present invention provides;
Fig. 4 is the second example structure schematic diagram of a kind of terminal that the embodiment of the present invention provides.
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 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 the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Terminal described by the embodiment of the present invention can comprise smart mobile phone (as Android phone, iOS mobile phone, WindowsPhone mobile phone etc.), panel computer, palmtop PC, notebook computer, mobile internet device (MID, or Wearable etc. MobileInternetDevices), above-mentioned terminal is only citing, and non exhaustive, including but not limited to above-mentioned terminal.
Refer to Fig. 1, the first embodiment schematic flow sheet of the method for a kind of image procossing provided for the embodiment of the present invention.The method of the image procossing described in the present embodiment, comprises the following steps:
101, needing close shot virtualization region and needing distant view clear area of pending image is determined.
In the embodiment of the present invention, pending image can be and utilizes the camera of terminal to carry out taking the image obtained, or pending image can be image in the RAM (random access memory) card of terminal or memory, or pending image can be the arbitrary image downloaded in users from networks.Pending image can be made up of two parts, namely needs close shot virtualization region and needs distant view clear area.This needs close shot virtualization region, is in pending image the region needing to carry out Fuzzy processing.This needs distant view clear area, then for needing not deal with this part region or carry out image enhancement processing in pending image, thus it is comparatively clear this part region to be seen clearly carry out image.
Alternatively, terminal can carry out target detection to pending image, thus using the target area detected as needing close shot virtualization region, and this needs the region beyond close shot virtualization region as needing distant view virtualization region using in this pending image.Such as, when hypothetical target is behaved, terminal can carry out target detection to pending image, using people region in pending image as needing close shot virtualization region, and using other regions as needing distant view clear area.Suppose there is multiple people in pending image, and target is the A in the plurality of people, then terminal can carry out target detection to pending image, using this A region as needing close shot virtualization region, and using other regions in pending image as needing distant view clear area.In the present embodiment, target can be specified by user, or, system default.
Further alternatively, terminal can carry out target detection to pending image, thus using the target area detected as needing distant view clear area, and this needs the region beyond distant view clear area as needing close shot virtualization region using in this pending image.
Alternatively, terminal can receive chooses instruction for what need close shot virtualization region in pending image, and choosing this needs close shot virtualization region to choose instruction to respond this, and this is needed the region beyond close shot virtualization region as needing distant view clear area.When terminal shows pending image on a display screen, man-machine interaction can be carried out, user can select certain subregion in pending image as needing close shot virtualization region according to personal like, further, user can click or iris out interested region as needing close shot virtualization region on the touch-screen of terminal, so, after terminal detects the touch operation of user, can generate and choose instruction for what need close shot virtualization region in this pending image, then terminal is when responding this and choosing instruction, click user on the touchscreen or iris out the region in interested region as needing close shot virtualization region, and using other regions in this pending image as needing distant view clear area.
Further alternatively, terminal can receive chooses instruction for what need distant view clear area in pending image, and choosing this needs distant view clear area to choose instruction to respond this, and this is needed the region beyond distant view clear area as needing close shot virtualization region.
Alternatively, need close shot clear area can be made up of multiple independently subregion, such as, user can choose multiple region as needing close shot virtualization region in pending image.
102, the close shot virtualization region clearing acquisition first that needs in described pending image is reset image.
In the embodiment of the present invention, the all pixels in close shot virtualization region that need in pending image can be carried out clearing process by terminal, namely this needs the pixel value of the pixel in close shot virtualization region to be 0, through being referred to as the first clearing image to the pending image needed after the clearing of close shot virtualization region.
103, the distant view clear area clearing acquisition second that needs in described pending image is reset image.
In the embodiment of the present invention, the all pixels of distant view clear area that need in pending image can be carried out clearing process by terminal, namely this needs the pixel value of the pixel of distant view clear area to be 0, through being referred to as the second clearing image to the pending image needed after the clearing of distant view clear area.
104, reset image to described second and carry out Fuzzy processing.
In the embodiment of the present invention, terminal can adopt Gaussian Blur algorithm to carry out Fuzzy processing to the second clearing image.
Alternatively, terminal can reset image to described second and carry out gradual Fuzzy processing, wherein, described gradual Fuzzy processing represents that the described second obfuscation degree resetting depth value corresponding to the pixel of image larger is larger, and the obfuscation degree that the depth value that the pixel of described second clearing image is corresponding is less is less.
105, the second clearing image and described first after described Fuzzy processing is reset image to superpose.
In the embodiment of the present invention, the second clearing image and first after obfuscation can be reset image and superpose by terminal.Particularly, the second clearing image after obfuscation can be added with the pixel value of the first pixel reset on image correspondence position by terminal.
As a kind of possible execution mode, terminal also can determine needing close shot virtualization region and needing distant view clear area of pending image; The close shot virtualization region clearing acquisition first that needs in described pending image is reset image; The distant view clear area clearing acquisition second that needs in described pending image is reset image; Reset image to described second and carry out Fuzzy processing; The second clearing image and described first after described Fuzzy processing is reset image superpose.In this implementation process, Fuzzy processing can be carried out to needing distant view clear area, thus, need distant view clear area and need the border of close shot fuzzy region to be clearly.
In the embodiment of the present invention, the degree of depth corresponding due to each the pixel position in pending image is different, thus, for the pixel of a certain assigned address, if time the degree of depth of this pixel is less than the degree of depth of other pixels of this neighborhood of pixel points, then this pixel can cause certain light to block to the pixel in this pixel neighborhood of a point; On the contrary, if time the degree of depth of this pixel is greater than the degree of depth of other pixels of this neighborhood of pixel points, then this pixel can be caused certain light to block by the pixel in this pixel neighborhood of a point.For needing close shot clear area and needing distant view virtualization region also to there is above-mentioned blocking between the two, in the present embodiment, this hiding relation can be described as: need the corresponding distance in this depth map of pixel value in close shot clear area and this relativeness needing between the corresponding distance in this depth map of distant view virtualization pixel values in regions.Namely, the degree of depth of the pixel A in close shot virtualization region is needed to be less than the degree of depth of the B pixel needed in distant view clear area, then think that A pixel can cause light to block wherein to B pixel, pixel A needs the arbitrary pixel in close shot virtualization region, pixel B is the arbitrary pixel needed in distant view clear area, and vice versa.As shown in Figure 1a, wherein, Fig. 1 a comprises distant view, close shot, camera lens, imageing sensor, the object of trunnion axis is above-mentioned distant view, close shot, camera lens, imageing sensor to remain on same level axle, as can be seen from Fig. 1 a, when the light that distant view reflects blocks by close shot time, then cannot carry out imaging on the image sensor.Therefore, the light of close shot can cause certain blocking to distant view light.
Based on above-mentioned theory, be described for Fig. 1 b, in Fig. 1 b, left figure is an original image, this original image can comprise to be needed distant view clear area (distant view region) and needs close shot virtualization region (close shot region), MASK is the image this left figure being carried out to binaryzation, can find out, middle black region is for needing close shot virtualization region, and surrounding white portion is for needing distant view clear area.And then, as illustrated in figure 1 c, in Fig. 1 c, image A is the first clearing image, and in Fig. 1 c, image B is the second clearing image.Image C in Fig. 1 c is the image obtained after image A is carried out Fuzzy processing, image D in Fig. 1 c is the image obtained after image B is carried out Fuzzy processing, image E in Fig. 1 c is the first image, its effect is equal to image A+ image D (image A superposes with image D), need close shot virtualization region and need the border of distant view clear area to be fuzzy, thus, optical principle is met.Further, the image F in Fig. 1 c is the second image, and its effect is equal to image B+ image C (image B superposes with image C), needs close shot virtualization region and needs the border of distant view clear area to be clearly, thus, also meeting optical principle.
Wherein, can be expressed as follows in the image A in Fig. 1 c, wherein, A (i) represents the first clearing image, and MASK (i)=0 represents that the two-value of MASK region turns to 0, and namely obtain the image A in image 1c, wherein, i is arbitrary pixel.
A = A ( i ) = I i n ( i ) , i f M A S K ( i ) = 0 0 , e l s e
Further, wherein, can be expressed as follows in the image B in Fig. 1 c, wherein, B (i) represents the second clearing image, and MASK (i)=1 is 1 after representing the binaryzation of MASK region, namely obtain the image B in image 1c, wherein, i is arbitrary pixel.
B = B ( i ) = I i n ( i ) , i f M A S K ( i ) = 1 0 , e l s e
Needing close shot virtualization region and needing distant view clear area of pending image is determined by the embodiment of the present invention; The close shot virtualization region clearing acquisition first that needs in described pending image is reset image; The distant view clear area clearing acquisition second that needs in described pending image is reset image; Reset image to described second and carry out Fuzzy processing; The second clearing image and described first after described Fuzzy processing is reset image superpose.Thus, resetting image second carries out in the process of Fuzzy processing, that all Fuzzy processing is carried out to whole image, so, when the second clearing image and first after Fuzzy processing being reset image and superposing, needing close shot virtualization region and needing the border of distant view clear area to produce blur effect originally, thus, can obtain meeting optics rule and virtualization effect comparatively naturally image.
Refer to Fig. 2, the second embodiment schematic flow sheet of the method for a kind of image procossing provided for the embodiment of the present invention.The method of the image procossing described in the present embodiment, comprises the following steps:
201, needing close shot virtualization region and needing distant view clear area of pending image is determined.
In the embodiment of the present invention, pending image can be and utilizes the camera of terminal to carry out taking the image obtained, or pending image can be image in the RAM (random access memory) card of terminal or memory, or pending image can be the arbitrary image downloaded in users from networks.Pending image can be made up of two parts, namely needs close shot virtualization region and needs distant view clear area.This needs close shot virtualization region, is in pending image the region needing to carry out Fuzzy processing.This needs distant view clear area, then for needing not deal with this part region or carry out image enhancement processing in pending image, thus it is comparatively clear this part region to be seen clearly carry out image.
202, the close shot virtualization region clearing acquisition first that needs in described pending image is reset image.
In the embodiment of the present invention, the all pixels in close shot virtualization region that need in pending image can be carried out clearing process by terminal, namely this needs the pixel value of the pixel in close shot virtualization region to be 0, through being referred to as the first clearing image to the pending image needed after the clearing of close shot virtualization region.
203, the distant view clear area clearing acquisition second that needs in described pending image is reset image.
In the embodiment of the present invention, the all pixels of distant view clear area that need in pending image can be carried out clearing process by terminal, namely this needs the pixel value of the pixel of distant view clear area to be 0, through being referred to as the second clearing image to the pending image needed after the clearing of distant view clear area.
204, reset image to described second and carry out Fuzzy processing.
In the embodiment of the present invention, terminal can adopt Gaussian Blur algorithm to carry out Fuzzy processing to the second clearing image.
Alternatively, terminal can reset image to described second and carry out gradual Fuzzy processing, wherein, described gradual Fuzzy processing represents that the described second obfuscation degree resetting depth value corresponding to the pixel of image larger is larger, and the obfuscation degree that the depth value that the pixel of described second clearing image is corresponding is less is less.
205, reset image to described first and carry out image enhaucament.
In the embodiment of the present invention, terminal can reset image to first and carry out image enhancement processing, thus the first distant view clear area that needs reset in image can be more clear, and first namely after image enhaucament resets image can comprise more detail textures information.Meanwhile, the contrast of this first clearing image can also be strengthened.
206, the second clearing image after described Fuzzy processing is reset image with first after described image enhaucament to superpose.
In the embodiment of the present invention, the second clearing image after obfuscation can be reset image with first after image enhaucament and superpose by terminal.Particularly, second after obfuscation can be reset the pixel value of pixel that image reset on image correspondence position with first after image enhaucament and be added by terminal.
As a kind of possible execution mode, terminal also can determine needing close shot virtualization region and needing distant view clear area of pending image; The close shot virtualization region clearing acquisition first that needs in described pending image is reset image; The distant view clear area clearing acquisition second that needs in described pending image is reset image; Reset image to described second and carry out Fuzzy processing; Reset image to described first and carry out image enhaucament; The first clearing image after described Fuzzy processing is reset image with second after described image enhaucament superpose.In this implementation process, the whole image of image can be reset to second and carry out Fuzzy processing, and image enhaucament is carried out to described first clearing image, thus, according to the method for the embodiment of the present invention, need distant view clear area and need the border of close shot fuzzy region to be clearly, therefore, also can obtain meeting optical principle and sharply marginated background blurring image.Further, the background blurring image that embodiment of the present invention method obtains can comprise more detail textures information.
Needing close shot virtualization region and needing distant view clear area of pending image is determined by the embodiment of the present invention; The close shot virtualization region clearing acquisition first that needs in described pending image is reset image; The distant view clear area clearing acquisition second that needs in described pending image is reset image; Reset image to described second and carry out Fuzzy processing; The second clearing image and described first after described Fuzzy processing is reset image superpose.Thus, resetting image second carries out in the process of Fuzzy processing, that all Fuzzy processing is carried out to whole image, so, when the second clearing image and first after Fuzzy processing being reset image and superposing, needing close shot virtualization region and needing the border of distant view clear area to produce blur effect originally, thus, can obtain meeting optics rule and virtualization effect comparatively naturally image.
Referring to Fig. 3 a, is the first example structure schematic diagram of a kind of terminal that the embodiment of the present invention provides.Terminal described in the present embodiment, comprising:
First determining unit 301, for determining needing close shot virtualization region and needing distant view clear area of pending image;
First resets unit 302, for needing close shot virtualization region to reset acquisition first to reset image in the described pending image described first determining unit 301 determined;
Second resets unit 303, for needing distant view clear area to reset acquisition second to reset image in the described pending image described first determining unit 301 determined;
Processing unit 304, carries out Fuzzy processing for the described second clearing image after resetting unit 303 clearing to described second;
Superpositing unit 305, for second after described processing unit 304 Fuzzy processing is reset image and described first reset unit 302 reset after described first reset image and superpose.
Alternatively, as shown in Figure 3 b, described first determining unit 301 of the terminal described in Fig. 3 a can comprise:
Detecting unit 3011, for carrying out target detection to pending image;
Second determining unit 3012, for the target area that detected by described detecting unit 3011 as needing close shot virtualization region, and will need the region beyond close shot virtualization region as needing distant view clear area described in described pending image.
Alternatively, as shown in Figure 3 c, described first determining unit 301 of the terminal described in Fig. 3 a can comprise:
Receiving element 306, chooses instruction for receiving for what need distant view clear area in pending image;
Choosing unit 307, described in responding, choosing instruction for choosing the described distant view clear area that needs, and will described in described pending image, need the region beyond distant view clear area as needing close shot virtualization region.
Alternatively, as shown in Figure 3 d, the described terminal of the terminal described in Fig. 3 a also comprises:
Enhancement unit 308, carry out image enhaucament for the described first clearing image after resetting unit 302 clearing to described first, by described superpositing unit 305, the second clearing image after described processing unit 304 Fuzzy processing is reset image with first after described enhancement unit 308 image enhaucament and superpose.
Alternatively, the described processing unit 304 of the terminal described in Fig. 3 a-Fig. 3 d specifically for:
The second clearing image after resetting unit 303 clearing to described second carries out gradual Fuzzy processing, wherein, described gradual Fuzzy processing represents that the described second obfuscation degree resetting depth value corresponding to the pixel of image larger is larger, and the obfuscation degree that the depth value that the pixel of described second clearing image is corresponding is less is less.
Needing close shot virtualization region and needing distant view clear area of pending image can be determined by the terminal described by the embodiment of the present invention; The close shot virtualization region clearing acquisition first that needs in described pending image is reset image; The distant view clear area clearing acquisition second that needs in described pending image is reset image; Reset image to described second and carry out Fuzzy processing; The second clearing image and described first after described Fuzzy processing is reset image superpose.Thus, resetting image second carries out in the process of Fuzzy processing, that all Fuzzy processing is carried out to whole image, so, when the second clearing image and first after Fuzzy processing being reset image and superposing, needing close shot virtualization region and needing the border of distant view clear area to produce blur effect originally, thus, can obtain meeting optics rule and virtualization effect comparatively naturally image.
Referring to Fig. 4, is the second example structure schematic diagram of a kind of terminal that the embodiment of the present invention provides.Terminal described in the present embodiment, comprising: at least one input equipment 1000; At least one output equipment 2000; At least one processor 3000, such as CPU; With memory 4000, above-mentioned input equipment 1000, output equipment 2000, processor 3000 are connected by bus 5000 with memory 4000.
Wherein, above-mentioned input equipment 1000 specifically can be physical button, contact panel or mouse.
Above-mentioned output equipment 2000 specifically can be display screen.
Above-mentioned memory 4000 can be high-speed RAM memory, also can be non-labile memory (non-volatilememory), such as magnetic disc store.Above-mentioned memory 4000 is for storing batch processing code, and above-mentioned input equipment 1000, output equipment 2000 and processor 3000, for calling the program code stored in memory 4000, perform and operate as follows:
Above-mentioned processor 3000, for:
Determine needing close shot virtualization region and needing distant view clear area of pending image;
The close shot virtualization region clearing acquisition first that needs in described pending image is reset image;
The distant view clear area clearing acquisition second that needs in described pending image is reset image;
Reset image to described second and carry out Fuzzy processing;
The second clearing image and described first after described Fuzzy processing is reset image superpose.
Alternatively, needing close shot virtualization region and needing distant view clear area of pending image determined by above-mentioned processor 3000, comprising:
Target detection is carried out to pending image;
Using the target area detected as needing close shot virtualization region, and will described in described pending image, need the region beyond close shot virtualization region as needing distant view clear area.
Alternatively, needing close shot virtualization region and needing distant view clear area of pending image determined by above-mentioned processor 3000, comprising:
Receive and choose instruction for what need distant view clear area in pending image;
Choose the described distant view clear area that needs and choose instruction described in responding, and will described in described pending image, need the region beyond distant view clear area as needing close shot virtualization region.
Alternatively, above-mentioned processor 3000 resets after image carries out Fuzzy processing to described second, also specifically for:
Reset image to described first and carry out image enhaucament;
Then second after described Fuzzy processing is reset image and described first and resets image and superpose by above-mentioned processor 3000, comprising:
The second clearing image after described Fuzzy processing is reset image with first after described image enhaucament superpose.
Alternatively, above-mentioned processor 3000 resets image to described second and carries out Fuzzy processing, comprise: reset image to described second and carry out gradual Fuzzy processing, wherein, described gradual Fuzzy processing represents that the described second obfuscation degree resetting depth value corresponding to the pixel of image larger is larger, and the obfuscation degree that the depth value that the pixel of described second clearing image is corresponding is less is less.
In specific implementation, input equipment 1000 described in the embodiment of the present invention, output equipment 2000 and processor 3000 can perform the first embodiment of the method for a kind of image procossing that the embodiment of the present invention provides, the second embodiment and the implementation described in the 3rd embodiment, also can perform the implementation of the first embodiment of a kind of terminal that the embodiment of the present invention provides, the second embodiment and the terminal described in the 3rd embodiment, not repeat them here.
Unit in all embodiments of the present invention, universal integrated circuit can be passed through, such as CPU (CentralProcessingUnit, central processing unit), or realized by ASIC (ApplicationSpecificIntegratedCircuit, application-specific integrated circuit (ASIC)).
Step in embodiment of the present invention method can be carried out order according to actual needs and be adjusted, merges and delete.
Unit in embodiment of the present invention terminal can carry out merging, divide and deleting according to actual needs.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random access memory (RandomAccessMemory is called for short RAM) etc.
Above the method for a kind of image procossing that the embodiment of the present invention provides and terminal are described in detail, apply specific case herein to set forth principle of the present invention and execution mode, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1. an image processing method, is characterized in that, comprising:
Determine needing close shot virtualization region and needing distant view clear area of pending image;
The close shot virtualization region clearing acquisition first that needs in described pending image is reset image;
The distant view clear area clearing acquisition second that needs in described pending image is reset image;
Reset image to described second and carry out Fuzzy processing;
The second clearing image and described first after described Fuzzy processing is reset image superpose.
2. the method for claim 1, is characterized in that, described determine pending image need close shot virtualization region and need distant view clear area, comprising:
Target detection is carried out to pending image;
Using the target area detected as needing close shot virtualization region, and will described in described pending image, need the region beyond close shot virtualization region as needing distant view clear area.
3. the method for claim 1, is characterized in that, described determine pending image need close shot virtualization region and need distant view clear area, comprising:
Receive and choose instruction for what need distant view clear area in pending image;
Choose the described distant view clear area that needs and choose instruction described in responding, and will described in described pending image, need the region beyond distant view clear area as needing close shot virtualization region.
4. the method as described in any one of claims 1 to 3, is characterized in that, describedly resets after image carries out Fuzzy processing to described second, also comprises:
Reset image to described first and carry out image enhaucament;
Describedly second after described Fuzzy processing is reset image and described first reset image and superpose, comprising:
The second clearing image after described Fuzzy processing is reset image with first after described image enhaucament superpose.
5. the method as described in any one of claims 1 to 3, is characterized in that, described to described second reset image carry out Fuzzy processing, comprising:
Reset image to described second and carry out gradual Fuzzy processing, wherein, described gradual Fuzzy processing represents that the described second obfuscation degree resetting depth value corresponding to the pixel of image larger is larger, and the obfuscation degree that the depth value that the pixel of described second clearing image is corresponding is less is less.
6. a terminal, is characterized in that, comprising:
First determining unit, for determining needing close shot virtualization region and needing distant view clear area of pending image;
First resets unit, for needing close shot virtualization region to reset acquisition first to reset image in the described pending image described first determining unit determined;
Second resets unit, for needing distant view clear area to reset acquisition second to reset image in the described pending image described first determining unit determined;
Processing unit, carries out Fuzzy processing for the described second clearing image after resetting unit clearing to described second;
Superpositing unit, for second after described processing unit Fuzzy processing is reset image and described first reset unit reset after described first reset image and superpose.
7. terminal as claimed in claim 6, it is characterized in that, described first determining unit comprises:
Detecting unit, for carrying out target detection to pending image;
Second determining unit, for the target area that detected by described detecting unit as needing close shot virtualization region, and will need the region beyond close shot virtualization region as needing distant view clear area described in described pending image.
8. terminal as claimed in claim 6, it is characterized in that, described first determining unit comprises:
Receiving element, chooses instruction for receiving for what need distant view clear area in pending image;
Choosing unit, described in responding, choosing instruction for choosing the described distant view clear area that needs, and will described in described pending image, need the region beyond distant view clear area as needing close shot virtualization region.
9. the terminal as described in claim 6 to 8, is characterized in that, described terminal also comprises:
Enhancement unit, carry out image enhaucament for the described first clearing image after resetting unit clearing to described first, by described superpositing unit, the second clearing image after described processing unit Fuzzy processing is reset image with first after described enhancement unit image enhaucament and superpose.
10. the terminal as described in any one of claim 6 to 8, is characterized in that, described processing unit specifically for:
The second clearing image after resetting unit clearing to described second carries out gradual Fuzzy processing, wherein, described gradual Fuzzy processing represents that the described second obfuscation degree resetting depth value corresponding to the pixel of image larger is larger, and the obfuscation degree that the depth value that the pixel of described second clearing image is corresponding is less is less.
CN201510970865.5A 2015-12-21 2015-12-21 Image processing method and terminal Pending CN105578070A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510970865.5A CN105578070A (en) 2015-12-21 2015-12-21 Image processing method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510970865.5A CN105578070A (en) 2015-12-21 2015-12-21 Image processing method and terminal

Publications (1)

Publication Number Publication Date
CN105578070A true CN105578070A (en) 2016-05-11

Family

ID=55887676

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510970865.5A Pending CN105578070A (en) 2015-12-21 2015-12-21 Image processing method and terminal

Country Status (1)

Country Link
CN (1) CN105578070A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106851090A (en) * 2016-12-20 2017-06-13 广东欧珀移动通信有限公司 Image processing method and device, control method and device, imaging and electronic installation
CN107133981A (en) * 2017-03-30 2017-09-05 腾讯科技(深圳)有限公司 Image processing method and device
CN107945105A (en) * 2017-11-30 2018-04-20 广东欧珀移动通信有限公司 Background blurring processing method, device and equipment
CN108495030A (en) * 2018-03-16 2018-09-04 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN109712177A (en) * 2018-12-25 2019-05-03 Oppo广东移动通信有限公司 Image processing method, device, electronic equipment and computer readable storage medium
WO2020038065A1 (en) * 2018-08-21 2020-02-27 中兴通讯股份有限公司 Image processing method, terminal, and computer storage medium
CN112634188A (en) * 2021-02-02 2021-04-09 深圳市爱培科技术股份有限公司 Vehicle far and near scene combined imaging method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101472064A (en) * 2007-12-25 2009-07-01 鸿富锦精密工业(深圳)有限公司 Filming system and method for processing scene depth
CN101587586A (en) * 2008-05-20 2009-11-25 株式会社理光 Device and method for processing images
US20120249839A1 (en) * 2011-03-29 2012-10-04 Samsung Electronics Co., Ltd. Non-real time image processing method, image capturing apparatus applying the same, and image processing system
CN105100615A (en) * 2015-07-24 2015-11-25 青岛海信移动通信技术股份有限公司 Image preview method, apparatus and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101472064A (en) * 2007-12-25 2009-07-01 鸿富锦精密工业(深圳)有限公司 Filming system and method for processing scene depth
CN101587586A (en) * 2008-05-20 2009-11-25 株式会社理光 Device and method for processing images
US20120249839A1 (en) * 2011-03-29 2012-10-04 Samsung Electronics Co., Ltd. Non-real time image processing method, image capturing apparatus applying the same, and image processing system
CN105100615A (en) * 2015-07-24 2015-11-25 青岛海信移动通信技术股份有限公司 Image preview method, apparatus and terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
M.KRAUS 等: "Depth-of-Field Rendering by Pyramidal Image Processing", 《COMPUTER GRAPHICS FORUM》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106851090A (en) * 2016-12-20 2017-06-13 广东欧珀移动通信有限公司 Image processing method and device, control method and device, imaging and electronic installation
CN106851090B (en) * 2016-12-20 2019-06-28 Oppo广东移动通信有限公司 Image processing method and device, control method and device, imaging and electronic device
CN107133981A (en) * 2017-03-30 2017-09-05 腾讯科技(深圳)有限公司 Image processing method and device
CN107133981B (en) * 2017-03-30 2019-04-12 腾讯科技(深圳)有限公司 Image processing method and device
CN107945105A (en) * 2017-11-30 2018-04-20 广东欧珀移动通信有限公司 Background blurring processing method, device and equipment
CN107945105B (en) * 2017-11-30 2021-05-25 Oppo广东移动通信有限公司 Background blurring processing method, device and equipment
CN108495030A (en) * 2018-03-16 2018-09-04 维沃移动通信有限公司 A kind of image processing method and mobile terminal
WO2020038065A1 (en) * 2018-08-21 2020-02-27 中兴通讯股份有限公司 Image processing method, terminal, and computer storage medium
CN109712177A (en) * 2018-12-25 2019-05-03 Oppo广东移动通信有限公司 Image processing method, device, electronic equipment and computer readable storage medium
CN109712177B (en) * 2018-12-25 2021-07-09 Oppo广东移动通信有限公司 Image processing method, image processing device, electronic equipment and computer readable storage medium
CN112634188A (en) * 2021-02-02 2021-04-09 深圳市爱培科技术股份有限公司 Vehicle far and near scene combined imaging method and device

Similar Documents

Publication Publication Date Title
CN105578070A (en) Image processing method and terminal
EP3493100B1 (en) Two-dimensional code identification method and device, and mobile terminal
CN108921806B (en) Image processing method, image processing device and terminal equipment
KR102126300B1 (en) Method and apparatus for generating an all-in-focus image
CN105611154A (en) Image processing method and terminal
CN105227838A (en) A kind of image processing method and mobile terminal
CN112967381B (en) Three-dimensional reconstruction method, apparatus and medium
US20190102056A1 (en) User interface for manipulating light-field images
CN111179159B (en) Method and device for eliminating target image in video, electronic equipment and storage medium
CN105592271A (en) Image-processing method and terminal
Leavline et al. On teaching digital image processing with MATLAB
CN107578375B (en) Image processing method and device
CN107766703B (en) Watermark adding processing method and device and client
US20130236117A1 (en) Apparatus and method for providing blurred image
CN111105440B (en) Tracking method, device, equipment and storage medium for target object in video
CN104917963A (en) Image processing method and terminal
CN110047126B (en) Method, apparatus, electronic device, and computer-readable storage medium for rendering image
CN114418897B (en) Eye spot image restoration method and device, terminal equipment and storage medium
KR101991401B1 (en) Method and apparatus for displaying augmented reality
CN110874814A (en) Image processing method, image processing device and terminal equipment
CN116912467A (en) Image stitching method, device, equipment and storage medium
CN116188290A (en) Image processing method, device, equipment and storage medium
CN105279727B (en) Image processing method and device
CN112150532A (en) Image processing method and device, electronic equipment and computer readable medium
CN111754435B (en) Image processing method, device, terminal equipment and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160511

WD01 Invention patent application deemed withdrawn after publication