A forest resource patrol environment data processing method and system

By performing block processing on remote sensing images and optimizing the histogram equalization algorithm, the problem of excessive enhancement or swallowing of image features caused by the histogram equalization algorithm is solved, and the identification accuracy of forest resources is improved.

CN118396912BActive Publication Date: 2024-09-03XIAN URBAN DEV RESOURCES INFORMATION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410843073.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-09-03
Estimated Expiration
2044-06-27

AI Technical Summary

Technical Problem

When the existing histogram equalization algorithm enhances remote sensing images, it will cause the gray values ​​with higher frequencies to be over-enhanced, and the gray values ​​with lower frequencies may be swallowed up, affecting the identification accuracy of forest resources.

Method used

By dividing the remote sensing image of forest resources into multiple blocks, the standard blocks are determined according to the grayscale range of the blocks and the frequency of maximum value points in the gray histogram, and the histogram equalization algorithm is used to perform the standard block Enhance, and determine the limiting contrast parameters of the remaining blocks based on the enhancement results of the standard blocks to avoid image features being over-enhanced or swallowed up.

Benefits of technology

It improves the enhancement effect of remote sensing images, ensures the balanced distribution of image features, and improves the identification accuracy of forest resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118396912B
    Figure CN118396912B
Patent Text Reader

Abstract

The present invention relates to the field of image processing technology, and in particular to a method and system for processing forest resource patrol environment data. The method comprises the steps of: selecting a standard block according to the grayscale range of the block in the remote sensing image and the frequency corresponding to all the maximum points in the grayscale histogram of the block, enhancing the standard block, determining the contrast of the two maximum points in the grayscale histogram of the standard block after enhancement, predicting the contrast of the two maximum points in the grayscale histogram of the block after enhancement under different values ​​of the limiting contrast parameter, determining the loss value according to the predicted value of the contrast of the two maximum points in the block after enhancement and the contrast of the corresponding two maximum points in the standard block after enhancement, selecting the target limiting contrast parameter according to the loss value to enhance the block, obtaining an enhanced image of the remote sensing image, and identifying forest resources. The present invention has a good enhancement effect on the remote sensing image and improves the recognition accuracy of forest resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to a method and system for processing forest resource patrol environment data. Background Art

[0002] Forest ecosystems support the survival and reproduction of countless species of plants, animals and microorganisms, play a regulating role in the ecological environment system, and have a profound impact on human survival and development. Therefore, forest resources are the focus of ecological research.

[0003] At present, remote sensing technology and surveying and mapping equipment are usually used to obtain remote sensing images of forest resources, and forest resources are identified and monitored based on remote sensing images of forest resources. Due to the influence of climate conditions, light, and environmental noise, the remote sensing images of forest resources obtained may be of poor quality, so it is necessary to enhance the remote sensing images to improve the accuracy of forest resource identification.

[0004] The patent document with publication number "CN107610074B" and name "A method for improving the quality of remote sensing images" discloses: S1. Decomposing the original remote sensing image and the remote sensing image after histogram equalization using non-subsampled shearlet transform to obtain respective low-frequency sub-bands and high-frequency sub-bands; S2. Performing PM filtering on the low-frequency sub-bands after histogram equalization; Performing rotation threshold denoising on the high-frequency sub-bands of the original image, and then performing guided filtering; S3. Performing non-subsampled shearlet inverse transform on the processed low-frequency sub-bands and high-frequency sub-bands.

[0005] Although the above methods can filter out noise and enhance image details, the histogram equalization algorithm on which they are based will over-enhance grayscale values ​​with higher frequencies, and grayscale values ​​with lower frequencies may be swallowed up, causing some image features in remote sensing images to disappear after enhancement, affecting the recognition accuracy of forest resources. Summary of the invention

[0006] In order to solve the problem that the histogram equalization algorithm causes some image features in the remote sensing image to disappear after enhancement, thereby affecting the recognition accuracy of forest resources, the present invention provides a method and system for processing forest resource patrol environment data.

[0007] In a first aspect, the present invention provides a method for processing forest resource patrol environment data, which adopts the following technical solution:

[0008] A method for processing forest resource patrol environment data comprises the following steps:

[0009] The remote sensing image of forest resources is divided into multiple blocks; the standard degree of the block is determined according to the grayscale range of the block and the frequency corresponding to all the maximum points in the grayscale histogram of the block, and the standard degree is positively correlated with the grayscale range and negatively correlated with the variance of the frequency corresponding to all the maximum points; the block with the largest standard degree is determined as the standard block; the standard block is enhanced using the histogram equalization algorithm; the contrast of two maximum points after enhancement is determined according to the difference between the grayscale values ​​of any two maximum points in the grayscale histogram of the standard block, and the contrast is positively correlated with the difference between the grayscale values; for each block, within the limit The contrast of any two maximum points in the grayscale histogram of the predicted block after enhancement is determined under different values ​​of the contrast parameter. The loss value is determined according to the difference between the predicted value of the contrast of the two maximum points in the grayscale histogram of the block after enhancement and the contrast of the corresponding two maximum points in the grayscale histogram of the standard block after enhancement. The loss value is positively correlated with the difference between the contrasts. The restricted contrast parameter when the loss value is minimum is used as the target restricted contrast parameter. The restricted contrast histogram equalization is performed on the block using the target restricted contrast parameter of the block. The enhanced results of each block are spliced ​​into an enhanced image of the remote sensing image to identify forest resources.

[0010] The invention selects a standard block according to the grayscale range of the block and the variance of the frequencies corresponding to all the maximum points in the grayscale histogram of the block. The image features in the selected standard block are evenly distributed, and the image features will not be over-enhanced or swallowed up by using the histogram equalization algorithm, and the enhancement effect is better. The invention predicts the contrast of any two maximum points in the grayscale histogram of the block after enhancement under different values ​​of the limiting contrast parameter, and selects the target limiting contrast parameter of the block according to the difference between the predicted value and the contrast of the corresponding maximum point in the standard block after enhancement. The selected target limiting contrast parameter can enable the block to achieve the same enhancement effect as the standard block, avoids the image features from being over-enhanced or swallowed up, thereby improving the enhancement effect of the remote sensing image, and further improving the recognition accuracy of forest resources.

[0011] In one embodiment, determining the standard degree of the block includes: when the number of maximum value points in the grayscale histogram of the block is greater than or equal to 2, the standard degree satisfies the expression: ; In the formula, Q represents the standard degree of the block; Indicates the maximum gray value in the block; Indicates the minimum gray value in the block; Indicates the number of maximum points in the grayscale histogram of the block; Indicates the grayscale histogram of the block The frequency corresponding to the maximum point; Represents the mean of the frequencies corresponding to all the maximum points in the grayscale histogram of the block; Represents an exponential function with a natural constant as the base; when the number of maximum points in the grayscale histogram of the block is less than 2, the standard degree is set to 0.

[0012] The standard degree in the present invention considers the grayscale range of the block and the variance of the frequencies corresponding to all the maximum points in the grayscale histogram of the block. When the grayscale range is larger, the more image features are contained in the block. When the variance of the frequencies corresponding to all the maximum points in the grayscale histogram of the block is smaller, the distribution of image features in the block is more balanced. When the block is enhanced by the histogram equalization algorithm, the image features will not be over-enhanced or swallowed up, and the enhancement effect is better. The standard block selected according to the standard degree can be used as a reference object for the remaining blocks.

[0013] In one embodiment, the method of determining the contrast of two maximum points after enhancement based on the difference between the grayscale values ​​of any two maximum points in the grayscale histogram of the standard block includes: for any two maximum points in the grayscale histogram of the standard block, obtaining the absolute value of the difference between the grayscale values ​​corresponding to the two maximum points in the enhanced standard block, and normalizing the absolute value of the difference as the contrast of the two maximum points after enhancement.

[0014] The present invention measures the contrast of the maximum value point in the grayscale histogram of the standard block after enhancement, and provides a reference for selecting the limiting contrast parameters of the subsequent remaining blocks.

[0015] In one embodiment, the contrast of any two maximum value points in the grayscale histogram of the prediction block after enhancement includes: ; ; In the formula, Indicates the gray value in the block The frequency is limited according to the contrast parameter Adjusted frequency; Indicates the gray value in the block frequency; Indicates that the frequency in the block is greater than the limit contrast parameter The number of gray values; Indicates the grayscale histogram of the block The maximum point and the The predicted value of the contrast after the maximum point enhancement; Indicates the grayscale histogram of the block The gray value of the maximum point, Indicates the grayscale histogram of the block The gray value of the maximum point.

[0016] In one embodiment, the determination of the loss value includes: taking any maximum point in the grayscale histogram of the block as the target maximum point, taking the maximum point in the grayscale histogram of the standard block whose grayscale difference with the target maximum point is less than a preset difference threshold and whose grayscale difference with the target maximum point is the smallest as the corresponding maximum point of the target maximum point; taking the maximum point in the grayscale histogram of the block with a corresponding maximum point as the representative maximum point, and when the number of representative maximum points is not less than 2, the loss value , Indicates the first The first represents the predicted value of the contrast after the maximum point is enhanced, Indicates the first The first The contrast of the two corresponding maximum points in the standard block after the maximum point is enhanced; Indicates the number of maximum points in the block.

[0017] The present invention uses the contrast of the maximum point in the grayscale histogram of the standard block after enhancement as a measurement standard, and selects the target limiting contrast parameter of the block according to the difference between the predicted value of the contrast of two maximum points in the grayscale histogram of the block after enhancement and the contrast of the corresponding maximum points in the standard block after enhancement. The selected target limiting contrast parameter can enable the block to achieve the same enhancement effect as the standard block, thereby avoiding excessive enhancement or swallowing of image features.

[0018] In one embodiment, the method further includes: taking the average of the target limiting contrast parameters of all the blocks whose number of representative maximum value points is not less than 2 as the target limiting contrast parameter of the blocks whose number of representative maximum value points is less than 2.

[0019] In one embodiment, the method further includes: recording a block having a number of maximum value points not less than 2 as a reference block, recording a block having a number of maximum value points less than 2 as a target block, and determining a target limit contrast parameter of the target block according to the target limit contrast parameter of the reference block and the distance from the reference block to the target block: , represents the target-limited contrast parameter of the target patch; Indicates The target limit contrast parameter of the reference block; Indicates the serial number of the reference block; Indicates the number of reference blocks; Indicates The distance from the reference block to the target block; Indicates the distance between the reference block with the largest distance to the target block and the target block; represents an exponential function with a natural constant as base, represents the linear normalization function.

[0020] In one embodiment, the step of splicing the enhancement results of each block into an enhanced image of the remote sensing image further includes: when splicing the enhancement results of each block, using a linear interpolation method to eliminate the block effect of the enhanced image.

[0021] The present invention adopts a linear interpolation method to eliminate the block effect in the enhanced image, so that the enhanced effect of the enhanced image is better.

[0022] In a second aspect, the present invention provides a forest resource patrol environment data processing system, which adopts the following technical solution:

[0023] A forest resource patrol environment data processing system 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 above-mentioned forest resource patrol environment data processing method is implemented.

[0024] By adopting the above technical solution, the above-mentioned forest resource patrol environment data processing method is generated into a computer program and stored in a memory so as to be loaded and executed by a processor, thereby making a terminal device based on the memory and the processor for easy use.

[0025] The present invention has the following technical effects: the image features in the standard blocks selected by the present invention are evenly distributed, and the image features will not be over-enhanced or swallowed up by the histogram equalization algorithm, and the enhancement effect is better; the target limiting contrast parameter of the blocks in the present invention can enable the blocks to achieve the same enhancement effect as the standard blocks, avoid the image features from being over-enhanced or swallowed up, improve the enhancement effect of the remote sensing image, and improve the recognition accuracy of forest resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present invention will become readily understood. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-restrictive manner, and the same or corresponding reference numerals represent the same or corresponding parts.

[0027] Figure 1 The present invention is a flowchart of a method for processing forest resource patrol environment data in an embodiment of the present invention. DETAILED DESCRIPTION

[0028] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0029] It should be understood that when the terms "first", "second", etc. are used in the claims, descriptions, and drawings of the present invention, they are only used to distinguish different objects, rather than to describe a specific order. The terms "include" and "comprise" used in the description and claims of the present invention indicate the presence of the described features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their collections.

[0030] The embodiment of the present invention discloses a method for processing forest resource patrol environment data, referring to Figure 1 , comprising steps S1 to S6:

[0031] S1: Collect remote sensing images of forest resources and divide the remote sensing images into multiple blocks.

[0032] Remote sensing images of forest resources are detected using remote sensing instruments carried by space or aviation vehicles, and the remote sensing images are divided into multiple The size of the block, where The default side length can be set by the implementer according to the actual implementation situation. The size of It should be noted that, in order to facilitate subsequent processing, the remote sensing image collected in the present invention is a grayscale image.

[0033] So far, multiple blocks have been obtained.

[0034] S2: Determine the standard of the blocks according to the grayscale range of the blocks and the frequencies corresponding to all maximum points in the grayscale histogram of the blocks, and determine the block with the largest standard as the standard block.

[0035] It should be noted that the histogram equalization algorithm is an image enhancement algorithm that achieves image enhancement by stretching the grayscale range of the image to make the grayscale distribution in the image uniform. However, the histogram equalization algorithm will over-enhance the image features corresponding to the grayscale values ​​with a large frequency ratio, and the image features corresponding to the grayscale values ​​with a small frequency ratio may be swallowed up during the histogram equalization process. The limited contrast histogram equalization algorithm adds a limited contrast parameter on the basis of the histogram equalization algorithm to prevent the image features corresponding to the grayscale values ​​with a large frequency ratio from being over-enhanced and the image features corresponding to the grayscale values ​​with a small frequency ratio from being swallowed up. The limited contrast parameter is usually set manually. When the limited contrast parameter is too large, the purpose of preventing the image features from being over-enhanced or swallowed up cannot be achieved. When the limited contrast parameter is too small, the enhancement effect cannot be achieved. Therefore, the present invention selects standard blocks according to the grayscale distribution in each block, so that the grayscale proportion of each image feature in the selected standard block is uniform, and will not be over-enhanced or swallowed up. The standard block is histogram equalized so that the standard block can be used as a reference for the remaining blocks in the future, and the limiting contrast parameters of the remaining blocks are determined according to the enhancement results of the standard block.

[0036] Specifically, for each block, a grayscale histogram of the block is constructed, the horizontal axis of the grayscale histogram is the grayscale value, and the vertical axis is the frequency corresponding to the grayscale value. All maximum points in the grayscale histogram are obtained. In order to reduce the influence of noise, in other embodiments, the implementer may first smooth the grayscale histogram, and then obtain the maximum points in the smoothed grayscale histogram. The method for smoothing the grayscale histogram may adopt moving average method, bin smoothing, etc.

[0037] It should be noted that under the interference of Gaussian noise, the frequencies of all grayscale values ​​corresponding to each image feature in the block conform to the Gaussian distribution. The Gaussian distribution curve is high in the middle and low at both ends. The peak where each maximum point in the grayscale histogram is located basically conforms to the trend of Gaussian distribution. Therefore, the grayscale value corresponding to a maximum point in the grayscale histogram can be regarded as the main grayscale value of an image feature. Therefore, the present invention analyzes the distribution of image features in the block according to the frequency corresponding to the grayscale value of the maximum point in the grayscale histogram of the block, thereby screening standard blocks.

[0038] Specifically, determine the standard degree of block division, including:

[0039] When the number of maximum points is not less than 2, the standard degree of the block is obtained according to the grayscale range of the block and the frequency corresponding to all maximum points in the grayscale histogram of the block:

[0040]

[0041] In the formula, Q represents the standard degree of the block; Indicates the maximum gray value in the block; Indicates the minimum gray value in the block; Indicates the number of maximum points in the grayscale histogram of the block; Indicates the grayscale histogram of the block The frequency corresponding to the maximum point; Represents the mean of the frequencies corresponding to all the maximum points in the grayscale histogram of the block; Represents an exponential function with a natural constant as its base.

[0042] When the number of maximum points is not less than 2, it means that the block contains multiple image features, such as vegetation, rivers, etc. Indicates the grayscale range of the block. The larger the grayscale range, the more image features the block may contain. At this time, when the block is used as a reference for other blocks, the reference significance is greater. Conversely, the smaller the grayscale range, the fewer image features the block contains. At this time, when the block is used as a reference for other blocks, the reference significance is smaller. It represents the variance of the frequencies corresponding to all the maximum points in the grayscale histogram of the block. When the variance is larger, it means that some image features contained in the block account for a larger proportion, and some image features account for a smaller proportion. If the block is directly subjected to histogram equalization, the image features with a smaller proportion may be swallowed up, and the image features with a larger proportion may be over-enhanced, resulting in poor enhancement effect, and it cannot be used as a reference for other blocks. On the contrary, when the variance is smaller, it means that the multiple image features contained in the block are distributed more evenly. When the block is subjected to histogram equalization, the image features in the block are enhanced more evenly, the enhancement effect is better, and the block can be used as a reference for other blocks. Therefore, when the grayscale range of the block is larger and the variance of the frequencies corresponding to all the maximum points in the grayscale histogram of the block is smaller, the standard degree of the block is larger, and the block can be used as a reference for other blocks.

[0043] When the number of maximum points is less than 2, it means that the block contains only one image feature. At this time, the block cannot be used as a reference for other blocks, and the standard degree of the block is set to 0.

[0044] The block with the largest standard degree is taken as the standard block.

[0045] At this point, the standard blocks are obtained.

[0046] S3: The standard block is enhanced using a histogram equalization algorithm, and the contrast of two maximum value points after enhancement is determined according to the difference between the grayscale values ​​of any two maximum value points in the grayscale histogram of the standard block after enhancement.

[0047] The standard block is enhanced using the histogram equalization algorithm to obtain the enhanced result of the standard block.

[0048] It should be noted that the frequency distribution of the grayscale values ​​corresponding to each image feature in the standard block is uniform, and a good enhancement effect can be achieved by using the histogram equalization algorithm. The grayscale value corresponding to a maximum point in the grayscale histogram can be regarded as the main grayscale value of an image feature. Therefore, the difference between the grayscale values ​​corresponding to two maximum points in the grayscale histogram of the standard block after enhancement can reflect the contrast of the image features corresponding to the two maximum points after enhancement. Therefore, the present invention measures the contrast of the image features corresponding to any two maximum points in the grayscale histogram of the standard block after enhancement, and refers to it as the contrast after the maximum point enhancement, so as to subsequently determine the limiting contrast parameters of the remaining blocks according to the contrast after the maximum point enhancement in the standard block.

[0049] Specifically, the contrast between any two maximum points after enhancement is determined according to the grayscale value corresponding to the grayscale value of the maximum point in the grayscale histogram of the standard block after enhancement:

[0050]

[0051] In the formula, Indicates the grayscale histogram of the standard block The maximum point and the The contrast after the maximum point is enhanced; Indicates the grayscale histogram of the standard block The gray value corresponding to the gray value of the maximum point after enhancement; The grayscale histogram of the standard block The grayscale value of the maximum point after enhancement corresponds to the grayscale value. When the difference between the grayscale values ​​corresponding to the two maximum points after enhancement is greater, the contrast between the two maximum points after enhancement is greater.

[0052] At this point, the enhancement of the standard block is achieved, and the contrast of any two maximum points in the grayscale histogram of the standard block after enhancement is obtained.

[0053] S4: For each block, predict the contrast of any two maximum points in the grayscale histogram of the block after enhancement under different values ​​of the restricted contrast parameter, determine the loss value according to the difference between the predicted value of the contrast of the two maximum points in the grayscale histogram of the block after enhancement and the contrast of the corresponding two maximum points in the grayscale histogram of the standard block after enhancement, and use the restricted contrast parameter when the loss value is minimized as the target restricted contrast parameter of the block.

[0054] Specifically, let the limiting contrast parameter be , then in the limited contrast histogram equalization algorithm, according to the limited contrast parameter The results of adjusting the frequency of each gray value in the block are as follows:

[0055]

[0056] In the formula, Indicates the gray value in the block The frequency is limited according to the contrast parameter Adjusted frequency; Indicates the gray value in the block frequency; Indicates that the frequency in the block is greater than the limit contrast parameter The number of grayscale values; in the limited contrast histogram equalization algorithm, it is necessary to clip the frequency of the grayscale value whose frequency is greater than the limited contrast parameter, and evenly distribute the clipped frequency to each grayscale value, so when the grayscale value The frequency is greater than the limiting contrast parameter When the gray value The adjusted frequency is , when the gray value The frequency is not greater than the limiting contrast parameter When the gray value The adjusted frequency is .

[0057] According to the adjusted frequency of each gray value in the block, the contrast between any two maximum points in the gray histogram of the predicted block is enhanced:

[0058]

[0059] In the formula, Indicates the grayscale histogram of the block The maximum point and the The predicted value of the contrast after the maximum point enhancement; Indicates the grayscale histogram of the block The gray value of the maximum point, Indicates the grayscale histogram of the block The gray value of the maximum point; Indicates the gray value in the block The frequency is limited according to the contrast parameter Adjusted frequency; Reflects the contrast parameter according to the limit After adjusting the frequency of each gray value, The gray value of the maximum point is The difference between the cumulative distribution frequencies corresponding to the grayscale values ​​of the maximum points is calculated according to the principle of the limited contrast histogram equalization algorithm. The gray value of the maximum point is The difference of the gray value of the maximum point after enhancement is , then The gray value of the maximum point is The contrast of the maximum point after gray value enhancement is ,but It represents the grayscale histogram of the block The maximum point and the The contrast is enhanced after the maximum point is enhanced.

[0060] It should be noted that the contrast of the two maximum points in the grayscale histogram of the standard block after enhancement reflects the contrast of the two image features corresponding to the two maximum points after enhancement. Since the distribution of each image feature in the standard block is relatively balanced, there will be no situation where the image feature is over-enhanced or swallowed up in the enhancement result obtained by using histogram equalization. Therefore, the enhancement effect of the standard block is better. The contrast of the two image features in the standard block after enhancement can be used as a measurement standard. When the difference between the predicted value of the contrast after enhancement of the two maximum points in the grayscale histogram of each block and the contrast after enhancement of the corresponding two maximum points in the standard block is smaller, it means that the block has a better enhancement effect under the corresponding restricted contrast parameter. Therefore, the present invention constructs a loss value according to the difference between the predicted value of the contrast after enhancement of the two maximum points in the grayscale histogram of the block and the contrast after enhancement of the corresponding two maximum points in the standard block, so as to select the restricted contrast parameter with the best enhancement effect according to the loss value to enhance the block.

[0061] Specifically, any maximum point in the grayscale histogram of the block is taken as the target maximum point, and the difference between the grayscale value of each maximum point in the grayscale histogram of the standard block and the grayscale value of the target maximum point is calculated. When the difference between the grayscale value of the maximum point in the grayscale histogram of the standard block and the grayscale value of the target maximum point is less than the preset gray difference threshold, the maximum point with the smallest difference between the grayscale value of the target maximum point in the grayscale histogram of the standard block and the grayscale value of the target maximum point is taken as the corresponding maximum point of the target maximum point. When the difference between the grayscale value of the non-maximum point in the grayscale histogram of the standard block and the grayscale value of the target maximum point is less than the preset difference threshold, the target maximum point does not have a corresponding maximum point. The difference threshold can be set by the implementer according to the actual implementation situation, and is not specifically limited, for example, 10.

[0062] The maximum point with a corresponding maximum point in the grayscale histogram of the block is taken as the representative maximum point.

[0063] When the number of representative maximum points in a block is not less than 2, the expression of the loss value is constructed based on the difference between the predicted value of the contrast of the two representative maximum points in the grayscale histogram of the block after enhancement and the contrast of the two corresponding maximum points in the grayscale histogram of the standard block after enhancement:

[0064]

[0065] In the formula, represents the loss value; Indicates the first represents the maximum point and the represents the predicted value of the contrast after the maximum point is enhanced; , is the serial number representing the maximum point in the block, and ; Indicates the first represents the maximum point and the The contrast of the two corresponding maximum points in the standard block after the maximum point is enhanced; Indicates the absolute value symbol. represents the maximum point and the represents the predicted value of the contrast after the maximum point is enhanced , and the first represents the maximum point and the The smaller the difference between the contrast enhancement of the two corresponding maximum points in the standard block is, the represents the maximum point and the The better the enhancement effect of the image features corresponding to the maximum points, the better the enhancement effect of all the image features corresponding to the maximum points. The more appropriate, that is, when the loss value The smaller the value, the corresponding limit contrast parameter The better the enhancement effect on the blocks.

[0066] Will As a limiting contrast parameter The value range of Indicates the frequency of the gray value with the highest frequency in the block, Indicates the frequency of the gray value with the minimum frequency in the block, and is within the range of The inner is the limit contrast parameter Traverse the value and get Loss value under different values , where the step size can be set by the implementer according to the actual implementation situation, for example .

[0067] The loss value The corresponding limit contrast parameter at the minimum , as the target limiting contrast parameter for the partition.

[0068] At this point, the restricted contrast parameters of the blocks representing that the number of maximum value points is not less than 2 are obtained.

[0069] It should be noted that when the number of maximum value points in the grayscale histogram of the block is less than 2, the above method cannot be used to obtain the limiting contrast parameter of the block. Since the grayscale value range of the standard block is large and covers multiple image features in the remote sensing image, the possibility of the block with the number of maximum value points less than 2 appearing is very small. The present invention determines the target limiting contrast parameter of the block with the number of maximum value points less than 2 based on the target limiting contrast parameter of the block with the number of maximum value points not less than 2.

[0070] In one embodiment, the mean value of the target limiting contrast parameter of the blocks whose number of representative maximum value points is not less than 2 is obtained, and the mean value is used as the target limiting contrast parameter of the blocks whose number of representative maximum value points is less than 2.

[0071] In another embodiment, a block whose number of representative maximum points is not less than 2 is recorded as a reference block, and a block whose number of representative maximum points is less than 2 is recorded as a target block. According to the limiting contrast parameter of the reference block and the distance from the reference block to the target block, the target limiting contrast parameter of the target block is obtained:

[0072]

[0073] In the formula, represents the target-limited contrast parameter of the target patch; Indicates The target limit contrast parameter of the reference block; Indicates the serial number of the reference block; Indicates the number of reference blocks; Indicates The distance from the reference block to the target block; Indicates the distance between the reference block with the largest distance to the target block and the target block; represents an exponential function with a natural constant as base, represents the linear normalization function; For the The weight of the reference block, when the The smaller the distance between the first reference block and the target block, the The larger the weight of the reference block, the more the target limit contrast parameter of the target block refers to the The target limit contrast parameter for each reference patch.

[0074] In other embodiments, the implementer may also directly preset the target limit contrast parameter of the blocks representing the number of maximum value points less than 2 according to the actual implementation situation, for example, As a target limiting contrast parameter for blocks with less than 2 maxima, Indicates the frequency of the grayscale value with the highest frequency in the block.

[0075] At this point, the target restricted contrast parameters representing the blocks with the number of maximum points less than 2 are obtained.

[0076] S5: performing restricted contrast histogram equalization on the blocks using the target restricted contrast parameters of the blocks, and splicing the enhancement results of each block into an enhanced image of the remote sensing image.

[0077] In one embodiment, the restricted contrast histogram equalization is performed on the blocks according to the target restricted contrast parameter of each block to obtain the enhancement result of each block. The enhancement results of each block are spliced ​​into an enhanced image of the remote sensing image.

[0078] In order to improve the enhancement effect of the enhanced image, in other embodiments, when splicing the enhancement results of each block, linear interpolation or bilinear interpolation can be used to eliminate the block effect of the enhanced image. It should be noted that linear interpolation and bilinear interpolation are well-known technologies and will not be described here.

[0079] S6: Identify forest resources based on enhanced images of remote sensing images.

[0080] The present invention uses a semantic segmentation network to identify forest resources in enhanced images of remote sensing images. The specific content of the semantic segmentation network is as follows:

[0081] The input of the semantic segmentation network is the enhanced image of the remote sensing image, and the output is the distribution image of various types of forest resources in the enhanced image of the remote sensing image. The data set of the semantic segmentation network is a data set composed of multiple enhanced images of remote sensing images containing different forest resources. The pixels that do not belong to forest resources in each enhanced image in the data set are marked as 0, and the pixels belonging to different forest resources are marked with different labels, for example, the pixels belonging to forest land resources are marked as 1, the pixels belonging to forest water resources are marked as 2, and the pixels belonging to forest biological resources are marked as 3, etc. The loss function of the semantic segmentation network is the cross entropy loss function.

[0082] The enhanced image of the remote sensing image is input into the semantic segmentation network, and the distribution image of various forest resources in the enhanced image of the remote sensing image is output.

[0083] Implementers can also use other methods to identify forest resources in enhanced images of remote sensing images, such as the YOLO network.

[0084] An embodiment of the present invention further discloses a forest resource patrol environment data processing system, including a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, a forest resource patrol environment data processing method according to the present invention is implemented.

[0085] The above system also includes other components well known to those skilled in the art, such as a communication bus and a communication interface, and their configuration and functions are known in the art, so they will not be described in detail here.

[0086] Although this specification has shown and described a number of embodiments of the present invention, it will be apparent to those skilled in the art that such embodiments are provided by way of example only. Those skilled in the art will conceive of many modifications, changes and alternatives without departing from the ideas and spirit of the present invention. It should be understood that in the practice of the present invention, various alternatives to the embodiments of the present invention described herein may be employed.

[0087] The above are all preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Therefore, any equivalent changes made based on the structure, shape, and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for processing forest resource patrol environment data, characterized in that: include: Divide the remote sensing image of forest resources into multiple blocks; The standard degree of the block is determined according to the grayscale range of the block and the frequency corresponding to all the maximum value points in the grayscale histogram of the block, including: when the number of maximum value points in the grayscale histogram of the block is greater than or equal to 2, the standard degree satisfies the expression: ; In the formula, Q represents the standard degree of the block; Indicates the maximum gray value in the block; Indicates the minimum gray value in the block; Indicates the number of maximum points in the grayscale histogram of the block; Indicates the grayscale histogram of the block The frequency corresponding to the maximum point; Represents the mean of the frequencies corresponding to all the maximum points in the grayscale histogram of the block; represents an exponential function with a natural constant as the base; when the number of maximum value points in the grayscale histogram of the block is less than 2, the standard degree is set to 0; the standard degree is positively correlated with the grayscale range and negatively correlated with the variance of the frequencies corresponding to all the maximum value points; the block with the largest standard degree is determined as the standard block; The standard block is enhanced by using a histogram equalization algorithm; the contrast of two maximum value points after enhancement is determined according to the difference between the grayscale values ​​of any two maximum value points in the grayscale histogram of the standard block, and the contrast is positively correlated with the difference between the grayscale values; For each block, the contrast of any two maximum points in the grayscale histogram of the block after enhancement is predicted under different values ​​of the restricted contrast parameter, and the loss value is determined according to the difference between the predicted value of the contrast of the two maximum points in the grayscale histogram of the block after enhancement and the contrast of the corresponding two maximum points in the grayscale histogram of the standard block after enhancement, and the loss value is positively correlated with the difference between the contrasts; the restricted contrast parameter when the loss value is minimized is used as the target restricted contrast parameter; The target restricted contrast parameters of the blocks are used to perform restricted contrast histogram equalization on the blocks; the enhancement results of each block are spliced ​​into an enhanced image of the remote sensing image to identify forest resources.

2. A method for processing forest resource patrol environment data according to claim 1, characterized in that: The step of determining the contrast ratio of two maximum value points after enhancement according to the difference between the gray values ​​of any two maximum value points after enhancement in the gray value histogram of the standard block includes: For any two maximum points in the grayscale histogram of the standard block, the absolute value of the difference between the grayscale values ​​corresponding to the two maximum points in the enhanced standard block is obtained, and the absolute value of the difference is normalized as the contrast of the two maximum points after enhancement.

3. A method for processing forest resource patrol environment data according to claim 1, characterized in that: The contrast of any two maximum value points in the grayscale histogram of the prediction block after enhancement includes: ; ; In the formula, Indicates the gray value in the block The frequency is limited according to the contrast parameter Adjusted frequency; Indicates the gray value in the block frequency; Indicates that the frequency in the block is greater than the limit contrast parameter The number of gray values; Indicates the grayscale histogram of the block The maximum point and the The predicted value of the contrast after the maximum point enhancement; Indicates the grayscale histogram of the block The gray value of the maximum point, Indicates the grayscale histogram of the block The gray value of the maximum point.

4. A method for processing forest resource patrol environment data according to claim 1, characterized in that: The determining of the loss value comprises: Any maximum point in the grayscale histogram of the block is taken as the target maximum point, and the maximum point in the grayscale histogram of the standard block whose grayscale difference with the target maximum point is less than the preset difference threshold and whose grayscale difference with the target maximum point is the smallest is taken as the corresponding maximum point of the target maximum point; the maximum point in the grayscale histogram of the block with a corresponding maximum point is taken as the representative maximum point. When the number of representative maximum points is not less than 2, the loss value , Indicates the first The first represents the predicted value of the contrast after the maximum point is enhanced, Indicates the first The first The contrast of the two corresponding maximum points in the standard block after the maximum point is enhanced; Indicates the number of maximum points in the block.

5. A method for processing forest resource patrol environment data according to claim 4, characterized in that: Also includes: The average of the target limit contrast parameters of all blocks whose number of representative maximum value points is not less than 2 is used as the target limit contrast parameter of the blocks whose number of representative maximum value points is less than 2.

6. A method for processing forest resource patrol environment data according to claim 4, characterized in that: Also includes: The blocks with the number of maximum points not less than 2 are recorded as reference blocks, and the blocks with the number of maximum points less than 2 are recorded as target blocks. According to the target limit contrast parameter of the reference block and the distance from the reference block to the target block, the target limit contrast parameter of the target block is determined: , represents the target-limited contrast parameter of the target patch; Indicates The target limit contrast parameter of the reference block; Indicates the serial number of the reference block; Indicates the number of reference blocks; Indicates The distance from the reference block to the target block; Indicates the distance between the reference block with the largest distance to the target block and the target block; represents an exponential function with a natural constant as base, represents the linear normalization function.

7. A method for processing forest resource patrol environment data according to any one of claims 1 to 6, characterized in that: The step of stitching the enhancement results of each block into an enhanced image of the remote sensing image further includes: When splicing the enhanced results of each block, the linear interpolation method is used to eliminate the block effect of the enhanced image.

8. A forest resource patrol environment data processing system, characterized in that: include: A processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, a forest resource patrol environment data processing method according to any one of claims 1-7 is implemented.