WO2018018929A1 - 图像暗角补偿方法、装置和终端设备 - Google Patents

图像暗角补偿方法、装置和终端设备 Download PDF

Info

Publication number
WO2018018929A1
WO2018018929A1 PCT/CN2017/079490 CN2017079490W WO2018018929A1 WO 2018018929 A1 WO2018018929 A1 WO 2018018929A1 CN 2017079490 W CN2017079490 W CN 2017079490W WO 2018018929 A1 WO2018018929 A1 WO 2018018929A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
pixel
satisfy
preset condition
original image
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.)
Ceased
Application number
PCT/CN2017/079490
Other languages
English (en)
French (fr)
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of WO2018018929A1 publication Critical patent/WO2018018929A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/71Circuitry for evaluating the brightness variation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/60Noise processing, e.g. detecting, correcting, reducing or removing noise
    • H04N25/62Detection or reduction of noise due to excess charges produced by the exposure, e.g. smear, blooming, ghost image, crosstalk or leakage between pixels

Definitions

  • the present application relates to the field of image processing technologies, and in particular, to an image vignetting compensation method, apparatus, and terminal device.
  • the terminal device having the shooting function performs shooting, the light is concentrated by the lens in the central area of the image sensor, so that the image presented by the image sensor is brighter in the center area, and the four corners of the image are very dark, and the image is The quality is not high.
  • the purpose of the present application is to solve at least one of the above technical problems to some extent.
  • the first object of the present application is to propose an image vignetting compensation method.
  • the method compensates the corners of the original image with low brightness, eliminates the vignetting in the image, and improves the image quality.
  • a second object of the present application is to provide an image vignetting compensation device.
  • a third object of the present application is to propose a terminal device.
  • a fourth object of the present application is to propose a non-volatile computer storage medium.
  • the first aspect of the present application provides an image vignetting compensation, which includes the following steps:
  • the MEMS If the detecting is that at least one corner has a pixel brightness that does not satisfy the preset condition, triggering the MEMS to move the image sensor to the one or more reference positions to capture the corresponding reference image according to the preset control strategy and the moving distance;
  • the image vignetting compensation method of the embodiment of the present application detects four original images taken by the terminal device at the initial position Whether there is a pixel brightness in the corner that does not satisfy the preset condition. If the detection knows that at least one corner has a pixel brightness that does not satisfy the preset condition, the MEMS is triggered to move the image sensor to one or according to a preset control strategy and a moving distance.
  • the plurality of reference positions capture corresponding reference images, and perform compensation processing on the pixel brightness of the original image that does not satisfy the preset condition according to the reference image. Thereby, by performing compensation processing on the corners of the original image with low pixel brightness, the vignetting in the image is eliminated, and the quality of the image is improved.
  • image vignetting compensation of the embodiment of the present application further has the following additional technical features:
  • the MEMS is triggered to move the image sensor to one or more according to a preset control strategy and a moving distance.
  • the corresponding reference image is taken at the reference position, including:
  • the MEMS If the detection is that the upper left corner has a pixel brightness that does not satisfy the preset condition, triggering the MEMS to move the image sensor to the left to the first reference position according to the preset moving distance, or moving up to the second reference position to shoot correspondingly Reference image; and/or,
  • the detection knows that the lower left corner has a pixel brightness that does not satisfy the preset condition, triggering the MEMS to move the image sensor to the left to the first reference position according to the preset moving distance, or moving down to the third reference position to shoot Corresponding reference image; and/or,
  • the detection knows that the upper right corner has a pixel brightness that does not satisfy the preset condition, triggering the MEMS to move the image sensor to the right to the fourth reference position according to the preset moving distance, or moving up to the second reference position to shoot correspondingly Reference image; and/or,
  • the MEMS is triggered to move the image sensor to the right to the fourth reference position according to the preset moving distance, or to move down to the third reference position. Corresponding reference image.
  • the method before the triggering the MEMS to move the image sensor to the one or more reference positions to capture the corresponding reference image according to the preset control strategy and the moving distance, the method further includes:
  • the moving position is determined according to the first resolution and the second resolution.
  • the method before the triggering the MEMS to move the image sensor to the one or more reference positions to capture the corresponding reference image according to the preset control strategy and the moving distance, the method further includes:
  • the performing compensation processing on the pixel brightness of the original image that does not satisfy the preset condition according to the reference image includes:
  • the reference image is one, acquiring a pixel value corresponding to the first pixel position from the reference image, and assigning the pixel value to a corresponding first pixel position in the original image;
  • the reference image is a plurality of sheets, acquiring an average value of pixel values corresponding to the first pixel position from the plurality of the reference images, and assigning the average value to a corresponding first pixel position in the original image .
  • the performing compensation processing on the pixel brightness of the original image that does not satisfy the preset condition according to the reference image includes:
  • An average of the reference pixel value and the original pixel value is calculated and assigned to a corresponding pixel location in the original image.
  • an embodiment of the second aspect of the present application provides an image vignetting compensation apparatus, including:
  • a detecting module configured to detect whether the four corners of the original image captured by the terminal device at the initial position have pixel brightness that does not satisfy the preset condition
  • a triggering module configured to trigger the MEMS to move the image sensor to one or more reference positions according to a preset control strategy and a moving distance, when detecting that at least one corner has a pixel brightness that does not satisfy the preset condition, and correspondingly refer to the corresponding reference image;
  • a compensation module configured to perform compensation processing on the pixel brightness of the original image that does not satisfy the preset condition according to the reference image.
  • the image vignetting compensation apparatus of the embodiment of the present application detects whether the four corners of the original image captured by the terminal device have pixel brightness that does not satisfy the preset condition, if the detection knows that at least one corner has a condition that does not satisfy the preset condition.
  • the pixel brightness is triggered according to a preset control strategy and a moving distance, and the MEMS system moves the image sensor to one or more reference positions to capture a corresponding reference image, and according to the reference image, the pixel brightness of the original image that does not satisfy the preset condition is Perform compensation processing.
  • image vignetting compensation device of the embodiment of the present application further has the following additional technical features:
  • the trigger module is configured to:
  • the method further includes:
  • An acquiring module configured to acquire a first resolution corresponding to a horizontal direction in the image sensor, and a second resolution corresponding to the vertical direction;
  • a first determining module configured to determine the moving distance according to the first resolution and the second resolution.
  • the apparatus further includes:
  • a photometry processing module configured to perform photometry on a corner of a pixel of the original image that does not satisfy a preset condition
  • a second determining module configured to determine a moving direction of the image sensor.
  • the compensation module includes:
  • a determining unit configured to determine a first pixel position of a pixel brightness in the original image that does not satisfy a preset condition
  • a first processing unit configured to: when the reference image is one, acquire a pixel value corresponding to the first pixel position from the reference image, and assign the pixel value to a corresponding one of the original image First pixel position;
  • the first processing unit is further configured to: when the reference image is multiple, acquire an average value of pixel values corresponding to the first pixel position from the plurality of reference images, and assign the average value to the The corresponding first pixel location in the original image.
  • the compensation module includes:
  • An acquiring unit configured to respectively acquire reference pixel values and original pixel values of the same pixel position from the reference image and the original image;
  • a second processing unit configured to calculate an average of the reference pixel value and the original pixel value, and assign the average value to a corresponding pixel location in the original image.
  • the third aspect of the present application provides a terminal device, including:
  • One or more components a housing and a microelectromechanical system, an image sensor, a processor, and a memory located within the housing, wherein the microelectromechanical system controls movement of the image sensor, the processor Executing program code stored in the memory to execute a program corresponding to the executable program code for performing the following steps:
  • the MEMS If the detecting is that at least one corner has a pixel brightness that does not satisfy the preset condition, triggering the MEMS to move the image sensor to the one or more reference positions to capture the corresponding reference image according to the preset control strategy and the moving distance;
  • the terminal device of the embodiment of the present application detects whether the four corners of the original image captured by the terminal device have pixel brightness that does not satisfy the preset condition, and if the detection is that at least one corner has pixel brightness that does not satisfy the preset condition, Then, according to the preset control strategy and the moving distance, the MEMS system moves the image sensor to one or more reference positions to take a corresponding reference image, and compensates the pixel brightness of the original image that does not satisfy the preset condition according to the reference image. . Thereby, by performing compensation processing on the corners of the original image with low pixel brightness, the vignetting in the image is eliminated, and the quality of the image is improved.
  • a fourth aspect of the present application provides a non-volatile computer storage medium storing one or more programs, when the one or more programs are executed by a device, causing the device Performing the following steps: detecting whether the four corners of the original image captured by the terminal device at the initial position have pixel brightness that does not satisfy the preset condition;
  • the MEMS If the detecting is that at least one corner has a pixel brightness that does not satisfy the preset condition, triggering the MEMS to move the image sensor to the one or more reference positions to capture the corresponding reference image according to the preset control strategy and the moving distance;
  • FIG. 1 is a flow chart of an image vignetting compensation method according to an embodiment of the present application.
  • FIG. 2 is a schematic view showing the principle of convex lens imaging according to an embodiment of the present application
  • FIG. 3(a)-(d) are schematic diagrams showing the model of an image sensor according to an embodiment of the present application.
  • FIG. 4 is a schematic structural view of a microelectromechanical system according to an embodiment of the present application.
  • 5(a)-5(b) are schematic diagrams showing the principle of a microelectromechanical system controlling an image sensor according to an embodiment of the present application
  • FIGS. 6(a)-6(d) are diagrams showing an example of a scene for controlling movement of an image sensor according to an embodiment of the present application
  • FIG. 7 is a flowchart of an image vignetting compensation method according to another embodiment of the present application.
  • FIG. 8 is a flowchart of an image vignetting compensation method according to still another embodiment of the present application.
  • FIG. 9 is a flowchart of an image vignetting compensation method according to still another embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of an image vignetting compensation apparatus according to an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of an image vignetting compensation device according to another embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of an image vignetting compensation apparatus according to still another embodiment of the present application.
  • FIG. 13 is a schematic structural diagram of an image vignetting compensation apparatus according to still another embodiment of the present application.
  • FIG. 14 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
  • FIG. 1 is a flow chart of an image vignetting compensation method in accordance with one embodiment of the present application.
  • the image vignetting compensation method may include:
  • the image vignetting compensation method of the embodiment of the present application is applied to a terminal device having a photographing function, such as a smart phone or a digital camera, wherein the imaging principle of the lens of the photographing terminal device is a convex lens imaging principle.
  • the model having an aspect ratio of 4:3 as shown in Fig. 3(a) and the aspect ratio shown in Fig. 3(b) are 3:2.
  • the model number, the model with an aspect ratio of 16:9 as shown in Fig. 3(c), or the model with an aspect ratio of 1:1 as shown in Fig. 3(d) is presented in the image of the captured scene. Both are brighter in the central area (ie, the circular area shown in Figures 3(a)-(d)), and the four corners are relatively dark.
  • the image vignetting compensation method provided by the embodiment of the present application needs to detect the pixel brightness of the four corners in the original image captured by the terminal device at the initial position, if the original image is detected. For vignetting, the vignetting is compensated.
  • a preset condition for the pixel brightness is set in advance, thereby determining the image by detecting whether the four corners of the original image captured by the terminal device at the initial position have pixel brightness that does not satisfy the preset condition. Is there a vignetting possible?
  • the foregoing preset conditions for pixel brightness may be different, for example, the preset condition may be a preset threshold of pixel brightness according to a large number of experiments, and pixel brightness of four corners of the original image. If the threshold is greater than the preset threshold, it indicates that the original image does not have a vignetting angle. Otherwise, when the original image has a corner where the pixel brightness is not greater than the preset threshold, it indicates that there may be a vignetting angle in the corner.
  • the MEMS If the detecting is that at least one corner has a pixel brightness that does not satisfy the preset condition, triggering the MEMS to move the image sensor to the one or more reference positions to capture the corresponding reference image according to the preset control strategy and the moving distance.
  • the MEMS system is required to trigger the image sensor according to a preset control strategy and a moving distance. Moving to one or more reference positions to capture a corresponding reference image, wherein the pixel brightness of the position corresponding to the vignetting area in the original image in the reference image is higher than the pixel brightness of the vignetting area in the original image.
  • MEMS is based on microelectronics (semiconductor manufacturing technology), which combines lithography, etching, thin film, LIGA, silicon micromachining, non-silicon micromachining, and precision machining.
  • Technology electromechanical devices are based on microelectronics (semiconductor manufacturing technology), which combines lithography, etching, thin film, LIGA, silicon micromachining, non-silicon micromachining, and precision machining.
  • the microelectromechanical system includes a fixed electrode 122, a movable electrode 124, and a deformable connector 126.
  • the movable electrode 124 is mated with the fixed electrode 122.
  • the connecting member 126 is fixedly connected to the fixed electrode 122 and the movable electrode 124.
  • the fixed electrode 122 and the movable electrode 124 are used to generate an electrostatic force under the action of a driving voltage.
  • the connecting member 126 is configured to deform in a direction in which the movable electrode 124 moves under the action of an electrostatic force to allow the movable electrode 124 to move to drive the image sensor to move.
  • the corresponding FIG. 5(a) is set to control the image sensor to move in different directions, that is, as shown in FIG. 5(a), the MEMS system can be horizontally set in the image.
  • the MEMS can drive the image sensor to move horizontally to the left or right, or as shown in Figure 5(b), the MEMS can be placed vertically on the side of the image sensor, and the MEMS can drive The image sensor is moved horizontally up or down, and the like.
  • the step size of controlling the image sensor to move each time, etc. may be calibrated by the system according to a large amount of experimental data, or may be set by the user according to requirements.
  • the detection knows that the upper left corner has a pixel brightness that does not satisfy the preset condition
  • the moving distance triggers the MEMS to move the image sensor to the left, which can eliminate the first reference position of the corner of the pixel in the original image that does not satisfy the preset condition, or move up to, and can eliminate the pre-satisfaction in the original image.
  • a second reference position of a corner of the pixel brightness of the condition is taken to capture a corresponding reference image.
  • the reference image (2) shows that the trigger MEMS system moves the image sensor to the left by L1 length, and at the first reference position after the movement, so that the pixel in the left region of the butterfly is brighter in the obtained reference image. Bright, the corners of the pixel brightness in the original image that do not satisfy the preset condition are eliminated in the reference image.
  • the trigger MEMS system moves the image sensor up by L2 length and the second reference position after the movement, thereby obtaining the reference image, the left side of the butterfly
  • the brightness of the area pixel is brighter, and the detail of the left wing of the butterfly can be clearly displayed, and the corner of the original image in which the brightness of the pixel does not satisfy the preset condition is eliminated in the reference image.
  • the MEMS is triggered to move the image sensor to the left according to the preset moving distance, and the preset condition is not satisfied in the original image.
  • the first reference position of the corner of the pixel brightness, or the downward movement to the third reference position of the corner of the pixel in the original image that does not satisfy the preset condition, the corresponding reference image is captured
  • the pixel brightness is as shown in the reference image (2) in Fig. 6(b), triggering the MEMS to move the image sensor to the left by L1 length, and at the first reference position after the movement, thereby obtaining the reference image.
  • the pixel area on the left side of the butterfly is brighter, and the details of the left wing of the butterfly can be clearly displayed.
  • the corners of the original image that do not satisfy the preset condition are eliminated in the reference image.
  • the trigger MEMS system moves the image sensor downward by L3 length, and at the third reference position after the movement, thereby obtaining a reference image of the butterfly
  • the pixel in the left area is brighter, and the details of the left wing of the butterfly can be clearly displayed.
  • the corners of the pixel brightness in the original image that do not satisfy the preset condition are eliminated in the reference image.
  • the MEMS is triggered to move the image sensor to the right according to the preset moving distance, and the preset condition is not satisfied in the original image.
  • the fourth reference position of the corner of the pixel brightness, or moving up to the second reference position of the corner of the pixel in the original image that does not satisfy the preset condition, can be used to capture the corresponding reference image.
  • the trigger MEMS system moves the image sensor to the right by L4 length, and at the fourth reference position after the movement, the obtained reference image has a brighter pixel on the right side of the butterfly, which can be clearly displayed.
  • the details of the butterfly's right wing, the corners of the original image that do not meet the preset pixel brightness, are eliminated in the reference image.
  • the trigger MEMS system moves the image sensor up by L2 length and the second reference position after the movement, thereby obtaining the reference image, the right side of the butterfly
  • the area pixel brightness is brighter, and the corners of the original image that do not satisfy the preset condition are eliminated in the reference image.
  • the MEMS is triggered to move the image sensor to the right according to the preset moving distance, and the preset condition is not satisfied in the original image.
  • the fourth reference position of the corner of the pixel brightness, or the downward movement to the third reference position of the corner of the pixel in the original image that does not satisfy the preset condition may be photographed corresponding to the reference image.
  • the right portion of the butterfly is outside the center position of the image sensor, and the lower right corner of the image captured, that is, the butterfly is detected.
  • the right part of the area is darker and does not satisfy the pixel brightness of the preset condition.
  • the MEMS system is triggered to move the image sensor to the right by L4 length, after moving.
  • the fourth reference position is photographed, and thus the reference image of the butterfly is brighter in the right region of the butterfly, and the detail of the right wing of the butterfly can be clearly displayed, and the corner of the pixel in the original image that does not satisfy the preset condition is used in the reference.
  • the image is eliminated.
  • the trigger MEMS system moves the image sensor downward by L3 length, and at the third reference position after the movement, thereby obtaining a reference image in which the butterfly The pixel in the right area is brighter, and the corners of the original image that do not satisfy the preset condition are eliminated in the reference image.
  • the pixel brightness of the original image that does not satisfy the preset condition is compensated, so that the brightness of the pixel in the original image that does not satisfy the preset condition is compensated, so that the brightness in the image is obtained.
  • the distribution is uniform and the obtained image quality is good.
  • step S130 how to compensate the pixel brightness of the original image that does not satisfy the preset condition according to the reference image, which will be described in detail below with reference to FIGS. 7 and 8 :
  • FIG. 7 is a flowchart of an image vignetting compensation method according to another embodiment of the present application. As shown in FIG. 7, step S130 may include:
  • the pixel brightness of all positions in the original image can be obtained, and the obtained pixel brightness and the image of the preset condition are obtained.
  • the luminance is compared to determine a first pixel position of the pixel luminance in the original image that does not satisfy the preset condition.
  • the pixel value corresponding to the first pixel position is obtained from the reference image, for example, as shown in the original image (1) image in FIG. 6(a), the original image is determined. If the first pixel position of the pixel luminance that does not satisfy the preset condition is the A region, the pixel value of the A1 region corresponding to the first pixel position is acquired from the reference image, that is, the (2) image in FIG. 6(a), Thereby, the pixel value of the A1 region is given to the pixel value of the corresponding A region in the original image, and the compensated original image eliminates the A region of the pixel luminance that does not satisfy the preset condition.
  • the pixel value corresponding to the first pixel position is obtained from the plurality of reference images, and the average value is obtained for the plurality of pixel values, and the average value is assigned to the corresponding first pixel in the original image. position.
  • the implementation process of assigning a plurality of pixel averages corresponding to the first pixel position to the corresponding first pixel position in the original image is similar to the process implemented in the foregoing step S220, and is not illustrated herein. .
  • FIG. 8 is a flowchart of an image vignetting compensation method according to still another embodiment of the present application. As shown in FIG. 8, step S130 may include:
  • the reference pixel value and the original pixel value of the same pixel position are respectively acquired from the reference image and the original image, for example, as shown in FIG. 6( a ), determining the pixel of the A region as shown in the original image (1)
  • the original pixel value, and the reference pixel value of the pixel of the A1 region corresponding to the A region is acquired from the reference image, that is, the (2) image in FIG. 6(a).
  • the reference pixel value and the original pixel value of the same pixel position may be averaged, and the average value of the pixel is given to the corresponding pixel position in the original image, so that the pixel value of the pixel brightness in the original image that does not satisfy the preset condition is obtained.
  • the improvement is made to eliminate corners of the pixel brightness of the original image that do not satisfy the preset condition.
  • the original pixel value of the pixel of the (1) area of FIG. A is averaged with the reference pixel value of the pixel of the A1 area corresponding to the A area in the (2) image, thereby The mean value is given to the pixel value of the corresponding A area in the original image, thereby compensating the processed original image to eliminate the A area of the pixel luminance that does not satisfy the preset condition.
  • the image vignetting compensation method of the embodiment of the present application detects whether the four corners of the original image captured by the terminal device in the initial position have pixel brightness that does not satisfy the preset condition, and if the detection knows that at least one corner has no
  • the pixel brightness that satisfies the preset condition triggers the MEMS to move the image sensor to one or more reference positions to shoot a corresponding reference image according to a preset control strategy and a moving distance, and is dissatisfied with the original image according to the reference image.
  • the pixel brightness of the pre-predetermined condition is compensated.
  • the distribution of the MEMS resolution in the image sensor may be triggered according to a preset control strategy and a moving distance to determine the moving distance of the image sensor.
  • FIG. 9 is a flowchart of an image vignetting compensation method according to still another embodiment of the present application. As shown in FIG. 9, the method includes:
  • the original image may have a vignetting angle by detecting whether or not the pixel brightness of the original image captured by the terminal device at the initial position has a pixel condition that does not satisfy the preset condition.
  • the detection knows that at least one corner of the original image has a pixel brightness that does not satisfy the preset condition, it indicates that the pixel of the at least one corner is dark, which may cause a vignetting angle of the original image, and thus the image sensor needs to be moved, and the image sensor is required. Move to the appropriate shooting reference position. .
  • the appropriate exposure brightness is different for the corners of different pixel brightnesses, it is possible to perform photometry on the corners of the pixel brightness of the original image that does not satisfy the preset condition, so as to be based on the light intensity in the photometric processing result.
  • An orientation suitable for appropriately exposing one or more of the above corners is determined with a suitable distribution of the corners, etc., to determine the direction of movement of the image sensor.
  • the metering process is performed around the upper left corner of the original image, and the area where the light brightness is larger is determined to be located to the right of the corner, so that it can be determined.
  • the image sensor moves in the right direction.
  • a first resolution corresponding to a horizontal direction and a second resolution corresponding to a vertical direction in the image sensor may be acquired, and then corresponding to the first resolution and the second resolution
  • the arithmetic processing determines the moving distance corresponding to the movement of the image sensor.
  • the first resolution w in the horizontal direction of the image sensor is acquired, and the second resolution in the vertical direction is h, w is greater than or equal to h, then
  • the value of the first resolution and the second resolution difference is the moving distance corresponding to the image sensor movement.
  • S450 trigger the MEMS to move the image sensor to the one or more reference positions to capture the corresponding reference image according to the preset control strategy and the moving distance.
  • the moving distance is the first resolution and the second resolution difference of the image sensor.
  • the average value P triggers the MEMS to move the image sensor to the left to capture a corresponding reference image at the reference position.
  • step 460 in this embodiment refers to the implementation process of the step 130 in the foregoing embodiment, and details are not described herein again.
  • the image vignetting compensation method of the embodiment of the present application is based on the first resolution corresponding to the horizontal direction and the second resolution corresponding to the vertical direction in the acquired image sensor, and according to the first resolution and The second resolution determines the moving position.
  • the micro-electromechanical system can move the image sensor at a more suitable moving distance when detecting that at least one corner has a pixel brightness that does not satisfy the preset condition, so that the photographed reference image more clearly presents at least one of the original images.
  • the image of the corner effectively improves the quality of the image.
  • FIG. 10 is a schematic structural diagram of an image vignetting compensation apparatus according to an embodiment of the present application.
  • the image vignetting compensation apparatus may include: a detection module 10, a trigger module 20, and a compensation module 30.
  • the detecting module 10 is configured to detect whether the four corners of the original image captured by the terminal device at the initial position have pixel brightness that does not satisfy the preset condition.
  • the triggering module 20 is configured to trigger the MEMS to move the image sensor to one or more reference positions according to a preset control strategy and a moving distance when detecting that at least one corner has a pixel brightness that does not satisfy the preset condition. Reference image.
  • the triggering module 20 when detecting that the pixel brightness of the upper left corner does not satisfy the preset condition, the triggering module 20 triggers the MEMS to move the image sensor to the left to the first reference position according to the preset moving distance. , or move up to the second reference position to take a corresponding reference image.
  • the transmitting module 20 when detecting that the lower left corner has a pixel brightness that does not satisfy the preset condition, triggers the MEMS to move the image sensor to the left to the first reference position or to move to the third reference position to capture the corresponding reference image according to the preset moving distance.
  • the triggering module 20 when detecting that the pixel brightness of the upper right corner does not satisfy the preset condition, the triggering module 20 triggers the MEMS to move the image sensor to the right to the fourth reference position according to the preset moving distance. , or move up to the second reference position to take a corresponding reference image.
  • the triggering module 20 when detecting that the pixel brightness of the lower right corner does not satisfy the preset condition, the triggering module 20 triggers the MEMS to move the image sensor to the right to the fourth reference position according to the preset moving distance. , or move down to the third reference position to take the corresponding reference image.
  • the compensation module 30 is configured to perform compensation processing on the pixel brightness of the original image that does not satisfy the preset condition according to the reference image.
  • the compensation module 30 may include a determining unit 31 and a first processing unit 32, as shown in FIG. .
  • the determining unit 31 is configured to determine a first pixel position of the pixel brightness in the original image that does not satisfy the preset condition.
  • the first processing unit 32 is configured to: when the reference image is one, obtain a pixel value corresponding to the first pixel position from the reference image, and assign the pixel value to the corresponding first pixel position in the original image;
  • the first processing unit 31 is further configured to: when the reference image is multiple, acquire an average of the pixel values corresponding to the first pixel position from the plurality of reference images, and assign the average to the corresponding first pixel position in the original image.
  • FIG. 12 is a schematic structural diagram of an image vignetting compensation apparatus according to still another embodiment of the present application.
  • the compensation module 30 may include an acquisition unit 33 and a second processing unit 34, as shown in FIG. .
  • the obtaining unit 33 is configured to acquire reference pixel values and original pixel values of the same pixel position from the reference image and the original image, respectively.
  • the second processing unit 34 is configured to calculate a mean value of the reference pixel value and the original pixel value, and assign the average value to the corresponding pixel position in the original image.
  • the image vignetting compensation apparatus of the embodiment of the present application detects whether the four corners of the original image captured by the terminal device have pixel brightness that does not satisfy the preset condition, and if the detection knows that at least one corner has no
  • the pixel brightness satisfying the preset condition is triggered according to a preset control strategy and a moving distance to trigger the MEMS system to move the image sensor to one or more reference positions to take a corresponding reference image, and according to the reference image, the original image is not satisfied.
  • the pixel brightness of the condition is set to perform compensation processing. Thereby, by performing compensation processing on the corners of the original image with low pixel brightness, the vignetting in the image is eliminated, and the quality of the image is improved.
  • the MEMS resolution at the image sensor can be triggered according to the preset control strategy and the moving distance.
  • the distribution condition determines the moving distance of the above image sensor movement.
  • FIG. 13 is a schematic structural diagram of an image vignetting compensation apparatus according to still another embodiment of the present application.
  • the image vignetting compensation apparatus may further include an acquisition module 40, first.
  • the determination module 50, the photometry processing module 60, and the second determination module 70 are determined.
  • the obtaining module 40 is configured to acquire a first resolution corresponding to the horizontal direction and a second resolution corresponding to the vertical direction in the image sensor.
  • the first determining module 50 is configured to determine a moving distance according to the first resolution and the second resolution.
  • the photometric processing module 60 is configured to perform photometry on a corner of a pixel of the original image that does not satisfy the preset condition.
  • the second determining module 70 is configured to determine a moving direction of the image sensor.
  • the image vignetting compensation device of the embodiment of the present application is based on the first resolution corresponding to the horizontal direction and the second resolution corresponding to the vertical direction in the acquired image sensor, and according to the first resolution and The second resolution determines the moving position.
  • the micro-electromechanical system can move the image sensor at a more suitable moving distance when detecting that at least one corner has a pixel brightness that does not satisfy the preset condition, so that the photographed reference image more clearly presents at least one of the original images.
  • the image of the corner effectively improves the quality of the image.
  • FIG. 14 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
  • the terminal device 1000 includes: a housing 1100 and a shell.
  • the MEMS If the detecting is that at least one corner has a pixel brightness that does not satisfy the preset condition, triggering the MEMS to move the image sensor to the one or more reference positions to capture the corresponding reference image according to the preset control strategy and the moving distance;
  • the pixel brightness of the original image that does not satisfy the preset condition is compensated according to the reference image.
  • the terminal device in the embodiment of the present application detects whether the four corners of the original image captured by the terminal device in the initial position have pixel brightness that does not satisfy the preset condition, and if the detection is that at least one corner has an unsatisfied preset.
  • the pixel brightness of the condition triggers the MEMS to move the image sensor to one or more reference positions to capture a corresponding reference image according to a preset control strategy and a moving distance, and according to the reference image, the preset condition is not satisfied in the original image.
  • the pixel brightness is compensated. Thereby, by performing compensation processing on the corners of the original image with low pixel brightness, the vignetting in the image is eliminated, and the quality of the image is improved.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Transforming Light Signals Into Electric Signals (AREA)

Abstract

本申请公开了一种图像暗角补偿方法、装置和终端设备,其中,方法包括:检测终端设备在初始位置拍摄的原始图像的四个角落中是否具有不满足预设条件的像素亮度;如果检测获知至少一个角落具有不满足预设条件的像素亮度,则根据预设的控制策略和移动距离触发微机电系统将图像传感器移动到一个或多个参考位置拍摄对应的参考图像;根据参考图像对原始图像中不满足预设条件的像素亮度进行补偿处理。该方法通过对原始图像中像素亮度较低的角落进行补偿处理,消除了图像中的暗角,提高了图像的质量。

Description

图像暗角补偿方法、装置和终端设备
相关申请的交叉引用
本申请要求广东欧珀移动通信有限公司于2016年07月29日提交的、申请名称为“图像暗角补偿方法、装置和终端设备”的、中国专利申请号“201610623629.0”的优先权。
技术领域
本申请涉及图像处理技术领域,尤其涉及一种图像暗角补偿方法、装置和终端设备。
背景技术
随着摄影技术的发展,数码相机、智能手机等具有拍摄功能的终端设备,具有多种多样的镜头结构,而无论镜头的组合的结构如何,都可将镜头简单看成一个凸透镜。
因此,具有拍摄功能的终端设备进行拍摄时,通过镜头将光线汇聚于图像传感器的中心区域,因而导致图像传感器呈现的图像,都是中心区域较亮,而图像的四个角落非常暗,图像的质量不高。
发明内容
本申请的目的旨在至少在一定程度上解决上述的技术问题之一。
为此,本申请的第一个目的在于提出一种图像暗角补偿方法。该方法通过对原始图像中像素亮度较低的角落进行补偿处理,消除了图像中的暗角,提高了图像的质量。
本申请的第二个目的在于提出一种图像暗角补偿装置。
本申请的第三个目的在于提出一种终端设备。
本申请的第四个目的在于提出一种非易失性计算机存储介质。
为了实现上述目的,本申请第一方面实施例提出了一种图像暗角补偿,包括以下步骤:
检测终端设备在初始位置拍摄的原始图像的四个角落中是否具有不满足预设条件的像素亮度;
如果检测获知至少一个角落具有不满足预设条件的像素亮度,则根据预设的控制策略和移动距离,触发微机电系统将图像传感器移动到一个或多个参考位置拍摄对应的参考图像;
根据所述参考图像对所述原始图像中不满足预设条件的像素亮度进行补偿处理。
本申请实施例的图像暗角补偿方法,检测终端设备在初始位置拍摄的原始图像的四个 角落中是否具有不满足预设条件的像素亮度,如果检测获知至少一个角落具有不满足预设条件的像素亮度,则根据预设的控制策略和移动距离触发微机电系统将图像传感器移动到一个或多个参考位置拍摄对应的参考图像,并根据参考图像对原始图像中不满足预设条件的像素亮度进行补偿处理。由此,通过对原始图像中像素亮度较低的角落进行补偿处理,消除了图像中的暗角,提高了图像的质量。
另外,本申请实施例的图像暗角补偿,还具有如下附加的技术特征:
在本申请的一个实施例中,所述如果检测获知至少一个角落具有不满足预设条件的像素亮度,则根据预设的控制策略和移动距离触发微机电系统将图像传感器移动到一个或多个参考位置拍摄对应的参考图像,包括:
如果检测获知左上角具有不满足预设条件的像素亮度,则根据预设的移动距离,触发微机电系统将图像传感器向左移动到第一参考位置,或,向上移动到第二参考位置拍摄对应的参考图像;和/或,
如果检测获知左下角具有不满足预设条件的像素亮度,则根据预设的移动距离,触发微机电系统将图像传感器向左移动到第一参考位置,或,向下移动到第三参考位置拍摄对应的参考图像;和/或,
如果检测获知右上角具有不满足预设条件的像素亮度,则根据预设的移动距离,触发微机电系统将图像传感器向右移动到第四参考位置,或,向上移动到第二参考位置拍摄对应的参考图像;和/或,
如果检测获知右下角具有不满足预设条件的像素亮度,则根据预设的移动距离,触发微机电系统将图像传感器向右移动到第四参考位置,或,向下移动到第三参考位置拍摄对应的参考图像。
在本申请的一个实施例中,在所述根据预设的控制策略和移动距离触发微机电系统将图像传感器移动到一个或多个参考位置拍摄对应的参考图像之前,还包括:
获取所述图像传感器中与水平方向对应的第一分辨率,以及与垂直方向对应的第二分辨率;
根据所述第一分辨率和所述第二分辨率确定所述移动位置。
在本申请的一个实施例中,在所述根据预设的控制策略和移动距离触发微机电系统将图像传感器移动到一个或多个参考位置拍摄对应的参考图像之前,还包括:
对所述原始图像中不满足预设条件的像素亮度的角落周围进行测光处理,确定所述图像传感器的移动方向。
在本申请的一个实施例中,所述根据所述参考图像对所述原始图像中不满足预设条件的像素亮度进行补偿处理,包括:
确定所述原始图像中不满足预设条件的像素亮度的第一像素位置;
如果所述参考图像为一张,则从所述参考图像中获取与所述第一像素位置对应的像素值,并将所述像素值赋予所述原始图像中对应的第一像素位置;
如果所述参考图像为多张,则从多个所述参考图像中获取与所述第一像素位置对应的像素值的均值,并将所述均值赋予所述原始图像中对应的第一像素位置。
在本申请的一个实施例中,所述根据所述参考图像对所述原始图像中不满足预设条件的像素亮度进行补偿处理,包括:
从所述参考图像和所述原始图像中分别获取同一像素位置的参考像素值和原始像素值;
计算所述参考像素值和所述原始像素值的均值,并将所述均值赋予所述原始图像中对应的像素位置。
为了实现上述目的,本申请第二方面实施例提出了一种图像暗角补偿装置,包括:
检测模块,用于检测终端设备在初始位置拍摄的原始图像的四个角落中是否具有不满足预设条件的像素亮度;
触发模块,用于在检测获知至少一个角落具有不满足预设条件的像素亮度时,根据预设的控制策略和移动距离触发微机电系统将图像传感器移动到一个或多个参考位置拍摄对应的参考图像;
补偿模块,用于根据所述参考图像对所述原始图像中不满足预设条件的像素亮度进行补偿处理。
本申请实施例的图像暗角补偿装置,检测终端设备在初始位置拍摄的原始图像的四个角落中是否具有不满足预设条件的像素亮度,如果检测获知至少一个角落具有不满足预设条件的像素亮度,则根据预设的控制策略和移动距离触发微机电系统将图像传感器移动到一个或多个参考位置拍摄对应的参考图像,并根据参考图像对原始图像中不满足预设条件的像素亮度进行补偿处理。由此,通过对原始图像中像素亮度较低的角落进行补偿处理,消除了图像中的暗角,提高了图像的质量。
另外,本申请实施例的图像暗角补偿装置,还具有如下附加的技术特征:
在本申请的一个实施例中,所述触发模块用于:
在检测获知左上角具有不满足预设条件的像素亮度时,根据预设的移动距离,触发微机电系统将图像传感器向左移动到第一参考位置,或,向上移动到第二参考位置拍摄对应的参考图像;和/或,
在检测获知左下角具有不满足预设条件的像素亮度时,根据预设的移动距离,触发微机电系统将图像传感器向左移动到第一参考位置,或,向下移动到第三参考位置拍摄对应 的参考图像;和/或,
在检测获知右上角具有不满足预设条件的像素亮度时,根据预设的移动距离,触发微机电系统将图像传感器向右移动到第四参考位置,或,向上移动到第二参考位置拍摄对应的参考图像;和/或,
在检测获知右下角具有不满足预设条件的像素亮度时,根据预设的移动距离,触发微机电系统将图像传感器向右移动到第四参考位置,或,向下移动到第三参考位置拍摄对应的参考图像。
在本申请的一个实施例中,还包括:
获取模块,用于获取所述图像传感器中与水平方向对应的第一分辨率,以及与垂直方向对应的第二分辨率;
第一确定模块,用于根据所述第一分辨率和所述第二分辨率确定所述移动距离。
在本申请的一个实施例中,所述装置还包括:
测光处理模块,用于对所述原始图像中不满足预设条件的像素亮度的角落周围进行测光处理;
第二确定模块,用于确定所述图像传感器的移动方向。
在本申请的一个实施例中,所述补偿模块包括:
确定单元,用于确定所述原始图像中不满足预设条件的像素亮度的第一像素位置;
第一处理单元,用于在所述参考图像为一张时,从所述参考图像中获取与所述第一像素位置对应的像素值,并将所述像素值赋予所述原始图像中对应的第一像素位置;
所述第一处理单元还用于在所述参考图像为多张时,从多个所述参考图像中获取与所述第一像素位置对应的像素值的均值,并将所述均值赋予所述原始图像中对应的第一像素位置。
在本申请的一个实施例中,所述补偿模块包括:
获取单元,用于从所述参考图像和所述原始图像中分别获取同一像素位置的参考像素值和原始像素值;
第二处理单元,用于计算所述参考像素值和所述原始像素值的均值,并将所述均值赋予所述原始图像中对应的像素位置。
为了实现上述目的,本申请第三方面实施例提出了一种终端设备,包括:
以下一个或多个组件:壳体和位于所述壳体内的微机电系统、图像传感器、处理器和存储器,其中,所述微机电系统控制所述图像传感器移动,所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行以下步骤:
检测终端设备在初始位置拍摄的原始图像的四个角落中是否具有不满足预设条件的像素亮度;
如果检测获知至少一个角落具有不满足预设条件的像素亮度,则根据预设的控制策略和移动距离触发微机电系统将图像传感器移动到一个或多个参考位置拍摄对应的参考图像;
根据所述参考图像对所述原始图像中不满足预设条件的像素亮度进行补偿处理。
本申请实施例的终端设备,检测终端设备在初始位置拍摄的原始图像的四个角落中是否具有不满足预设条件的像素亮度,如果检测获知至少一个角落具有不满足预设条件的像素亮度,则根据预设的控制策略和移动距离触发微机电系统将图像传感器移动到一个或多个参考位置拍摄对应的参考图像,并根据参考图像对原始图像中不满足预设条件的像素亮度进行补偿处理。由此,通过对原始图像中像素亮度较低的角落进行补偿处理,消除了图像中的暗角,提高了图像的质量。
本申请第四方面实施例提供了一种非易失性计算机存储介质,所述计算机存储介质存储有一个或者多个程序,当所述一个或者多个程序被一个设备执行时,使得所述设备执行以下步骤:检测终端设备在初始位置拍摄的原始图像的四个角落中是否具有不满足预设条件的像素亮度;
如果检测获知至少一个角落具有不满足预设条件的像素亮度,则根据预设的控制策略和移动距离触发微机电系统将图像传感器移动到一个或多个参考位置拍摄对应的参考图像;
根据所述参考图像对所述原始图像中不满足预设条件的像素亮度进行补偿处理。
本申请附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本申请的实践了解到。
附图说明
本申请上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:
图1是根据本申请一个实施例的图像暗角补偿方法的流程图;
图2是根据本申请一个实施例的凸透镜成像原理示意图;
图3(a)-(d)是根据本申请一个实施例的图像传感器的型号示意图;
图4是根据本申请一个实施例微机电系统的结构示意图;
图5(a)-图5(b)是根据本申请一个实施例的微机电系统控制图像传感器的原理示意图;
图6(a)-图6(d)是根据本申请一个实施例的控制图像传感器移动的场景示例图;
图7是根据本申请另一个实施例的图像暗角补偿方法的流程图;
图8是根据本申请又一个实施例的图像暗角补偿方法的流程图;
图9是根据本申请还一个实施例的图像暗角补偿方法的流程图;
图10是根据本申请一个实施例的图像暗角补偿装置的结构示意图;
图11是根据本申请另一个实施例的图像暗角补偿装置的结构示意图;
图12是根据本申请又一个实施例的图像暗角补偿装置的结构示意图;
图13是根据本申请还一个实施例的图像暗角补偿装置的结构示意图;以及
图14是根据本申请一个实施例的终端设备的结构示意图。
具体实施方式
下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本申请,而不能理解为对本申请的限制。
下面参考附图描述本申请实施例的图像暗角补偿方法、装置和终端设备。
图1是根据本申请一个实施例的图像暗角补偿方法的流程图。
如图1所示,该图像暗角补偿方法可包括:
S110,检测终端设备在初始位置拍摄的原始图像的四个角落中是否具有不满足预设条件的像素亮度。
可以理解,本申请实施例的图像暗角补偿方法应用于智能手机、数码相机等具有拍摄功能的终端设备中,其中,进行拍摄的终端设备的镜头的成像原理是凸透镜成像原理。
即如图2所示,在通过镜头拍摄景物时,环境光线经过镜头汇聚于图像传感器的中心位置,从而在图像传感器中呈现的拍摄景物的图像中心区域较亮,四个角落相对较暗。
也就是说,无论图像传感器的高宽比的型号,是如图3(a)所示的高宽比为4:3的型号、如图3(b)所示的高宽比为3:2的型号、如图3(c)所示的高宽比为16:9的型号、还是如图3(d)所示的高宽比为1:1的型号,其呈现的拍摄景物的图像中,都是中心区域(即如图3(a)-(d)所示的圆形区域)较亮,四个角落相对较暗。
因而,由于呈现在图像传感器上,拍摄景物的图像中四个角落的光线较暗,可能会造成拍摄景物的图像四个角落存在曝光不足的角落,导致拍摄景物的图像中的一个或多个角落的图像因为光线较暗,出现无法真实反映景物的色泽的暗角。
因此,为了提高图像质量,本申请实施例提供的图像暗角补偿方法,需要对终端设备在初始位置拍摄的原始图像中四个角落的像素亮度进行检测,如果检测到原始图像中存在 暗角,则对暗角进行补偿处理。
具体地,在实际执行过程中,预先设置针对像素亮度的预设条件,从而通过检测终端设备在初始位置拍摄的原始图像的四个角落中是否具有不满足预设条件的像素亮度,判断该图像是否可能存在暗角。
需要说明的是,根据具体应用场景的不同,上述针对像素亮度的预设条件可不同,比如该预设条件可是根据大量实验标定的像素亮度预设阈值,当原始图像的四个角落的像素亮度大于该预设阈值时,则表明该原始图像不存在暗角,否则,当原始图像存在像素亮度不大于该预设阈值的角落时,则表明该角落可能存在暗角。
S120,如果检测获知至少一个角落具有不满足预设条件的像素亮度,则根据预设的控制策略和移动距离触发微机电系统将图像传感器移动到一个或多个参考位置拍摄对应的参考图像。
具体地,如果检测获知至少一个角落具有不满足预设条件的像素亮度,则表明原始图像的该角落可能存在暗角,因此,需要根据预设的控制策略和移动距离触发微机电系统将图像传感器移动到一个或多个参考位置拍摄对应的参考图像,其中,该参考图像中与原始图像中暗角区域对应位置的像素亮度比原始图像中暗角区域的像素亮度高。
具体地,微机电系统是在微电子技术(半导体制造技术)基础上发展起来的,融合了光刻、腐蚀、薄膜、LIGA、硅微加工、非硅微加工和精密机械加工等技术制造的高科技电子机械器件。
如图4所示,微机电系统包括固定电极122、活动电极124及可形变连接件126。活动电极124与固定电极122配合。连接件126固定连接固定电极122及活动电极124。固定电极122及活动电极124用于在驱动电压的作用下产生静电力。连接件126用于在静电力的作用下沿活动电极124移动的方向形变以允许活动电极124移动从而带动图像传感器进行移动。
其中,需要说明的是,根据具体应用需求的不同,设置相应的图5(a)控制图像传感器向不同的方向移动,即如图5(a)所示,可将微机电系统水平设置在图像传感器一侧,从而微机电系统可带动图像传感器进行水平向左或者向右移动等,或者如图5(b)所示,可将微机电系统垂直设置在图像传感器一侧,微机电系统可带动图像传感器进行水平向上或者向下移动等。其中,上述图5(a)控制图像传感器每次移动的步长等,可由系统根据大量实验数据进行标定,也可由用户根据需求自行设置等。
为了更加清楚的说明根据微机电系统如何根据该预设的控制策略和移动距离控制图像传感器移动,下面举例说明:
第一种示例,如果检测获知左上角具有不满足预设条件的像素亮度,则根据预设的移 动距离,触发微机电系统将图像传感器向左移动到,可以消除原始图像中不满足预设条件的像素亮度的角落的第一参考位置,或,向上移动到,可以消除原始图像中不满足预设条件的像素亮度的角落的第二参考位置拍摄对应的参考图像。
在本示例中,如图6(a)的原始图像(1)图所示,拍摄蝴蝶时,检测获知拍摄的蝴蝶的左边部分区域较暗,不满足预设条件的像素亮度,则如图6(a)的参考图像(2)图所示,触发微机电系统将图像传感器向左移动L1长度,在移动后的第一参考位置拍摄,从而得到的参考图像中,蝴蝶的左边区域像素亮度较亮,原始图像中的不满足预设条件的像素亮度的角落,在该参考图像中得到消除。
或者,如图6(a)的参考图像(3)图所示,触发微机电系统将图像传感器向上移动L2长度,在移动后的第二参考位置拍摄,从而得到的参考图像中,蝴蝶的左边区域像素亮度较亮,可清晰呈现蝴蝶的左边翅膀的细节,原始图像中的不满足预设条件的像素亮度的角落,在该参考图像中得到消除。
第二种示例,如果检测获知左下角具有不满足预设条件的像素亮度,则根据预设的移动距离,触发微机电系统将图像传感器向左移动到,可以消除原始图像中不满足预设条件的像素亮度的角落的第一参考位置,或向下移动到,可以消除原始图像中不满足预设条件的像素亮度的角落的第三参考位置拍摄对应的参考图像
在本示例中,如图6(b)中的原始图像(1)图所示,拍摄蝴蝶时,检测获知拍摄的图像中的左下角,即蝴蝶的左边部分区域较暗,不满足预设条件的像素亮度,则如图6(b)中参考图像(2)图所示,触发微机电系统将图像传感器向左移动L1长度,在移动后的第一参考位置拍摄,从而得到的参考图像中,蝴蝶的左边区域像素亮度较亮,可清晰呈现蝴蝶的左边翅膀的细节,原始图像中的不满足预设条件的像素亮度的角落,在该参考图像中得到消除。
或者,如图6(b)的参考图像(3)图所示,触发微机电系统将图像传感器向下移动L3长度,在移动后的第三参考位置拍摄,从而得到的参考图像中,蝴蝶的左边区域像素亮度较亮,可清晰呈现蝴蝶的左边翅膀的细节,原始图像中的不满足预设条件的像素亮度的角落,在该参考图像中得到消除。
第三种示例,如果检测获知右上角具有不满足预设条件的像素亮度,则根据预设的移动距离,触发微机电系统将图像传感器向右移动到,可以消除原始图像中不满足预设条件的像素亮度的角落的第四参考位置,或向上移动到,可以消除原始图像中不满足预设条件的像素亮度的角落的第二参考位置拍摄对应的参考图像。
在本示例中,如图6(c)的原始图像(1)图所示,拍摄蝴蝶时,检测获知拍摄的图像中的右上角,即蝴蝶的右边部分区域较暗,不满足预设条件的像素亮度,则如图6(c)的 参考图像(2)图所示,触发微机电系统将图像传感器向右移动L4长度,在移动后的第四参考位置拍摄,得到的参考图像中,蝴蝶的右边区域像素亮度较亮,可清晰呈现蝴蝶的右边翅膀的细节,原始图像中的不满足预设条件的像素亮度的角落,在该参考图像中得到消除。
或者,如图6(c)的参考图像(3)图所示,触发微机电系统将图像传感器向上移动L2长度,在移动后的第二参考位置拍摄,从而得到的参考图像中,蝴蝶的右边区域像素亮度较亮,原始图像中的不满足预设条件的像素亮度的角落,在该参考图像中得到消除。
第四种示例,如果检测获知右下角具有不满足预设条件的像素亮度,则根据预设的移动距离,触发微机电系统将图像传感器向右移动到,可以消除原始图像中不满足预设条件的像素亮度的角落的第四参考位置,或向下移动到,可以消除原始图像中不满足预设条件的像素亮度的角落的第三参考位置拍摄对应的参考图像。
在本示例中,如图6(d)的原始图像(1)图所示,拍摄蝴蝶时,蝴蝶右边部分区域处于图像传感器中心位置之外,且检测获知拍摄的图像中的右下角,即蝴蝶的右边部分区域较暗,不满足预设条件的像素亮度,则如图6(d)的参考图像(2)图所示,触发微机电系统将图像传感器向右移动L4长度,在移动后的第四参考位置拍摄,从而得到的参考图像中,蝴蝶的右边区域像素亮度较亮,可清晰呈现蝴蝶的右边翅膀的细节,原始图像中的不满足预设条件的像素亮度的角落,在该参考图像中得到消除。
或者,如图6(d)的参考图像(3)图所示,触发微机电系统将图像传感器向下移动L3长度,在移动后的第三参考位置拍摄,从而得到的参考图像中,蝴蝶的右边区域像素亮度较亮,原始图像中的不满足预设条件的像素亮度的角落,在该参考图像中得到消除。
S130,根据参考图像对原始图像中不满足预设条件的像素亮度进行补偿处理。
具体地,在参考图像的基础上,对原始图像中不满足预设条件的像素亮度进行补偿处理,以使得原始图像中的不满足预设条件的像素亮度,得到补偿处理,使得图像中的亮度分布均匀,得到的图像质量较好。
需要说明的是,根据具体应用需求的不同,可采用不同的处理方式对原始图像中不满足预设条件的像素亮度进行补偿处理:
为了更加清楚的描述上述步骤S130中,如何根据参考图像对原始图像中不满足预设条件的像素亮度进行补偿处理,下面结合附图7和8详细举例说明:
图7是根据本申请另一个实施例的图像暗角补偿方法的流程图,如图7所示,步骤S130可包括:
S210,确定原始图像中不满足预设条件的像素亮度的第一像素位置。
具体地,可获取原始图像中所有位置的像素亮度,将获得的像素亮度与预设条件的像 素亮度进行比较,确定出原始图像中不满足预设条件的像素亮度的第一像素位置。
S220,如果参考图像为一张,则从参考图像中获取与第一像素位置对应的像素值,并将像素值赋予原始图像中对应的第一像素位置。
举例而言,如果获得的参考图像为一张,则从参考图像中获取与第一像素位置对应的像素值,比如如图6(a)中的原始图像(1)图所示,确定原始图像中不满足预设条件的像素亮度的第一像素位置为A区域,则从参考图像即图6(a)中的(2)图中,获取与第一像素位置对应的A1区域的像素值,从而将A1区域的像素值赋予原始图像中对应的A区域的像素值,补偿处理后的原始图像消除了不满足预设条件的像素亮度的A区域。
S230,如果参考图像为多张,则从多个参考图像中获取与第一像素位置对应的像素值的均值,并将均值赋予原始图像中对应的第一像素位置。
具体地,如果参考图像为多张,则从多个参考图像中获取与第一像素位置对应的像素值,并对该多个像素值求取均值,将均值赋予原始图像中对应的第一像素位置。
其中,将多个参考图像中与第一像素位置对应的多个像素均值,赋予原始图像中对应的第一像素位置的实现过程,与上述步骤S220中实现的过程类似,在此不再举例说明。
图8是根据本申请又一个实施例的图像暗角补偿方法的流程图,如图8所示,步骤S130可包括:
S310,从参考图像和原始图像中分别获取同一像素位置的参考像素值和原始像素值。
具体地,从参考图像和原始图像中分别获取同一像素位置的参考像素值和原始像素值,比如,如图6(a)所示,确定原始图像(1)图所示,A区域的像素的原始像素值,并从参考图像即图6(a)中的(2)图中,获取与A区域对应的A1区域的像素的参考像素值。
S320,计算参考像素值和原始像素值的均值,并将均值赋予原始图像中对应的像素位置。
具体地,可对同一像素位置的参考像素值和原始像素值取均值,将该像素的均值赋予原始图像中对应的像素位置,从而原始图像中的不满足预设条件的像素亮度的像素值得到提提高,消除了原始图像中不满足预设条件的像素亮度的角落。
举例而言,如图6(a)所示,将(1)图A区域的像素的原始像素值,与(2)图中与A区域对应的A1区域的像素的参考像素值取均值,从而将该均值赋予原始图像中对应的A区域的像素值,从而补偿处理后的原始图像消除了不满足预设条件的像素亮度的A区域。
综上所述,本申请实施例的图像暗角补偿方法,检测终端设备在初始位置拍摄的原始图像的四个角落中是否具有不满足预设条件的像素亮度,如果检测获知至少一个角落具有不满足预设条件的像素亮度,则根据预设的控制策略和移动距离触发微机电系统将图像传感器移动到一个或多个参考位置拍摄对应的参考图像,并根据参考图像对原始图像中不满 足预设条件的像素亮度进行补偿处理。由此,通过对原始图像中像素亮度较低的角落进行补偿处理,消除了图像中的暗角,提高了图像的质量。
基于以上实施例,应当理解的是,在实际应用中,为了更好地利用图像传感器的分辨率等,使得得到的参考图像的质量更高,在检测获知至少一个角落具有不满足预设条件的像素亮度后,可根据预设的控制策略和移动距离触发微机电系统在图像传感器分辨率的分布情况,确定出上述图像传感器移动的移动距离。
具体地,图9是根据本申请还一个实施例的图像暗角补偿方法的流程图,如图9所示,该方法包括:
S410,检测终端设备在初始位置拍摄的原始图像的四个角落中是否具有不满足预设条件的像素亮度。
具体地,可通过检测终端设备在初始位置拍摄的原始图像的四个角落中是否具有不满足预设条件的像素亮度,以判断原始图像是否可能存在暗角。
S420,如果检测获知至少一个角落具有不满足预设条件的像素亮度,对原始图像中不满足预设条件的像素亮度的角落周围进行测光处理,确定图像传感器的移动方向。
具体地,如果检测获知原始图像至少一个角落具有不满足预设条件的像素亮度,则表明该至少一个角落的像素亮度较暗,可能导致原始图像出现暗角,因而需要移动图像传感器,将图像传感器移动到合适的拍摄参考位置。。
由于针对不同像素亮度的角落,需要的合适的曝光亮度是不同的,因此可以通过对原始图像中不满足预设条件的像素亮度的角落周围进行测光处理,以根据测光处理结果中光线强度与该角落合适的分布情况等,确定出适合对上述一个或者多个角落进行合适曝光的方位,从而确定图像传感器的移动方向。
举例而言,如果检测获知原始图像左上角落具有不满足预设条件的像素亮度,对原始图像中左上角周围进行测光处理,确定光线亮度较大的区域位于该角落的右方,因此可确定图像传感器的移动方向为向右。
S430,获取图像传感器中与水平方向对应的第一分辨率,以及与垂直方向对应的第二分辨率。
S440,根据第一分辨率和第二分辨率确定移动距离。
具体地,当检测原始图像存在不满足预设条件的像素亮度的角落时,为了使得该角落所在区域在参考图像中,以像素较高的形式呈现,需要设置确定图像传感器移动时合适的移动距离。
具体而言,根据具体应用场景的不同,可以采取不同方式确定出图像传感器移动时合适的移动距离:
在本申请的一个实施例中,可获取图像传感器中与水平方向对应的第一分辨率,以及与垂直方向对应的第二分辨率,进而通过对第一分辨率和第二分辨率进行相应的运算处理,确定出图像传感器移动对应的移动距离。
在本实施例中,获取图像传感器的水平方向的第一分辨率w,垂直方向的第二分辨率为h,w大于等于h,则可将
Figure PCTCN2017079490-appb-000001
的值,即第一分辨率和第二分辨率差值的平均值作为图像传感器移动对应的移动距离。
S450,根据预设的控制策略和移动距离,触发微机电系统将图像传感器按照上述移动方向,移动到一个或多个参考位置拍摄对应的参考图像。
举例而言,当检测获知原始图像的右上角具有不满足预设条件的像素亮度,确定图像传感器的移动方向是向左移动,移动距离为图像传感器的第一分辨率和第二分辨率差值的平均值P,则触发微机电系统,将图像传感器向左移动P,以在该参考位置拍摄对应的参考图像。
S460,根据参考图像对原始图像中不满足预设条件的像素亮度进行补偿处理。
本实施例中步骤460的具体实施方式参见上述实施例中的步骤130的实施过程,此处不再赘述。
综上所述,本申请实施例的图像暗角补偿方法,根据获取的图像传感器中与水平方向对应的第一分辨率,以及与垂直方向对应的第二分辨率,并根据第一分辨率和第二分辨率确定移动位置。由此,可使得在检测获知至少一个角落具有不满足预设条件的像素亮度时,微机电系统可以更加合适的移动距离移动图像传感器,使得拍摄的参考图像更加清晰的呈现出原始图像中至少一个角落的图像,有效提高了图像的质量。
为实现上述目的,本申请还提出一种图像暗角补偿装置。图10是根据本申请一个实施例的图像暗角补偿装置的结构示意图。
如图10所示,图像暗角补偿装置可包括:检测模块10、触发模块20和补偿模块30。
其中,检测模块10,用于检测终端设备在初始位置拍摄的原始图像的四个角落中是否具有不满足预设条件的像素亮度。
触发模块20,用于在检测获知至少一个角落具有不满足预设条件的像素亮度时,根据预设的控制策略和移动距离触发微机电系统将图像传感器移动到一个或多个参考位置拍摄对应的参考图像。
在本申请的一个实施例中,在检测获知左上角具有不满足预设条件的像素亮度时,触发模块20根据预设的移动距离,触发微机电系统将图像传感器向左移动到第一参考位置,或向上移动到第二参考位置拍摄对应的参考图像。
在本申请的一个实施例中,在检测获知左下角具有不满足预设条件的像素亮度时,触 发模块20根据预设的移动距离,触发微机电系统将图像传感器向左移动到第一参考位置,或向下移动到第三参考位置拍摄对应的参考图像。
在本申请的一个实施例中,在检测获知右上角具有不满足预设条件的像素亮度时,触发模块20根据预设的移动距离,触发微机电系统将图像传感器向右移动到第四参考位置,或向上移动到第二参考位置拍摄对应的参考图像。
在本申请的一个实施例中,在检测获知右下角具有不满足预设条件的像素亮度时,触发模块20根据预设的移动距离,触发微机电系统将图像传感器向右移动到第四参考位置,或向下移动到第三参考位置拍摄对应的参考图像。
补偿模块30,用于根据参考图像对原始图像中不满足预设条件的像素亮度进行补偿处理。
图11是根据本申请另一个实施例的图像暗角补偿装置的结构示意图,如图11所示,在如图10所示的基础上,补偿模块30可包括确定单元31和第一处理单元32。
其中,确定单元31,用于确定原始图像中不满足预设条件的像素亮度的第一像素位置。
第一处理单元32,用于在参考图像为一张时,从参考图像中获取与第一像素位置对应的像素值,并将像素值赋予原始图像中对应的第一像素位置;
第一处理单元31还用于在参考图像为多张时,从多个参考图像中获取与第一像素位置对应的像素值的均值,并将均值赋予原始图像中对应的第一像素位置。
图12是根据本申请又一个实施例的图像暗角补偿装置的结构示意图,如图12所示,在如图10所示的基础上,补偿模块30可包括获取单元33和第二处理单元34。
其中,获取单元33,用于从参考图像和原始图像中分别获取同一像素位置的参考像素值和原始像素值。
第二处理单元34,用于计算参考像素值和原始像素值的均值,并将均值赋予原始图像中对应的像素位置。
需要说明的是,前述对图像暗角补偿方法实施例的描述,也适用于对本申请实施例的图像暗角补偿装置的描述,其实现原理类似,在此不再赘述。
综上所述,本申请实施例的图像暗角补偿装置,检测终端设备在初始位置拍摄的原始图像的四个角落中是否具有不满足预设条件的像素亮度,如果检测获知至少一个角落具有不满足预设条件的像素亮度,则根据预设的控制策略和移动距离触发微机电系统将图像传感器移动到一个或多个参考位置拍摄对应的参考图像,并根据参考图像对原始图像中不满足预设条件的像素亮度进行补偿处理。由此,通过对原始图像中像素亮度较低的角落进行补偿处理,消除了图像中的暗角,提高了图像的质量。
基于以上实施例,应当理解的是,在实际应用中,为了更好地利用图像传感器的分辨 率等,使得得到的参考图像的质量更高,在检测获知至少一个角落具有不满足预设条件的像素亮度后,可根据预设的控制策略和移动距离触发微机电系统在图像传感器分辨率的分布情况,确定出上述图像传感器移动的移动距离。
图13是根据本申请还一个实施例的图像暗角补偿装置的结构示意图,如图13所示,在如图10所示的基础上,图像暗角补偿装置还可包括获取模块40、第一确定模块50、测光处理模块60和第二确定模块70。
其中,获取模块40,用于获取图像传感器中与水平方向对应的第一分辨率,以及与垂直方向对应的第二分辨率。
第一确定模块50,用于根据第一分辨率和第二分辨率确定移动距离。
测光处理模块60,用于对原始图像中不满足预设条件的像素亮度的角落周围进行测光处理。
第二确定模块70,用于确定图像传感器的移动方向。
需要说明的是,前述对图像暗角补偿方法实施例的描述,也适用于对本申请实施例的图像暗角补偿装置的描述,其实现原理类似,在此不再赘述。
综上所述,本申请实施例的图像暗角补偿装置,根据获取的图像传感器中与水平方向对应的第一分辨率,以及与垂直方向对应的第二分辨率,并根据第一分辨率和第二分辨率确定移动位置。由此,可使得在检测获知至少一个角落具有不满足预设条件的像素亮度时,微机电系统可以更加合适的移动距离移动图像传感器,使得拍摄的参考图像更加清晰的呈现出原始图像中至少一个角落的图像,有效提高了图像的质量。
为了实现上述实施例,本申请还提出了一种终端设备,图14是根据本申请一个实施例的终端设备的结构示意图,如图14所示,该终端设备1000包括:壳体1100和位于壳体1100内的微机电系统1110、图像传感器1120、处理器1130和存储器1140,其中,微机电系统1110控制图像传感器1120移动,处理器1130通过读取存储器1140中存储的可执行程序代码来运行与可执行程序代码对应的程序,以用于执行以下步骤:
检测终端设备在初始位置拍摄的原始图像的四个角落中是否具有不满足预设条件的像素亮度;
如果检测获知至少一个角落具有不满足预设条件的像素亮度,则根据预设的控制策略和移动距离触发微机电系统将图像传感器移动到一个或多个参考位置拍摄对应的参考图像;
根据参考图像对原始图像中不满足预设条件的像素亮度进行补偿处理。
需要说明的是,前述对图像暗角补偿方法实施例的描述,也适用于对本申请实施例的终端设备的描述,其实现原理类似,在此不再赘述。
综上所述,本申请实施例的终端设备,检测终端设备在初始位置拍摄的原始图像的四个角落中是否具有不满足预设条件的像素亮度,如果检测获知至少一个角落具有不满足预设条件的像素亮度,则根据预设的控制策略和移动距离触发微机电系统将图像传感器移动到一个或多个参考位置拍摄对应的参考图像,并根据参考图像对原始图像中不满足预设条件的像素亮度进行补偿处理。由此,通过对原始图像中像素亮度较低的角落进行补偿处理,消除了图像中的暗角,提高了图像的质量。
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。
尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型。

Claims (14)

  1. 一种图像暗角补偿方法,其特征在于,包括以下步骤:
    检测终端设备在初始位置拍摄的原始图像的四个角落中是否具有不满足预设条件的像素亮度;
    如果检测获知至少一个角落具有不满足预设条件的像素亮度,则根据预设的控制策略和移动距离,触发微机电系统将图像传感器移动到一个或多个参考位置拍摄对应的参考图像;
    根据所述参考图像对所述原始图像中不满足预设条件的像素亮度进行补偿处理。
  2. 如权利要求1所述的方法,其特征在于,所述如果检测获知至少一个角落具有不满足预设条件的像素亮度,则根据预设的控制策略和移动距离触发微机电系统将图像传感器移动到一个或多个参考位置拍摄对应的参考图像,包括:
    如果检测获知左上角具有不满足预设条件的像素亮度,则根据预设的移动距离,触发微机电系统将图像传感器向左移动到第一参考位置,或,向上移动到第二参考位置拍摄对应的参考图像;和/或,
    如果检测获知左下角具有不满足预设条件的像素亮度,则根据预设的移动距离,触发微机电系统将图像传感器向左移动到第一参考位置,或,向下移动到第三参考位置拍摄对应的参考图像;和/或,
    如果检测获知右上角具有不满足预设条件的像素亮度,则根据预设的移动距离,触发微机电系统将图像传感器向右移动到第四参考位置,或,向上移动到第二参考位置拍摄对应的参考图像;和/或,
    如果检测获知右下角具有不满足预设条件的像素亮度,则根据预设的移动距离,触发微机电系统将图像传感器向右移动到第四参考位置,或,向下移动到第三参考位置拍摄对应的参考图像。
  3. 如权利要求1或2所述的方法,其特征在于,在所述根据预设的控制策略和移动距离触发微机电系统将图像传感器移动到一个或多个参考位置拍摄对应的参考图像之前,还包括:
    获取所述图像传感器中与水平方向对应的第一分辨率,以及与垂直方向对应的第二分辨率;
    根据所述第一分辨率和所述第二分辨率确定所述移动位置。
  4. 如权利要求1-3任一所述的方法,其特征在于,在所述根据预设的控制策略和移动距离触发微机电系统将图像传感器移动到一个或多个参考位置拍摄对应的参考图像之前, 还包括:
    对所述原始图像中不满足预设条件的像素亮度的角落周围进行测光处理,确定所述图像传感器的移动方向。
  5. 如权利要求1-4任一所述的方法,其特征在于,所述根据所述参考图像对所述原始图像中不满足预设条件的像素亮度进行补偿处理,包括:
    确定所述原始图像中不满足预设条件的像素亮度的第一像素位置;
    如果所述参考图像为一张,则从所述参考图像中获取与所述第一像素位置对应的像素值,并将所述像素值赋予所述原始图像中对应的第一像素位置;
    如果所述参考图像为多张,则从多个所述参考图像中获取与所述第一像素位置对应的像素值的均值,并将所述均值赋予所述原始图像中对应的第一像素位置。
  6. 如权利要求1-5任一所述的方法,其特征在于,所述根据所述参考图像对所述原始图像中不满足预设条件的像素亮度进行补偿处理,包括:
    从所述参考图像和所述原始图像中分别获取同一像素位置的参考像素值和原始像素值;
    计算所述参考像素值和所述原始像素值的均值,并将所述均值赋予所述原始图像中对应的像素位置。
  7. 一种图像暗角补偿装置,其特征在于,包括:
    检测模块,用于检测终端设备在初始位置拍摄的原始图像的四个角落中是否具有不满足预设条件的像素亮度;
    触发模块,用于在检测获知至少一个角落具有不满足预设条件的像素亮度时,根据预设的控制策略和移动距离触发微机电系统将图像传感器移动到一个或多个参考位置拍摄对应的参考图像;
    补偿模块,用于根据所述参考图像对所述原始图像中不满足预设条件的像素亮度进行补偿处理。
  8. 如权利要求7所述的装置,其特征在于,所述触发模块用于:
    在检测获知左上角具有不满足预设条件的像素亮度时,根据预设的移动距离,触发微机电系统将图像传感器向左移动到第一参考位置,或,向上移动到第二参考位置拍摄对应的参考图像;和/或,
    在检测获知左下角具有不满足预设条件的像素亮度时,根据预设的移动距离,触发微机电系统将图像传感器向左移动到第一参考位置,或,向下移动到第三参考位置拍摄对应的参考图像;和/或,
    在检测获知右上角具有不满足预设条件的像素亮度时,根据预设的移动距离,触发微 机电系统将图像传感器向右移动到第四参考位置,或,向上移动到第二参考位置拍摄对应的参考图像;和/或,
    在检测获知右下角具有不满足预设条件的像素亮度时,根据预设的移动距离,触发微机电系统将图像传感器向右移动到第四参考位置,或,向下移动到第三参考位置拍摄对应的参考图像。
  9. 如权利要求7或8所述的装置,其特征在于,还包括:
    获取模块,用于获取所述图像传感器中与水平方向对应的第一分辨率,以及与垂直方向对应的第二分辨率;
    第一确定模块,用于根据所述第一分辨率和所述第二分辨率确定所述移动距离。
  10. 如权利要求7-9任一所述的装置,其特征在于,还包括:
    测光处理模块,用于对所述原始图像中不满足预设条件的像素亮度的角落周围进行测光处理;
    第二确定模块,用于确定所述图像传感器的移动方向。
  11. 如权利要求7-10任一所述的装置,其特征在于,所述补偿模块包括:
    确定单元,用于确定所述原始图像中不满足预设条件的像素亮度的第一像素位置;
    第一处理单元,用于在所述参考图像为一张时,从所述参考图像中获取与所述第一像素位置对应的像素值,并将所述像素值赋予所述原始图像中对应的第一像素位置;
    所述第一处理单元还用于在所述参考图像为多张时,从多个所述参考图像中获取与所述第一像素位置对应的像素值的均值,并将所述均值赋予所述原始图像中对应的第一像素位置。
  12. 如权利要求7-11任一所述的装置,其特征在于,所述补偿模块包括:
    获取单元,用于从所述参考图像和所述原始图像中分别获取同一像素位置的参考像素值和原始像素值;
    第二处理单元,用于计算所述参考像素值和所述原始像素值的均值,并将所述均值赋予所述原始图像中对应的像素位置。
  13. 一种终端设备,其特征在于,包括:以下一个或多个组件:壳体和位于所述壳体内的微机电系统、图像传感器、处理器和存储器,其中,所述微机电系统控制所述图像传感器移动,所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行以下步骤:
    检测终端设备在初始位置拍摄的原始图像的四个角落中是否具有不满足预设条件的像素亮度;
    如果检测获知至少一个角落具有不满足预设条件的像素亮度,则根据预设的控制策略 和移动距离触发微机电系统将图像传感器移动到一个或多个参考位置拍摄对应的参考图像;
    根据所述参考图像对所述原始图像中不满足预设条件的像素亮度进行补偿处理。
  14. 一种非易失性计算机存储介质,其特征在于,所述计算机存储介质存储有一个或者多个程序,当所述一个或者多个程序被一个设备执行时,使得所述设备执行以下步骤:
    检测终端设备在初始位置拍摄的原始图像的四个角落中是否具有不满足预设条件的像素亮度;
    如果检测获知至少一个角落具有不满足预设条件的像素亮度,则根据预设的控制策略和移动距离,触发微机电系统将图像传感器移动到一个或多个参考位置拍摄对应的参考图像;
    根据所述参考图像对所述原始图像中不满足预设条件的像素亮度进行补偿处理。
PCT/CN2017/079490 2016-07-29 2017-04-05 图像暗角补偿方法、装置和终端设备 Ceased WO2018018929A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610623629.0 2016-07-29
CN201610623629.0A CN106161981B (zh) 2016-07-29 2016-07-29 图像暗角补偿方法、装置和终端设备

Publications (1)

Publication Number Publication Date
WO2018018929A1 true WO2018018929A1 (zh) 2018-02-01

Family

ID=57328966

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/079490 Ceased WO2018018929A1 (zh) 2016-07-29 2017-04-05 图像暗角补偿方法、装置和终端设备

Country Status (2)

Country Link
CN (2) CN107295268A (zh)
WO (1) WO2018018929A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112653831A (zh) * 2019-10-12 2021-04-13 青岛海信移动通信技术股份有限公司 照相终端及拍照控制方法
CN115100219A (zh) * 2022-06-29 2022-09-23 杭州涂鸦信息技术有限公司 图像裁剪方法、装置、系统、电子装置和存储介质

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107295268A (zh) * 2016-07-29 2017-10-24 广东欧珀移动通信有限公司 图像暗角补偿方法、装置和终端设备
CN107231525A (zh) * 2017-05-31 2017-10-03 深圳可思美科技有限公司 图像暗角自适应补偿方法和装置
US10540942B2 (en) 2017-08-25 2020-01-21 HKC Corporation Limited Optimization method and pre-stage device for brightness compensation
CN107331347B (zh) * 2017-08-25 2019-12-31 惠科股份有限公司 亮度补偿的优化方式及优化设备
CN108650471B (zh) * 2018-04-24 2020-08-04 信利光电股份有限公司 一种鱼眼摄像头的lsc补偿方法及装置、可读存储介质
CN111669572A (zh) * 2019-03-05 2020-09-15 Oppo广东移动通信有限公司 摄像头模组的检测方法、装置、介质及电子设备
CN112118370A (zh) * 2019-06-20 2020-12-22 浙江宇视科技有限公司 一种暗角缺陷消除方法、装置、设备和存储介质
CN114422676A (zh) * 2022-01-17 2022-04-29 广州市奥威亚电子科技有限公司 摄像头模组的参数记录方法、暗角调整方法及装置

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090021632A1 (en) * 2007-07-16 2009-01-22 Micron Technology, Inc. Lens correction logic for image sensors
CN104363389A (zh) * 2014-11-11 2015-02-18 广东中星电子有限公司 一种镜头暗角补偿方法和系统
CN105022204A (zh) * 2015-08-07 2015-11-04 深圳市世尊科技有限公司 一种移动终端用摄像头模组和移动终端
CN105100578A (zh) * 2014-05-05 2015-11-25 南昌欧菲光电技术有限公司 图像处理系统及其图像处理方法
CN105592270A (zh) * 2015-12-18 2016-05-18 广东欧珀移动通信有限公司 图像亮度补偿方法、装置及终端设备
CN105681680A (zh) * 2016-02-22 2016-06-15 信利光电股份有限公司 一种图像暗角校正方法、装置及系统
CN106161981A (zh) * 2016-07-29 2016-11-23 广东欧珀移动通信有限公司 图像暗角补偿方法、装置和终端设备

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3539394B2 (ja) * 2001-03-26 2004-07-07 ミノルタ株式会社 画像処理装置、プログラムおよび記録媒体
CN1856028A (zh) * 2005-04-28 2006-11-01 明基电通股份有限公司 摄影装置以及摄影装置中补偿图像画面的补偿方法
CN101841631B (zh) * 2009-03-20 2011-09-21 微星科技股份有限公司 暗部曝光补偿方法及应用该方法的图像处理装置
US8199225B2 (en) * 2009-12-31 2012-06-12 Omnivision Technologies, Inc. Generating column offset corrections for image sensors
KR101836432B1 (ko) * 2011-12-16 2018-03-12 삼성전자주식회사 촬상장치, 이미지 보정 방법 및 컴퓨터 판독가능 기록매체
US10708526B2 (en) * 2015-04-22 2020-07-07 Motorola Mobility Llc Method and apparatus for determining lens shading correction for a multiple camera device with various fields of view

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090021632A1 (en) * 2007-07-16 2009-01-22 Micron Technology, Inc. Lens correction logic for image sensors
CN105100578A (zh) * 2014-05-05 2015-11-25 南昌欧菲光电技术有限公司 图像处理系统及其图像处理方法
CN104363389A (zh) * 2014-11-11 2015-02-18 广东中星电子有限公司 一种镜头暗角补偿方法和系统
CN105022204A (zh) * 2015-08-07 2015-11-04 深圳市世尊科技有限公司 一种移动终端用摄像头模组和移动终端
CN105592270A (zh) * 2015-12-18 2016-05-18 广东欧珀移动通信有限公司 图像亮度补偿方法、装置及终端设备
CN105681680A (zh) * 2016-02-22 2016-06-15 信利光电股份有限公司 一种图像暗角校正方法、装置及系统
CN106161981A (zh) * 2016-07-29 2016-11-23 广东欧珀移动通信有限公司 图像暗角补偿方法、装置和终端设备

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112653831A (zh) * 2019-10-12 2021-04-13 青岛海信移动通信技术股份有限公司 照相终端及拍照控制方法
CN115100219A (zh) * 2022-06-29 2022-09-23 杭州涂鸦信息技术有限公司 图像裁剪方法、装置、系统、电子装置和存储介质

Also Published As

Publication number Publication date
CN106161981A (zh) 2016-11-23
CN106161981B (zh) 2017-08-29
CN107295268A (zh) 2017-10-24

Similar Documents

Publication Publication Date Title
WO2018018929A1 (zh) 图像暗角补偿方法、装置和终端设备
KR102661185B1 (ko) 전자 장치 및 그의 이미지 촬영 방법
CN106161979B (zh) 高动态范围图像拍摄方法、装置和终端设备
JP2019186911A (ja) 画像処理装置および画像処理方法、ならびに撮像装置
CN110462507A (zh) 抖动校正装置、可换镜头及摄像装置
CN101782710A (zh) 抖动校正单元和摄像设备
CN106101567B (zh) 拍摄光线调整方法、装置和移动终端
CN106303272B (zh) 控制方法及控制装置
CN109844632A (zh) 抖动校正装置、摄像装置及抖动校正方法
JP7131541B2 (ja) 画像処理装置、画像処理方法および画像処理プログラム
JP5800600B2 (ja) 撮像装置、撮像方法およびプログラム
JP2015215553A (ja) 撮像装置
CN111835980B (zh) 摄像设备及其控制方法以及存储介质
JP2012063664A (ja) 測光装置及び電子カメラ
JP4597887B2 (ja) 撮影装置
US11956538B2 (en) Image capturing apparatus that performs blur correction and method of controlling same
KR102940109B1 (ko) 카메라를 포함하는 전자 장치 및 그 제어 방법
JP4910720B2 (ja) カメラ
CN106506978A (zh) 图像处理方法、装置及电子设备
JP6577737B2 (ja) 撮像装置及びその制御方法、プログラム並びに記憶媒体
JP2018164150A (ja) 撮像装置、画像処理装置、及び、画像処理システム
JP6799411B2 (ja) 焦点検出装置及び方法、及び撮像装置
JP2026046359A (ja) 撮像装置及びその制御方法とプログラム
JP2016208204A (ja) 画像撮影方法および画像撮影装置、プログラム
JP2018056650A (ja) 光学装置、撮像装置および制御方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17833235

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17833235

Country of ref document: EP

Kind code of ref document: A1