CN113538284A - Transplantation method of image defogging algorithm based on dark channel prior - Google Patents
Transplantation method of image defogging algorithm based on dark channel prior Download PDFInfo
- Publication number
- CN113538284A CN113538284A CN202110832548.2A CN202110832548A CN113538284A CN 113538284 A CN113538284 A CN 113538284A CN 202110832548 A CN202110832548 A CN 202110832548A CN 113538284 A CN113538284 A CN 113538284A
- Authority
- CN
- China
- Prior art keywords
- image
- dark channel
- foggy
- defogging
- sky
- 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 41
- 238000002054 transplantation Methods 0.000 title claims abstract description 17
- 238000002834 transmittance Methods 0.000 claims abstract description 14
- 238000010586 diagram Methods 0.000 claims abstract description 11
- 238000012545 processing Methods 0.000 claims abstract description 11
- 238000003384 imaging method Methods 0.000 claims abstract description 9
- 238000004364 calculation method Methods 0.000 claims abstract description 7
- 230000005540 biological transmission Effects 0.000 claims description 12
- 230000003044 adaptive effect Effects 0.000 claims description 3
- 238000012937 correction Methods 0.000 claims description 3
- 238000003708 edge detection Methods 0.000 claims description 3
- 238000005192 partition Methods 0.000 claims description 3
- 230000000630 rising effect Effects 0.000 claims description 3
- 230000001360 synchronised effect Effects 0.000 claims description 3
- 238000007689 inspection Methods 0.000 claims description 2
- 238000001914 filtration Methods 0.000 abstract description 8
- 230000008569 process Effects 0.000 abstract description 5
- 238000010606 normalization Methods 0.000 abstract 1
- 238000011160 research Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 4
- 238000006731 degradation reaction Methods 0.000 description 3
- 125000001475 halogen functional group Chemical group 0.000 description 3
- 230000006872 improvement Effects 0.000 description 3
- 206010039203 Road traffic accident Diseases 0.000 description 2
- 230000015556 catabolic process Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 230000003631 expected effect Effects 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 241000287196 Asthenes Species 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000002194 synthesizing effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/73—Deblurring; Sharpening
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T1/00—General purpose image data processing
- G06T1/20—Processor architectures; Processor configuration, e.g. pipelining
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T1/00—General purpose image data processing
- G06T1/60—Memory management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/40—Image enhancement or restoration using histogram techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/70—Denoising; Smoothing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/90—Determination of colour characteristics
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Image Processing (AREA)
Abstract
A transplantation method of an image defogging algorithm based on dark channel prior belongs to the field of image defogging processing. In the existing image defogging algorithm based on dark channel prior, guide filtering used in thinning a light propagation diagram is too complex and the algorithm is too complex. The invention comprises the following steps: acquiring a color fog image with R, G, B three channels as an input image, and inputting the color fog image into the FPGA by using a CameraLink; carrying out normalization; calculating atmospheric light value and transmittance, and performing inversion operation in the simplified foggy image imaging model to obtain three defogged images R, G, BA channel, using t0To limit the lower limit of the ray propagation map for these points; further thinning the transmissivity and recovering a fog-free image; the intermediate result is cached by adopting a DDRSDRAM; and outputs the defogged video using the DVI signal generated by CH 7301C. The method realizes the improved transplantation of the defogging algorithm based on the dark channel prior image in the FPGA and has the advantage of simple calculation process.
Description
Technical Field
The invention relates to a transplantation method of an image defogging algorithm based on dark channel prior.
Background
At present, in all image defogging algorithms, the physical degradation process of an image in a foggy day is not considered in an image enhancement-based method, and the degraded image in the foggy weather is enhanced only by using the existing and mature digital image processing technology, so that the purposes of highlighting the edge details of the image and improving the overall contrast of the image are achieved. Although the method can improve the influence of haze weather on the image to a certain extent, the method does not consider the physical degradation mechanism of the image in the haze weather, so that the result often has the problem of color distortion, and is not suitable for image defogging under the dense fog condition, so that the application range is not wide. The image defogging method based on the atmospheric scattering model is based on the principle of image imaging, and the atmospheric light intensity and the medium transmissivity are estimated by combining certain hypothesis or priori knowledge, so that a clear image is recovered. Because the physical degradation mechanism of the foggy image is considered and modeling solution is carried out on the foggy image imaging, the image recovered by the method is natural and reasonable, can be applied to the dense fog condition and is the key research direction in the field of image defogging at present.
Different from the image defogging technology, the research is quite extensive and mature day by day, and the research on the video defogging technology is still in the initial stage at present, so that a plurality of problems still need to be solved. However, with the continuous improvement of the technology level and the increasing importance of the society on intelligent transportation, more and more industry experts and researchers are believed to pay attention to and put into the research of the video defogging technology. Therefore, video defogging and related technologies will be a focus of research in the next period of time.
In the current image defogging algorithm based on dark channel prior, guiding filtering used when a light propagation image is thinned is too complex, a filter template coefficient of the guiding filtering needs to be recalculated once every filtering is performed, the algorithm is too complex, and the method is not suitable for being transplanted to an embedded system composed of a DSP, an FPGA and the like. Therefore, the invention researches how to improve the image defogging algorithm based on dark channel prior, and transplants the image defogging algorithm into the FPGA after being cut.
Disclosure of Invention
The invention aims to solve the problems that guide filtering used in the process of thinning a light propagation diagram is too complex and an algorithm is too complex in the existing image defogging algorithm based on dark channel prior, and provides a transplantation method of the image defogging algorithm based on the dark channel prior.
A transplantation method of image defogging algorithm based on dark channel prior comprises the following steps,
step one, acquiring a color fog image with R, G, B three channels as an input image, and inputting the color fog image into an FPGA by using a CameraLink;
step two, normalizing the color image with R, G, B three channels;
first, assuming that the atmospheric light value a is known, for R, G, B three channels of the simplified foggy day image imaging model, the atmospheric light value a is divided by two sides of the equation at the same time, and the result is expressed as:
step three, calculating dark channel values at two sides of the formula:
set in an arbitrary local region, i.e., in the window Ω (x), the transmittance t (x) is a constant and is expressed asThen, calculating the dark channel values on both sides of the equation to obtain:
since j (y) represents a fog-free image, j (y) dark channel tends towards 0, according to the nature of dark channel, i.e.:
since Ac is a positive number, we deduce:
this can result in:
the sky in the foggy image with sky is close to the atmospheric light value, so that at the sky of the foggy image with sky, the following results are obtained:
further obtainThe transmissivity of the sky area at infinity is also approximate to 0, so that the sky area and the non-sky area of the foggy image do not need to be separately processed during defogging processing;
step four, calculating an atmospheric light value A: firstly, selecting the brightest first 0.1% pixels of a dark channel image of a foggy image, wherein the pixel points are often the places with the most fog, and corresponding the pixel points to corresponding points of the foggy image, wherein the maximum values of three channels of the corresponding points R, G, B of the foggy image are respectively regarded as atmospheric light values of the three channels;
and step five, calculating to obtain an atmospheric light value and transmittance through the previous steps, and performing inversion operation in a simplified foggy day image imaging model to recover and obtain a defogged image R, G, B through the following calculation by respectively using the following formulas:
using t0To limit the lower limit of the ray propagation map for these points;
sixthly, further thinning the transmissivity, and recovering the fog-free image by using the thinned transmissivity, wherein the method specifically comprises the following steps:
first, the foggy image is subjected to edge detection to generate a mask image BWmask(ii) a Then, dark channels are respectively obtained for the foggy images by using 3 × 3 and 15 × 15 filter templates; thereafter, mask image BW is usedmaskSynthesizing dark channel inspection, and obtaining a light propagation diagram t (x) by using a newly generated dark channel;
step seven, caching the intermediate result by adopting a DDRSDRAM; and a DVI signal generated by CH7301C is adopted to output defogged video, so that the transplantation of an image defogging algorithm based on dark channel prior on a defogging system is realized.
Based on the embodiment of the invention, preferably, the FPGA of the FPGA-based vehicle-mounted real-time defogging system selects EP4CE10F17C8 type as a main control chip, the input adopts CameraLink input, the output adopts DVI signal output generated by CH7301C, and the intermediate result adopts DDRSDRAM for caching;
wherein,
(1) the transmitter receives a 28-bit single-ended data signal and a 1-bit single-ended clock signal, then the data signal and the clock signal are converted into a group of 4-bit differential data stream and 1-bit differential clock signal by the transmitter in a ratio of 7:1, after the converted data signal and clock signal are sent out, the receiver receives the data signal and the differential clock signal and restores the differential data signal and the differential clock signal into a 28-bit single-ended data signal and a 1-bit single-ended clock signal, and data transmission is completed;
the CameraLink continues to use the bottom layer architecture of the ChannelLink, and the transmission rate of the CameraLink is 2.38 Gbits/s; the CameraLink protocol is divided into five configurations, namely simplified configuration, basic configuration, middle-end configuration, high-end configuration and 80-bit configuration.
(2) The DVI protocol is called DigitalVisualInterface, namely a digital video interface; the FPGA controls CH7301C, and then CH7301C generates DVI signal;
(3) DDRSDRAM is called double DateRateSDRAM, Chinese is called double-rate synchronous dynamic random access memory; the ddr sdram latches data on both the rising and falling edges of the clock signal.
Preferably, according to the embodiment of the present invention, the method further comprises the steps of,
the method for correcting transmission by setting a fixed threshold value is used for correcting color distortion of a fog-containing image containing a sky or white area, and specifically comprises the following steps:
recording sky or white and other areas of the fog-containing image, presenting high peak characteristics on the gray level histogram, and obtaining an adaptive threshold value by utilizing the characteristics to partition a sky or white and other bright areas and non-bright areas; and then, designing a self-adaptive correction function, improving an image atmospheric dissipation function, and performing defogging treatment on the regions respectively.
The invention has the beneficial effects that:
the invention mainly solves the problems that:
(1) and (3) realizing the improved image defogging algorithm on the FPGA.
(2) And the defogging treatment is carried out on the video image to meet the requirement of real-time property.
Aiming at the structure and the characteristics of an FPGA hardware platform and having the characteristic of strong parallel processing capability, the real-time defogging processing of a video image is realized on the FPGA hardware platform through the improvement and the simplification of an algorithm based on the algorithm, and the method is applied to a vehicle-mounted system, so that the problem of traffic accidents caused by the blocked vision of a driver in a foggy day is solved. In order to achieve the expected effect, the original dark channel prior theory is firstly learned and known, a filter template needs to be recalculated every time guiding filtering for soft matting is carried out when a ray propagation diagram is obtained, time is consumed, the refined dark channel is directly used as the depth of field for estimating the ray propagation diagram, the ray propagation diagram does not need to be subjected to soft matting, the algorithm running time is greatly reduced, the expected effect can be achieved after defogging, a Camera Link input control module and a DVI output module of CH7301C are designed in an FPGA based on Verilog language, and a DDRSDRAM controller is achieved by using a memory interface solution provided by Altera. The implementation of these modules lays a good foundation for implementing an improved dark channel prior-based image defogging algorithm in an FPGA. And finally, the improved dark channel prior image defogging algorithm based transplantation is realized in the FPGA.
The invention relates to a vehicle-mounted real-time defogging system based on an FPGA framework. Aiming at the strong parallel computing processing capacity of FPGA, the real-time processing of video images can be completely realized, because the image defogging algorithm based on the dark channel prior theory is too complex when the transmissivity is refined, the processing speed can be influenced, the real-time performance cannot be achieved, and the image defogging algorithm is not suitable for being realized on hardware, in order to enable the transmissivity calculation and the atmospheric light estimation to be realized on hardware more quickly and conveniently, the calculation process is simplified, and finally, an optimization method realized on the basis of FPGA is used for realizing the hardware logics of a plurality of modules such as dark channel acquisition, transmissivity calculation, atmospheric light estimation, final image restoration and the like. The vehicle-mounted real-time defogging system can acquire front road information in real time in a foggy weather, helps a driver to accurately judge road conditions, avoids traffic accidents caused by the problem of blocked vision, and meanwhile, most of the current advanced auxiliary driving systems based on vision in the market cannot process foggy day images, so that the vehicle-mounted real-time defogging system has very important significance in research.
Drawings
FIG. 1 is a flow chart of the method of the present invention;
fig. 2 is a data conversion and transmission process of the ChannelLink according to the present invention;
fig. 3 is a schematic diagram of DVI signals output by the FPGA controlling CH7301C according to the present invention.
Detailed Description
The first embodiment is as follows:
the transplantation method of the image defogging algorithm based on the dark channel prior in the embodiment is shown in a method flow chart in fig. 1, and the method comprises the following steps,
step one, acquiring a color fog image with R, G, B three channels as an input image, and inputting the color fog image into an FPGA by using a CameraLink;
step two, normalizing the color image with R, G, B three channels;
first, assuming that the atmospheric light value a is known, for R, G, B three channels of the simplified foggy day image imaging model, the atmospheric light value a is divided by two sides of the equation at the same time, and the result is expressed as:
step three, calculating dark channel values at two sides of the formula:
set in an arbitrary local region, i.e., in the window Ω (x), the transmittance t (x) is a constant and is expressed asCalculating the dark channel values on both sides of the equation, we can obtain:
since j (y) represents a fog-free image, j (y) dark channel tends towards 0, according to the nature of dark channel, i.e.:
since Ac is a positive number, we deduce:
this can result in:
the sky in the foggy image with sky is close to the atmospheric light value, so that at the sky of the foggy image with sky, the following results are obtained:
further obtainThe transmissivity of the sky area at infinity is also approximate to 0, so that the sky area and the non-sky area of the foggy image do not need to be separately processed during defogging processing;
step four, calculating an atmospheric light value A: firstly, selecting the brightest first 0.1% pixels of a dark channel image of a foggy image, wherein the pixel points are often the places with the most fog, the pixel points are corresponding to corresponding points of the foggy image, and the respective maximum values of three channels of the corresponding points R, G, B of the foggy image are respectively regarded as atmospheric light values of the three channels;
and step five, calculating to obtain an atmospheric light value and transmittance through the previous steps, and performing inversion operation in a simplified foggy day image imaging model to recover and obtain a defogged image R, G, B through the following calculation by respectively using the following formulas:
due to calculated ray propagation diagramVery close to 0 at some points, if the light propagation pattern of these points is directly used to restore the defogged image, the defogged image may be very noisy, so t is used0To limit thisThe lower limit of the ray propagation map for points;
step six, when the depth of the adjacent objects in the scene is discontinuous, a circle of obvious white thin band appears in the edge zone generally, and the phenomenon is called Halo effect (Halo).
This phenomenon arises because, when the image is defogged based on the dark channel prior theory, it is in the local window region
Within Ω (x), we assume a coarse transmittanceIs a constant, and the transmittance at the non-edge area with gentle image depth can be correctly estimated. However, at the abrupt change of the depth of the image scene, the transmittance t (x) is not constant within the range of the current window, so that the transmittance estimation of the foggy area at the edge of the image is deviated, and the foggy area at the edge is treated as a clear part during processing, so that the foggy area is not subjected to image enhancement and is directly transmitted out together with a near object, and a halo is generated. Therefore, the rough transmittance needs to be further refined, the transmittance is further refined, and the refined transmittance is used to recover the haze-free image, which specifically comprises the following steps:
first, the foggy image is subjected to edge detection to generate a mask image BWmask(ii) a Then, dark channels are respectively obtained for the foggy images by using 3 × 3 and 15 × 15 filter templates; thereafter, mask image BW is usedmaskAnd (4) synthesizing a dark channel test, and obtaining a light propagation diagram t (x) by using the newly generated dark channel. The method uses a smaller filter template to carry out filtering on the edge of an object in the foggy image to obtain the dark channel, not only can the edge be reserved, but also the steps designed by the invention are utilized to carry out the obtaining of t (x) of the light propagation diagram, so that the step of soft image matting can be omitted, and the operation time is greatly saved;
step seven, caching the intermediate result by adopting a DDRSDRAM; and a DVI signal generated by CH7301C is adopted to output defogged video, so that the transplantation of an image defogging algorithm based on dark channel prior on a defogging system is realized.
The second embodiment is as follows:
different from the specific embodiment, in the transplantation method of the image defogging algorithm based on the dark channel prior, the FPGA of the vehicle-mounted real-time defogging system based on the FPGA selects EP4CE10F17C8 model of cycleiv of Altera company as a main control chip, the input adopts CameraLink input, the output adopts DVI signal output generated by CH7301C, and the intermediate result adopts DDRSDRAM for caching;
wherein,
(1) the CameraLink protocol is a standard protocol developed on the basis of the ChannelLink protocol proposed by national semiconductor corporation of america and now becomes image video data transmission. The channeliLink protocol comprises a transmitter and a receiver, wherein the transmitter receives a 28-bit single-ended data signal and a 1-bit single-ended clock signal, then the data signal and the clock signal are converted into a group of 4-bit differential data stream and 1-bit differential clock signal by the transmitter in a ratio of 7:1, the converted data signal and clock signal are transmitted out, the receiver receives the data signal and differential clock signal and then restores the data signal and differential clock signal into a 28-bit single-ended data signal and a 1-bit single-ended clock signal, data transmission is completed, and the data transmission and conversion process is as shown in FIG. 2;
the CameraLink continues to use the bottom layer architecture of the ChannelLink, and the transmission rate of the CameraLink is 2.38 Gbits/s; the CameraLink protocol is divided into five configurations, namely a reduced (Lite) configuration, a Base (Base) configuration, a Medium (Medium) configuration, a high (Full) configuration, and an 80bit configuration.
(2) The DVI protocol is called DigitalVisualInterface, namely a digital video interface; it is a video interface standard proposed by DDWG (digital display working group) made by intel, compaq, IBM, etc., and controls CH7301C by FPGA, and then CH7301C generates DVI signals as shown in fig. 3:
(3) DDRSDRAM is called double DateRateSDRAM, Chinese is called double-rate synchronous dynamic random access memory; in terms of RAM, ddr sdram latches data on both the rising and falling edges of the clock signal, which is equivalent to doubling the data throughput rate.
The third concrete implementation mode:
unlike the first or second embodiment, the transplantation method based on the dark channel prior image defogging algorithm of the present embodiment further includes the following steps,
the method for correcting transmission by setting a fixed threshold value is used for correcting color distortion of a fog-containing image containing a sky or white area, and specifically comprises the following steps:
the method comprises the steps that as areas such as sky or white of a fog-containing image are bright, the areas such as sky or white of the fog-containing image are recorded, a high-peak characteristic is presented on a gray level histogram, and an adaptive threshold value is obtained by utilizing the characteristic to partition a bright area such as sky or white and a non-bright area; and then, designing a self-adaptive correction function, improving an image atmospheric dissipation function, and performing defogging treatment on the regions respectively. Therefore, the problem that after the fog-containing image containing bright areas such as sky and white is defogged, the color of the bright areas is distorted, and the contrast of the whole image is reduced is solved.
The fourth concrete implementation mode:
different from the third specific embodiment, in the transplantation method of the image defogging algorithm based on the dark channel prior, the traditional image defogging algorithm is directed at a single image, the atmospheric light intensity of each frame of image is independently estimated, and the flicker and jitter phenomenon of the restored video image can be caused finally due to the jump of the atmospheric light intensity estimated values of the previous and next frames. In order to improve the flicker jitter of the defogged video, a proper filtering mode is found to be processed when the atmospheric light intensity estimated value is calculated
The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes may be made to the present invention by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (3)
1. A transplantation method of an image defogging algorithm based on dark channel prior is characterized by comprising the following steps: the method comprises the following steps of,
step one, acquiring a color fog image with R, G, B three channels as an input image, and inputting the color fog image into an FPGA by using a CameraLink;
step two, normalizing the color image with R, G, B three channels;
first, assuming that the atmospheric light value a is known, for R, G, B three channels of the simplified foggy day image imaging model, the atmospheric light value a is divided by two sides of the equation at the same time, and the result is expressed as:
step three, calculating dark channel values at two sides of the formula:
set in an arbitrary local region, i.e., in the window Ω (x), the transmittance t (x) is a constant and is expressed asCalculating the dark channel values on both sides of the equation, we can obtain:
since j (y) represents a fog-free image, j (y) dark channel tends towards 0, according to the nature of dark channel, i.e.:
since Ac is a positive number, we deduce:
this can result in:
the sky in the foggy image with sky is close to the atmospheric light value, so that at the sky of the foggy image with sky, the following results are obtained:
further obtainThe transmissivity of the sky area at infinity is also approximate to 0, so that the sky area and the non-sky area of the foggy image do not need to be separately processed during defogging processing;
step four, calculating an atmospheric light value A: firstly, selecting the brightest first 0.1% pixels of a dark channel image of a foggy image, wherein the pixel points are often the places with the most fog, and corresponding the pixel points to corresponding points of the foggy image, wherein the maximum values of three channels of the corresponding points R, G, B of the foggy image are respectively regarded as atmospheric light values of the three channels;
and step five, calculating to obtain an atmospheric light value and transmittance through the previous steps, and performing inversion operation in a simplified foggy day image imaging model to recover and obtain a defogged image R, G, B through the following calculation by respectively using the following formulas:
using t0To limit the lower limit of the ray propagation map for these points;
sixthly, further thinning the transmissivity, and recovering the fog-free image by using the thinned transmissivity, wherein the method specifically comprises the following steps:
first, the foggy image is subjected to edge detection to generate a mask image BWmask(ii) a Then, dark channels are respectively obtained for the foggy images by using 3 × 3 and 15 × 15 filter templates; thereafter, mask image BW is usedmaskSynthesizing dark channel inspection, and obtaining a light propagation diagram t (x) by using a newly generated dark channel;
step seven, caching the intermediate result by adopting a DDRSDRAM; and a DVI signal generated by CH7301C is adopted to output defogged video, so that the transplantation of an image defogging algorithm based on dark channel prior on a defogging system is realized.
2. The transplantation method of image defogging algorithm based on dark channel prior according to claim 1, wherein: the transplanting method is that the FPGA is transplanted on a vehicle-mounted real-time defogging system based on the FPGA, the FPGA of the vehicle-mounted real-time defogging system based on the FPGA selects an EP4CE10F17C8 type as a main control chip, the input adopts CameraLink input, the output adopts DVI signal output generated by CH7301C, and the intermediate result adopts DDRSDRAM for caching;
wherein,
(1) the transmitter receives a 28-bit single-ended data signal and a 1-bit single-ended clock signal, then the data signal and the clock signal are converted into a group of 4-bit differential data stream and 1-bit differential clock signal by the transmitter in a ratio of 7:1, after the converted data signal and clock signal are sent out, the receiver receives the data signal and the differential clock signal and restores the differential data signal and the differential clock signal into a 28-bit single-ended data signal and a 1-bit single-ended clock signal, and data transmission is completed;
the CameraLink continues to use the bottom layer architecture of the ChannelLink, and the transmission rate of the CameraLink is 2.38 Gbits/s; the CameraLink protocol is divided into five configurations, namely simplified configuration, basic configuration, middle-end configuration, high-end configuration and 80-bit configuration.
(2) The DVI protocol is called DigitalVisualInterface, namely a digital video interface; the FPGA controls CH7301C, and then CH7301C generates DVI signal;
(3) DDRSDRAM is called double DateRateSDRAM, Chinese is called double-rate synchronous dynamic random access memory; the ddr sdram latches data on both the rising and falling edges of the clock signal.
3. A dark channel prior based image defogging algorithm transplanting method according to claim 1 or 2, wherein: the method further comprises the step of,
the method for correcting transmission by setting a fixed threshold value is used for correcting color distortion of a fog-containing image containing a sky or white area, and specifically comprises the following steps:
recording sky or white and other areas of the fog-containing image, presenting high peak characteristics on the gray level histogram, and obtaining an adaptive threshold value by utilizing the characteristics to partition a sky or white and other bright areas and non-bright areas; and then, designing a self-adaptive correction function, improving an image atmospheric dissipation function, and performing defogging treatment on the regions respectively.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110832548.2A CN113538284A (en) | 2021-07-22 | 2021-07-22 | Transplantation method of image defogging algorithm based on dark channel prior |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110832548.2A CN113538284A (en) | 2021-07-22 | 2021-07-22 | Transplantation method of image defogging algorithm based on dark channel prior |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113538284A true CN113538284A (en) | 2021-10-22 |
Family
ID=78088715
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110832548.2A Pending CN113538284A (en) | 2021-07-22 | 2021-07-22 | Transplantation method of image defogging algorithm based on dark channel prior |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113538284A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114816775A (en) * | 2022-06-30 | 2022-07-29 | 深圳特科动力技术有限公司 | Landslide prevention dangerous surveying method for steep slope |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106530246A (en) * | 2016-10-28 | 2017-03-22 | 大连理工大学 | Image dehazing method and system based on dark channel and non-local prior |
CN108022225A (en) * | 2017-12-26 | 2018-05-11 | 哈尔滨理工大学 | Based on the improved dark channel prior image defogging algorithm of quick Steerable filter |
CN109087254A (en) * | 2018-04-26 | 2018-12-25 | 长安大学 | Unmanned plane image haze sky and white area adaptive processing method |
US20190287219A1 (en) * | 2018-03-15 | 2019-09-19 | National Chiao Tung University | Video dehazing device and method |
-
2021
- 2021-07-22 CN CN202110832548.2A patent/CN113538284A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106530246A (en) * | 2016-10-28 | 2017-03-22 | 大连理工大学 | Image dehazing method and system based on dark channel and non-local prior |
CN108022225A (en) * | 2017-12-26 | 2018-05-11 | 哈尔滨理工大学 | Based on the improved dark channel prior image defogging algorithm of quick Steerable filter |
US20190287219A1 (en) * | 2018-03-15 | 2019-09-19 | National Chiao Tung University | Video dehazing device and method |
CN109087254A (en) * | 2018-04-26 | 2018-12-25 | 长安大学 | Unmanned plane image haze sky and white area adaptive processing method |
Non-Patent Citations (3)
Title |
---|
P. ANIL KUMAR等: "FPGA Implementation of Video Dehazing using Dark Channel Priori Algorithm", 《INTERNATIONAL JOURNAL OF RECENT TECHNOLOGY AND ENGINEERING》 * |
刘兴云等: "消除halo效应和色彩失真的去雾算法", 《中国图象图形学报》 * |
王凯: "基于FPGA实现实时图像去雾算法的研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114816775A (en) * | 2022-06-30 | 2022-07-29 | 深圳特科动力技术有限公司 | Landslide prevention dangerous surveying method for steep slope |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110148095B (en) | Underwater image enhancement method and enhancement device | |
CN102750674B (en) | Video image defogging method based on self-adapting allowance | |
CN106251300B (en) | A kind of quick night Misty Image restored method based on Retinex | |
CN106157267B (en) | Image defogging transmissivity optimization method based on dark channel prior | |
CN105631829B (en) | Night haze image defogging method based on dark channel prior and color correction | |
CN102637293B (en) | Moving image processing device and moving image processing method | |
CN107301623A (en) | A kind of traffic image defogging method split based on dark and image and system | |
CN104867121B (en) | Image Quick demisting method based on dark primary priori and Retinex theories | |
CN103455979A (en) | Low illumination level video image enhancement method | |
CN110689490A (en) | Underwater image restoration method based on texture color features and optimized transmittance | |
CN111709888A (en) | Aerial image defogging method based on improved generation countermeasure network | |
CN110827221A (en) | Single image defogging method based on double-channel prior and side window guide filtering | |
CN103903229B (en) | A kind of evening images Enhancement Method and device | |
CN108305225A (en) | Traffic monitoring image rapid defogging method based on dark channel prior | |
CN108093175A (en) | A kind of adaptive defogging method of real-time high-definition video and device | |
CN113538284A (en) | Transplantation method of image defogging algorithm based on dark channel prior | |
CN109118450A (en) | A kind of low-quality images Enhancement Method under the conditions of dust and sand weather | |
CN114693548B (en) | Dark channel defogging method based on bright area detection | |
CN106033600B (en) | Dynamic contrast enhancement method based on function curve transformation | |
CN111598814A (en) | Single image defogging method based on extreme scattering channel | |
CN109345479B (en) | Real-time preprocessing method and storage medium for video monitoring data | |
CN107451962B (en) | Image defogging method and device | |
CN112907470A (en) | Underwater image recovery method based on Lab color gamut transformation, classification and white balance | |
CN117611467A (en) | Low-light image enhancement method capable of balancing details and brightness of different areas simultaneously | |
CN113947536B (en) | Self-adaptive enhancement method for heterogeneous night vision vignetting image |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20211022 |