[go: up one dir, main page]

CN113947534A - Image correction method and device - Google Patents

Image correction method and device Download PDF

Info

Publication number
CN113947534A
CN113947534A CN202010690402.4A CN202010690402A CN113947534A CN 113947534 A CN113947534 A CN 113947534A CN 202010690402 A CN202010690402 A CN 202010690402A CN 113947534 A CN113947534 A CN 113947534A
Authority
CN
China
Prior art keywords
image
corrected
specific
blocks
reference images
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
CN202010690402.4A
Other languages
Chinese (zh)
Inventor
李佳桦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Coretronic Corp
Original Assignee
Coretronic Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Coretronic Corp filed Critical Coretronic Corp
Priority to CN202010690402.4A priority Critical patent/CN113947534A/en
Priority to TW109125255A priority patent/TWI754334B/en
Publication of CN113947534A publication Critical patent/CN113947534A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/77Retouching; Inpainting; Scratch removal
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/50Image enhancement or restoration using two or more images, e.g. averaging or subtraction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/66Analysis of geometric attributes of image moments or centre of gravity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20021Dividing image into blocks, subimages or windows

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Geometry (AREA)
  • Image Processing (AREA)

Abstract

The invention provides an image correction method and device. The method comprises the following steps: obtaining a plurality of reference images related to a specific object; estimating the area average brightness of the central area of each reference image to generate a target image; obtaining a specific reference image in the reference images, wherein the specific reference image comprises a specific image area, and the specific image area is divided into a plurality of image blocks; estimating the block average brightness of each image block to generate an initial image; a corrected image is generated based on the target image and the initial image. The image correction method and device of the invention provide an image correction mechanism capable of avoiding lens shadow and uneven illumination.

Description

Image correction method and device
[ technical field ] A method for producing a semiconductor device
The present invention relates to image processing technologies, and more particularly, to an image correction method and apparatus.
[ background of the invention ]
Generally, digital camera imaging often encounters Lens shading (Lens shading) and Non-uniform illumination (Non-uniform illumination). The lens shading is also called Vignetting (Vignetting), which means that the light flux of the lens decreases from the center to the periphery due to the optical characteristics of the lens, so that the image shows a phenomenon that the central area is bright and the image gradually darkens toward the periphery, as shown in fig. 1A. The non-uniform illumination is the phenomenon of non-uniform image brightness caused by poor illumination of the object, interference of ambient light, or non-uniform self-illumination of the object, as shown in fig. 1B.
In general photography, the above phenomena can be reduced by moving the position, adjusting the aperture and focal length of the camera, or even selecting the lens to be replaced, but if the image splicing or the automatic optical detection of the fixed camera position is desired, some lens shadows or uneven illumination phenomena may indirectly affect the subsequent application of the image.
Therefore, it is an important issue for those skilled in the art to design an image correction mechanism capable of avoiding lens shading and uneven illumination.
[ summary of the invention ]
Accordingly, the present invention is directed to an image correction method and apparatus, which can solve the above problems.
The invention provides an image correction method, which comprises the following steps: obtaining a plurality of reference images related to a specific object, wherein the specific object is divided into a plurality of object blocks, and the central area of each reference image corresponds to the object block; estimating a region average brightness of the central region of each reference image, and generating a target image according to the region average brightness of the central region of each reference image; obtaining a specific reference image in the reference images, wherein the specific reference image comprises a specific image area, and the specific image area is divided into a plurality of image blocks; estimating a block average brightness of each image block, and generating an initial image according to the block average brightness of each image block; a corrected image is generated based on the target image and the initial image.
The invention provides an image correction device, which comprises an image capturing device, a storage circuit and a processor. The image capturing device is used for acquiring a plurality of reference images related to a specific object. The memory circuit stores a plurality of modules. The processor is coupled to the storage circuit and the image capturing device, accesses the module, and receives the reference image from the image capturing device, wherein the specific object is divided into a plurality of object blocks, the central area of each reference image corresponds to the object block, the average brightness of a region of the central area of each reference image is estimated, a target image is generated according to the average brightness of the region of the central area of each reference image, a specific reference image in the reference images is obtained, the specific reference image comprises a specific image region, the specific image region is divided into a plurality of image blocks, the average brightness of a region of each image block is estimated, an initial image is generated according to the average brightness of the region of each image block, and a correction image is generated based on the target image and the initial image.
Based on the above, the corrected image generated by the image correction method and apparatus of the present invention can be used to perform image correction on the to-be-corrected image in which the other shooting environments, the shooting parameters, and the shooting distances are all the same, so as to improve the problems of lens shading and uneven illumination existing in the to-be-corrected image.
[ description of the drawings ]
Fig. 1A is an image with a lens shading problem.
FIG. 1B is an image known to have non-uniform illumination problems.
Fig. 2 is a schematic diagram illustrating an image correction apparatus according to an embodiment of the present invention.
FIG. 3 is a flowchart illustrating an image correction method according to an embodiment of the invention.
FIG. 4 is a schematic diagram illustrating an embodiment of obtaining a reference image of a specific object.
FIG. 5A is a schematic diagram illustrating obtaining a reference image according to an embodiment of the invention.
FIG. 5B is a schematic diagram of generating a target image according to the diagram of FIG. 5A.
FIG. 6A is a specific image area divided into a plurality of image blocks according to the illustration in FIG. 5B.
FIG. 6B is a schematic diagram of generating an initial image according to the diagram of FIG. 6A.
FIG. 7 is a schematic diagram of generating a corrected image according to the diagrams of FIG. 5B and FIG. 6B.
FIG. 8 is a schematic diagram of image correction according to the diagram of FIG. 7.
[ notation ] to show
200 image correction device
202 memory circuit
204 processor
206 image taking device
400 specific object
401,413 object blocks
499 movable platform
501,513 reference image
501a,513a central region
513b specific image area
First region luminance distribution map 530
531,543 first luminance Block
601,613 image block
630 second region luminance distribution map
631,643 second luminance Block
M1 target image
M2 initial image
M3 corrected image
S310-S350 step
TM image to be corrected
TM' brightness correction image.
[ detailed description ] embodiments
The foregoing and other technical and scientific aspects, features and utilities of the present invention will be apparent from the following detailed description of a preferred embodiment, taken in conjunction with the accompanying drawings. Directional terms as referred to in the following examples, for example: up, down, left, right, front or rear, etc., are simply directions with reference to the drawings. Accordingly, the directional terminology is used for purposes of illustration and is in no way limiting.
Fig. 2 is a schematic view of an image correction apparatus according to an embodiment of the present invention. As shown in fig. 2, the image calibration apparatus 200 includes a memory circuit 202, a processor 204 and an image capturing device 206. In various embodiments, the Memory circuit 202 is, for example, any type of fixed or removable Random Access Memory (RAM), Read-Only Memory (ROM), Flash Memory (Flash Memory), hard disk, or the like, or a combination thereof, and can be used to record a plurality of program codes or modules.
The processor 204 is coupled to the memory Circuit 202 and may be a general purpose processor, a special purpose processor, a conventional processor, a digital signal processor, a plurality of microprocessors (microprocessors), one or more microprocessors in conjunction with a digital signal processor core, a controller, a microcontroller, an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), any other type of Integrated Circuit, a state Machine, an Advanced RISC Machine (ARM) based processor, and the like.
The image capturing device 206 is coupled to the processor 204, and may be any image capturing device having a Charge Coupled Device (CCD) lens, a Complementary Metal Oxide Semiconductor (CMOS) lens, but is not limited thereto.
In an embodiment of the present invention, the processor 204 can access the modules and program codes recorded in the memory circuit 202 to implement the image correction method of the present invention, which is described in detail below.
Fig. 3 is a flowchart illustrating an image correction method according to an embodiment of the invention. The method of the present embodiment can be executed by the image correction apparatus 200 of fig. 2, and details of steps in fig. 3 will be described below with reference to components shown in fig. 2.
First, in step S310, the processor 204 may obtain a plurality of reference images associated with a specific object, wherein the specific object is divided into a plurality of object blocks, and a central area of each reference image corresponds to each object block. In various embodiments, the designer may select different objects as the specific object according to the requirement, and for convenience of describing the concept of the present invention, it is assumed that the specific object is a display panel provided with a backlight module, but the present invention is not limited thereto. In this case, the specific object is an object that emits self-light, which may cause the problems of lens shading and uneven brightness during image capturing.
Please refer to fig. 4, which is a diagram illustrating a method for obtaining a reference image of a specific object according to an embodiment of the present invention. In fig. 4, the image capturing device 206 is, for example, a camera, which can be used to capture a specific object 400 (e.g., a display panel) to obtain a plurality of reference images. In one embodiment, the image capturing device 206 is used for capturing reference images of the specific object 400, and thus the capturing environment, the capturing parameters, and the capturing distance are fixed.
In one embodiment, the specific object 400 may be placed on a movable platform 499, and this movable platform 499 may be controlled to move the position of the specific object 400. As shown in fig. 4, the specific object 400 can be classified into n x m (e.g., 5x 5) object blocks corresponding to the reference images one-to-one, and each of the reference images is captured with one of the object blocks as a center, for example.
Specifically, taking the object block 401 as an example, when the image capturing device 206 is used for obtaining a reference image corresponding to the object block 401, the movable platform 499 may move the specific object 400 such that the object block 401 is moved to a central area within the image capturing range of the image capturing device 206 (the size of the central area may be matched to the size of the object block 401). Then, the image capturing device 206 captures the specific object 400 to obtain a reference image corresponding to the object block 401. In other words, in the reference image corresponding to the object block 401, the central area corresponds to the object block 401.
Taking the object block 413 as an example, when the image capturing device 206 is used for obtaining a reference image corresponding to the object block 413, the movable platform 499 may move the specific object 400 such that the object block 413 is moved to a central area within an image capturing range of the image capturing device 206 (the size of the central area may be matched to the size of the object block 413). Then, the image capturing device 206 captures the specific object 400 to obtain a reference image corresponding to the object block 413. In other words, in the reference image corresponding to the object region 413, the central area corresponds to the object region 413.
Based on the above teachings, the image capturing device 206 can obtain the reference image corresponding to each object block. Taking fig. 4 as an example, the image capturing device 206 can obtain 25 reference images corresponding to the 5 × 5 object blocks respectively. In other embodiments, the designer can select the desired n and m values as required to divide the specific object 410 into the desired number of object blocks. In one embodiment, n and m may be both odd numbers, so that a central object block (e.g., object block 413) may exist in the obtained specific block.
In other embodiments, the processor 204 may also obtain a reference image of the specific object 400 captured by other image capturing devices, but is not limited thereto. In addition, in some embodiments, after the reference images are obtained, the processor 204 may further eliminate temporal noise in each reference image to improve the subsequent image processing result.
For the understanding of the concept of the present invention, the following description is made with reference to FIG. 5A. Fig. 5A is a schematic diagram illustrating a reference image acquisition according to an embodiment of the invention. In fig. 5A, it is assumed that 5 × 5 reference images are obtained by capturing the specific object 400 by the image capturing device 206 in fig. 3. In other words, the central areas of the 25 reference images shown in fig. 5A correspond to the 25 object blocks in fig. 4 one-to-one.
Taking the reference image 501 as an example, the image capturing device 206 takes the object block 401 as the central area 501 a. Also, as shown in fig. 5A, the relative position of the reference image 501 in all the reference images is the same as the relative position of the object block 401 in all the object blocks (i.e., both are located at the top left corner). Taking the reference image 513 as an example, the image capturing device 206 takes the object block 413 as the central area 513 a. Also, as shown in fig. 5A, the relative position of the reference image 513 in the whole reference image is the same as the relative position of the object block 413 in the whole object block (i.e., both are located at the center). Accordingly, those skilled in the art should understand the manner of obtaining the remaining reference images, which is not described herein. Further, it should be understood that the rectangular outer frame of the central region in each reference image is illustrated only as a visual aid, and the illustrated rectangular outer frame does not actually exist in the reference image.
Thereafter, in step S320, the processor 204 may estimate the area average brightness of the central area of each reference image, and generate the target image according to the area average brightness of the central area of each reference image. For the understanding of the concept of the present invention, the following description is made with reference to FIG. 5B.
Please refer to fig. 5B, which is a schematic diagram of generating a target image according to fig. 5A. In fig. 5B, the processor 204 may configure the local average luminance of the central region of each reference image into a first local luminance distribution map 530 according to the relative position of each reference image, wherein the first local luminance distribution map 530 may include a plurality of first luminance blocks, and each first luminance block may correspond to the local average luminance of the central region of each reference image.
Taking the reference image 501 of fig. 5B as an example, the processor 204 may estimate the area average luminance (e.g., the luminance average of each pixel in the central area 501 a) of the central area 501a of the reference image 501, and then represent the area average luminance by the first luminance block 531. Taking the reference image 513 of fig. 5B as an example, the processor 204 may estimate a local average luminance (e.g., an average luminance of each pixel in the central region 513 a) of the central region 513a of the reference image 513, and represent the local average luminance by the first luminance block 543. Accordingly, those skilled in the art should understand how to obtain other first local luminance blocks in the first local luminance distribution graph 530, and the details are not repeated herein.
The processor 204 may then perform a first interpolation algorithm on the first region luminance distribution map 530 to generate a target image M1, wherein the size of the target image M1 is the same as the specific region in the reference image 513, which is the remaining region of the image after the black border is removed. In various embodiments, the first interpolation algorithm is, for example, a cubic interpolation algorithm or a linear interpolation algorithm, but may not be limited thereto.
Next, in step S330, the processor 204 may obtain a specific reference image of the reference images, wherein the specific reference image may include a specific image area, and the specific image area may be divided into a plurality of image blocks. In one embodiment, the specific reference image may be assumed to be captured by the image capturing device 206 with the central object block (i.e., the object block 413) as the center. In other words, the specific reference image is the reference image 513 in fig. 5B, but the invention is not limited thereto. In other embodiments, the designer may select other reference images as the specific reference image according to the requirement.
Referring to fig. 6A, a specific image area divided into a plurality of image blocks according to the illustration in fig. 5B is shown. In the present embodiment, the specific image area 513b included in the specific reference image (i.e. the reference image 513) is, for example, a bright area in the specific reference image, i.e. a remaining area after removing a black border in the reference image 513, but the invention is not limited thereto. Thereafter, the specific image area 513b can be divided into axb image blocks according to the requirement of the designer. In fig. 6A, the specific image area 513b can be divided into 5 × 5 image blocks (e.g. the image block 601 located at the top left corner and the image block 613 located at the middle), but the invention is not limited thereto. In some embodiments, a, b may both be odd.
Then, in step S340, the processor 204 may estimate the block average luminance of each image block and generate an initial image according to the block average luminance of each image block.
Please refer to fig. 6B, which is a schematic diagram illustrating an initial image generated according to fig. 6A. In fig. 6B, the processor 204 may configure the block average luminance of each image block into a second local luminance distribution map 630 according to the relative position of each image block in the specific image region 513B, wherein the second local luminance distribution map 630 includes a plurality of second luminance blocks, and each second luminance block corresponds to the block average luminance of each image block.
Taking the image block 601 in fig. 6B as an example, the processor 204 may estimate the block average luminance (e.g., the luminance average of each pixel in the image block 601) of the image block 601, and then represent the block average luminance as the second luminance block 631. Taking the image block 613 of fig. 6B as an example, the processor 204 may estimate a block average luminance (e.g., an average luminance of each pixel in the image block 613) of the image block 613, and represent the block average luminance as the second luminance block 643. Accordingly, those skilled in the art should understand how to obtain other second local luminance blocks in the second local luminance distribution chart 630, and the details are not repeated herein.
Thereafter, the processor 204 may perform a second interpolation algorithm on the second region intensity distribution map 630 to generate an initial image M2, wherein the size of the initial image M2 is the same as the specific region 513b in the reference image 513. In various embodiments, the second interpolation algorithm is, for example, a cubic interpolation algorithm or a linear interpolation algorithm, but may not be limited thereto.
On the other hand, the order of steps S320 and S330 to S340 is not limited in the image correction method, in other words, steps S330 to S340 may be executed first, and then step S320 may be executed.
After obtaining the target image M1 and the initial image M2 according to steps S320 and S340, the processor 204 may generate a corrected image based on the target image M1 and the initial image M2 in step S350.
Fig. 7 is a schematic diagram of generating a corrected image according to fig. 5B and fig. 6B. In the present embodiment, the processor 204 may divide the target image M1 by the initial image M2 to generate a corrected image M3. In one embodiment, the target image M1 and the initial image M2 are each a grayscale image, wherein the target image M1 includes a plurality of first pixels, the initial image M2 includes a plurality of second pixels, and the first pixels correspond to the second pixels one-to-one. In addition, the corrected image M3 may include a plurality of third pixels. In this case, the processor 204 may divide the gray-scale value of each first pixel by the corresponding gray-scale value of each second pixel to generate each third pixel in the corrected image M3, but the invention is not limited thereto.
Therefore, the corrected image M3 obtained by the above teaching can be used for performing image correction operation on other images to be corrected. Please refer to fig. 8, which is a schematic diagram illustrating image correction according to fig. 7. In the present embodiment, it is assumed that the image to be corrected TM is a specific image area of an image captured by an object (e.g., another display panel) similar to the specific object 400, and the related capturing environment and capturing parameters are also the same as the capturing environment and capturing parameters when the image capturing device 206 captures the specific object 400.
As shown in fig. 8, the image TM to be corrected has lens shading and uneven illumination. In this case, the processor 204 may correct the image to be corrected TM into the luminance corrected image TM' based on the corrected image M3. In one embodiment, the processor 204 may multiply the corrected image M3 by the image to be corrected TM to generate a luminance corrected image TM'. For example, the processor 204 may generate the luminance calibration image TM' by point-to-point multiplying the calibration image M3 and the image to be calibrated TM.
As can be seen from fig. 8, the problems of lens shading and uneven illumination in the luminance corrected image TM' are improved to some extent compared to the image TM to be corrected.
In some embodiments, after the processor 204 performs steps S310 to S350 to obtain the corrected image M3, the processor 204 may further obtain a plurality of other reference images associated with another specific object, and generate another corrected image based on the other reference images, wherein the shooting environment of the other specific object is the same as the shooting environment of the specific object 400. In other words, after performing steps S310 to S350 based on the specific object 400 to obtain the corrected image M3, the processor 204 may also perform steps S310 to S350 based on another specific object to obtain another corrected image. Thereafter, the processor 204 may generate an average corrected image based on the corrected image M3 and the other corrected image. Therefore, the obtained average corrected image can be more widely used, thereby being beneficial to further improving the result of image correction. Then, the processor 204 may obtain an image to be corrected (e.g., the image to be corrected TM), and correct the image to be corrected into a corresponding luminance corrected image based on the average corrected image.
In other embodiments, the processor 204 may further modify the average corrected image to obtain a more objective and general average corrected image after performing steps S310 to S350 to obtain the corresponding corrected image based on other specific objects, but the invention is not limited thereto.
In summary, the image correction method and apparatus provided by the present invention can complete the correction of lens shading and uneven illumination without special equipment or illumination conditions, and the operation process is simple and easy to implement, and the operation architecture is easy to implement, so that the method and apparatus are suitable for being used in the situation where the shooting parameters and the shooting environment are fixed and the property of the specific object to be measured is fixed.
The above description is only a preferred embodiment of the present invention, and should not be taken as limiting the scope of the invention, which is defined by the appended claims and their equivalents, and all changes and modifications that are within the scope of the invention are therefore intended to be covered by the claims. Furthermore, it is not necessary for any embodiment or claim of the invention to achieve all of the objects or advantages or features disclosed herein. In addition, the abstract and the title of the invention are provided for assisting the search of patent documents and are not intended to limit the scope of the invention. In addition, the terms "first", "second", and the like in the description or the claims are only used for naming images (images) or distinguishing different embodiments or ranges, and are not used for limiting the upper limit or the lower limit of the number of components.

Claims (24)

1.一种影像校正方法,其特征在于,所述方法包括:1. An image correction method, wherein the method comprises: 取得关联于特定物体的多个参考影像,其中所述特定物体被区分为多个物体区块,且各个所述参考影像的中央区域各自对应于所述多个物体区块;obtaining a plurality of reference images associated with a specific object, wherein the specific object is divided into a plurality of object blocks, and a central area of each of the reference images corresponds to the plurality of object blocks; 估计各个所述参考影像的所述中央区域的区域平均亮度,并依据各个所述参考影像的所述中央区域的所述区域平均亮度产生目标影像;estimating the regional average brightness of the central region of each of the reference images, and generating a target image according to the regional average brightness of the central region of each of the reference images; 取得所述多个参考影像中的特定参考影像,其中所述特定参考影像包括特定影像区域,且所述特定影像区域被区分为多个影像区块;obtaining a specific reference image among the plurality of reference images, wherein the specific reference image includes a specific image area, and the specific image area is divided into a plurality of image blocks; 估计各个所述影像区块的区块平均亮度,并依据各个所述影像区块的所述区块平均亮度产生初始影像;estimating the block average brightness of each of the image blocks, and generating an initial image according to the block average brightness of each of the image blocks; 基于所述目标影像及所述初始影像产生校正影像。A corrected image is generated based on the target image and the initial image. 2.根据权利要求1所述的方法,其特征在于,所述多个物体区块包括第一物体区块,所述多个参考影像包括对应于所述第一物体区块的第一参考影像,所述第一参考影像由取像装置以所述第一物体区块作为中心而拍摄,且所述取像装置拍摄各个所述参考影像的拍摄环境、拍摄参数及拍摄距离皆相同。2. The method of claim 1, wherein the plurality of object blocks comprises a first object block, and the plurality of reference images comprises a first reference image corresponding to the first object block , the first reference image is captured by the imaging device with the first object block as the center, and the imaging device captures each of the reference images in the same shooting environment, shooting parameters and shooting distance. 3.根据权利要求1所述的方法,其特征在于,所述多个物体区块包括中央物体区块,且所述特定参考影像由取像装置以所述中央物体区块作为中心而拍摄。3 . The method of claim 1 , wherein the plurality of object blocks comprises a central object block, and the specific reference image is captured by an imaging device with the central object block as a center. 4 . 4.根据权利要求1所述的方法,其特征在于,所述特定影像区域为所述特定参考影像中的亮光区域。4 . The method of claim 1 , wherein the specific image area is a bright area in the specific reference image. 5 . 5.根据权利要求1所述的方法,其特征在于,依据各个所述参考影像的所述中央区域的所述区域平均亮度产生所述目标影像的步骤包括:5. The method according to claim 1, wherein the step of generating the target image according to the regional average brightness of the central region of each of the reference images comprises: 依据各个所述参考影像的相对位置将各个所述参考影像的所述中央区域的所述区域平均亮度配置为第一区域亮度分布图,其中所述第一区域亮度分布图包括多个第一亮度区块,且各个所述第一亮度区块对应于各个所述参考影像的所述中央区域的所述区域平均亮度;according to the relative position of each of the reference images, the regional average brightness of the central region of each of the reference images is configured as a first regional brightness distribution map, wherein the first regional brightness distribution map includes a plurality of first brightness blocks, and each of the first luminance blocks corresponds to the regional average luminance of the central region of each of the reference images; 对所述第一区域亮度分布图执行第一内插算法,以产生所述目标影像,其中所述目标影像的尺寸与所述特定参考影像的所述特定影像区域相同。A first interpolation algorithm is performed on the first region luminance distribution map to generate the target image, wherein the size of the target image is the same as the specific image region of the specific reference image. 6.根据权利要求1所述的方法,其特征在于,依据各个所述影像区块的所述区块平均亮度产生所述初始影像的步骤包括:6. The method of claim 1, wherein the step of generating the initial image according to the block average brightness of each of the image blocks comprises: 依据各个所述影像区块的相对位置将各个所述影像区块的所述区块平均亮度配置为第二区域亮度分布图,其中所述第二区域亮度分布图包括多个第二亮度区块,且各个所述第二亮度区块对应于各个所述影像区块的所述区块平均亮度;According to the relative position of each of the image blocks, the block average brightness of each of the image blocks is configured as a second regional brightness distribution map, wherein the second regional brightness distribution map includes a plurality of second brightness blocks , and each of the second luminance blocks corresponds to the block average luminance of each of the image blocks; 对所述第二区域亮度分布图执行第二内插算法,以产生所述初始影像,其中所述初始影像的尺寸与所述特定参考影像的所述特定影像区域相同。A second interpolation algorithm is performed on the second region luminance distribution map to generate the initial image, wherein the size of the initial image is the same as the specific image region of the specific reference image. 7.根据权利要求1所述的方法,其特征在于,基于所述目标影像及所述初始影像产生所述校正影像的步骤包括:7. The method of claim 1, wherein the step of generating the corrected image based on the target image and the initial image comprises: 以所述目标影像除以所述初始影像以产生所述校正影像。The target image is divided by the initial image to generate the corrected image. 8.根据权利要求7所述的方法,其特征在于,所述目标影像及所述初始影像各自为灰阶影像,所述目标影像包括多个第一像素,所述初始影像包括多个第二像素,所述多个第一像素一对一地对应于所述多个第二像素,所述校正影像包括多个第三像素,且以所述目标影像除以所述初始影像以产生所述校正影像的步骤包括:8 . The method of claim 7 , wherein each of the target image and the initial image is a grayscale image, the target image includes a plurality of first pixels, and the initial image includes a plurality of second pixels 8 . pixels, the plurality of first pixels correspond one-to-one with the plurality of second pixels, the corrected image includes a plurality of third pixels, and the target image is divided by the initial image to generate the The steps to correct an image include: 以各个所述第一像素的灰阶值除以对应的各个所述第二像素的灰阶值,以产生所述校正影像的所述多个第三像素。Dividing the gray level value of each of the first pixels by the corresponding gray level value of each of the second pixels to generate the plurality of third pixels of the corrected image. 9.根据权利要求1所述的方法,其特征在于,还包括:9. The method of claim 1, further comprising: 取得待校正影像,并基于所述校正影像将所述待校正影像校正为亮度校正影像,且所述待校正影像的拍摄环境与所述特定物体的拍摄环境相同。The to-be-corrected image is obtained, and based on the corrected image, the to-be-corrected image is corrected into a brightness-corrected image, and the shooting environment of the to-be-corrected image is the same as the shooting environment of the specific object. 10.根据权利要求9所述的方法,其特征在于,基于所述校正影像将所述待校正影像校正为所述亮度校正影像的步骤包括:10 . The method according to claim 9 , wherein the step of correcting the image to be corrected to the luminance corrected image based on the corrected image comprises: 10 . 将所述校正影像乘以所述待校正影像以产生所述亮度校正影像。The corrected image is multiplied by the to-be-corrected image to generate the luminance corrected image. 11.根据权利要求1所述的方法,其特征在于,在取得所述多个参考影像之后,所述方法还包括排除各个所述参考影像中的暂时性噪声。11 . The method of claim 1 , wherein after acquiring the plurality of reference images, the method further comprises excluding temporal noise in each of the reference images. 12 . 12.根据权利要求1所述的方法,其特征在于,还包括:12. The method of claim 1, further comprising: 取得关联于另一特定物体的多个其他参考影像,并基于所述多个其他参考影像产生另一校正影像,其中所述另一特定物体的拍摄环境与所述特定物体的拍摄环境相同;obtaining a plurality of other reference images associated with another specific object, and generating another corrected image based on the plurality of other reference images, wherein the shooting environment of the another specific object is the same as the shooting environment of the specific object; 基于所述校正影像及所述另一校正影像产生平均校正影像;generating an average corrected image based on the corrected image and the another corrected image; 取得待校正影像,并基于所述平均校正影像将所述待校正影像校正为亮度校正影像。The image to be corrected is obtained, and the image to be corrected is corrected to a brightness corrected image based on the average corrected image. 13.一种影像校正装置,其特征在于,所述影像校正装置包括取像装置、存储电路和处理器,其中,13. An image correction device, characterized in that the image correction device comprises an image capturing device, a storage circuit and a processor, wherein, 所述取像装置用于取得关联于特定物体的多个参考影像;The imaging device is used for acquiring a plurality of reference images associated with a specific object; 所述存储电路储存多个模块;以及the storage circuit stores a plurality of modules; and 所述处理器耦接所述存储电路及所述取像装置,用于存取所述多个模块,且接收来自所述取像装置的所述多个参考影像,其中所述特定物体被区分为多个物体区块,各个所述参考影像的中央区域各自对应于所述多个物体区块,所述处理器估计各个所述参考影像的所述中央区域的区域平均亮度,并依据各个所述参考影像的所述中央区域的所述区域平均亮度产生目标影像,并取得所述多个参考影像中的特定参考影像,其中所述特定参考影像包括特定影像区域,且所述特定影像区域被区分为多个影像区块,以及估计各个所述影像区块的区块平均亮度,并依据各个所述影像区块的所述区块平均亮度产生初始影像,基于所述目标影像及所述初始影像产生校正影像。The processor is coupled to the storage circuit and the imaging device for accessing the plurality of modules and receiving the plurality of reference images from the imaging device, wherein the specific object is distinguished is a plurality of object blocks, the central area of each of the reference images corresponds to the plurality of object blocks, the processor estimates the regional average brightness of the central area of each of the reference images, and generating a target image based on the area average brightness of the central area of the reference image, and obtaining a specific reference image among the plurality of reference images, wherein the specific reference image includes a specific image area, and the specific image area is Dividing into a plurality of image blocks, and estimating the block average brightness of each of the image blocks, and generating an initial image according to the block average brightness of each of the image blocks, based on the target image and the initial image The image produces a corrected image. 14.根据权利要求13所述的影像校正装置,其特征在于,所述多个物体区块包括第一物体区块,所述多个参考影像包括对应于所述第一物体区块的第一参考影像,所述第一参考影像由取像装置以所述第一物体区块作为中心而拍摄,且所述取像装置拍摄各个所述参考影像的拍摄环境、拍摄参数及拍摄距离皆相同。14. The image correction apparatus of claim 13, wherein the plurality of object blocks comprises a first object block, and the plurality of reference images comprises a first object block corresponding to the first object block A reference image, the first reference image is captured by the image capturing device with the first object block as the center, and the capturing environment, capturing parameters and capturing distance of each of the reference images captured by the capturing device are the same. 15.根据权利要求13所述的影像校正装置,其特征在于,所述多个物体区块包括中央物体区块,且所述特定参考影像由取像装置以所述中央物体区块作为中心而拍摄。15 . The image correction device of claim 13 , wherein the plurality of object blocks comprises a central object block, and the specific reference image is determined by the imaging device with the central object block as a center. 16 . shoot. 16.根据权利要求13所述的影像校正装置,其特征在于,所述特定影像区域为所述特定参考影像中的亮光区域。16 . The image correction apparatus of claim 13 , wherein the specific image area is a bright area in the specific reference image. 17 . 17.根据权利要求13所述的影像校正装置,其特征在于,所述处理器经配置以:17. The image correction device of claim 13, wherein the processor is configured to: 依据各个所述参考影像的相对位置将各个所述参考影像的所述中央区域的所述区域平均亮度配置为第一区域亮度分布图,其中所述第一区域亮度分布图包括多个第一亮度区块,且各个所述第一亮度区块对应于各个所述参考影像的所述中央区域的所述区域平均亮度;according to the relative position of each of the reference images, the regional average brightness of the central region of each of the reference images is configured as a first regional brightness distribution map, wherein the first regional brightness distribution map includes a plurality of first brightness blocks, and each of the first luminance blocks corresponds to the regional average luminance of the central region of each of the reference images; 对所述第一区域亮度分布图执行第一内插算法,以产生所述目标影像,其中所述目标影像的尺寸与所述特定参考影像的所述特定影像区域相同。A first interpolation algorithm is performed on the first region luminance distribution map to generate the target image, wherein the size of the target image is the same as the specific image region of the specific reference image. 18.根据权利要求13所述的影像校正装置,其特征在于,所述处理器经配置以:18. The image correction device of claim 13, wherein the processor is configured to: 依据各个所述影像区块的相对位置将各个所述影像区块的所述区块平均亮度配置为第二区域亮度分布图,其中所述第二区域亮度分布图包括多个第二亮度区块,且各个所述第二亮度区块对应于各个所述影像区块的所述区块平均亮度;According to the relative position of each of the image blocks, the block average brightness of each of the image blocks is configured as a second regional brightness distribution map, wherein the second regional brightness distribution map includes a plurality of second brightness blocks , and each of the second luminance blocks corresponds to the block average luminance of each of the image blocks; 对所述第二区域亮度分布图执行第二内插算法,以产生所述初始影像,其中所述初始影像的尺寸与所述特定参考影像的所述特定影像区域相同。A second interpolation algorithm is performed on the second region luminance distribution map to generate the initial image, wherein the size of the initial image is the same as the specific image region of the specific reference image. 19.根据权利要求13所述的影像校正装置,其特征在于,所述处理器经配置以:19. The image correction device of claim 13, wherein the processor is configured to: 将所述目标影像除以所述初始影像以产生所述校正影像。The target image is divided by the initial image to generate the corrected image. 20.根据权利要求19所述的影像校正装置,其特征在于,所述目标影像及所述初始影像各自为灰阶影像,所述目标影像包括多个第一像素,所述初始影像包括多个第二像素,所述多个第一像素一对一地对应于所述多个第二像素,所述校正影像包括多个第三像素,且所述处理器经配置以:20 . The image correction device according to claim 19 , wherein the target image and the initial image are each grayscale images, the target image includes a plurality of first pixels, and the initial image includes a plurality of first pixels. 21 . Second pixels, the plurality of first pixels correspond one-to-one to the plurality of second pixels, the corrected image includes a plurality of third pixels, and the processor is configured to: 将各个所述第一像素的灰阶值除以对应的各个所述第二像素的灰阶值,以产生所述校正影像的所述多个第三像素。The grayscale value of each of the first pixels is divided by the corresponding grayscale value of the second pixel to generate the plurality of third pixels of the corrected image. 21.根据权利要求13所述的影像校正装置,其特征在于,所述处理器还经配置以:21. The image correction device of claim 13, wherein the processor is further configured to: 取得待校正影像,并基于所述校正影像将所述待校正影像校正为亮度校正影像,且所述待校正影像的拍摄环境与所述特定物体的拍摄环境相同。The to-be-corrected image is acquired, and the to-be-corrected image is corrected to a brightness-corrected image based on the corrected image, and the shooting environment of the to-be-corrected image is the same as the shooting environment of the specific object. 22.根据权利要求21所述的影像校正装置,其特征在于,所述处理器经配置以:22. The image correction device of claim 21, wherein the processor is configured to: 将所述校正影像乘以所述待校正影像以产生所述亮度校正影像。The corrected image is multiplied by the to-be-corrected image to generate the luminance corrected image. 23.根据权利要求13所述的影像校正装置,其特征在于,在取得所述多个参考影像之后,所述处理器还经配置以排除各个所述参考影像中的暂时性噪声。23. The image correction device of claim 13, wherein after obtaining the plurality of reference images, the processor is further configured to exclude temporal noise in each of the reference images. 24.根据权利要求13所述的影像校正装置,其特征在于,所述处理器还经配置以:24. The image correction device of claim 13, wherein the processor is further configured to: 取得关联于另一特定物体的多个其他参考影像,并基于所述多个其他参考影像产生另一校正影像,其中所述另一特定物体的拍摄环境与所述特定物体的拍摄环境相同;obtaining a plurality of other reference images associated with another specific object, and generating another corrected image based on the plurality of other reference images, wherein the shooting environment of the another specific object is the same as the shooting environment of the specific object; 基于所述校正影像及所述另一校正影像产生平均校正影像;generating an average corrected image based on the corrected image and the another corrected image; 取得待校正影像,并基于所述平均校正影像将所述待校正影像校正为亮度校正影像。The to-be-corrected image is acquired, and the to-be-corrected image is corrected to a brightness-corrected image based on the average corrected image.
CN202010690402.4A 2020-07-17 2020-07-17 Image correction method and device Pending CN113947534A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010690402.4A CN113947534A (en) 2020-07-17 2020-07-17 Image correction method and device
TW109125255A TWI754334B (en) 2020-07-17 2020-07-27 Image correction method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010690402.4A CN113947534A (en) 2020-07-17 2020-07-17 Image correction method and device

Publications (1)

Publication Number Publication Date
CN113947534A true CN113947534A (en) 2022-01-18

Family

ID=79326755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010690402.4A Pending CN113947534A (en) 2020-07-17 2020-07-17 Image correction method and device

Country Status (2)

Country Link
CN (1) CN113947534A (en)
TW (1) TWI754334B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008089471A (en) * 2006-10-03 2008-04-17 Yokogawa Electric Corp Defect inspection device
JP2008131530A (en) * 2006-11-24 2008-06-05 Sony Corp Image pickup device, image processing apparatus and method, and computer program
TW201345250A (en) * 2012-04-25 2013-11-01 Altek Corp Method for image compensation
CN108307098A (en) * 2018-03-09 2018-07-20 上海小蚁科技有限公司 Fisheye camera shadow correction parameter determination method, bearing calibration and device, storage medium, fisheye camera
CN108632511A (en) * 2018-05-16 2018-10-09 上海小蚁科技有限公司 The brightness offset value of panorama fisheye camera is determining, luminance compensation method and device, terminal, fisheye camera
JP2019004449A (en) * 2017-06-09 2019-01-10 アイシン精機株式会社 Image processing system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9001238B1 (en) * 2013-09-16 2015-04-07 Himax Imaging Limited Lens shading correction method and image signal processor for performing the same
KR102401582B1 (en) * 2015-09-24 2022-05-24 삼성전자주식회사 Lens shading correction circuit and apparatus having the same
CN108234824B (en) * 2018-03-26 2020-11-17 上海小蚁科技有限公司 Shadow correction detection parameter determination method, shadow correction detection device, storage medium and fisheye camera

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008089471A (en) * 2006-10-03 2008-04-17 Yokogawa Electric Corp Defect inspection device
JP2008131530A (en) * 2006-11-24 2008-06-05 Sony Corp Image pickup device, image processing apparatus and method, and computer program
TW201345250A (en) * 2012-04-25 2013-11-01 Altek Corp Method for image compensation
JP2019004449A (en) * 2017-06-09 2019-01-10 アイシン精機株式会社 Image processing system
CN108307098A (en) * 2018-03-09 2018-07-20 上海小蚁科技有限公司 Fisheye camera shadow correction parameter determination method, bearing calibration and device, storage medium, fisheye camera
CN108632511A (en) * 2018-05-16 2018-10-09 上海小蚁科技有限公司 The brightness offset value of panorama fisheye camera is determining, luminance compensation method and device, terminal, fisheye camera

Also Published As

Publication number Publication date
TWI754334B (en) 2022-02-01
TW202205201A (en) 2022-02-01

Similar Documents

Publication Publication Date Title
Abdelhamed et al. A high-quality denoising dataset for smartphone cameras
JP5756099B2 (en) Imaging apparatus, image processing apparatus, image processing method, and image processing program
KR101429371B1 (en) Algorithms for estimating precise and relative object distances in a scene
KR101412752B1 (en) Digital autofocus image generating apparatus and method
US20170256036A1 (en) Automatic microlens array artifact correction for light-field images
US9693041B2 (en) Image capturing device and method for calibrating image deformation thereof
JP2010176128A (en) Two-dimensional polynomial model for depth estimation based on two-picture matching
WO2007095483A2 (en) Detection and removal of blemishes in digital images utilizing original images of defocused scenes
KR20180027952A (en) ToF (time of flight) capturing apparatus and method for processing image for decreasing blur of depth image thereof
US9990752B2 (en) Image processing device, imaging device, microscope system, image processing method, and computer-readable recording medium
KR20120068655A (en) Method and camera device for capturing iris or subject of good quality with one bandpass filter passing both visible ray and near infra red ray
CN113379636B (en) Infrared image non-uniformity correction method, device, equipment and storage medium
JP5096297B2 (en) Imaging device
JP2012533957A (en) Method and associated system for estimating defects in image capture systems
JP6061619B2 (en) Microscope system
JP2014138290A (en) Imaging device and imaging method
US10972676B2 (en) Image processing method and electronic device capable of optimizing hdr image by using depth information
JP6479178B2 (en) Image processing apparatus, imaging apparatus, microscope system, image processing method, and image processing program
US9262833B2 (en) Methodology for performing depth estimation with defocused images under extreme lighting conditions
JP2004133919A (en) Pseudo three-dimensional image generation apparatus and generation method, and program and recording medium therefor
US9020280B2 (en) System and method for evaluating focus direction under various lighting conditions
JP2004134861A (en) Resolution evaluation method, resolution evaluation program, and optical apparatus
CN118192062A (en) Flat field correction method of microscopic system and computer readable storage medium
JP6588527B2 (en) Method, digital microscope, and data processing program for correcting illumination-dependent aberration in a modular digital microscope
CN113947534A (en) Image correction method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination