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
- fpga
- image data
- rgb image
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 29
- 238000010606 normalization Methods 0.000 claims abstract description 6
- 238000004364 calculation method Methods 0.000 claims description 9
- 230000005540 biological transmission Effects 0.000 claims description 6
- 238000003672 processing method Methods 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 7
- 230000000694 effects Effects 0.000 description 6
- 238000005286 illumination Methods 0.000 description 3
- 230000010365 information processing Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 238000007499 fusion processing Methods 0.000 description 1
- 238000010191 image analysis Methods 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 239000002994 raw material Substances 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
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)
- Facsimile Image Signal Circuits (AREA)
- Color Image Communication Systems (AREA)
- Image Processing (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)
1. An image color enhancement method implemented on an FPGA, comprising:
step 1, acquiring first RGB image information to be processed through a sensor, and transmitting the first RGB image information to an FPGA operation unit through a low-voltage differential signal;
step 2, carrying out normalization processing on the first RGB image data by utilizing an FPGA unit to obtain second RGB image data;
step 3, converting the color component of the second RGB image data from RGB space to HSI component;
step 4, parallel processing of the HSI component by using the FPGA unit to normalize the HSI component;
and 5, converting the HSI component from the HSI color space to the RGB color space to obtain the processed third RGB image data.
2. The image color enhancement method implemented on the FPGA of claim 1, wherein the step 3 of normalizing the first RGB image data by the FPGA unit to obtain the second RGB image data comprises:
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:
3. the image color enhancement method implemented on the FPGA of claim 1 wherein the step 5 comprises determining a value of H and calculating the third RGB image data, the determining the value of H comprising:
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.
4. The image color enhancement method implemented on the FPGA as claimed in claim 1, wherein the first RGB image normalization processing method in step 2 is:
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.
5. An apparatus using the image color enhancement method implemented on the FPGA of claim 1, 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.
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 | 华南理工大学 | RGB and HSI color space conversion method based on FPGA and circuit thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107154059B (en) | High dynamic range video processing method | |
CN111263208B (en) | Picture synthesis method and device, electronic equipment and storage medium | |
US8547450B2 (en) | Methods and systems for automatic white balance | |
CN107038680A (en) | The U.S. face method and system that adaptive optical shines | |
CN108933933B (en) | A kind of video signal processing method and device | |
US10148871B2 (en) | Advanced raw conversion to produce high dynamic range, wide color gamut output | |
WO2013185449A1 (en) | Image enhancement method, image enhancement device and display device | |
RU2013119999A (en) | SYSTEM AND METHOD FOR PROCESSING IMAGE DATA USING AN IMAGE SIGNAL PROCESSOR HAVING A FINAL PROCESSING LOGIC | |
CN108230407B (en) | Image processing method and device | |
JP2008113222A (en) | Image processing apparatus, imaging apparatus, image processing method in these apparatuses, and program allowing computer to execute the method | |
CN113132696B (en) | Image tone mapping method, image tone mapping device, electronic equipment and storage medium | |
US8600185B1 (en) | Systems and methods for restoring color and non-color related integrity in an image | |
WO2023231583A1 (en) | Image processing method and related device thereof | |
US8384796B2 (en) | Methods and systems for automatic white balance | |
EP3685346A1 (en) | System and method for image dynamic range adjusting | |
CN112689137B (en) | Video signal processing method and device | |
DE102016121426A1 (en) | Method and apparatus for interpolating pixel colors from color and panchromatic channels on color channels | |
WO2022218245A1 (en) | Image processing method and apparatus, electronic device, and readable storage medium | |
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 | |
CN109636739B (en) | Detail processing method and device for enhancing image saturation | |
CN111836103B (en) | Anti-occlusion processing system based on data analysis | |
WO2019153799A1 (en) | Color distortion compensation method and apparatus, and television | |
CN115826901A (en) | Electronic ink screen display processing method and system based on color mixing |
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 |
Application publication date: 20210824 |
|
RJ01 | Rejection of invention patent application after publication |