CN115082361A - Turbid water body image enhancement method based on image processing - Google Patents

Turbid water body image enhancement method based on image processing Download PDF

Info

Publication number
CN115082361A
CN115082361A CN202211009346.9A CN202211009346A CN115082361A CN 115082361 A CN115082361 A CN 115082361A CN 202211009346 A CN202211009346 A CN 202211009346A CN 115082361 A CN115082361 A CN 115082361A
Authority
CN
China
Prior art keywords
water body
pixel
turbid water
cluster
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.)
Granted
Application number
CN202211009346.9A
Other languages
Chinese (zh)
Other versions
CN115082361B (en
Inventor
周长青
李朝亮
周艳艳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Guosheng Environmental Technology Co ltd
Original Assignee
Shandong Guosheng Environmental Technology Co ltd
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 Shandong Guosheng Environmental Technology Co ltd filed Critical Shandong Guosheng Environmental Technology Co ltd
Priority to CN202211009346.9A priority Critical patent/CN115082361B/en
Publication of CN115082361A publication Critical patent/CN115082361A/en
Application granted granted Critical
Publication of CN115082361B publication Critical patent/CN115082361B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • G06T5/70
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/762Arrangements for image or video recognition or understanding using pattern recognition or machine learning using clustering, e.g. of similar faces in social networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image

Abstract

The invention relates to the technical field of image enhancement, in particular to a turbid water body image enhancement method based on image processing, which comprises the following steps: the method comprises the steps of obtaining a turbid water body image, obtaining the fuzzy degree of each pixel point in the image, clustering the pixel points according to the fuzzy degree to obtain a plurality of cluster areas, obtaining the characteristic point of each cluster area, calculating the high light intensity value of the characteristic point, obtaining the transmissivity of the characteristic point, calculating the transmissivity of each pixel point in each cluster area corresponding to the characteristic point according to the transmissivity of the characteristic point, obtaining the reflected light intensity value of the pixel point in each cluster area according to the atmospheric light intensity value of each cluster area and the transmissivity of each pixel point in each cluster area, and obtaining the enhanced image of the turbid water body image according to the reflected light intensity values of all the pixel points and the atmospheric light intensity value of the turbid water body image.

Description

Turbid water body image enhancement method based on image processing
Technical Field
The invention relates to the technical field of image enhancement, in particular to a turbid water body image enhancement method based on image processing.
Background
When underwater resource detection or target identification is carried out, the transmissivity of light in a water body image is influenced due to the complex underwater environment and the activities of floating objects and underwater organisms in the water body, so that the image is blurred or shielded, and the image quality is poor due to image blurring.
When an image of a turbid water body is enhanced, in the prior art, image enhancement is mainly performed by using a dark channel prior defogging algorithm, wherein the dark channel prior defogging algorithm is to calculate a reflected light intensity value in the image according to the transmittance of the whole image and then obtain an image-enhanced pixel value according to the reflected light intensity value and an atmospheric light intensity value of the image.
However, when local regions with different degrees of turbidity exist in the turbid water body image, dark channels corresponding to the local regions with different degrees of turbidity are different, that is, the reflected light intensity values of the objects in the local regions with different degrees of turbidity are different, and the reflected light intensity values in the turbid water body image are affected by the transmittance, so that the reflected light intensity values of the objects in the local regions with different degrees of turbidity can not be accurately reflected by calculating the reflected light intensity values of the objects in the local regions with different degrees of turbidity by using the transmittance of the whole image, and the enhancement effect of the local regions in the enhanced image obtained by using the transmittance of the whole image is not good.
Therefore, it is desirable to provide an image enhancement method for a turbid water body based on image processing to solve the above problems.
Disclosure of Invention
The invention provides an image enhancement method for a turbid water body based on image processing, which aims to solve the existing problems.
The invention relates to a turbid water body image enhancement method based on image processing, which adopts the following technical scheme: the method comprises the following steps:
obtaining a turbid water body image;
acquiring a pixel difference value of each pixel point and a neighborhood pixel point in the turbid water body image, and taking the maximum pixel difference value as the fuzzy degree of the corresponding pixel point;
clustering the pixel points according to the fuzzy degree difference of each pixel point and the neighborhood pixel points to obtain a plurality of cluster areas;
taking a pixel point corresponding to the maximum fuzzy degree in the fuzzy degrees corresponding to all pixel points in each cluster region as a characteristic point of the corresponding cluster region;
acquiring a local dark channel map corresponding to each cluster area, acquiring an atmospheric light intensity value corresponding to each cluster area according to the local dark channel map, and taking the atmospheric light intensity value as an atmospheric light intensity value of a characteristic point of the cluster area;
obtaining the transmissivity corresponding to the characteristic points according to the atmospheric light intensity values of the characteristic points, and calculating the transmissivity of each pixel point in the corresponding cluster area according to the transmissivity corresponding to the characteristic points of each cluster area and the fuzzy degree of each pixel point;
and obtaining a reflected light intensity value of each pixel point of each clustering region in the turbid water body image according to the atmospheric light intensity value of each clustering region and the transmissivity of each pixel point in the clustering region, and obtaining an enhanced image of the turbid water body image according to the reflected light intensity values of all the pixel points and the atmospheric light intensity value of the turbid water body image.
Preferably, the turbid water body image is an image obtained by denoising the turbid water body image by using bilateral filtering.
Preferably, the step of clustering the pixel points according to the fuzzy degree difference of each pixel point and the neighboring pixel points thereof to obtain a plurality of clustering areas comprises:
setting a fuzzy degree difference threshold value;
and clustering the pixels of which the fuzzy degree difference value between each pixel and each neighborhood pixel is smaller than the fuzzy degree difference value threshold and the neighborhood pixels to obtain a plurality of cluster regions.
Preferably, the method further comprises the following steps:
setting an area threshold of a cluster region;
acquiring a target clustering region with the area smaller than an area threshold;
acquiring the mean value of first fuzzy degree difference values of all pixel points of a target clustering region and the mean value of second fuzzy degree difference values of all pixel points of each clustering region in the neighborhood of the target clustering region;
the mean value of the first fuzzy degree difference value and the mean value of each second fuzzy degree difference value are differentiated to obtain a mean value difference value;
dividing the target clustering region into clustering regions corresponding to the minimum mean difference value to obtain final clustering regions;
and taking the final cluster area as a cluster area.
Preferably, the step of acquiring the local dark channel map corresponding to each cluster region includes:
setting a window in a cluster area corresponding to each characteristic point by taking each characteristic point as a center;
acquiring the minimum value of all pixel points in the window in an RGB three channel;
and acquiring a local dark channel image corresponding to each window, and taking the local dark channel image as a local dark channel image corresponding to the cluster area.
Preferably, the step of obtaining the atmospheric light intensity value corresponding to each cluster region according to the local dark channel map includes:
taking pixel points which are less than 0.1% of the brightest value in the local dark channel image as target pixel points;
and taking the maximum brightness value of the target pixel point in the turbid water body image as the atmospheric luminous intensity value of the cluster region.
Preferably, the step of calculating the transmittance of each pixel point in the corresponding cluster region according to the transmittance corresponding to the feature point of each cluster region and the blurring degree of each pixel point comprises:
calculating the ratio of the fuzzy degree of the characteristic points of the cluster region to the fuzzy degree of the pixel points in the cluster region;
and taking the product of the ratio of the fuzzy degree of the characteristic points of the cluster region to the fuzzy degree of the pixel points in the cluster region and the transmissivity corresponding to the characteristic points as the transmissivity of the pixel points.
Preferably, the step of obtaining the enhanced image of the turbid water body image according to the reflected light intensity values of all the pixel points and the atmospheric light intensity value of the turbid water body image includes:
taking the sum of the reflected light intensity value of each pixel point and the atmospheric light intensity value of the turbid water body image as the pixel value of the pixel point after enhancement;
and obtaining an enhanced image of the turbid water body image according to the enhanced pixel values of all the pixel points.
The invention has the beneficial effects that: the invention relates to a turbid water body image enhancement method based on image processing, which is characterized in that pixel points are clustered by the aid of fuzziness of the pixel points to obtain a plurality of clustering regions, local regions with different turbidity degrees of a turbid water body image are divided, then characteristic points representing the turbidity degree of each clustering region are obtained, the transmissivity of each pixel point in each clustering region is obtained according to the transmissivity of the characteristic points, then reflected light intensity values of the corresponding pixel points in the turbid water body image are calculated according to the transmissivity and the fuzziness degrees of each pixel point, an enhanced image of the turbid water body image is obtained according to the reflected light intensity values and atmospheric light intensity values, the transmissivity of each pixel point in each local region is calculated, and the reflected light intensity values of the corresponding pixel points are calculated according to the transmissivity of the pixel points in each local region, and then, calculating the enhanced pixel value of each pixel point according to each reflected light intensity value and the atmospheric light intensity value of the turbid water body image, thereby realizing the accurate enhancement of each local area with different turbidity degrees and further improving the enhancement effect of the local area.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of the general steps of an embodiment of an image enhancement method for a turbid water body based on image processing.
Detailed Description
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 only a part of the embodiments of the present invention, and not all of the embodiments. 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.
In an embodiment of the method for enhancing an image of a turbid water body based on image processing, an application scenario of the embodiment is that local areas with different turbidity degrees may exist in the turbid water body image, and when a dark channel preoperative algorithm is used for enhancing, the image is integrally enhanced by using the same enhancement scale, and the local areas with different turbidity degrees cannot be adaptively enhanced, so that an enhancement effect is affected, so as shown in fig. 1, the method for enhancing the turbid water body based on image processing provided by the embodiment includes:
s1, obtaining a turbid water body image; specifically, an underwater detection device is used for collecting images of turbid water bodies.
Specifically, because the muddy condition of the water body can influence the imaging effect, the imaging effect needs to be enhanced, noise exists when the underwater camera is used for imaging the water body, and in order to avoid the influence of the noise on subsequent image processing, the noise reduction processing needs to be carried out on the image before the image enhancement.
S2, obtaining pixel difference values of each pixel point and adjacent pixel points in the turbid water body image, taking the maximum pixel difference value as the fuzzy degree of the corresponding pixel point, and clustering the pixel points according to the fuzzy degree difference values of each pixel point and adjacent pixel points to obtain a plurality of clustering areas.
Specifically, for a turbid water body, the transmittance of atmospheric light in a water body image is influenced mainly by the existence of a large number of floating objects in the water body, so that the image is blurred or shielded by the floating objects, and the quality of the image is poor.
The image enhancement by the dark channel prior defogging algorithm is the prior art and is mainly judged based on the imaging principle of a camera, and the imaging of the camera is mainly used for receiving the reflection of an object, such as for pixel points in the image
Figure DEST_PATH_IMAGE001
Which reflects light of
Figure 227080DEST_PATH_IMAGE002
At this time, in the process of reflected light propagation, the floating object in the water body may block part of the reflected light, so as to attenuate the reflected light of the object, and at this time, the blocking degree of the floating object to the reflected light is the ratio of the reflected light reaching the camera to the reflected light of the object, that is, the transmittance is
Figure DEST_PATH_IMAGE003
Transmittance of
Figure 701049DEST_PATH_IMAGE003
The larger the ratio of the reflected light, that is, the smaller the degree of shielding the reflected light in the turbid water image, the lower the turbidity of the turbid water.
Specifically, the pixel difference value of each pixel point and its neighborhood pixel point in the turbid water body image is obtained, and the maximum pixel difference value is used as the fuzzy degree of the corresponding pixel point.
Specifically, the step of clustering the pixel points according to the fuzzy degree difference of each pixel point and the neighborhood pixel points to obtain a plurality of cluster areas comprises: for turbid water body images of local areas with different turbidity degrees, different turbidities of different local areas are requiredEnhancing corresponding local areas by different scales according to the degree, and therefore, firstly determining the distribution of the turbidity degrees in the turbid water body image, namely setting a fuzzy degree difference threshold value; clustering the pixels with the fuzzy degree difference value between each pixel and each neighborhood pixel smaller than the fuzzy degree difference value threshold value and the neighborhood pixels to obtain a plurality of cluster regions, namely clustering the pixels
Figure 547651DEST_PATH_IMAGE001
Degree of blur is noted as
Figure 975222DEST_PATH_IMAGE004
Then pixel point
Figure 725134DEST_PATH_IMAGE001
To (1) a
Figure DEST_PATH_IMAGE005
The fuzzy degree of each neighborhood pixel point is recorded as
Figure 868539DEST_PATH_IMAGE006
Pixel point
Figure 969482DEST_PATH_IMAGE001
And its adjacent pixel point
Figure DEST_PATH_IMAGE007
Corresponding to a difference in blur degree of
Figure 138426DEST_PATH_IMAGE008
In this embodiment, the difference of the blur degrees is determined according to an empirical value
Figure DEST_PATH_IMAGE009
When the value of (2) is 5, when the pixel point is
Figure 929796DEST_PATH_IMAGE001
And its adjacent pixel point
Figure 57152DEST_PATH_IMAGE007
Corresponding difference in degree of blur
Figure 143925DEST_PATH_IMAGE010
Difference in degree of blur
Figure 539397DEST_PATH_IMAGE009
Then the pixel point is set
Figure 762437DEST_PATH_IMAGE001
And its adjacent pixel point
Figure 60694DEST_PATH_IMAGE007
And clustering into a cluster, and by analogy, clustering all pixel points in the turbid water body image to obtain a corresponding cluster.
In order to reduce the calculation amount, and because the fuzzy degree of the small-area cluster region has little influence on the fuzzy degree of the large-area cluster region, the area threshold of the cluster region is set first, the empirical value of the area threshold is 4, and the empirical value can be modified according to the actual condition; acquiring a target clustering region with the area smaller than an area threshold; acquiring the mean value of first fuzzy degree difference values of all pixel points of a target clustering region and the mean value of second fuzzy degree difference values of all pixel points of each clustering region in the neighborhood of the target clustering region; the mean value of the first fuzzy degree difference value and the mean value of each second fuzzy degree difference value are differentiated to obtain a mean value difference value; dividing the target clustering area into clustering areas corresponding to the minimum mean difference value to obtain a final clustering area; and taking the final cluster region as a cluster region, wherein the aim of the step is to divide local regions with different turbidity degrees of the turbid water body image.
And S3, taking the pixel point corresponding to the maximum fuzzy degree in the fuzzy degrees corresponding to all the pixel points in each cluster area as the characteristic point of the corresponding cluster area.
Specifically, a plurality of cluster regions are obtained in step S3
Figure DEST_PATH_IMAGE011
A cluster region is represented as a region of clusters,
Figure 73911DEST_PATH_IMAGE012
wherein
Figure DEST_PATH_IMAGE013
Is shown as
Figure 302768DEST_PATH_IMAGE013
The influence of floating objects in the water body in the floating process in the turbid water body image on the image is equivalent to the atomization effect of the image, so that the turbidity degree of the turbid water body image reflects the turbidity degree of the turbid water body image, and in order to reflect the turbidity degree of the local area, namely the turbidity degree of each cluster area, the cluster areas are clustered according to the blur degree of the turbid water body image
Figure 881779DEST_PATH_IMAGE014
The bigger the turbid water body image is, the more turbid the turbid water body image is reflected, so that the pixel point corresponding to the maximum fuzzy degree in the fuzzy degrees corresponding to all the pixel points in each cluster region is used as the turbid degree characteristic point corresponding to the cluster region, the difference of the turbid degrees among different cluster regions is reflected by the fuzzy degree corresponding to the turbid degree characteristic point of the cluster region, and the characteristic point of each cluster region is obtained based on the difference.
And S4, acquiring a local dark channel map corresponding to each cluster area, acquiring an atmospheric light intensity value corresponding to each cluster area according to the local dark channel map, and taking the atmospheric light intensity value as an atmospheric light intensity value of the characteristic point of the cluster area.
Specifically, the step of obtaining the local dark channel map corresponding to each cluster region includes: setting a size of a cluster area corresponding to each characteristic point by taking each characteristic point as a center
Figure DEST_PATH_IMAGE015
The window of (1); obtaining the minimum value of all pixel points in the window in R, G, B three channels; obtain each windowAnd the minimum value of the three channels is minimally influenced by the reflected light of the object, so that the minimum value can reflect the atmospheric light intensity value to the greatest extent.
Specifically, the step of obtaining the atmospheric light intensity value corresponding to each cluster region according to the local dark channel map includes: taking pixel points which are less than 0.1% of the brightest value in the local dark channel image as target pixel points; and taking the maximum brightness value of the target pixel point in the turbid water body image as the atmospheric luminous intensity value of the cluster region.
S5, obtaining the transmissivity corresponding to the characteristic points according to the atmospheric light intensity values of the characteristic points, and calculating the transmissivity of each pixel point in the corresponding cluster area according to the transmissivity corresponding to the characteristic points of each cluster area and the fuzzy degree of each pixel point;
specifically, the transmittance in the image enhancement technology by using the dark channel prior defogging algorithm in the prior art reflects the turbidity degree, that is, the smaller the transmittance is, it indicates that suspended matter exists in the turbid water body image, and more other matters block light, so that the turbid water body of the turbid water body image is reflected, and for the situation that local areas with different turbidity degrees exist, the local areas should have different transmittances, so in this embodiment, the transmittance corresponding to the feature point is obtained according to the atmospheric light intensity value of the feature point, and the method for calculating the transmittance is a method for calculating the transmittance in the image enhancement technology by using the dark channel prior defogging algorithm, so this embodiment is not repeated.
When the reflected light intensity value of each cluster region is corrected by using the transmittance corresponding to the feature point, the enhanced cluster region obtained by calculating the reflected light intensity value of each cluster region can enhance the blocking phenomenon of the turbid water body image, that is, the reflected light intensity values of different cluster regions are different, so that the corresponding enhancement degrees are different, and further, the difference between the cluster region and the cluster region can be formed.
In order to avoid the occurrence of an obvious blocking phenomenon, specifically, the embodiment calculates the transmittance of each pixel point in the corresponding cluster region by using the transmittance corresponding to the feature point of each cluster region and the blur degree of each pixel point, and then calculates the ratio of the blur degree of the feature point of the cluster region to the blur degree of the pixel point in the cluster region; taking the product of the ratio of the fuzzy degree of the characteristic points of the cluster region to the fuzzy degree of the pixel points in the cluster region and the transmissivity corresponding to the characteristic points as the transmissivity of the pixel points, wherein the formula for calculating the transmissivity of each pixel point in the cluster region is as follows:
Figure DEST_PATH_IMAGE017
in the formula (I), the compound is shown in the specification,
Figure 741150DEST_PATH_IMAGE018
is shown as
Figure DEST_PATH_IMAGE019
(ii) first of the clustered regions
Figure 976085DEST_PATH_IMAGE005
The transmittance of each pixel point;
Figure 70949DEST_PATH_IMAGE020
is shown as
Figure 19313DEST_PATH_IMAGE019
The transmittance of the characteristic points of the individual cluster regions;
Figure DEST_PATH_IMAGE021
is shown as
Figure 613368DEST_PATH_IMAGE019
Degree of blurring, i.e. degree of turbidity, of individual clustered regions;
Figure 896450DEST_PATH_IMAGE022
is shown as
Figure 811317DEST_PATH_IMAGE019
(ii) first of the clustered regions
Figure 364920DEST_PATH_IMAGE005
The degree of blurring of individual pixel points;
when needing to be explained, according to the steps 1 to 5, firstly, the corresponding fuzzy degrees of all the pixel points are calculated
Figure DEST_PATH_IMAGE023
Performing cluster analysis on pixel points, then obtaining characteristic points with local representativeness in each cluster region, representing the turbidity degree of the corresponding cluster region by the fuzzy degree (turbidity degree) corresponding to each characteristic point, accurately representing the turbidity degree of the image according to the transmittance in a dark channel pre-inspection algorithm, therefore, after obtaining the characteristic point of each cluster region of the turbid water body image, calculating the transmittance of the characteristic point according to a dark channel prior algorithm, then obtaining the transmittance of each pixel point by utilizing the transmittance of the characteristic point and the fuzzy degree of each pixel point in the cluster region corresponding to the characteristic point, namely, firstly determining the transmittance relation between the pixel point and the characteristic point according to the fuzzy degree relation between the pixel point and the characteristic point in each cluster region, thereby obtaining the transmittance of each pixel point, and calculating the reflected light intensity value in the cluster region for the subsequent calculation according to the transmittance of each pixel point in the cluster region, and avoids the blocking phenomenon of the turbid water body image.
S6, obtaining the reflected light intensity value of each pixel point of each cluster region in the turbid water body image according to the atmospheric light intensity value of each cluster region and the transmissivity of each pixel point in the cluster region, and obtaining the enhanced image of the turbid water body image according to the reflected light intensity values of all the pixel points and the atmospheric light intensity value of the turbid water body image.
Specifically, based on an image enhancement formula in the dark channel prior-inspection algorithm, a formula for obtaining an enhanced image of the turbid water body image according to the transmittance and the blur degree of each pixel point in local regions (cluster regions) with different turbidity degrees is obtained in the embodiment:
Figure 910302DEST_PATH_IMAGE024
in the formula (I), the compound is shown in the specification,
Figure DEST_PATH_IMAGE025
first of turbid water body image
Figure 618364DEST_PATH_IMAGE019
In a cluster area
Figure 556495DEST_PATH_IMAGE005
The enhanced pixel values of the pixel points;
Figure 479452DEST_PATH_IMAGE026
representing images of turbid water
Figure 976161DEST_PATH_IMAGE019
In a cluster area
Figure 266459DEST_PATH_IMAGE005
Pixel values of the individual pixel points;
Figure 8281DEST_PATH_IMAGE018
representing images of turbid water
Figure 520165DEST_PATH_IMAGE019
In a cluster area
Figure 187776DEST_PATH_IMAGE005
The transmittance of each pixel point;
Figure DEST_PATH_IMAGE027
represents a non-0 constant;
Figure 43999DEST_PATH_IMAGE028
representing images of turbid water
Figure 88047DEST_PATH_IMAGE019
Atmospheric light intensity values for the respective cluster regions;
Figure DEST_PATH_IMAGE029
representing atmospheric light intensity values of the turbid water body image;
and taking the sum of the reflected light intensity value of each pixel point and the atmospheric light intensity value of the turbid water body image as the enhanced pixel value of the pixel point, and obtaining the enhanced image of the turbid water body image according to the enhanced pixel values of all the pixel points.
It should be noted that, in the following description,
Figure 525940DEST_PATH_IMAGE018
is shown as
Figure 115184DEST_PATH_IMAGE019
(ii) first of the clustered regions
Figure 848916DEST_PATH_IMAGE005
The transmittance of the individual pixels is determined,
Figure 916229DEST_PATH_IMAGE030
representing images of turbid water
Figure 917552DEST_PATH_IMAGE019
In a cluster area
Figure 943277DEST_PATH_IMAGE005
Determining the transmittance relation between the pixel points and the characteristic points according to the fuzzy degree relation between the pixel points and the characteristic points in each cluster region to obtain the transmittance of each pixel point, and then obtaining the enhancement of the turbid water body image according to the transmittance of the pixel points in each cluster region to the reflected light intensity value of the corresponding pixel point in the cluster region and the atmospheric light intensity value of the turbid water body imageThe image can realize the accurate enhancement of the turbid water body image, and further improve the enhancement effect.
In summary, the present invention provides a turbid water body image enhancement method based on image processing, which clusters pixel points through the ambiguity of the pixel points to obtain a plurality of cluster regions, and is intended to divide local regions of turbid water body images with different degrees of turbidity, then obtain characteristic points representing the degree of turbidity of each cluster region, obtain the transmittance of each pixel point in the cluster region according to the transmittance of the characteristic points, then calculate the reflected light intensity value of the corresponding pixel point in the turbid water body image according to the transmittance and the ambiguity of each pixel point, obtain the enhanced image of the turbid water body image according to the reflected light intensity value and the atmospheric light intensity value, realize the calculation of the transmittance of each pixel point in each local region, and calculate the reflected light intensity value of the corresponding pixel point through the transmittance of the pixel point in each local region, and then, calculating the enhanced pixel value of each pixel point according to each reflected light intensity value and the atmospheric light intensity value of the turbid water body image, thereby realizing the accurate enhancement of each local area with different turbidity degrees and further improving the enhancement effect of the local area.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (8)

1. A turbid water body image enhancement method based on image processing is characterized by comprising the following steps:
obtaining a turbid water body image;
acquiring a pixel difference value of each pixel point and a neighborhood pixel point in the turbid water body image, and taking the maximum pixel difference value as the fuzzy degree of the corresponding pixel point; clustering the pixel points according to the fuzzy degree difference of each pixel point and the neighborhood pixel points to obtain a plurality of cluster areas;
taking a pixel point corresponding to the maximum fuzzy degree in the fuzzy degrees corresponding to all pixel points in each cluster region as a characteristic point of the corresponding cluster region;
acquiring a local dark channel map corresponding to each cluster area, acquiring an atmospheric light intensity value corresponding to each cluster area according to the local dark channel map, and taking the atmospheric light intensity value as an atmospheric light intensity value of a characteristic point of the cluster area;
obtaining the transmissivity corresponding to the characteristic points according to the atmospheric light intensity values of the characteristic points, and calculating the transmissivity of each pixel point in the corresponding cluster area according to the transmissivity corresponding to the characteristic points of each cluster area and the fuzzy degree of each pixel point;
and obtaining a reflected light intensity value of each pixel point of each clustering region in the turbid water body image according to the atmospheric light intensity value of each clustering region and the transmissivity of each pixel point in the clustering region, and obtaining an enhanced image of the turbid water body image according to the reflected light intensity values of all the pixel points and the atmospheric light intensity value of the turbid water body image.
2. The turbid water body image enhancement method based on image processing according to claim 1, characterized in that the turbid water body image is an image obtained by denoising a turbid water body image by bilateral filtering.
3. The turbid water body image enhancement method based on image processing according to claim 1, wherein the step of clustering pixel points according to the fuzzy degree difference of each pixel point and its neighborhood pixel points to obtain a plurality of clustered regions comprises:
setting a fuzzy degree difference threshold value;
and clustering the pixels of which the fuzzy degree difference value between each pixel and each neighborhood pixel is smaller than the fuzzy degree difference value threshold and the neighborhood pixels to obtain a plurality of cluster regions.
4. The method for enhancing the turbid water body image based on the image processing as claimed in claim 2, further comprising:
setting an area threshold of a cluster region;
acquiring a target clustering region with the area smaller than an area threshold;
acquiring the mean value of first fuzzy degree difference values of all pixel points of a target clustering region and the mean value of second fuzzy degree difference values of all pixel points of each clustering region in the neighborhood of the target clustering region;
the mean value of the first fuzzy degree difference value and the mean value of each second fuzzy degree difference value are differentiated to obtain a mean value difference value;
dividing the target clustering area into clustering areas corresponding to the minimum mean difference value to obtain a final clustering area;
and taking the final cluster area as a cluster area.
5. The turbid water body image enhancement method based on image processing according to claim 1, wherein the step of obtaining the local dark channel map corresponding to each cluster region comprises:
setting a window in a clustering area corresponding to each characteristic point by taking each characteristic point as a center;
acquiring the minimum value of all pixel points in the window in an RGB three channel;
and acquiring a local dark channel image corresponding to each window, and taking the local dark channel image as a local dark channel image corresponding to the cluster area.
6. The turbid water body image enhancement method based on image processing as claimed in claim 1, wherein the step of obtaining the atmospheric light intensity value corresponding to each cluster region according to the local dark channel map comprises:
taking pixel points which are less than 0.1% of the brightest value in the local dark channel image as target pixel points;
and taking the corresponding maximum brightness value of the target pixel point in the turbid water body image as the atmospheric light intensity value of the cluster region.
7. The turbid water body image enhancement method based on image processing according to claim 1, wherein the step of calculating the transmittance of each pixel point in the corresponding cluster region according to the transmittance corresponding to the feature point of each cluster region and the blurring degree of each pixel point comprises:
calculating the ratio of the fuzzy degree of the characteristic points of the cluster region to the fuzzy degree of the pixel points in the cluster region;
and taking the product of the ratio of the fuzzy degree of the characteristic points of the cluster region to the fuzzy degree of the pixel points in the cluster region and the transmissivity corresponding to the characteristic points as the transmissivity of the pixel points.
8. The turbid water body image enhancement method based on image processing according to claim 1, wherein the step of obtaining the enhanced image of the turbid water body image according to the reflected light intensity values of all the pixel points and the atmospheric light intensity value of the turbid water body image comprises:
taking the sum of the reflected light intensity value of each pixel point and the atmospheric light intensity value of the turbid water body image as the pixel value of the pixel point after enhancement;
and obtaining an enhanced image of the turbid water body image according to the enhanced pixel values of all the pixel points.
CN202211009346.9A 2022-08-23 2022-08-23 Turbid water body image enhancement method based on image processing Active CN115082361B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211009346.9A CN115082361B (en) 2022-08-23 2022-08-23 Turbid water body image enhancement method based on image processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211009346.9A CN115082361B (en) 2022-08-23 2022-08-23 Turbid water body image enhancement method based on image processing

Publications (2)

Publication Number Publication Date
CN115082361A true CN115082361A (en) 2022-09-20
CN115082361B CN115082361B (en) 2022-10-28

Family

ID=83245159

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211009346.9A Active CN115082361B (en) 2022-08-23 2022-08-23 Turbid water body image enhancement method based on image processing

Country Status (1)

Country Link
CN (1) CN115082361B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115311288A (en) * 2022-10-12 2022-11-08 江苏魔视智能科技有限公司 Method for detecting damage of automobile film
CN115797225A (en) * 2023-01-06 2023-03-14 山东环宇地理信息工程有限公司 Unmanned ship acquisition image enhancement method for underwater topography measurement
CN116109933A (en) * 2023-04-13 2023-05-12 山东省土地发展集团有限公司 Dynamic identification method for ecological restoration of abandoned mine
CN117423126A (en) * 2023-12-18 2024-01-19 广州市省信软件有限公司 Bill image-text recognition method and system based on data analysis
CN117576692A (en) * 2024-01-17 2024-02-20 大连云智信科技发展有限公司 Method for detecting water source pollution of animal husbandry based on image recognition

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105761227A (en) * 2016-03-04 2016-07-13 天津大学 Underwater image enhancement method based on dark channel prior algorithm and white balance
CN106056559A (en) * 2016-06-30 2016-10-26 河海大学常州校区 Dark-channel-prior-method-based non-uniform-light-field underwater target detection image enhancement method
CN106780380A (en) * 2016-12-09 2017-05-31 电子科技大学 A kind of image defogging method and system
CN107316278A (en) * 2017-05-13 2017-11-03 天津大学 A kind of underwater picture clearness processing method
CN108765342A (en) * 2018-05-30 2018-11-06 河海大学常州校区 A kind of underwater image restoration method based on improvement dark
US20200027203A1 (en) * 2018-07-20 2020-01-23 Baidu Online Network Technology (Beijing) Co., Ltd. Method and apparatus for processing image
CN110930319A (en) * 2019-11-05 2020-03-27 天津大学 Underwater image sharpening method based on self-adaptive transmissivity estimation
CN114463211A (en) * 2022-01-28 2022-05-10 华中科技大学 Underwater image enhancement method based on turbidity classification

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105761227A (en) * 2016-03-04 2016-07-13 天津大学 Underwater image enhancement method based on dark channel prior algorithm and white balance
CN106056559A (en) * 2016-06-30 2016-10-26 河海大学常州校区 Dark-channel-prior-method-based non-uniform-light-field underwater target detection image enhancement method
CN106780380A (en) * 2016-12-09 2017-05-31 电子科技大学 A kind of image defogging method and system
CN107316278A (en) * 2017-05-13 2017-11-03 天津大学 A kind of underwater picture clearness processing method
CN108765342A (en) * 2018-05-30 2018-11-06 河海大学常州校区 A kind of underwater image restoration method based on improvement dark
US20200027203A1 (en) * 2018-07-20 2020-01-23 Baidu Online Network Technology (Beijing) Co., Ltd. Method and apparatus for processing image
CN110930319A (en) * 2019-11-05 2020-03-27 天津大学 Underwater image sharpening method based on self-adaptive transmissivity estimation
CN114463211A (en) * 2022-01-28 2022-05-10 华中科技大学 Underwater image enhancement method based on turbidity classification

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
K. OULDAMER ET AL.: "Underwater mage quality improvement approach based on an adapted Gabor multi-channels filtering", 《SPIE》 *
KUN XIE ET AL.: "An Underwater Image Enhancement Algorithm for Environment Recognition and Robot Navigation", 《ROBOTICS》 *
MA XIAO ET AL.: "Intelligent Defogging Method Based on Clustering and Dark Channel Prior", 《2018 3RD IEEE INTERNATIONAL CONFERENCE ON IMAGE, VISION AND COMPUTING》 *
汤忠强 等: "基于改进DCP算法的水下机器人视觉增强", 《机器人》 *
谢坤: "基于暗通道先验与水体浑浊度识别的水下图像增强算法", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
魏郭依哲 等: "水下图像增强和修复算法综述", 《计算机应用研究》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115311288A (en) * 2022-10-12 2022-11-08 江苏魔视智能科技有限公司 Method for detecting damage of automobile film
CN115797225A (en) * 2023-01-06 2023-03-14 山东环宇地理信息工程有限公司 Unmanned ship acquisition image enhancement method for underwater topography measurement
CN115797225B (en) * 2023-01-06 2023-04-21 山东环宇地理信息工程有限公司 Unmanned ship acquired image enhancement method for underwater topography measurement
CN116109933A (en) * 2023-04-13 2023-05-12 山东省土地发展集团有限公司 Dynamic identification method for ecological restoration of abandoned mine
CN117423126A (en) * 2023-12-18 2024-01-19 广州市省信软件有限公司 Bill image-text recognition method and system based on data analysis
CN117423126B (en) * 2023-12-18 2024-03-08 广州市省信软件有限公司 Bill image-text recognition method and system based on data analysis
CN117576692A (en) * 2024-01-17 2024-02-20 大连云智信科技发展有限公司 Method for detecting water source pollution of animal husbandry based on image recognition
CN117576692B (en) * 2024-01-17 2024-03-29 大连云智信科技发展有限公司 Method for detecting water source pollution of animal husbandry based on image recognition

Also Published As

Publication number Publication date
CN115082361B (en) 2022-10-28

Similar Documents

Publication Publication Date Title
CN115082361B (en) Turbid water body image enhancement method based on image processing
CN107767354B (en) Image defogging algorithm based on dark channel prior
CN111986120A (en) Low-illumination image enhancement optimization method based on frame accumulation and multi-scale Retinex
WO2020124873A1 (en) Image processing method
CN112561804A (en) Low-illumination underwater image enhancement method based on multi-scale detail enhancement
CN115797342B (en) Industrial control capacitive touch LCD display assembly defect detection method
WO2019201184A1 (en) License plate enhancement method, apparatus and electronic device
CN110648330B (en) Defect detection method for camera glass
CN112837233A (en) Polarization image defogging method for acquiring transmissivity based on differential polarization
CN115393216A (en) Image defogging method and device based on polarization characteristics and atmospheric transmission model
CN112053302A (en) Denoising method and device for hyperspectral image and storage medium
CN113658067B (en) Water body image enhancement method and system in air tightness detection based on artificial intelligence
CN112465708A (en) Improved image defogging method based on dark channel
CN116245880A (en) Electric vehicle charging pile fire risk detection method based on infrared identification
CN113450272B (en) Image enhancement method based on sinusoidal variation and application thereof
CN114155173A (en) Image defogging method and device and nonvolatile storage medium
CN116228780A (en) Silicon wafer defect detection method and system based on computer vision
CN110852977B (en) Image enhancement method for fusing edge gray level histogram and human eye visual perception characteristics
Hari et al. Dark and Bright Channel Priors for Haze Removal in Day and Night Images.
CN114998186A (en) Image processing-based method and system for detecting surface scab defect of copper starting sheet
CN116263942A (en) Method for adjusting image contrast, storage medium and computer program product
CN111110259B (en) Method for identifying installation state of grid and performing grid shadow inhibition
CN110675332A (en) Method for enhancing quality of metal corrosion image
CN116051425B (en) Infrared image processing method and device, electronic equipment and storage medium
Tang et al. Sky-preserved image dehazing and enhancement for outdoor scenes

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
GR01 Patent grant
GR01 Patent grant