[go: up one dir, main page]

US20160343114A1 - Image-correction system and method - Google Patents

Image-correction system and method Download PDF

Info

Publication number
US20160343114A1
US20160343114A1 US14/832,818 US201514832818A US2016343114A1 US 20160343114 A1 US20160343114 A1 US 20160343114A1 US 201514832818 A US201514832818 A US 201514832818A US 2016343114 A1 US2016343114 A1 US 2016343114A1
Authority
US
United States
Prior art keywords
image
value
correction
mean value
parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
US14/832,818
Other versions
US9508128B1 (en
Inventor
Chun-Hung Lin
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.)
Silicon Optronics Inc
Original Assignee
Silicon Optronics Inc
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 Silicon Optronics Inc filed Critical Silicon Optronics Inc
Assigned to SILICON OPTRONICS, INC. reassignment SILICON OPTRONICS, INC. ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: LIN, CHUN-HUNG
Publication of US20160343114A1 publication Critical patent/US20160343114A1/en
Application granted granted Critical
Publication of US9508128B1 publication Critical patent/US9508128B1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • G06T5/002
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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

Definitions

  • the disclosure generally relates to an image-correction system and an image correction method, and in particular, to an image-correction system and an image correction method which are used for correcting an image according to the ratio value of a mean value and a variance value of the image.
  • an embodiment of the invention provides an image-correction system, including an image-capture module, a first calculation module, a second calculation module and an output module.
  • the image-capture module obtains an input image and a guide image.
  • the first calculation module obtains a first correction image according to a first parameter and a second parameter.
  • the first calculation module also obtains a smooth function according to a ratio value and a mean value of the guide image, obtains the first parameter according to the mean value of the guide image, a variance value of the guide image, a mean value of the input image and the smooth function, and obtains the second parameter according to the first parameter, the mean value of the guide image and the mean value of the input image.
  • the second calculation module obtains the ratio value of the mean value and the variance value according to the mean value of the guide image and the variance value of the guide image.
  • the output module outputs the first correction image.
  • Another embodiment of the invention provides an image correction method, including: obtaining an input image and a guide image; obtaining a ratio value of a mean value of the guide image and a variance value of the guide image according to the mean value of the guide image and the variance value of the guide image; obtaining a smooth function according to the ratio value and the mean value of the guide image; obtaining a first parameter according to the mean value of the guide image, the variance value of the guide image, a mean value of the input image and the smooth function; obtaining a second parameter according to the first parameter, the mean value of the guide image and the mean value of the input image; obtaining a guide filter function according to the first parameter and the second parameter; and obtaining a first correction image according to the guide filter function
  • FIG. 1 is a block diagram of the image-correction system in accordance with an embodiment of the invention
  • FIGS. 2A, 2B, 2C are schematic drawings of the pixel distribution in accordance with some embodiments of the invention.
  • FIGS. 3A, 3B are schematic drawings of the defective pixel in accordance with an embodiment of the invention.
  • FIG. 4 is a flow chart of the image correction method in accordance with an embodiment of the invention.
  • FIG. 1 is a block diagram of the image-correction system in accordance with an embodiment of the invention.
  • the image-correction system 100 includes an image-capture module 110 , a first calculation module 120 , a second calculation module 130 and an output module 140 .
  • the image-capture module 110 obtains an input image p and a guide image I.
  • the guide image I can be a default image, a brighter input image p′ which has more details than the input image p, or the input image p.
  • the first calculation module 120 obtains a mean value ⁇ and a variance value ⁇ 2 corresponding to a filtering window w of the guide image I, and outputs the mean value ⁇ and the variance value ⁇ 2 to the second calculation module 130 .
  • the variance value ⁇ 2 refers to the distance between a random number and its expected value.
  • the second calculation module 130 obtains a ratio value ( ⁇ 2 / ⁇ ) of the mean value ⁇ and the variance value ⁇ 2 according to the parameters, and outputs the ratio value ( ⁇ 2 / ⁇ ) back to the first calculation module 120 .
  • the distribution of the pixel value can be obtained according to the mean value and the variance value of the image, and thus the details of the image can be obtained by calculating the ratio value of the mean value and the variance value.
  • FIGS. 2A, 2B, 2C are schematic drawings of the pixel distribution in accordance with some embodiments of the invention.
  • the pixel distribution of the area is smooth, such as the area shown in FIG. 2A , there are only four dark blocks randomly distributed in the area, referring to the image having little noise or few details.
  • the ratio value of the mean value ⁇ and the variance value ⁇ 2 calculated by the second calculation module 130 is about 0.
  • the pixel distribution of the area is random distribution, such as the white blocks and the dark blocks shown in FIG.
  • the ratio value of the mean value ⁇ and the variance value ⁇ 2 calculated by the second calculation module 130 is about 1.
  • the pixel distribution of the area shows that there are obvious clusters distributed in the area, such as the white blocks and the dark blocks shown in FIG. 2C , they are clustered in the area, meaning that the image has edges or more detail.
  • the ratio value of the mean value ⁇ and the variance value ⁇ 2 calculated by the second calculation module 130 is much greater than 1.
  • the first calculation module 120 calculates the smooth function f(k) according to the ratio value and the mean value ⁇ of the guide image I.
  • the formula for obtaining the smooth function f (k) is shown as follows:
  • f ⁇ ( k ) ⁇ ( c ⁇ ⁇ 1 - h ⁇ ( ⁇ k 2 I _ k ) ) ⁇ ( c ⁇ ⁇ 2 + q ⁇ ( I _ k ) ) , c ⁇ ⁇ 1 ⁇ h ⁇ ( ⁇ k 2 I _ k ) 0 , c ⁇ ⁇ 1 ⁇ h ⁇ ( ⁇ k 2 I _ k )
  • c2+q( ⁇ k ) is a mean factor
  • c1 and c2 are constants
  • k refers to the k th filtering window.
  • the first calculation module 120 After the first calculation module 120 obtains the smooth function f (k), the first calculation module 120 also obtains the first parameter a k according to the mean value ⁇ of the guide image I, a variance value ⁇ 2 of the guide image I, a mean value P of the input image p, and the smooth function f(k), and obtains the second parameter b k according to the first parameter a k , the mean value ⁇ of the guide image I and the mean value P of the input image p.
  • the formulas for obtaining the first parameter a k and the second parameter b k are shown as follows:
  • w k is the k th filtering window
  • is number of pixels of the k th filtering window
  • I i is the i th pixel of the guide image I
  • p i is the i th pixel of the input image p
  • ⁇ k is the mean value of the k th filtering window of the guide image I
  • p k is the mean value of the k th filtering window of the input image p
  • ⁇ k 2 is the variance value of the k th filtering window of the guide image i.
  • the first calculation module 120 After the first calculation module 120 obtains the first parameter a k and the second parameter b k , the first calculation module 120 further obtains a first correction image q i according to the first parameter a k and the second parameter b k .
  • the formula for obtaining the first correction image q i is shown as follows:
  • the smooth function f(k) determines the blurriness of the flattest area, i.e.,
  • the user determines the amount of detail by adjusting the value of c1, such as when
  • the smooth function f(k) is 0, and the first calculation module 120 keeps the details of the image entirely.
  • the smooth function f(k) determines the blurriness of all of the image blocks by adjusting the value of c2, which means that when the value of c2 is greater, all of the image blocks become more blurred. However, when the brightness of the blocks are the same, the greater the value of c2, the smaller the first parameter a k , and the larger the second parameter b k .
  • the first correction image q i is close to the mean value of the input image p, which means that the first correction image q i has more details of the input image q i .
  • the first correction image q i has more details of the guide image I. Moreover, when q( ⁇ k ) is a maximal value, i.e. the brightest area of the image, the first parameter a k is close to 0, and the second parameter b k is equal to the mean value p of the input image p, such that the cross-talk of the image can he removed.
  • the user determines the amount of the details he/she wants to keep by adjusting the value of c1, and determines the blurriness of the areas with different brightness by adjusting the value of c2.
  • the image-correction system 100 also includes a third calculation module 150 , configured to determine whether the image has a defective pixel according to the ratio values of the mean value ⁇ and the variance value ⁇ 2 of a plurality of pixels within the predetermined area.
  • the defective pixel means the pixel value of the center pixel has an obvious difference with the pixel values of adjacent pixels.
  • the user defines a first predetermined value as a standard of the defective pixel, and second, identifies whether the number of pixels within the predetermined area with a pixel value that is greater than the first predetermined value is greater than a second predetermined value.
  • FIGS. 3A, 3B are schematic drawings of the defective pixel in accordance with an embodiment of the invention.
  • FIG. 3A shows that the image has a pixel with a pixel value that is greater than the pixel values of the adjacent pixels, such as the slant line shown in FIG. 3A
  • FIG. 3 B shows the results after calculating the ratio value of the mean value ⁇ and the variance value ⁇ 2 .
  • the third calculation module 150 determines whether the number of pixels with a pixel value greater than the first predetermined value (e.g., 100) within the predetermined area 305 is greater than the second predetermined value (e.g., 18). For example, as shown in FIG. 3B , the number of pixels with a pixel value greater than 100 is 24, which has satisfied the condition of the defective pixel, thus the third calculation module 150 identifies the pixel as a defective pixel. And then, the third calculation module 150 corrects the defective pixel using the conventional methods for obtaining a second correction image. After correcting the defective pixel, the output module 140 outputs a third correction image according to the first correction image and the second correction image.
  • the first predetermined value e.g., 100
  • the second predetermined value e.g. 18
  • FIG. 4 is a flow chart of the image correction method in accordance with an embodiment of the invention.
  • the image-capture module 110 obtains the input image and the guide image.
  • the guide image can be a default image, a brighter input image which has more details than the input image, or the input image.
  • the first calculation module 120 calculates the mean value of the guide image, the variance value of the guide image and the mean value of the input image according to the guide image.
  • the second calculation module 130 calculates the ratio value of the mean value and the variance value according to the mean value of the guide image and the variance value of the guide image.
  • step S 404 the first calculation module 120 obtains the smooth function according to the ratio value calculated by the second calculation module 130 and the mean value of the guide image.
  • step S 405 the first calculation module 120 further obtains the first parameter according to the mean value of the guide image, the variance value of the guide image, the mean value of the input image and the smooth function.
  • step S 406 the first calculation module 120 further obtains the second parameter according to the first parameter, the mean value of the guide image and the mean value of the input image.
  • step S 407 the first calculation module 120 obtains the first correction image according to the first parameter, the second parameter and the guide image, and the output module 140 outputs the first correction image.
  • the formulas for calculating the smooth function, the first parameter and the second parameter are the same as the formulas used in the image-correction system 100 , thus they are not described herein.
  • the third calculation module 150 further calculates the number of pixels within the predetermined area with a pixel value that is greater than a first predetermined value, and determines whether the number of pixels within the predetermined area is greater than the second predetermined value.
  • the third calculation module 150 identifies the center pixel of the predetermined area as the defective pixel, corrects the input image, and obtains the second correction image.
  • the output module 140 outputs the third correction image according to the first correction image and the second correction image.
  • the invention provides an image-correction system and an image correction method.
  • the user only needs a simple calculation module for calculating the ratio value of the mean value and the variance value to adjust the blurriness of the smooth area and the dark area, remove the cross-talk of the bright area and further keep the details of the dark area.
  • the ratio value of the mean value and the variance value being difficult to affect by the gain of the pixels and the exposure, it can be used to determine whether the center pixel of the predetermined area is the defective pixel, and improve the accuracy of the determination.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)
  • Transforming Light Signals Into Electric Signals (AREA)

Abstract

The present invention provides an image-correction system, including an image-capture module, a first calculation module, a second calculation module and an output module. The image-capture module obtains an input image and a guide image. The first calculation module obtains a first correction image according to a first parameter and a second parameter, obtains the first parameter according to the mean value of the guide image, a variance value of the guide image, a mean value of the input image and a smooth function, and obtains the second parameter according to the first parameter, the mean value of the guide image and the mean value of the input image. The second calculation module obtains the ratio value of the mean value of the guide image and the variance value of the guide image. The output module outputs the first correction image.

Description

    CROSS REFERENCE TO RELATED APPLICATIONS
  • This Application claims priority of Taiwan Patent Application No. 104115842, filed on May 19, 2015, the entirety of which is incorporated by reference herein.
  • BACKGROUND OF THE INVENTION
  • 1. Field of the Invention
  • The disclosure generally relates to an image-correction system and an image correction method, and in particular, to an image-correction system and an image correction method which are used for correcting an image according to the ratio value of a mean value and a variance value of the image.
  • 2. Description of the Related Art
  • With developments constantly being made in the imaging industry, image sensors have come to be used widely in digital cameras. In the pursuit of better image quality, the requirements for image processing by the image sensor are also increasing. Image sensors in cameras must be able to remove noise, removing cross-talk, and correct defect in the sensor. With conventional technology, retaining detail and removing noise cannot be taken into account when removing cross-talk. This means that when an image has more detail, it might also have more noise. Otherwise, the lower the noise level, the lower the detail. Moreover, the gain of an image and its exposure time might affect the detection of defective pixels. Thus, how to improve the efficiency of image processing while maintaining the cost-effectiveness of a device is a current problem that needs to be solved.
  • BRIEF SUMMARY OF THE INVENTION
  • In order to solve the aforementioned problem, an embodiment of the invention provides an image-correction system, including an image-capture module, a first calculation module, a second calculation module and an output module. The image-capture module obtains an input image and a guide image. The first calculation module obtains a first correction image according to a first parameter and a second parameter. The first calculation module also obtains a smooth function according to a ratio value and a mean value of the guide image, obtains the first parameter according to the mean value of the guide image, a variance value of the guide image, a mean value of the input image and the smooth function, and obtains the second parameter according to the first parameter, the mean value of the guide image and the mean value of the input image. The second calculation module obtains the ratio value of the mean value and the variance value according to the mean value of the guide image and the variance value of the guide image. The output module outputs the first correction image.
  • Another embodiment of the invention provides an image correction method, including: obtaining an input image and a guide image; obtaining a ratio value of a mean value of the guide image and a variance value of the guide image according to the mean value of the guide image and the variance value of the guide image; obtaining a smooth function according to the ratio value and the mean value of the guide image; obtaining a first parameter according to the mean value of the guide image, the variance value of the guide image, a mean value of the input image and the smooth function; obtaining a second parameter according to the first parameter, the mean value of the guide image and the mean value of the input image; obtaining a guide filter function according to the first parameter and the second parameter; and obtaining a first correction image according to the guide filter function
  • BRIEF DESCRIPTION OF DRAWINGS
  • The invention can be more fully understood by reading the subsequent detailed description and examples with references made to the accompanying drawings, wherein:
  • FIG. 1 is a block diagram of the image-correction system in accordance with an embodiment of the invention;
  • FIGS. 2A, 2B, 2C are schematic drawings of the pixel distribution in accordance with some embodiments of the invention;
  • FIGS. 3A, 3B are schematic drawings of the defective pixel in accordance with an embodiment of the invention;
  • FIG. 4 is a flow chart of the image correction method in accordance with an embodiment of the invention.
  • DETAILED DESCRIPTION OF THE INVENTION
  • Further areas in which the present devices and methods can be applied will become apparent from the following detailed description. It should be understood that the detailed description and specific examples, while indicating exemplary embodiments of the image-correction systems and the image correction devices, are intended for the purposes of illustration only and are not intended to limit the scope of the invention.
  • FIG. 1 is a block diagram of the image-correction system in accordance with an embodiment of the invention. The image-correction system 100 includes an image-capture module 110, a first calculation module 120, a second calculation module 130 and an output module 140. The image-capture module 110 obtains an input image p and a guide image I. The guide image I can be a default image, a brighter input image p′ which has more details than the input image p, or the input image p. After the image-capture module 110 obtains the input image p and the guide image I, the first calculation module 120 obtains a mean value Ī and a variance value σ2 corresponding to a filtering window w of the guide image I, and outputs the mean value Ī and the variance value σ2 to the second calculation module 130. The variance value σ2 refers to the distance between a random number and its expected value. The second calculation module 130 obtains a ratio value (σ2/Ī) of the mean value Ī and the variance value σ2 according to the parameters, and outputs the ratio value (σ2/Ī) back to the first calculation module 120.
  • The distribution of the pixel value can be obtained according to the mean value and the variance value of the image, and thus the details of the image can be obtained by calculating the ratio value of the mean value and the variance value. For example, FIGS. 2A, 2B, 2C are schematic drawings of the pixel distribution in accordance with some embodiments of the invention. When the pixel distribution of the area is smooth, such as the area shown in FIG. 2A, there are only four dark blocks randomly distributed in the area, referring to the image having little noise or few details. The ratio value of the mean value Ī and the variance value σ2 calculated by the second calculation module 130 is about 0. When the pixel distribution of the area is random distribution, such as the white blocks and the dark blocks shown in FIG. 2B, they are randomly distributed in the area, meaning refers that the image has some noises or some details. The ratio value of the mean value Ī and the variance value σ2 calculated by the second calculation module 130 is about 1. When the pixel distribution of the area shows that there are obvious clusters distributed in the area, such as the white blocks and the dark blocks shown in FIG. 2C, they are clustered in the area, meaning that the image has edges or more detail. The ratio value of the mean value Ī and the variance value σ2 calculated by the second calculation module 130 is much greater than 1.
  • The first calculation module 120 calculates the smooth function f(k) according to the ratio value and the mean value Ī of the guide image I. The formula for obtaining the smooth function f (k) is shown as follows:
  • f ( k ) = { ( c 1 - h ( σ k 2 I _ k ) ) × ( c 2 + q ( I _ k ) ) , c 1 h ( σ k 2 I _ k ) 0 , c 1 < h ( σ k 2 I _ k )
  • wherein,
  • ( c 1 - h ( σ k 2 I _ k ) )
  • is a variance factor, (c2+q(Īk)) is a mean factor, c1 and c2 are constants, and k refers to the kth filtering window.
  • After the first calculation module 120 obtains the smooth function f (k), the first calculation module 120 also obtains the first parameter ak according to the mean value Ī of the guide image I, a variance value σ2 of the guide image I, a mean value P of the input image p, and the smooth function f(k), and obtains the second parameter bk according to the first parameter ak, the mean value Ī of the guide image I and the mean value P of the input image p. The formulas for obtaining the first parameter ak and the second parameter bk are shown as follows:
  • a k = 1 w i w k I i p i - I _ k p _ k σ k 2 + f ( k ) b k = p _ k - a k I _ k
  • wherein, wk is the kth filtering window, |w| is number of pixels of the kth filtering window, Ii is the ith pixel of the guide image I, pi is the ith pixel of the input image p, Īk is the mean value of the kth filtering window of the guide image I, p k is the mean value of the kth filtering window of the input image p, σk 2 is the variance value of the kth filtering window of the guide image i.
  • After the first calculation module 120 obtains the first parameter ak and the second parameter bk, the first calculation module 120 further obtains a first correction image qi according to the first parameter ak and the second parameter bk. The formula for obtaining the first correction image qi is shown as follows:

  • q i=ak I i +b k
  • wherein, qi is the first correction image.
  • Due to the details of the image being related to the variance factor calculated according to the mean value Ī and the variance value σ2 of the image, the smooth function f(k) determines the blurriness of the flattest area, i.e.,
  • h ( σ k 2 I _ k ) = 0 ,
  • by adjusting the value of c1. When the image becomes more blurred, the area becomes flatter, and the difference between pixels is also smaller. Moreover, the user determines the amount of detail by adjusting the value of c1, such as when
  • h ( σ k 2 I _ k )
  • is greater than c1, the smooth function f(k) is 0, and the first calculation module 120 keeps the details of the image entirely.
  • Due to the brightness of the image being related to the mean value Ī of the mean factor, the smooth function f(k) determines the blurriness of all of the image blocks by adjusting the value of c2, which means that when the value of c2 is greater, all of the image blocks become more blurred. However, when the brightness of the blocks are the same, the greater the value of c2, the smaller the first parameter ak, and the larger the second parameter bk. When the first correction image qi is close to the mean value of the input image p, which means that the first correction image qi has more details of the input image qi. Otherwise, the smaller the value of c2, the larger the first parameter ak, and the smaller the second parameter bk. The first correction image qi has more details of the guide image I. Moreover, when q(Īk) is a maximal value, i.e. the brightest area of the image, the first parameter ak is close to 0, and the second parameter bk is equal to the mean value p of the input image p, such that the cross-talk of the image can he removed.
  • As described above, the user determines the amount of the details he/she wants to keep by adjusting the value of c1, and determines the blurriness of the areas with different brightness by adjusting the value of c2.
  • According to another embodiment of the invention, the image-correction system 100 also includes a third calculation module 150, configured to determine whether the image has a defective pixel according to the ratio values of the mean value Ī and the variance value σ2 of a plurality of pixels within the predetermined area. The defective pixel means the pixel value of the center pixel has an obvious difference with the pixel values of adjacent pixels. First, the user defines a first predetermined value as a standard of the defective pixel, and second, identifies whether the number of pixels within the predetermined area with a pixel value that is greater than the first predetermined value is greater than a second predetermined value. When the first predetermined value and the second predetermined value are larger, this means that the condition for identifying the center pixel as the defective pixel is higher. Otherwise, when the first predetermined value and second predetermined value are smaller, that means it is easier to establish the defective pixel. For example, FIGS. 3A, 3B are schematic drawings of the defective pixel in accordance with an embodiment of the invention. FIG. 3A shows that the image has a pixel with a pixel value that is greater than the pixel values of the adjacent pixels, such as the slant line shown in FIG. 3A, and FIG. 3B shows the results after calculating the ratio value of the mean value Ī and the variance value σ2. Then the third calculation module 150 determines whether the number of pixels with a pixel value greater than the first predetermined value (e.g., 100) within the predetermined area 305 is greater than the second predetermined value (e.g., 18). For example, as shown in FIG. 3B, the number of pixels with a pixel value greater than 100 is 24, which has satisfied the condition of the defective pixel, thus the third calculation module 150 identifies the pixel as a defective pixel. And then, the third calculation module 150 corrects the defective pixel using the conventional methods for obtaining a second correction image. After correcting the defective pixel, the output module 140 outputs a third correction image according to the first correction image and the second correction image.
  • Please refer to FIG. 4 with FIG. 1. FIG. 4 is a flow chart of the image correction method in accordance with an embodiment of the invention. In step S401, the image-capture module 110 obtains the input image and the guide image. The guide image can be a default image, a brighter input image which has more details than the input image, or the input image. In step S402, the first calculation module 120 calculates the mean value of the guide image, the variance value of the guide image and the mean value of the input image according to the guide image. In step S403, the second calculation module 130 calculates the ratio value of the mean value and the variance value according to the mean value of the guide image and the variance value of the guide image. In step S404, the first calculation module 120 obtains the smooth function according to the ratio value calculated by the second calculation module 130 and the mean value of the guide image. In step S405, the first calculation module 120 further obtains the first parameter according to the mean value of the guide image, the variance value of the guide image, the mean value of the input image and the smooth function. In step S406, the first calculation module 120 further obtains the second parameter according to the first parameter, the mean value of the guide image and the mean value of the input image. In step S407, the first calculation module 120 obtains the first correction image according to the first parameter, the second parameter and the guide image, and the output module 140 outputs the first correction image. It should be noted that the formulas for calculating the smooth function, the first parameter and the second parameter are the same as the formulas used in the image-correction system 100, thus they are not described herein.
  • According to another embodiment of the invention, after obtaining the ratio value of the mean value of the guide image and the variance value of the guide image, the third calculation module 150 further calculates the number of pixels within the predetermined area with a pixel value that is greater than a first predetermined value, and determines whether the number of pixels within the predetermined area is greater than the second predetermined value. When the number of pixels within the predetermined area is greater than the second predetermined value, the third calculation module 150 identifies the center pixel of the predetermined area as the defective pixel, corrects the input image, and obtains the second correction image. The output module 140 outputs the third correction image according to the first correction image and the second correction image.
  • As described above, the invention provides an image-correction system and an image correction method. The user only needs a simple calculation module for calculating the ratio value of the mean value and the variance value to adjust the blurriness of the smooth area and the dark area, remove the cross-talk of the bright area and further keep the details of the dark area. Moreover, due to the ratio value of the mean value and the variance value being difficult to affect by the gain of the pixels and the exposure, it can be used to determine whether the center pixel of the predetermined area is the defective pixel, and improve the accuracy of the determination.
  • It will be apparent to those skilled in the art that various modifications and variations can be made to the structure disclosed without departing from the scope or spirit of the invention. In view of the foregoing, it is intended that the present invention covers modifications and variations of this invention, provided they fall within the scope of the following claims and their equivalents.

Claims (14)

1. An image-correction system, comprising:
a camera, configured to obtain an input image and a guide image;
processor, configured to:
obtain a smooth function according to a ratio value and a mean value of the guide image,
obtain a first parameter according to the mean value of the guide image, a variance value of the guide image, a mean value of the input image and the smooth function,
obtain a second parameter according to the first parameter, the mean value of the guide image and the mean value of the input image,
obtain the ratio value of the mean value of the guide image and the variance value of the guide image according to the mean value of the guide image and the variance value of the guide image, and
output the first correction image according to the first parameter and the second parameter.
2. The image-correction system as claimed in claim 1, wherein the processor further obtains the first parameter and the second parameter using the following formula:
a k = 1 w i w k I i p i - I _ k p _ k σ k 2 + f ( k ) b k = p _ k - a k I _ k
wherein, ak is the first parameter, bk is the second parameter, wk is a kth filtering window, |w| is a number of pixels of the kth filtering window, Ii is the ith pixel of the guide image I, pi is the ith pixel of the input image p, Ik is the mean value of the kth filtering window of the guide image I, p k is the mean value of the kth filtering window of the input image p, σk 2 is the variance value of the kth filtering window of the guide image I, and f(k) is the smooth function.
3. The image-correction system as claimed in claim 2, wherein the processor further obtains the smooth function using the following formula:
f ( k ) = { ( c 1 - h ( σ k 2 I _ k ) ) × ( c 2 + q ( I _ k ) ) , c 1 h ( σ k 2 I _ k ) 0 , c 1 < h ( σ k 2 I _ k )
wherein, f(k) is the smooth function,
σ k 2 I _ k
is the ratio value,
h ( σ k 2 I _ k )
is a normal correlation function corresponding to the ratio value, q(Īk) is a normal correlation function corresponding to the mean value of the guide image I, c1 is a first constant, and c2 is a second constant.
4. The image-correction system as claimed in claim 3, wherein the processor further obtains the first correction image using the following formula:

q i=ak I i +b k
wherein, qi is the first correction image.
5. The image-correction system as claimed in claim 3, wherein the processor further determines whether a center pixel of a predetermined area is a defective pixel according to the ratio values of the mean value and the variance value of a plurality of pixels within the predetermined area.
6. The image-correction system as claimed in claim 5, wherein the processor further calculates a number of pixels within the predetermined area with a pixel value that is greater than a first predetermined value, and determines whether the number of pixels within the predetermined area is greater than a second predetermined value, and when the number of pixels within the predetermined area is greater than the second predetermined value, the processor also identifies the center pixel as the defective pixel, corrects the input image and outputs a second correction image.
7. The image-correction system as claimed in claim 6, wherein the processor further outputs a third correction image according to the first correction image and the second correction image.
8. An image correction method, comprising:
obtaining an input image and a guide image;
obtaining a ratio value of a mean value of the guide image and a variance value of the guide image according to the mean value of the guide image and the variance value of the guide image;
obtaining a smooth function according to the ratio value and the mean value of the guide image;
obtaining a first parameter according to the mean value of the guide image, the variance value of the guide image, a mean value of the input image and the smooth function;
obtaining a second parameter according to the first parameter, the mean value of the guide image and the mean value of the input image;
obtaining a first correction image according to a first parameter, a second parameter and the guide image.
9. The image correction method as claimed in claim 8, further comprising:
obtaining the first parameter and the second parameter using the following formula:
a k = 1 w i w k I i p i - I _ k p _ k σ k 2 + f ( k ) b k = p _ k - a k I _ k
wherein, ak is the first parameter, bk is the second parameter, wk is kth filtering window, |w | is a number of pixels of the kth filtering window, Ii is the ith pixel of the guide image I, pi is the ith pixel of the input image p, Īk is the mean value of the kth filtering window of the guide image I, p k is the mean value of the kth filtering window of the input image p, σk 2 is the variance value of the kth filtering window of the guide image I, and f(k) is the smooth function.
10. The image correction method as claimed in claim 9, further comprising:
obtaining the smooth function using the following formula:
f ( k ) = { ( c 1 - h ( σ k 2 I _ k ) ) × ( c 2 + q ( I _ k ) ) , c 1 h ( σ k 2 I _ k ) 0 , c 1 < h ( σ k 2 I _ k )
wherein, f(k) is the smooth function,
σ k 2 I _ k
is the ratio value,
h ( σ k 2 I _ k )
is a normal correlation function corresponding to the ratio value, q(Īk) is a normal correlation function corresponding to the mean value of the guide image I, c1 is a first constant, and c2 is a second constant.
11. The image correction method as claimed in claim 10, further comprising:
obtaining the first correction image using the following formula:

q i=ak I i +b k
wherein, qi is the first correction image.
12. The image correction method as claimed in claim 10, further comprising:
determining whether a center pixel of a predetermined area is a defective pixel according to the ratio values of the mean value and the variance value of a plurality of pixels within the predetermined area.
13. The image correction method as claimed in claim 12, further comprising:
calculating number of pixels within the predetermined area with a pixel value that is greater than a first predetermined value;
determining whether the number of pixels within the predetermined area is greater than a second predetermined value; and
identifying the center pixel as the defective pixel, correcting the input image, and outputting a second correction image when the number of pixels within the predetermined area is greater than the second predetermined value.
14. The image correction method as claimed in claim 13, further comprising:
outputting a third correction image according to the first correction image and the second correction image.
US14/832,818 2015-05-19 2015-08-21 Image-correction system and method Active US9508128B1 (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
TW104115842A TWI552603B (en) 2015-05-19 2015-05-19 Image correction system and method
TW104115842 2015-05-19
TW104115842A 2015-05-19

Publications (2)

Publication Number Publication Date
US20160343114A1 true US20160343114A1 (en) 2016-11-24
US9508128B1 US9508128B1 (en) 2016-11-29

Family

ID=57324469

Family Applications (1)

Application Number Title Priority Date Filing Date
US14/832,818 Active US9508128B1 (en) 2015-05-19 2015-08-21 Image-correction system and method

Country Status (3)

Country Link
US (1) US9508128B1 (en)
CN (1) CN106303309B (en)
TW (1) TWI552603B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160217585A1 (en) * 2015-01-27 2016-07-28 Kabushiki Kaisha Toshiba Medical image processing apparatus, medical image processing method and medical image diagnosis apparatus
US20180299754A1 (en) * 2016-01-18 2018-10-18 Fujifilm Corporation Imaging device and image data generation method

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7410620B2 (en) * 2019-10-31 2024-01-10 キヤノン株式会社 Imaging device, image processing device, and control method thereof

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI361618B (en) * 2006-12-26 2012-04-01 Realtek Semiconductor Corp Method and device for estimating noise
JP5023203B2 (en) * 2010-08-24 2012-09-12 株式会社東芝 Image correction apparatus and correction parameter creation apparatus
KR20130021977A (en) * 2011-08-24 2013-03-06 현대모비스 주식회사 Device for correcting a difference of gr and gb sensitivity in image sensor and method thereof
US9002131B2 (en) * 2011-09-18 2015-04-07 Forus Health Pvt. Ltd. Method and system for enhancing image quality
WO2014168587A1 (en) * 2013-04-12 2014-10-16 Agency For Science, Technology And Research Method and system for processing an input image
GB2516110B (en) * 2013-07-12 2020-01-08 Barco Nv Guided image filtering for image content
CN104463819B (en) * 2013-09-20 2019-03-08 汤姆逊许可公司 Image filtering method and device
EP2887309A1 (en) * 2013-12-20 2015-06-24 Thomson Licensing Method and apparatus for filtering an image

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160217585A1 (en) * 2015-01-27 2016-07-28 Kabushiki Kaisha Toshiba Medical image processing apparatus, medical image processing method and medical image diagnosis apparatus
US10043268B2 (en) * 2015-01-27 2018-08-07 Toshiba Medical Systems Corporation Medical image processing apparatus and method to generate and display third parameters based on first and second images
US20180299754A1 (en) * 2016-01-18 2018-10-18 Fujifilm Corporation Imaging device and image data generation method
US10691002B2 (en) * 2016-01-18 2020-06-23 Fujifilm Corporation Imaging device and image data generation method

Also Published As

Publication number Publication date
US9508128B1 (en) 2016-11-29
CN106303309A (en) 2017-01-04
TW201642650A (en) 2016-12-01
TWI552603B (en) 2016-10-01
CN106303309B (en) 2019-03-29

Similar Documents

Publication Publication Date Title
US8159552B2 (en) Apparatus and method for restoring image based on distance-specific point spread function
US8941762B2 (en) Image processing apparatus and image pickup apparatus using the same
US8565524B2 (en) Image processing apparatus, and image pickup apparatus using same
US9582868B2 (en) Image processing apparatus that appropriately performs tone correction in low-illuminance environment, image processing method therefor, and storage medium
US20130100334A1 (en) Method and System for an Adaptive Auto-Focus Algorithm
US9449376B2 (en) Image processing apparatus and image processing method for performing tone correction of an output image
US20180352177A1 (en) Image-processing device
US20110085729A1 (en) De-noising method and related apparatus for image sensor
US10027897B2 (en) Image processing apparatus, image processing method, and storage medium
US20100034480A1 (en) Methods and apparatus for flat region image filtering
US20130177260A1 (en) Image processing apparatus, imaging apparatus, and image processing method
US20150116525A1 (en) Method for generating high dynamic range images
US20180061014A1 (en) Contrast Adaptive Video Denoising System
US9904991B2 (en) Image pickup apparatus that corrects contrast of image, control method for the image pickup apparatus, and storage medium
US9508128B1 (en) Image-correction system and method
US20230033975A1 (en) Adaptive image shading correction method and adaptive image shading correction system
US7634188B2 (en) Method and apparatus for calculating a focus metric
US8836816B2 (en) Method of adjusting the brightness of a digital camera image
US10475162B2 (en) Image processing device, method, and storage medium for gamma correction based on illuminance
US10728440B2 (en) Apparatus for generating and displaying a focus assist image indicating a degree of focus for a plurality of blocks obtained by dividing a frame of image signal
US11403736B2 (en) Image processing apparatus to reduce noise in an image
CN114283170B (en) Light spot extraction method
US20180152649A1 (en) Image processing apparatus, image pickup apparatus, image processing method, and storage medium
US8805082B2 (en) Image processing apparatus
JP4414289B2 (en) Contrast enhancement imaging device

Legal Events

Date Code Title Description
AS Assignment

Owner name: SILICON OPTRONICS, INC., TAIWAN

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:LIN, CHUN-HUNG;REEL/FRAME:036452/0177

Effective date: 20150805

STCF Information on status: patent grant

Free format text: PATENTED CASE

MAFP Maintenance fee payment

Free format text: PAYMENT OF MAINTENANCE FEE, 4TH YR, SMALL ENTITY (ORIGINAL EVENT CODE: M2551); ENTITY STATUS OF PATENT OWNER: SMALL ENTITY

Year of fee payment: 4

MAFP Maintenance fee payment

Free format text: PAYMENT OF MAINTENANCE FEE, 8TH YR, SMALL ENTITY (ORIGINAL EVENT CODE: M2552); ENTITY STATUS OF PATENT OWNER: SMALL ENTITY

Year of fee payment: 8