CN113301319A - Image color enhancement method and device realized on FPGA - Google Patents
Image color enhancement method and device realized on FPGA Download PDFInfo
- Publication number
- CN113301319A CN113301319A CN202110462037.6A CN202110462037A CN113301319A CN 113301319 A CN113301319 A CN 113301319A CN 202110462037 A CN202110462037 A CN 202110462037A CN 113301319 A CN113301319 A CN 113301319A
- Authority
- CN
- China
- Prior art keywords
- component
- rgb
- rgb image
- image data
- fpga
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/77—Circuits for processing the brightness signal and the chrominance signal relative to each other, e.g. adjusting the phase of the brightness signal relative to the colour signal, correcting differential gain or differential phase
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/64—Circuits for processing colour signals
- H04N9/646—Circuits for processing colour signals for image enhancement, e.g. vertical detail restoration, cross-colour elimination, contour correction, chrominance trapping filters
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Color Image Communication Systems (AREA)
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
Abstract
The invention discloses an image color enhancement method and equipment realized on FPGA, which comprises the steps of acquiring RGB image information to be processed through a sensor, utilizing an FPGA unit to carry out normalization processing on the RGB image data, then converting RGB space into HSI component, normalizing the HSI component by the FPGA unit, converting the HSI component from the HSI color space into the RGB color space, and obtaining the processed RGB image data.
Description
Technical Field
The invention relates to the field of image enhancement, in particular to an image color enhancement method and device realized on an FPGA (field programmable gate array).
Background
In the application of image acquisition or video monitoring, due to the influence of external factors such as severe weather, uneven illumination, low illumination and the like, the obtained image often has the problems of uneven brightness, low contrast, color distortion, edge blurring and the like, so that the image quality is poor, and the subsequent information interpretation and extraction are influenced. In addition to these external factors, the sensor itself has drawbacks, color information is unbalanced, sensitivity to different colors is different, image quality is poor, and processing speed is poor. Therefore, fast and efficient image enhancement algorithms are one of the key elements in the field of image analysis and understanding in order to improve the quality of color images and extract more information available.
Disclosure of Invention
The invention provides an image color enhancement method realized on an FPGA (field programmable gate array) to overcome the problems of uneven brightness, low contrast, color distortion, edge blurring and the like of an image.
In order to achieve the purpose, the technical scheme of the invention is as follows:
and 5, converting the HSI component from the HSI color space to the RGB color space to obtain the processed third RGB image data.
Further, the step 3 of performing normalization processing on the first RGB image data by using the FPGA unit to obtain second RGB image data includes:
step 3.1, converting the RGB space into a saturation S component, wherein the calculation formula of the saturation S component is as follows:
s ═ sxk, where k is the manual adjustment coefficient;
step 3.2, judge G2And B2And converting from RGB space to hue H component, judging G2And B2The process comprises the following steps:
step 3.2.1, when G2≥B2The formula for calculating the hue H component is:
step 3.2.2, when G2<B2The formula for calculating the hue H component is:
and 3.3, converting the RGB space into a brightness I component, wherein the calculation formula of the brightness I component is as follows:
further, the step 5 includes determining a value of H and calculating third RGB image data, where the determining the value of H includes:
step 5.1, when H is greater than or equal to 0 and H is less than or equal to 2 × pi/3, calculating formulas of an R component, a G component and a B component of the third RGB image data are respectively as follows:
B3=I(1-S)
G3=3I-(R3+B3)
step 5.2, when H is not less than 2 × pi/3 and H is not more than 4 × pi 3, R component, G component, and B component calculation formulas of the third RGB image data are respectively:
R3=I(1-S)
B3=3I-(R3+G3)
and 5.3, when H is more than or equal to 4 × pi/3 and H is less than or equal to 2 × pi, calculating formulas of the R component, the G component and the B component of the third RGB image data are respectively as follows:
G3=I(1-S)
R3=3I-(G3+B3)
wherein R is3、G3、B3Is a component of the third RGB image data.
Further, the method for normalizing the first RGB image in step 2 includes:
R2=R1/(R1+G1+B1);G2=G1/(R1+G1+B1);B2=B1/(R1+G1+B1),
wherein R is1、G1、B1Is a component of the first RGB image data, R2、G2、B2Is a component of the second RGB image data.
The invention also provides a device for implementing the image color enhancement method on the FPGA, which is characterized in that: the system comprises an FPGA (field programmable gate array) operation unit, an image sensing unit, a storage unit and a network transmission unit, wherein the image sensing unit acquires RGB (red, green and blue) image information to be processed and transmits the RGB image information to the FGPA operation unit through a low-voltage differential signal, the FPGA operation unit operates the RGB image information to be processed, and an image generated by operation is stored in the storage unit or transmitted to a display terminal through the network transmission unit.
Has the advantages that: the image color enhancement algorithm provided by the invention is realized based on FPGA, and the HSI component conversion is realized by adopting parallel computation, so that the image color enhancement problem is solved, the image information processing speed is greatly improved by adopting the equipment, and the image color enhancement process is rapidly completed.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a general flow chart corresponding to the method of the present invention;
FIG. 2 is a flow chart corresponding to the method of the present invention;
FIG. 3 is a block diagram of an apparatus corresponding to the method of the present invention;
FIG. 4 is an effect diagram of manually adjusting coefficient K to 1 according to the method of the present invention
FIG. 5 is an effect diagram of the coefficient K of the manual adjustment coefficient corresponding to the method of the present invention being 1.2;
FIG. 6 is an effect diagram of the coefficient K of the manual adjustment coefficient corresponding to the method of the present invention being 1.5;
FIG. 7 is an effect diagram of the coefficient K of the manual adjustment coefficient corresponding to the method of the present invention being 2.0;
FIG. 8 is an effect diagram of the coefficient K of the manual adjustment coefficient corresponding to the method of the present invention being 2.5;
fig. 9 is an effect diagram of the manual adjustment coefficient K of the method of the present invention being 3.0.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
and 5, converting the HSI component from the HSI color space to the RGB color space to obtain the processed third RGB image data.
The invention converts the complex illumination image from the RGB color space to the HSI color space for image enhancement, and the HSI color space is an intuitive color model and avoids the defects of RGB. The HSI separates the brightness and the color component of the image, the enhancement operation of the brightness component does not affect the color information, the color distortion of the image can be effectively avoided, the enhancement processing of the image is only carried out on one dimension, and the image processing speed is improved. And then the new luminance component H, S, I is inversely transformed back to the RGB space, the fusion process is completed, the hue and the luminance are kept unchanged, and the saturation component is adjusted to achieve the purpose of image enhancement.
In specific example 1, the preferred scheme of step 3 is: comprises the steps of (a) preparing a mixture of a plurality of raw materials,
step 3.1, converting the RGB space into a saturation S component, wherein the calculation formula of the saturation S component is as follows:
s ═ sxk, where k is the manual adjustment coefficient;
step 3.2, judge G2And B2And converting from RGB space to hue H component, judging G2And B2The process comprises the following steps:
step 3.2.1, when G2≥B2The formula for calculating the hue H component is:
step 3.2.2, when G2<B2The formula for calculating the hue H component is:
and 3.3, converting the RGB space into a brightness I component, wherein the calculation formula of the brightness I component is as follows:
in embodiment 1, the step 5 includes determining a value of H and calculating the third RGB image data, where the determining the value of H includes:
step 5.1, when H is greater than or equal to 0 and H is less than or equal to 2 × pi/3, calculating formulas of an R component, a G component and a B component of the third RGB image data are respectively as follows:
B3=I(1-S)
G3=3I-(R3+B3)
step 5.2, when H is not less than 2 × pi/3 and H is not more than 4 × pi 3, R component, G component, and B component calculation formulas of the third RGB image data are respectively:
R3=I(1-S)
B3=3I-(R3+G3)
and 5.3, when H is more than or equal to 4 × pi/3 and H is less than or equal to 2 × pi, calculating formulas of the R component, the G component and the B component of the third RGB image data are respectively as follows:
G3=I(1-S)
R3=3I-(G3+B3)
wherein R is3、G3、B3Is a component of the third RGB image data.
In specific embodiment 1, the method for normalizing the first RGB image in step 2 includes:
R2=R1/(R1+G1+B1);G2=G1/(R1+G1+B1);B2=B1/(R1+G1+B1),
wherein R is1、G1、B1Is a component of the first RGB image data, R2、G2、B2Is a component of the second RGB image data.
The same object, as in fig. 3, is also provided by the present invention in example 2: a device for realizing an image color enhancement method on an FPGA is characterized in that: the system comprises an FPGA (field programmable gate array) operation unit, an image sensing unit, a storage unit and a network transmission unit, wherein the image sensing unit acquires RGB (red, green and blue) image information to be processed and transmits the RGB image information to the FGPA operation unit through a low-voltage differential signal, the FPGA operation unit operates the RGB image information to be processed, and an image generated by operation is stored in the storage unit or transmitted to a display terminal through the network transmission unit. The display terminal can be a computer, a mobile phone or a television and the like. The image sensing unit may also transmit RGB image information to be processed to the FGPA arithmetic unit using a digital component serial or parallel data pattern. The device can be externally connected with a power supply, a real-time clock, a USB, an audio interface and a high-definition interface. The equipment can greatly improve the image information processing speed and quickly finish the color enhancement process of the image.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110462037.6A CN113301319A (en) | 2021-04-27 | 2021-04-27 | Image color enhancement method and device realized on FPGA |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110462037.6A CN113301319A (en) | 2021-04-27 | 2021-04-27 | Image color enhancement method and device realized on FPGA |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113301319A true CN113301319A (en) | 2021-08-24 |
Family
ID=77320413
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110462037.6A Pending CN113301319A (en) | 2021-04-27 | 2021-04-27 | Image color enhancement method and device realized on FPGA |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113301319A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114666559A (en) * | 2022-02-28 | 2022-06-24 | 华南理工大学 | RGB and HSI color space conversion method based on FPGA and circuit thereof |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3410332B2 (en) * | 1997-06-16 | 2003-05-26 | カネボウ株式会社 | Pearl color sorter |
CN102779330A (en) * | 2012-06-13 | 2012-11-14 | 京东方科技集团股份有限公司 | Image reinforcement method, image reinforcement device and display device |
CN106504212A (en) * | 2016-11-07 | 2017-03-15 | 湖南源信光电科技有限公司 | A kind of improved HSI spatial informations low-luminance color algorithm for image enhancement |
CN111445419A (en) * | 2020-04-09 | 2020-07-24 | 南京图格医疗科技有限公司 | Medical endoscope image enhancement method based on mathematical morphology |
CN111915500A (en) * | 2019-05-10 | 2020-11-10 | 南京工业大学 | Foggy day image enhancement method based on improved Retinex algorithm |
CN112465711A (en) * | 2020-10-30 | 2021-03-09 | 南京理工大学 | Degraded image enhancement method for foggy environment |
-
2021
- 2021-04-27 CN CN202110462037.6A patent/CN113301319A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3410332B2 (en) * | 1997-06-16 | 2003-05-26 | カネボウ株式会社 | Pearl color sorter |
CN102779330A (en) * | 2012-06-13 | 2012-11-14 | 京东方科技集团股份有限公司 | Image reinforcement method, image reinforcement device and display device |
CN106504212A (en) * | 2016-11-07 | 2017-03-15 | 湖南源信光电科技有限公司 | A kind of improved HSI spatial informations low-luminance color algorithm for image enhancement |
CN111915500A (en) * | 2019-05-10 | 2020-11-10 | 南京工业大学 | Foggy day image enhancement method based on improved Retinex algorithm |
CN111445419A (en) * | 2020-04-09 | 2020-07-24 | 南京图格医疗科技有限公司 | Medical endoscope image enhancement method based on mathematical morphology |
CN112465711A (en) * | 2020-10-30 | 2021-03-09 | 南京理工大学 | Degraded image enhancement method for foggy environment |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114666559A (en) * | 2022-02-28 | 2022-06-24 | 华南理工大学 | RGB and HSI color space conversion method based on FPGA and circuit thereof |
CN114666559B (en) * | 2022-02-28 | 2024-06-18 | 华南理工大学 | A RGB and HSI color space conversion method and circuit based on FPGA |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107154059B (en) | High dynamic range video processing method | |
US8547450B2 (en) | Methods and systems for automatic white balance | |
CN110691277A (en) | Video signal processing method and device | |
CN106780368A (en) | A kind of underwater picture Enhancement Method based on foreground model | |
RU2013119999A (en) | SYSTEM AND METHOD FOR PROCESSING IMAGE DATA USING AN IMAGE SIGNAL PROCESSOR HAVING A FINAL PROCESSING LOGIC | |
WO2020007166A1 (en) | Video signal processing method and apparatus | |
US10602026B2 (en) | Image processing apparatus, image processing method, and non-transitory computer readable medium | |
CN113132696B (en) | Image tone mapping method, image tone mapping device, electronic equipment and storage medium | |
WO2022218245A1 (en) | Image processing method and apparatus, electronic device, and readable storage medium | |
CN105933616A (en) | Image processing method and equipment | |
US20120188399A1 (en) | Methods and Systems for Automatic White Balance | |
CN114556910B (en) | A video signal processing method and device | |
CN104112259A (en) | Rain removing method and system for single image | |
CN110807735A (en) | Image processing method, image processing device, terminal equipment and computer readable storage medium | |
CN113301319A (en) | Image color enhancement method and device realized on FPGA | |
CN104954627A (en) | Information processing method and electronic equipment | |
CN102231787B (en) | Image color correction method and device | |
CN107358592B (en) | An Iterative Global Adaptive Image Enhancement Method | |
CN101378506A (en) | image compression method | |
TWI556643B (en) | Image adjustment method | |
CN105184746B (en) | Color image enhancement processing method based on histogram equalization | |
CN109040706A (en) | A kind of Computerized image processing system using intelligent identification technology | |
KR101634652B1 (en) | Method and apparatus for intensificating contrast in image | |
WO2022032666A1 (en) | Image processing method and related apparatus | |
TWI430653B (en) | Image processing device and image processing method |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210824 |