Disclosure of Invention
To solve the above problemsThe selection of the Gaussian filter in the dodging algorithm determines the dodging effect and definition of the uniformly-received image, so that the technical problem of accurately analyzing the urban building is affected.
In a first aspect, the invention provides a city building image processing method based on unmanned aerial vehicle inspection, which comprises the steps of inspecting and collecting city building images through unmanned aerial vehicle inspection, decomposing the city building images through wavelet transformation to obtain detail subgraphs with different sizes in multiple directions, calculating the representation degree of detail features with different sizes according to the ratio of the different sizes to the sizes of the city building images, taking any pixel point in the city building images as a target pixel point, weighting and summing pixel values of corresponding pixel points in the detail subgraphs with different sizes of the target pixel point in all directions according to the representation degree of the detail features with different sizes to obtain the detail representation degree of the target pixel point in all directions, taking the detail representation degree of the target pixel point in all directions as the model length of a detail vector of the target pixel point in all directions, calculating the sum of the detail vectors of the target pixel point in all directions as a comprehensive detail vector of the target pixel point, and obtaining a two-dimensional Gaussian model according to the comprehensive detail vector,The directions of the two dimensions of (a) are respectivelyAndStandard deviation of two dimensions is equal toAndWherein, the method comprises the steps of, wherein,In order to integrate the direction of the detail vector,、The length of the projection of the comprehensive detail vector in the first dimension and the second dimension respectively according to a two-dimensional Gaussian modelThe method comprises the steps of obtaining a Gaussian filter of a target pixel point, carrying out filtering treatment on each pixel point according to the Gaussian filter of each pixel point in an urban building image to obtain a background image, subtracting the urban building image from the background image, and obtaining the urban building image with uniform light receiving.
According to the method, the detail expression degree of the target pixel point in each direction is obtained according to the expression degree of the detail features of different sizes and the pixel values of the corresponding pixel points in the detail subgraphs of different sizes of the target pixel point in the urban building image, the detail expression degree of the target pixel point in each direction is obtained, the comprehensive detail vector is obtained according to the detail expression degrees of a plurality of directions, the Gaussian filter of the target pixel point is obtained according to the comprehensive detail vector, for the pixel point with the larger detail expression degree, the standard deviation of the two-dimensional Gaussian model is larger, the detail features contained in the local area of the pixel point in the finally obtained background image are fewer, the definition of the obtained urban building image with uniform light is enhanced, for the pixel point with the smaller detail expression degree, the standard deviation of the two-dimensional Gaussian model is smaller, the effect of the local area of the pixel point in the finally obtained background image is good, and therefore the uniform light homogenizing effect of the obtained urban building image with uniform light is enhanced.
Preferably, the decomposing the city building image by wavelet transformation to obtain detail subgraphs with different sizes in multiple directions comprises the steps of when the decomposing the city building image by wavelet transformation is carried outSub-decomposition, the number of kinds of all sizes is equal toWherein, the method comprises the steps of,First, theThe size of the detail subgraph of each direction obtained by sub-decomposition isWill beIs marked as the firstSize, thenIs the firstThe length of the dimension is such that,Is the firstWidth of dimension, and,,For the length of the image of the urban building,The width of the city building image, wherein the directions comprise a vertical direction, a horizontal direction and a diagonal direction, and the vertical direction, the horizontal direction and the diagonal direction are respectively marked as the firstDirection, the firstDirection and the firstDirection.
The invention obtains detail subgraphs of the urban building image in multiple scales and directions by utilizing the multi-resolution characteristic of wavelet transformation, thereby analyzing the intensity of detail characteristics of local areas of each pixel point.
Preferably, the degree of expression of the detail features by the different sizes satisfies the expression: In the formula (I), in the formula (II), Is the firstThe degree of performance of the size with respect to the detail features,Is the number of times of decomposition, and the number of kinds of all sizes is equal to,As a function of the natural index of refraction,Is the firstThe dimensions of the product are such that,Is the firstThe length of the dimension is such that,Is the firstWidth of dimension, and,,For the size of the image of the urban building,For the length of the image of the urban building,Is the width of the urban building image.
In the invention, the pixel values of the pixel points in the obtained detail subgraph can show the detail features in the city building image, and the pixel values of the pixel points in the detail subgraphs with different sizes are different in the expression degree of the detail features in the city building image, so the invention calculates the expression degree of the detail features with different sizes according to the ratio of the different sizes to the sizes of the city building image.
Preferably, the detail expression degree of the target pixel point in each direction satisfies the expression: In the formula (I), in the formula (II), As coordinates of the target pixel point in the urban building image,、The abscissa and the ordinate of the target pixel point are respectively,Is at the first pixel pointThe degree of detail of the individual directions is expressed,Is the number of times of decomposition, and the number of kinds of all sizes is equal to,Is the firstThe degree of performance of the size with respect to the detail features,Is the firstFirst of all directionsThe coordinates in the detail drawing of the size areIs used for the pixel values of the pixel points of (a),As a round-up function.
According to the invention, the pixel values of the corresponding pixel points in the detail subgraphs with different sizes of the target pixel point are weighted by the expressive degree of the detail features with different sizes, so that the expressive degree of the detail of the target pixel point in different directions is obtained.
Preferably, the firstFirst of all directionsThe coordinates in the detail drawing of the size areIs that the target pixel is at the first pixelFirst of all directionsAnd the corresponding pixel points in the detail subgraph of the size.
Preferably, the two-dimensional gaussian modelHas two parameters, namely a mean value and a standard deviation, and a two-dimensional Gaussian modelIs of two dimensions the mean values were all 0.
Preferably, the Gaussian filter is essentially a matrix, wherein the number of rows of the Gaussian filter in the first dimension isThe number of rows in the second dimension is,、Respectively two-dimensional Gaussian modelsIs defined as the standard deviation of the two dimensions of (1),In order to round up the function,Is the expansion coefficient.
In the invention, for the pixel points with larger detail expression level, a Gaussian filter with larger size is arranged, so that the blurring degree of the filtered pixel points is larger, the detail features contained in the local area of the pixel points in the finally obtained background image are fewer, thereby enhancing the definition of the obtained urban building image with uniform light receiving, and for the pixel points with smaller detail expression level, the Gaussian filter with smaller size is arranged, so that the effect of simulating brightness distribution in the local area of the pixel points in the finally obtained background image is better, thereby enhancing the uniform light effect of the obtained urban building image with uniform light receiving.
Preferably, the method for obtaining the urban building image with uniform light receiving comprises the steps of correspondingly stretching and displaying the image after subtraction treatment to finally obtain the urban building image with uniform light receiving, wherein the stretching and displaying method comprises 2% linear stretching, contrast parameter stretching and gradient stretching display.
Preferably, the method comprises the steps of taking the pixel point at the upper left corner in the urban building image as an origin, taking the origin level to the right as the positive direction of the transverse axis, and taking the origin vertically downward as the positive direction of the longitudinal axis, constructing a rectangular coordinate system, wherein the value range of the abscissa of the pixel point in the urban building image isThe range of the ordinate isAnd (2) andFor the length of the image of the urban building,Is the width of the urban building image.
In a second aspect, the invention provides an urban building image processing system based on unmanned aerial vehicle inspection, which comprises a processor and a memory, wherein the memory stores computer program instructions, and the urban building image processing method based on unmanned aerial vehicle inspection is realized when the computer program instructions are executed by the processor.
By adopting the technical scheme, the urban building image processing method based on unmanned aerial vehicle inspection generates a computer program, and the computer program is stored in the memory to be loaded and executed by the processor, so that terminal equipment is manufactured according to the memory and the processor, and the urban building image processing method based on unmanned aerial vehicle inspection is convenient to use.
The invention has the beneficial effects that:
According to the method, the detail expression degree of the target pixel point in each direction is obtained according to the expression degree of the detail features of different sizes and the pixel values of the corresponding pixel points in the detail subgraphs of different sizes of the target pixel point in the urban building image, the detail expression degree of the target pixel point in each direction is obtained, the comprehensive detail vector is obtained according to the detail expression degrees of a plurality of directions, the Gaussian filter of the target pixel point is obtained according to the comprehensive detail vector, for the pixel point with the larger detail expression degree, the standard deviation of the two-dimensional Gaussian model is larger, the detail features contained in the local area of the pixel point in the finally obtained background image are fewer, the definition of the obtained urban building image with uniform light is enhanced, for the pixel point with the smaller detail expression degree, the standard deviation of the two-dimensional Gaussian model is smaller, the effect of the local area of the pixel point in the finally obtained background image is good, and therefore the uniform light homogenizing effect of the obtained urban building image with uniform light is enhanced.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
The embodiment of the invention discloses an urban building image processing method based on unmanned aerial vehicle inspection, which comprises the following steps of S1-S3 with reference to FIG. 1:
In the process of inspection and acquisition of urban building images based on unmanned aerial vehicles, uneven brightness distribution occurs in the obtained urban building images due to the influence of factors such as illumination conditions, shooting angles and atmospheric conditions, so that the difficulty in follow-up accurate analysis of urban buildings is increased.
In order to eliminate uneven brightness distribution in the urban building image which is inspected and collected by the unmanned aerial vehicle, the urban building image needs to be subjected to uniform light treatment, so that the urban building image with uniform light receiving is obtained.
The light homogenizing algorithm is a common method for homogenizing urban building images with uneven brightness distribution, and the method enhances the detail contrast of the images and inhibits the abnormal brightness change of the images by enhancing high-frequency information and inhibiting low-frequency information so as to achieve the aim of uniform brightness distribution,The dodging algorithm carries out low-pass filtering on the original image through a Gaussian filter, so that a background image simulating brightness distribution is obtained, the original image and the background image are subjected to difference, and an image with uniform light receiving is obtained.
The method comprises the steps of determining the uniform light effect and definition of an image with uniform light receiving, wherein the selection of a Gaussian filter determines the uniform light effect and definition of the image with uniform light receiving, so that the accurate analysis of urban architecture is affected, the Gaussian filter is obtained by a two-dimensional Gaussian model, the larger the standard deviation of the two-dimensional Gaussian model is, the larger the size of the Gaussian filter is, the larger the number of pixel points participating in the simulation brightness distribution is, the more the distribution is scattered, the degree of blurring of the filtered pixel points is larger, the finally obtained background image contains fewer detail features, the simulation effect on the brightness distribution in the urban architecture image is poor, a large number of detail features are reserved in the urban architecture image with uniform light receiving, which is obtained by making the difference between an original image and the background image, but the uniform light receiving effect is poor, the smaller the standard deviation of the two-dimensional Gaussian filter is, the smaller the number of pixel points participating in the simulation brightness distribution is, the number of the pixel points participating in the simulation brightness distribution is smaller, the brightness distribution is better simulated, but the finally obtained background image can contain more detail features, and the obtained background image can better simulate the brightness distribution in the urban architecture image, the detail distribution is lost, namely the detail image with high uniform light receiving in the urban architecture image obtained by making the uniform light receiving, and the detail image with uniform light receiving.
The method comprises the steps of obtaining detail subgraphs of different sizes in multiple directions by decomposing the collected city building images, obtaining the detail expression level of the target pixel point in each direction according to the expression level of the detail characteristic of the different sizes and the pixel value of the corresponding pixel point in the detail subgraphs of the target pixel point in each direction, taking the detail expression level of each direction as the modular length of the detail vector in each direction, taking the sum of the detail vectors in all directions as the comprehensive detail vector, obtaining a Gaussian filter of the target pixel point according to the comprehensive detail vector, carrying out filtering treatment on each pixel point according to the Gaussian filter, subtracting the city building image from the obtained background image, and obtaining the city building image with uniform light, thereby ensuring that the obtained city building image with uniform light has better definition and light-homogenizing effect, and further ensuring the accuracy of analyzing the city building.
S1, inspection and acquisition of urban building images through an unmanned aerial vehicle.
Specifically, when patrolling and examining through unmanned aerial vehicle, unmanned aerial vehicle is through carrying on many cameras on a flight platform, gathers urban building image from the multi-angle, acquires the complete accurate information of urban building.
For the collected city building image, the pixel point at the upper left corner in the city building image is taken as an original point, the original point is taken as the positive direction of the horizontal axis to the right, and the original point is taken as the positive direction of the vertical axis to the down, so that a rectangular coordinate system is constructed, and the value range of the abscissa of the pixel point in the city building image isThe range of the ordinate isAnd (2) andFor the length of the image of the urban building,Is the width of the urban building image.
Illustratively, as shown in FIG. 2, a schematic view of the acquired city building image is shown.
S2, acquiring a Gaussian filter of each pixel point in the urban building image.
Specifically, by analyzing the urban building image to obtain the gaussian filter of each pixel point in the urban building image, in step S2, a flowchart of obtaining the gaussian filter of each pixel point in the urban building image is obtained, and referring to fig. 3, the flowchart includes steps S201 to S205, specifically:
s201, decomposing the urban building image through wavelet transformation to obtain detail subgraphs with different sizes in all directions.
The method and the device can obtain detail subgraphs of the urban building image in multiple scales and directions by utilizing the multi-resolution characteristic of wavelet transformation, so that the strength of detail features of local areas of each pixel point is analyzed.
Specifically, byThe wavelet transformation decomposes the urban building image, and performs the process togetherSub-decomposing to obtain detail subgraphs of different sizes in all directions, wherein the number of kinds of all sizes is equal toIn the present embodiment, the number of times of decompositionIn other embodiments, the number of decompositions can be set according to the actual application scenario and requirementsWavelet transformation is a well-known technique and will not be described in detail herein.
Wherein the directions include a vertical direction, a horizontal direction and a diagonal direction, and thus the obtained detail subgraphs of each direction include the detail subgraphs of the vertical direction, the detail subgraphs of the horizontal direction and the detail subgraphs of the diagonal direction, respectively, the vertical direction, the horizontal direction and the diagonal direction are marked as the firstDirection, the firstDirection and the firstDirection.
Wherein, the firstThe size of the detail subgraph of each direction obtained by sub-decomposition isWill beIs marked as the firstSize, thenIs the firstLength of dimension, and,Is the firstWidth of dimension, and,For the length of the image of the urban building,Is the width of the urban building image.
Wherein the pixel points in the detail subgraph have pixel values, a higher pixel value generally indicates the presence of an edge or texture, and a lower pixel value indicates the presence or absence of an edge or texture, so the pixel values of the pixel points reflect the detail features of the local area of the pixel points in the detail subgraph, the detail features comprise edge features and texture features, and the larger the pixel value is, the greater the intensity of the detail features of the local area of the pixel points is.
The detail subgraph in the vertical direction comprises a low-frequency component of the urban building image in the horizontal direction and a high-frequency component of the urban building image in the vertical direction, so that the detail subgraph in the vertical direction comprises a detail characteristic of the urban building image in the vertical direction, the detail subgraph in the horizontal direction comprises a high-frequency component of the urban building image in the horizontal direction and a low-frequency component of the urban building image in the vertical direction, and the detail subgraph in the diagonal direction comprises a detail characteristic of the urban building image in the horizontal direction and a high-frequency component of the urban building image in the vertical direction, so that the detail subgraph in the diagonal direction comprises a detail characteristic of the urban building image in the diagonal direction.
S202, calculating the expressive degree of different sizes on the detail features.
The pixel values of the pixel points in the detail subgraph can show detail features in the city building image, and the pixel values of the pixel points in the detail subgraphs with different sizes are different in the degree of showing the detail features in the city building image, namely, the smaller the degree of showing the detail features in the city building image is by the pixel values of the pixel points in the detail subgraphs with larger sizes, the larger the degree of showing the detail features in the city building image is by the pixel values of the pixel points in the detail subgraphs with smaller sizes, so that the degree of showing the detail features with different sizes can be calculated according to the ratio of the different sizes to the sizes of the city building image.
Specifically, according to the ratio of different sizes to the sizes of the urban building images, calculating the expressive degree of the different sizes on the detailed characteristics, and then the firstThe degree of performance of the size on the detail features satisfies the expression:
;
In the formula, Is the firstThe degree of performance of the size with respect to the detail features,Is the number of times of decomposition, and the number of kinds of all sizes is equal to,As a function of the natural index of refraction,Is the firstThe dimensions of the product are such that,Is the firstLength of dimension, and,Is the firstWidth of dimension, and,For the size of the image of the urban building,For the length of the image of the urban building,Is the width of the urban building image.
S203, calculating the detail expression degree of the pixel points in the urban building image in different directions.
Specifically, for the coordinates in the urban building imageIs used for the display of the display panel, the first pixel point in each directionThe coordinates of the corresponding pixel points in the detail subgraph of the size areWherein, the method comprises the steps of, wherein,Is a function of rounding up, wherein,、The abscissa and the ordinate of the pixel point, respectively.
Further, according to the expressive degree of detail features of different sizes, the coordinates in the urban building image are as followsThe pixel values of the corresponding pixel points in the detail subgraphs with different sizes in each direction are weighted to obtain the detail expression degree of the pixel points in each direction, and the coordinates in the urban building image are as followsIs at the first pixel pointThe detail expression degree of each direction satisfies the expression:
;
In the formula, For coordinates in city building imagesIs at the first pixel pointThe degree of detail of the individual directions is expressed,Is the number of times of decomposition, and the number of kinds of all sizes is equal to,Is the firstThe degree of performance of the size with respect to the detail features,Is the firstFirst of all directionsThe coordinates in the detail drawing of the size areIs used for the pixel values of the pixel points of (a),For coordinates in city building imagesThe pixel point of (2) is in the first directionCoordinates of corresponding pixel points in the detail drawing of the size,As a round-up function.
The degree of representation of the detail features by different sizesFor the pixel value of the corresponding pixel point in the detail subgraphs with different sizesWeighting to obtain coordinates of city building imageIs at the first pixel pointDetail level of each directionWherein the pixel value of the pixel reflects the detail feature of the local area of the pixel in the detail drawing, and the larger the pixel value is, the larger the intensity of the detail feature of the local area of the pixel is, and the larger the intensity of the detail feature of the local area of the pixel is, the coordinates in the urban building image areIs at the first pixel pointDetail level of each directionThe larger the (first)Degree of performance of size versus detail featuresThe larger the city building image is, the coordinates areIs at the first pixel pointDetail level of each directionThe larger.
S204, synthesizing the detail expression degree of the pixel points in the urban building image in all directions to obtain the comprehensive detail vector of the pixel points.
Specifically, coordinates in the urban building image are as followsIs at the first pixel pointDetail level of each directionAs the pixel point at the firstDetail vector of each directionIs to be at the same timeIn the first direction as the pixel pointDetail vector of each directionTo obtain the coordinates in the city building image asIs at the first pixel pointDetail vector of each direction。
Further, coordinates in the city building image are calculated asThe sum of the detail vectors of the pixel points in all directions is taken as the comprehensive detail vector of the pixel pointsThe result of summing the plurality of vectors is simply one vector, and summing the plurality of vectors is a known technique, and will not be described herein.
It should be noted that, by integrating the detail vectors of the pixel points in all directions, an integrated detail vector of the pixel point is obtained, and the integrated detail vector comprehensively reflects the distribution condition of the detail features of the local area of the pixel point.
S205, determining a Gaussian filter of the pixel point according to the comprehensive detail vector of the pixel point in the urban building image.
Specifically, for pixel points in an urban building image, a Gaussian filter of the pixel points is obtained according to a two-dimensional Gaussian model, the two dimensions are respectively a first dimension and a second dimension, the directions of the two dimensions are perpendicular to each other, each dimension is provided with two parameters, and the two parameters are respectively a mean value and a standard deviation.
Further, for the coordinates in the city building image asIs used for integrating the detailed vectors of the pixel pointsThe direction of (2) is recorded asObtaining a two-dimensional Gaussian model according to the comprehensive detail vector of the pixel point。
Wherein the two-dimensional Gaussian modelThe directions of the two dimensions of (a) are respectivelyAndAnd the direction isAnd direction ofAre mutually perpendicular.
In the gaussian filter, since the larger the weight value along the two dimensions is, the larger the influence of the pixel value of the other pixel at the position where the weight value is larger is on the pixel value of the filtered pixel, the smaller the influence of the pixel value of the other pixel at the position where the weight value is smaller is on the pixel value of the other pixel, and the comprehensive detail vector of the pixel comprehensively reflects the distribution of the detail features of the local area of the pixel, so if the direction of the comprehensive detail vector of the pixel is to be determinedAndAs the vertical direction of two dimensions of the Gaussian filter, the pixel value of the filtered pixel point keeps more detail features, so that a great amount of detail features are lost in the urban building image with uniform light receiving obtained by differencing the original image and the background image, namely the definition of the obtained urban building image with uniform light receiving is not highAdding toAnd the vertical direction of the pixel point is taken as the direction of two dimensions of the Gaussian filter, so that the greater the blurring degree of the filtered pixel point is, the fewer detail features are contained in the finally obtained background image, and the definition of the obtained urban building image with uniform light receiving is enhanced.
Wherein the two-dimensional Gaussian modelEach dimension of (2) has two parameters, namely a mean value and a standard deviation, and a two-dimensional Gaussian modelThe mean value of the two dimensions of (a) is 0, and the standard deviation isAndThe expression is satisfied:
;
;
Wherein, in the formula, wherein, 、Comprehensive detail vectors of the pixel points respectivelyThe length of the projection in the first dimension and the second dimension.
The pixel points with greater detail expression level are integrated with detail vectorsThe longer the modulo length of (2), the more detail vectors are synthesizedThe longer the projection in the first and second dimensions, the longer the length of the projection in the first dimension, and in this case the two-dimensional gaussian modelThe larger the standard deviation of each dimension of the pixel points, the larger the size of the Gaussian filter, the larger the number of pixel points participating in simulating brightness distribution, but the more discrete the distribution, the larger the blurring degree of the filtered pixel points, and the fewer detail features contained in the local area of the pixel points in the finally obtained background image, thereby enhancing the definition of the obtained urban building image with uniform light receiving, and for the pixel points with smaller detail expression degree, the comprehensive detail vectorThe shorter the modular length of (2), the more detail vectors are synthesizedThe shorter the length of the projection in the first and second dimensions, the two-dimensional gaussian model at this timeThe smaller the standard deviation of each dimension of the background image is, the smaller the size of the Gaussian filter is, the smaller the number of pixel points participating in the simulation brightness distribution is, but the more concentrated the distribution is, and the better the effect of simulating the brightness distribution in the local area of the pixel points in the finally obtained background image is, so that the light homogenizing effect of the obtained urban building image with uniform light receiving is enhanced.
Further, according to a two-dimensional Gaussian modelA Gaussian filter for obtaining a target pixel point, the Gaussian filter having a matrix, wherein the number of lines of the Gaussian filter in a first dimension isThe number of rows in the second dimension is,、Respectively two-dimensional Gaussian modelsIs defined as the standard deviation of the two dimensions of (1),In order to round up the function,Is an expansion coefficient, in the present embodiment, an expansion coefficientIn other embodiments, the number of decompositions may be set according to the actual application scenario and requirements.
Exemplary are a schematic diagram of a two-dimensional gaussian model having a standard deviation of 0.5 in both the first and second dimensions, a schematic diagram of a gaussian filter obtained from the two-dimensional gaussian model shown in fig. 4, a schematic diagram of a two-dimensional gaussian model having a standard deviation of 0.25 in both the first and second dimensions, as shown in fig. 6, and a schematic diagram of a gaussian filter obtained from the two-dimensional gaussian model shown in fig. 6, as shown in fig. 7.
S3, according to the Gaussian filter of each pixel point in the urban building image, passingThe light homogenizing algorithm obtains the urban building image with uniform light receiving.
Specifically, the Gaussian filter according to each pixel point in the urban building image passesThe method comprises the steps of filtering each pixel point according to a Gaussian filter of each pixel point in the urban building image to obtain a background image formed by the filtered pixel points, simulating brightness distribution in the background image, subtracting the urban building image from the obtained background image, and correspondingly stretching and displaying the subtracted image to finally obtain the urban building image with uniform light receiving.
The method and the device have the advantages that the detail expression degree of the target pixel point in each direction is obtained according to the expression degree of the detail features of different sizes and the pixel values of the corresponding pixel points in the detail subgraphs of the target pixel point in different sizes in each direction, the detail expression degree of the target pixel point in each direction is obtained, the comprehensive detail vectors are obtained according to the detail expression degrees of multiple directions, the Gaussian filter of the target pixel point is obtained according to the comprehensive detail vectors, for the pixel point with the larger detail expression degree, the standard deviation of the two-dimensional Gaussian model is larger, the detail features contained in the local area of the pixel point in the finally obtained background image are fewer, so that the definition of the obtained urban building image with uniform light is enhanced, for the pixel point with the smaller detail expression degree, the standard deviation of the two-dimensional Gaussian model is smaller, the effect of the local area of the pixel point in the finally obtained background image is better, the obtained urban building image with uniform light receiving effect is enhanced, and the obtained urban building image with uniform light receiving effect is guaranteed, and the following analysis is accurate.
Exemplary is a schematic diagram of a background image obtained by filtering the urban building image shown in fig. 2, as shown in fig. 8, and a schematic diagram of a uniformly light-receiving urban building image obtained by subtracting the urban building image shown in fig. 2 from the background image shown in fig. 9, as shown in fig. 9.
Among them, common methods of stretching display include, but are not limited to, 2% linear stretching, contrast parameter stretching, and gradient stretching displayThe light homogenizing algorithm, 2% linear stretching, contrast parameter stretching and gradient stretching are all known techniques, and will not be described here.
The whole contrast of the obtained subtracted image is reduced, especially in the darker area, in order to increase the whole contrast, and to maintain the consistency of the whole contrast of the subtracted image, to highlight the details in the image, to maintain the sharpness of the image, and to stretch the subtracted image.
The embodiment of the invention also discloses a city building image processing system based on unmanned aerial vehicle inspection, which comprises a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, the city building image processing method based on unmanned aerial vehicle inspection is realized.
The above system further comprises other components well known to those skilled in the art, such as a communication bus and a communication interface, the arrangement and function of which are known in the art and therefore are not described in detail herein.
In the description of the present specification, the meaning of "a plurality", "a number" or "a plurality" is at least two, for example, two, three or more, etc., unless specifically defined otherwise.
While various embodiments of the present invention have been shown and described herein, it will be obvious to those skilled in the art that such embodiments are provided by way of example only. Many modifications, changes, and substitutions will now occur to those skilled in the art without departing from the spirit and scope of the invention. It should be understood that various alternatives to the embodiments of the invention described herein may be employed in practicing the invention.