Summary of the invention
In order to solve the problem of ground Automatic cloud detection, the object of the invention is to make full use of the textural characteristics of ground visible cloud image, realize the automatic detection of cloud, there is very strong robustness and correctness.
The technical matters that patent of the present invention solves can adopt following technical solution to realize:
A ground Automatic cloud detection method, is characterized in that comprising the following steps:
Step 1: utilize imaging device to visible cloud image collection;
Step 2: the cloud atlas that input is collected carries out the separation of each Color Channel, the gray scale adjustment of again blue red two band images of cloud atlas being carried out to Nonlinear Dynamic scope obtain the blue wave band of cloud atlas strengthen image B ' with red wave band enhancing image R ', then the pixel that two wave bands is strengthened to the differential chart (B '-R ') of image normalizes to [0255], obtains characteristic image;
Step 3: characteristic image carries out multiple dimensioned multidirectional Shearlet and decomposes;
Step 4: on the basis of step 3, each yardstick different directions sub-band coefficients is carried out to non-local mean filtering processing, reduce the conversion of identical texture region feature, increase the difference in different texture region simultaneously.Then to filtered sub-band coefficients delivery value, calculate the d direction patrix value image I of l layer
ldlocal energy under (2n+1) * (2n+1) size windows
with local energy variance
Wherein x, y represent the position in each subband mould value image, u
lin moving window
average,
for the variance of window self-energy is as proper vector to be sorted, in cloud atlas F, the final proper vector of pixel (x, y) is expressed as:
Step 5: the proper vector of utilizing Fuzzy C-Means Cluster Algorithm to extract step 4 is classified, and finally realizes the automatic detection of cloud.
The invention has the beneficial effects as follows: the present invention uses the Shearlet conversion extraction different scale of cloud atlas, the textural characteristics of direction, and utilizes Fuzzy C-Means Cluster Algorithm to textural characteristics Classification of Matrix, finally reaches the automatic detection of ground cloud.The present invention has weakened the impact of solar irradiation on ground cloud, makes full use of color characteristic and the textural characteristics of cloud atlas simultaneously, has very strong robustness and higher accuracy; The present invention is simple in structure, utilizes existing graph capture device and common computer to realize, and has improved practicality and applicability.
Embodiment
As shown in Figure 1, specific embodiment of the invention method comprises following concrete steps:
1) utilize imaging device to gather sky cloud atlas picture.
2) the RGB cloud atlas of input is decomposed into the image of R, G, tri-Color Channels of B, the gray scale adjustment of more respectively image of R Color Channel and B Color Channel being carried out to Nonlinear Dynamic scope obtain respectively the enhancing image B of enhancing image R ' He the B Color Channel (blue wave band) of R Color Channel (red wave band) '.
3) the blue red band image of the cloud atlas strengthening is carried out to difference processing, obtain (B '-R ') image of single channel.Again the pixel of single channel (B '-R ') image is normalized to [0255], obtain characteristic image.
4) utilize Shearlet transfer pair characteristic image to carry out multiple dimensioned decomposition, then utilize shearing matrix to carry out shearing manipulation to the multi-scale image obtaining, travel direction decomposes, and obtains the sub-band coefficients of different scale, different directions.
5) each sub-band coefficients obtaining is adopted to non-local mean filtering, reduce the conversion of feature in identical texture region, increase the difference of zones of different.Each yardstick different directions sub-band coefficients I={D (x) | the filtered estimated value of x ∈ I} is NL[D (x)]:
W (x wherein, y) represent the similarity degree of pixel x and pixel y, G (D (x)) and G (D (y)) represent respectively the neighborhood window centered by x and y two pixels, the similarity of G (D (x)) and G (D (y)) determines by the Euclidean distance between them, and weights are defined as:
The rate of decay of parameter h control characteristic function, weights satisfy condition 0≤w (x, y)≤1 and ∑ w (x, y)=1, Z (x) is weights normalized factor, its computing formula is:
6) the sub-band coefficients delivery value after after filtering to each yardstick different directions, then calculates the d direction patrix value image I of l layer
ldlocal energy under (2n+1) * (2n+1) size windows
with local energy variance
Wherein x, y represent the position in each subband mould value image, u
lin moving window
average,
for the variance of window self-energy is as proper vector to be sorted, in cloud atlas F, the final proper vector of pixel (x, y) is expressed as:
7) utilize Fuzzy C-Means Cluster Algorithm, the proper vector that the energy variance of each pixel in cloud atlas region is formed, classifies, and detailed process is as follows:
Proper vector in A definition in step is X={x
1, x
2..., x
n, the given classification center of proper vector initialization is counted C (2≤C≤n), exponential factor m, and iteration is by error ε, algorithm maximum iteration time T
max, u
tjrepresent that j sample belongs to the degree of membership at i center, degree of membership matrix U=[u
tj], x
jrepresent j sample, definition V={v
1, v
2..., v
cthe set on vector X, represent C cluster centre vector.
B is to t=1, and 2 ..., T
maxcarry out iterative computation, calculate V
t=[v
1, tv
2, t, v
c, t], wherein
Calculate U
t=[u
tj, t]
c * n, v wherein
tj, tdeterministic process be: make d
tj, t=|| x
j-v
1, t||
2if, d
tj, t=0, u
tj, t=1, and to k ≠ i, u
kj, t=0; If d
tj, t> 0,
If C || U
t-U
t-1|| < ε, termination of iterations is exported picture, otherwise next t is calculated.Fig. 2 is that the part on cloud atlas data set detects design sketch according to embodiments of the invention.