A cultivated land plot extraction method based on remote sensing images
By using dynamic window segmentation guided by topographic relief and spectral texture constraint merging, the problems of boundary ambiguity and erroneous merging in the extraction of farmland plots in karst areas are solved, and high-precision farmland plot extraction under complex terrain is achieved.
Patent Information
- Application Number
- CN202611494810.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-23
- Publication Date
- 2026-11-27
AI Technical Summary
In karst regions, existing technologies struggle to accurately segment and extract farmland plots in complex terrain, especially due to boundary blurring and mis-merging issues caused by dramatic topographic relief and shadow interference.
A dynamic window segmentation method that follows terrain and a heterogeneity constraint merging that incorporates texture information are adopted. A dynamic window is constructed by calculating the local terrain undulation. Combined with spectral heterogeneity and shape screening, the boundary fit and anti-interference ability of farmland plot extraction are improved.
Under complex terrain conditions, it can adaptively adjust the segmentation scale, improve the integrity and reliability of farmland plot extraction, significantly suppress false farmland patches, and enhance the accuracy and robustness of extraction results.
Smart Images

Figure CN123181835A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of remote sensing image processing technology, specifically to a method for extracting farmland plots based on remote sensing images. Background Technology
[0002] Karst regions are characterized by fragmented terrain, with arable land scattered across depressions and gentle slopes, interspersed with exposed bedrock and shadowed areas. Some arable land in karst regions lies within ecological red lines, in environmentally fragile areas, or in locations prone to geological disasters such as rockfalls, landslides, and debris flows. To protect the environment and improve safety, it is necessary to conduct a comprehensive survey of arable land, obtaining information such as the location and area of these plots. This data will provide a foundation for developing protective measures such as reforestation and the construction of disaster prevention facilities.
[0003] In karst areas, due to the complex terrain, on-site reconnaissance is extremely labor-intensive. To improve efficiency, common technical approaches for acquiring farmland information include: using high-resolution multispectral remote sensing imagery for object-oriented segmentation to extract farmland plots; and calculating the location and area of these plots. Existing segmentation methods generally rely on fixed-size analysis windows or multi-scale segmentation schemes based on global parameters. While these methods yield good results in relatively flat areas, they are ineffective in transitional zones between peaks and depressions where terrain undulations are dramatic and local surface morphology varies significantly. Fixed windows cannot respond to these micro-topographical differences. Within flat farmland, excessively small windows can easily produce fragmented patches, while overly large windows at steep slope edges can mix rock and farmland into the same patch, leading to blurred and misaligned plot boundaries. Some techniques introduce digital elevation models (DEMs) to provide terrain constraints, but the terrain relief calculation windows and partitioning thresholds are often pre-set and not dynamically correlated with pixel-level local terrain changes. The segmentation scale still lacks true terrain-following capability, making it difficult to maintain both the integrity and boundary accuracy of farmland plots in undulating scenarios.
[0004] Based on the initial patches obtained after segmentation, merging is often performed using regional adjacency maps to form relatively complete plots. Conventional merging criteria heavily rely on the difference in spectral mean between adjacent patches. When applied to karst scenarios, the spectral responses of farmland under shadow and dark bare rock are very similar, making erroneous merging easily triggered by spectral distance alone, resulting in rock patches being incorporated into farmland plots. There are substantial differences in surface texture patterns between fallow land and bare rock in karst areas. Bare rock often has regular fissures or coarse grains, while farmland is relatively smooth and fine. However, most existing heterogeneity metrics do not combine texture features for joint constraint, resulting in a lack of ability to identify the texture differences between rock and farmland during the merging process. A large number of non-farmland patches remain in the candidate plots, placing a heavy burden on subsequent shape selection and easily causing the loss of small farmland patches. To address these issues, it is necessary to solve the problem of how the segmentation window can adaptively change according to local terrain undulations to accurately depict the boundaries of karst farmland, and how to coordinate spectral heterogeneity and texture heterogeneity constraints in patch merging to reliably distinguish farmland from rock. Summary of the Invention
[0005] The purpose of this invention is to provide a method for extracting farmland plots based on remote sensing images. This method utilizes dynamic window segmentation based on terrain following and heterogeneous constraint merging of fused texture information to improve the boundary fit and anti-interference ability of farmland plot extraction in karst areas.
[0006] To achieve the above objectives, the present invention provides the following technical solution: The present invention provides a method for extracting cultivated land parcels based on remote sensing imagery, comprising: acquiring multispectral remote sensing images of a target karst region; performing atmospheric correction and geometric fine correction on the multispectral remote sensing images to generate preprocessed remote sensing images; performing multi-scale segmentation processing on the preprocessed remote sensing images based on topographic relief to generate an initial set of parcel patches, wherein the multi-scale segmentation processing is implemented using a terrain-following local dynamic window construction method; performing patch merging processing on the initial set of parcel patches based on spectral heterogeneity constraints to generate a candidate set of cultivated land parcels, wherein the patch merging processing is implemented using an improved regional adjacency graph; and performing a selection process on the candidate set of cultivated land parcels based on rectangularity and shape index to obtain the final cultivated land parcel extraction result. By incorporating topographic relief into the segmentation window construction and combining it with spectral heterogeneity constraints and shape selection, the method effectively adapts to the characteristics of fragmented landforms and blurred parcel boundaries in karst areas, improving the completeness and reliability of cultivated land parcel extraction.
[0007] Preferably, the multi-scale segmentation processing based on topographic relief includes: extracting the digital elevation model of the preprocessed remote sensing image; calculating the local topographic relief of each pixel, where the local topographic relief is the standard deviation of the elevation values within a predetermined window surrounding the pixel; constructing a terrain-following local dynamic window based on the local topographic relief, wherein the size of the local dynamic window is inversely proportional to the local topographic relief value, so that a larger window is used in gently undulating areas to capture the overall features of large land parcels, while a smaller window is used in steeply undulating areas to maintain the fine structure of the parcel edges; calculating the local spectral heterogeneity index for each pixel using its corresponding local dynamic window to generate a gradient energy map; performing a watershed transformation on the gradient energy map, and setting watershed marker control points based on the local topographic relief to generate the initial set of land parcel patches. This processing method can adaptively adjust the segmentation scale under complex terrain conditions, mitigating the over-segmentation or under-segmentation problems caused by abrupt topographic changes such as karst peaks and depressions.
[0008] As a specific implementation of generating a gradient energy map, the spectral vectors of all pixels within each local dynamic window are obtained, and the average spectral value of the spectral vectors in a predetermined band is calculated. Based on the average spectral value, the spectral angular distance between each pixel within the local dynamic window and the center pixel of the window is calculated. For each pair of adjacent local dynamic windows, the absolute value of the difference between their average spectral values is calculated, and this absolute value is used as the boundary intensity value. The spectral angular distance and the boundary intensity value are multiplied to obtain the gradient energy map for each pixel location. By fusing the spectral angular distance and the boundary intensity between windows, the gradient energy map becomes more resistant to interference from shadows, rocks, etc., and can more accurately highlight the edges of real farmland plots.
[0009] A preferred approach for setting watershed marker control points is as follows: The local topographic relief value is compared with a preset relief threshold, and pixels in flat areas with relief values below the threshold are selected; local minima are detected in the flat area pixels to generate a first candidate marker set; morphological reconstruction is performed on the gradient energy map to suppress local non-minimal values, generating a second candidate marker set; the intersection of the first and second candidate marker sets is performed to obtain the marker control points. Through the combined effect of topographic flatness constraints and gradient morphological constraints, invalid markers are avoided in non-cultivated areas such as steep slopes and rock walls, increasing the probability that the initial map patches correspond to real cultivated land objects. One method for determining the relief threshold is: histogram statistics are performed on the local topographic relief values of all pixels in the preprocessed remote sensing image, and the relief value corresponding to the trough of the histogram is selected as the relief threshold, thereby adaptively defining the boundary between flat and undulating areas based on topographic distribution characteristics.
[0010] For the patch merging process, a preferred approach includes: constructing a regional adjacency graph for each patch in the initial set of plot patches, where nodes represent patches and edges represent adjacency relationships between adjacent patches; calculating the heterogeneity weight of each edge in the regional adjacency graph, which is determined by the difference in spectral mean and texture standard deviation of adjacent patches; traversing the regional adjacency graph and merging the two patches corresponding to edges with heterogeneity weights lower than a preset merging threshold to generate an intermediate patch set; repeatedly constructing and merging regional adjacency graphs for the intermediate patch set until the heterogeneity weights of all edges are higher than the merging threshold, generating the candidate farmland plot set. This iterative merging process can integrate over-segmented patches caused by karst micro-topography while maintaining the distinguishability between different farmland plots.
[0011] Further, a specific method for calculating the heterogeneity weight is as follows: calculate the spectral mean of two adjacent patches in a predetermined band, and obtain the Euclidean distance between the spectral mean values as the spectral difference component; calculate the local binary pattern texture features of two adjacent patches, and obtain the difference in the standard deviations of the texture features as the texture difference component; normalize the spectral difference component and the texture difference component to generate normalized spectral difference values and normalized texture difference values; and perform a weighted sum of the normalized spectral difference values and the normalized texture difference values to obtain the heterogeneity weight. By comprehensively considering spectral and texture differences, the heterogeneity measure has better discriminative power against the spectral confusion commonly found in karst areas, reducing the risk of mismerging.
[0012] As a preferred technical solution for determining the preset merging threshold, statistical analysis is performed on all heterogeneity weights in the initial set of land parcels to calculate their mean and standard deviation. The sum of a predetermined multiple of the mean and the standard deviation is set as the initial merging threshold. An area constraint check is performed on the intermediate set of land parcels. If any parcels have an area smaller than the predetermined area threshold, the predetermined multiple is reduced, and the preset merging threshold is recalculated. This mechanism uses area constraints as feedback to dynamically adjust the merging intensity, reducing the number of fragmented pseudo-parcels remaining due to improper threshold settings and improving the overall quality of the candidate land parcel set.
[0013] For the screening process based on rectangularity and shape index, preferably, the rectangularity of each plot in the candidate arable land plot set is calculated, where the rectangularity is the ratio of the plot's area to the area of its smallest bounding rectangle; the shape index of each plot is calculated, where the shape index is the ratio of the plot's perimeter to the circumference of a circle of equal area; the rectangularity is compared with a predetermined rectangularity threshold, and plots with a rectangularity higher than the predetermined threshold are retained; for the retained plots, their shape index is compared with a predetermined shape index range, and plots with shape indices exceeding the predetermined shape index range are filtered out, generating the final arable land plot extraction result. Arable land in karst areas often exhibits relatively regular geometric shapes due to artificial modification. Utilizing the dual constraints of rectangularity and shape index can effectively eliminate non-arable land patches such as broken and irregular natural bare rocks and shrubs, improving the accuracy of the extraction results.
[0014] One method for determining the predetermined shape index range is as follows: A predetermined number of plots are randomly selected from the candidate arable land plot set as sample plots; each sample plot is manually labeled to determine whether it is arable land or non-arable land; the shape index of all sample plots labeled as arable land is calculated to obtain a set of arable land plot shape indices; the percentiles of the arable land plot shape index set are calculated, and the lower limit of the percentile is used as the lower limit of the predetermined shape index range, and the upper limit of the percentile is used as the upper limit of the predetermined shape index range. Using sample learning to determine the shape index range allows the screening criteria to align with the actual shape characteristics of arable land in different regions, reducing the blindness of manually setting thresholds.
[0015] This invention fully considers the characteristics of karst areas, such as drastic terrain undulations, severe shadow interference, and the intermingling of cultivated and non-cultivated land. It refines complex scenarios layer by layer from multi-scale terrain adaptive segmentation and spectral texture fusion to shape-based directional filtering. It can significantly suppress pseudo-cultivated land patches such as rocks and bare soil while maintaining the accuracy of plot boundaries. It is robust and highly automated.
[0016] The technical effects and advantages provided by the present invention in the above technical solution are as follows: By calculating the local topographic relief of each pixel and constructing a local dynamic window that follows the terrain, the window size is inversely proportional to the local topographic relief. Within gently sloping, low-lying farmland, a larger window can fully encompass homogeneous crop areas, resulting in stable average spectral values when calculating local spectral heterogeneity indices. The spectral angular distance is less affected by subtle noise within the plot, and the resulting gradient energy map appears flat and continuous within the farmland. At the boundary between farmland and steep rocks, the window automatically shrinks, closely following the terrain transition. The captured spectral changes reflect abrupt land cover changes. Combining the absolute value of the average spectral difference between adjacent windows as the boundary intensity value, and multiplying the spectral angular distance with the boundary intensity value, the gradient energy map exhibits a strong response at the true land cover boundaries, resulting in targeted enhancement of boundary contrast. Pixels in flat areas are selected using a local topographic relief threshold and local minima are detected. Simultaneously, morphological reconstruction suppresses local non-minimal values in the gradient energy map. The intersection of these two methods yields stable control points that drive the watershed transformation. This marking control method forces the segmentation to start from within the cultivated land, effectively avoiding oversegmentation caused by pseudo-minimum values resulting from rock shadows or karst buds. The initial set of plots can completely encompass the contours of the low-lying cultivated land and isolate non-cultivated land rocks into independent small plots, with boundaries that highly match micro-topographic changes.
[0017] When merging the initial set of land parcels, the improved regional adjacency graph calculates a heterogeneity weight for each edge. This weight is obtained by weighted summation of the Euclidean distance between the spectral mean of adjacent parcels and the standard deviation of the local binary pattern texture. The spectral difference component characterizes the differences in color space, while the texture difference component reflects the pattern distinction between the regular, coarse texture of rocks and the fine, uniform texture of farmland by comparing the dispersion of the texture features of the local binary pattern. After normalizing and fusing the two differences, adjacent edges crossing the boundary between farmland and rocks have significantly higher heterogeneity weights. The merging process traverses the regional adjacency graph, gradually merging only edges with weights below a preset merging threshold, while high-weight edges are retained, avoiding the erroneous merging of dark rocks and fallow land. The preset merging threshold is initialized by statistically calculating the mean and standard deviation of all heterogeneity weights and multiplying them by an adjustable predetermined factor, and an area constraint check is applied. If parcels with excessively small areas appear after merging, the factor is automatically reduced to relax the merging conditions, preventing small but real farmland parcels from being isolated and retained. The heterogeneity weights with texture constraints, combined with an adaptive threshold mechanism, can enhance the overall connectivity of cultivated land plots during merging, while retaining a large number of non-cultivated land patches as discrete, isolated individuals. Subsequent screening based on rectangularity and shape index only needs to remove these residual non-cultivated land plots to obtain the final cultivated land plot extraction results with high purity and integrity. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this invention. For those skilled in the art, other drawings can be obtained based on these drawings.
[0019] Figure 1 This is a flowchart of a method for extracting farmland plots based on remote sensing imagery; Figure 2 This is a flowchart of the watershed marker control point extraction process based on local topographic relief. Figure 3 It is a sample distribution map of different terrain undulation areas based on spectral angular distance and boundary intensity; Figure 4 This is a histogram of local terrain relief and a schematic diagram of relief thresholds; Figure 5 It is a distribution map of the merging threshold based on the weights of spectral and texture heterogeneity; Figure 6 This is a distribution map of candidate arable land plots based on their rectangularity and shape index. Detailed Implementation
[0020] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0021] See Figure 1 This invention provides a method for extracting farmland parcels based on remote sensing imagery. The method includes: acquiring multispectral remote sensing images of a target karst region, and performing atmospheric and geometric correction on the multispectral remote sensing images to generate preprocessed remote sensing images; performing multi-scale segmentation processing on the preprocessed remote sensing images based on topographic relief to generate an initial set of parcel patches, wherein the multi-scale segmentation processing is implemented using a terrain-following local dynamic window construction method; performing patch merging processing on the initial set of parcel patches based on spectral heterogeneity constraints to generate a candidate set of farmland parcels, wherein the patch merging processing is implemented using an improved regional adjacency graph; and performing a selection process on the candidate set of farmland parcels based on rectangularity and shape index to generate the final farmland parcel extraction result.
[0022] Example 1: In practice, the preprocessed remote sensing image is segmented at multiple scales based on topographic relief to generate an initial set of land parcels. A digital elevation model (DEM) is extracted from the preprocessed remote sensing image. This DEM has the same spatial extent and pixel size as the preprocessed image, with each pixel corresponding to an elevation value. The local topographic relief of each pixel is calculated, which is the standard deviation of the elevation values of all pixels within a predetermined window centered on the target pixel. The size of the predetermined window is measured in pixels, with a side length of 3 pixels. For any given pixel, its local topographic relief is calculated. Calculate using the following formula: in, Represents the row and column coordinates of the target cell. This represents the set of pixels contained within a predetermined window centered on the target pixel and with a side length of 3 pixels. express The total number of pixels in the middle, Represents a pixel Elevation value, express The arithmetic mean of the elevation values of all pixels within the area.
[0023] A local dynamic window for terrain following is constructed based on the local terrain relief. The size of the local dynamic window is inversely proportional to the local terrain relief value at the target pixel location. In one implementation, the local dynamic window is a square window with a side length of... Determined by the following inverse proportional function: in, This is a preset proportionality constant. The value range is from 100 to 300. This is a scaling factor for the local topographic relief. Set to 1, To prevent adjustment parameters with a denominator of zero, Set to 0.001, The preset minimum window side length, Set to 3, This represents the floor operation. Based on the above formula, in flat areas with relatively small local topographic relief, the calculated... Larger local dynamic windows cover a wider spatial range; in steep areas with significant local topographic relief, the calculated... The local dynamic window is smaller, shrinking to near its minimum size to reduce the impact of abrupt terrain changes on spectral heterogeneity calculations.
[0024] For each pixel, a local spectral heterogeneity index is calculated using the corresponding local dynamic window to generate a gradient energy map. For the target pixel, the multispectral spectral vectors of all pixels within the local dynamic window centered on the target pixel are obtained. These multispectral vectors consist of the spectral reflectance values of each band of the multispectral remote sensing image. Within the local dynamic window, the spectral angular distance between the spectral vector of each pixel and the spectral vector of the central pixel of the window is calculated. The average of the spectral angular distances corresponding to all pixels is taken within the local dynamic window, and this average value is used as the local spectral heterogeneity index at the target pixel location. This process is repeated for each pixel in the preprocessed remote sensing image, calculating the same number of local spectral heterogeneity indices as the number of pixels. These local spectral heterogeneity indices constitute the gradient energy map.
[0025] A watershed transformation is performed on the gradient energy map, and control points for the watershed are set based on local topographic relief to generate an initial set of land parcels. The process of setting control points includes: comparing the local topographic relief value of each pixel with a preset relief threshold, retaining pixels with local topographic relief values less than the threshold, thus obtaining a set of pixels in flat areas. For each pixel in the set of pixels in flat areas, it is checked on the gradient energy map to see if it is a local minimum. A local minimum is defined as a gradient energy map value of the target pixel being less than the gradient energy map values of all its neighboring pixels. Pixels that meet the local minimum condition are selected as first candidate control points. Subsequently, morphological reconstruction is performed on the gradient energy map. The morphological reconstruction operation uses the gradient energy map as a mask image and the result of subtracting a small constant from the gradient energy map as the control image. Dilation reconstruction is performed to suppress local non-minimum regions, resulting in a reconstructed gradient energy map. Local minima are detected on the reconstructed gradient energy map to obtain second candidate control points. The intersection of the first and second candidate marker points is performed, and the pixels that exist in both candidate marker sets are taken as the control points for the watershed transform. The preset undulation threshold is determined as follows: Histogram statistics are performed on the local topographic undulation values of all pixels in the preprocessed remote sensing image. A histogram is generated with the local topographic undulation value on the horizontal axis and the pixel frequency on the vertical axis. The trough position between two peaks in the histogram is located, and the local topographic undulation value corresponding to the trough position is taken as the undulation threshold.
[0026] After obtaining the marked control points, the marked control points are used as forced local minima regions to perform watershed transformation on the gradient energy map. The watershed ridges generated by the watershed transformation divide the gradient energy map into multiple closed regions. Each closed region corresponds to an initial parcel, and all initial parcels constitute the initial parcel set.
[0027] Example 2: In practice, the spectral vectors of all pixels within each local dynamic window are obtained. These spectral vectors are composed of the reflectance values of each band of the preprocessed remote sensing image, and their dimension is equal to the number of bands in the multispectral remote sensing image. For pixel-based... A local dynamic window centered on a given location, with the number of pixels within the window denoted as . , No. The spectral vector of each pixel is ,in The total number of bands, Indicates the first The pixel in the first The reflectance values are calculated for each band. The average spectral value of the spectral vectors of all pixels within the local dynamic window across all predetermined bands is obtained, yielding the window-averaged spectral vector. ,in Determined by the following formula: That is, to calculate the arithmetic mean for each band within the local dynamic window.
[0028] Based on the spectral vector of each pixel within the local dynamic window and the spectral vector of the window's center pixel, the spectral angular distance between each pixel and the window's center pixel is calculated. The spectral vector of the window's center pixel is denoted as... For the first [item] in the window Each pixel, its spectral angular distance from the center pixel of the window. Calculate using the following formula: in, The dot product of two spectral vectors. and These are the two spectral vectors respectively. Norm. Represents all values within a local dynamic window. The arithmetic mean of the spectral angular distances corresponding to each pixel is used to obtain the pixel value. Spectral angular distance value of the location : When calculating spectral angular distance, if or If it is a zero vector, then the spectral angular distance corresponding to that pixel is directly defined as 0.
[0029] For each pair of adjacent local dynamic windows, calculate the absolute value of the difference between the average spectral vectors of the two adjacent local dynamic windows, and use the absolute value of the difference as the boundary intensity value. For a pixel... Determine the set of neighboring cells in its spatial location. The set of neighboring cells contains cells. Pixel Pixel and pixels The pixels that exist within the image range. Each adjacent pixel has a local dynamic window centered on that adjacent pixel, denoted as adjacent pixels. The window-averaged spectral vector of the local dynamic window is Calculate pixels The window-averaged spectral vector of the local dynamic window The window-averaged spectral vector of the local dynamic window of each neighboring pixel The Euclidean distance between them is used as the absolute value of the difference between adjacent local dynamic windows. : The arithmetic mean of the absolute values of the differences between all adjacent local dynamic windows is used as the pixel. Boundary strength value of the location : in, Represents a cell The set of adjacent pixels, This indicates the number of adjacent pixels.
[0030] pixels Spectral angular distance value of the location With boundary strength value Perform a product operation to obtain a pixel. Gradient energy value at location : in, For pixels in the gradient energy map The value, For pixels The location is calculated by averaging the spectral angular distances between all pixels within its local dynamic window and the center pixel of the window. For pixels The location is determined by averaging the Euclidean distances between the average spectral vector of the local dynamic window of the pixel and the average spectral vectors of the local dynamic windows of all neighboring pixels. This boundary intensity value is obtained by performing the above calculation on each pixel of the preprocessed remote sensing image, resulting in the boundary intensity value derived from the average spectral vectors of all pixels. The resulting gradient energy map.
[0031] See Figure 3 The horizontal axis in the graph represents the spectral angular distance value. The unit is radians (rad), and the vertical axis represents the boundary strength value. Both are spectral heterogeneity indices calculated based on local dynamic windows in Example 2. The data points in the figure are divided into three categories according to the terrain undulation: flat areas (blue dots), transitional areas (orange squares), and steep areas (green triangles), reflecting the distribution of spectral heterogeneity characteristics under different terrain undulation conditions.
[0032] Specifically, the data points in the flat area are mainly concentrated on the spectral angular distance values. Boundary strength values range from approximately 0.1 to 0.45. The numerical range of approximately 0.00 to 0.3 exhibits low spectral heterogeneity and boundary intensity, indicating that the pixel spectrum in this region is relatively uniform and the spectral differences within the local dynamic window are small, making it suitable as a marker region for watershed transformation.
[0033] The data points in the transition region are distributed over a slightly wider range than those in the flat region, and the spectral angular distance values are... The boundary strength values are concentrated between 0.3 and 0.55. Concentrated in the range of 0.15 to 0.4, it shows both spectral heterogeneity and increased boundary intensity, reflecting that the region is a buffer zone for topographical variations, and the spectral characteristics show a moderate degree of heterogeneity.
[0034] Data points in steep regions are clearly biased towards higher numerical values, spectral angular distance values The boundary strength values are mainly concentrated between 0.45 and 0.85. The values are mainly distributed between 0.25 and 0.65, indicating that there is significant spectral heterogeneity and boundary intensity in steep terrain areas, with significant spectral differences within local dynamic windows, and that terrain changes have a significant impact on spectral characteristics.
[0035] Example 3: In specific implementation, please refer to Figure 2 The undulation threshold is determined as follows: Histograms are plotted on the local topographic relief values of all pixels in the preprocessed remote sensing image. The horizontal axis of the histogram represents the numerical range of the local topographic relief values, and the vertical axis represents the number of pixels falling within each range. Two main peaks are identified on the histogram, corresponding to pixel clusters in gentle and steep areas of the karst scene, respectively. The histogram interval with the smallest vertical axis value between the two main peaks is searched, and the local topographic relief value corresponding to the center of this interval is taken as the histogram trough. The local topographic relief value corresponding to the histogram trough is set as the undulation threshold. The undulation threshold is a single value used to distinguish between flat and undulating areas.
[0036] The local topographic relief value of each pixel in the preprocessed remote sensing image is compared with a relief threshold. All pixels are iterated through; if the local topographic relief value of a pixel is less than the relief threshold, the pixel is marked as a flat area pixel; if the local topographic relief value of a pixel is greater than or equal to the relief threshold, the pixel is excluded. All pixels marked as flat area pixels constitute a set of flat area pixels.
[0037] Local minima detection is performed on each flat region pixel in the set of flat region pixels. Local minima detection is performed on the gradient energy map. For a flat region pixel, its 8-neighborhood pixels are taken. These 8-neighborhood pixels contain 8 pixels whose absolute difference between their row and column coordinates does not exceed 1. The gradient energy map values of the flat region pixel and its 8-neighborhood pixels are obtained. If the gradient energy map value of the flat region pixel is strictly less than the gradient energy map values of each of its 8-neighborhood pixels, then the flat region pixel satisfies the local minima condition, and is added to the first candidate marker set. If one of the 8-neighborhood pixels is located outside the image boundary, only neighboring pixels within the image area are compared. After traversing all flat region pixels in the set of flat region pixels and completing the local minima detection, the first candidate marker set is obtained.
[0038] Morphological reconstruction is performed on the gradient energy map to suppress local non-minimum values. This reconstruction requires a mask image and a labeled image. The mask image directly uses the gradient energy map, and the pixels in the gradient energy map are recorded. The value is The labeled image is obtained by subtracting a preset decrement from the value of each pixel in the gradient energy map. Obtain, label the pixels in the image numerical value Generate using the following formula: in, For pixels in the gradient energy map The value, To reduce the amount by preset, Set to 0.001, The design principle is to ensure that the marker image is slightly lower than the mask image. This guarantees that the marker image will not exceed the corresponding value of the mask image after dilation during morphological reconstruction, while also preventing excessive downward shift in the reconstruction result. Morphological reconstruction employs a dilation operation: using the marker image as the initial image, repeated geodesic dilation operations are performed on the marker image using 3×3 square structuring elements. After each dilation, a pixel-by-pixel minimum value operation is performed between the marker image and the mask image. Morphological reconstruction terminates when the results of two consecutive dilation reconstructions no longer change, yielding the reconstructed gradient energy map. The morphological reconstruction operation suppresses the values of non-minimum regions in the gradient energy map, while preserving and enhancing local minima.
[0039] All local minima are detected on the reconstructed gradient energy map. The local minima detection method is as follows: for each pixel in the reconstructed gradient energy map, the values of its 8 neighboring pixels are obtained. If the value of the target pixel is strictly less than the values of any of its 8 neighboring pixels, then the target pixel is marked as a local minimum. All pixels marked as local minima in the reconstructed gradient energy map are added to a second candidate marker set. The pixels in the second candidate marker set are not limited to pixels in flat areas, but are extracted from the entire image based on the reconstructed gradient energy map.
[0040] The first candidate marker set and the second candidate marker set are intersected. The intersection operation takes pixels that appear in both the first and second candidate marker sets; these pixels constitute the marker control point set. The intersection operation ensures that the marker control points are located both at local minima in the flat region of the original gradient energy map and at local minima after morphological reconstruction and enhancement, thus providing stable markers in the watershed transform.
[0041] See Figure 4 The horizontal axis in the figure represents the local topographic relief. The unit is meters, and the value ranges from approximately 1 to 12. The vertical axis represents the pixel frequency corresponding to the local terrain undulation, that is, the number of image pixels falling within the corresponding undulation range. The figure shows the frequency distribution of local terrain undulation in the form of a blue bar chart, which presents an overall bimodal structure. The first peak on the left is located in the undulation range of approximately 2.8 to 3.2 meters, with a peak frequency exceeding 70, indicating a concentration of pixels in gentle areas within the karst scene. The second peak on the right is located in the undulation range of approximately 7 to 8 meters, with a peak frequency between approximately 50 and 60, reflecting the presence of relatively steep undulating terrain pixels in this area. The trough between the two peaks is located at an undulation of approximately 3 meters, and this undulation threshold is marked by a red dashed line in the figure.
[0042] Example 4: In practice, a regional adjacency graph is constructed for each patch in the initial set of land parcels. The regional adjacency graph consists of a node set and an edge set. Each node in the node set represents a patch in the initial set of land parcels, and each edge in the edge set represents the adjacency relationship between two adjacent patches. The regional adjacency graph is constructed as follows: traverse all patches in the initial set of land parcels, assigning a unique node identifier to each patch; detect the spatial boundary of each patch; when two patches share a common boundary segment with a length greater than zero, they are considered adjacent patches, and an edge is added between the nodes of the corresponding two patches in the regional adjacency graph. The edge is undirected, indicating an adjacency relationship between two adjacent patches.
[0043] The heterogeneity weight of each edge in the adjacency graph of the region is calculated. The heterogeneity weight is determined by the difference in spectral mean and texture standard deviation between adjacent patches. In one embodiment, the step of calculating the heterogeneity weight includes calculating the spectral difference component and the texture difference component between two adjacent patches.
[0044] For a region adjacency graph consisting of nodes and nodes An edge that connects nodes The corresponding map feature is denoted as map feature. ,node The corresponding map feature is denoted as map feature. Calculate the polygon The spectral mean value in the predetermined bands, which are the red, green, blue, and near-infrared bands of the multispectral remote sensing image, is used to calculate the image patches. The arithmetic mean of the reflectance values of all pixels in each predetermined band is used to obtain the image patch. spectral mean vector ,in , , , They represent the map features respectively. Spectral mean values in the red, green, blue, and near-infrared bands. The patch is calculated in the same manner. spectral mean vector Find the spectral mean vector. With spectral mean vector The Euclidean distance, as a spectral difference component : in, The larger the value, the larger the patch. With the pattern The greater the difference in spectral characteristics across multiple bands.
[0045] Calculate the map and pattern Local binary pattern texture features. The calculation method for local binary pattern texture features is as follows: for a patch... For each pixel within the image, a 3×3 neighborhood is taken centered on that pixel. The gray values of the eight neighboring pixels are compared with the gray value of the center pixel. The gray values are obtained by converting the multispectral remote sensing image into a grayscale image. If the gray value of a neighboring pixel is greater than or equal to the gray value of the center pixel, the position of that neighboring pixel is encoded as 1; otherwise, it is encoded as 0. The eight encoded values are arranged in clockwise order to form an 8-bit binary number, which is then converted into a decimal number as the local binary pattern value of that pixel. The local binary pattern values of all pixels within the area constitute the patch. The set of local binary pattern texture features for the patch The standard deviation of the local binary pattern texture feature set is calculated to obtain the image patch. Texture standard deviation Calculate the polygons in the same way. Texture standard deviation Calculate the texture standard deviation. With texture standard deviation The absolute value of the difference is used as the texture difference component. : in, The larger the value, the larger the patch. With the pattern The greater the difference in the uniformity of the internal texture.
[0046] For spectral difference components Texture difference component Perform normalization. Traverse all edges in the region adjacency graph, collect the spectral difference component values of all edges, and calculate the maximum value of these spectral difference component values. and minimum value The spectral difference components of each edge are analyzed using the min-max normalization method. Convert to normalized spectral difference values : Collect the texture difference component values of all edges in the same way, and find the maximum value of the texture difference component values. and minimum value The texture difference components of each edge Convert to normalized texture difference values : If the denominator is zero, then the corresponding normalized value is set directly to 0.
[0047] Normalized spectral difference values Difference value from normalized texture Perform a weighted summation to obtain the heterogeneity weights. : in, For spectral differences, weighting coefficients The value range is between 0 and 1. Set to 0.6, The weighting of 0.6 is based on the fact that in complex karst scenes, spectral features contribute more to distinguishing different land parcel types than texture features; assigning higher weights to spectral difference components helps to accurately identify land parcel category boundaries. (Heterogeneity weighting) The smaller the value, the closer the two adjacent patches are in terms of spectral and textural features, and the higher the priority of merging them.
[0048] The preset merging threshold is determined as follows: A statistical analysis is performed on the heterogeneity weights of all edges in the regional adjacency graph constructed from the initial set of land parcels, and the arithmetic mean of all heterogeneous weights is calculated. and standard deviation Set the predetermined multiple. Pre-order multiple The initial value is set to 1.0, which is the initial merging threshold. for: in, The mean of all heterogeneity weights. Let the standard deviation of all heterogeneity weights be . The initial merging threshold is set to a predetermined multiple. After obtaining the initial merging threshold, subsequent patch merging operations are performed to generate an intermediate patch set. An area constraint check is then performed on the intermediate patch set: all patches in the intermediate patch set are traversed, and the area of each patch is calculated, measured in pixels. If at least one patch in the intermediate patch set has an area less than the predetermined area threshold (set to 50 pixels), the current merging threshold is determined to be too high, resulting in insufficient merging, and the predetermined multiple is reduced. ,Will Decrease by 0.1 and recalculate the preset merging threshold. Repeat the area constraint check and predetermined multiple adjustment process until the area of all patches in the intermediate patch set is greater than or equal to the predetermined area threshold, or the predetermined multiple. When the threshold drops to 0, the adjustment stops, and the threshold obtained from the last calculation is used as the preset merging threshold.
[0049] Traverse the region adjacency graph and assign heterogeneous weights to it. Edges with a weight less than the preset merging threshold are processed sequentially in ascending order of heterogeneity weight. When processing each edge that meets the criteria, the corresponding polygons connected to that edge are... and pattern Merge them into a new polygon; the merging method is to merge the polygons into a new polygon. and pattern Spatial extents are merged, and the spectral mean vector and texture standard deviation of the merged new patches are calculated. Simultaneously, the region adjacency map is updated by removing representative patches. and pattern Add nodes representing the new polygon after merging; remove nodes that are related to the polygon. or pattern For all connected edges, re-detect the adjacency relationship between the new patch and its surrounding patches and add corresponding edges; recalculate the heterogeneity weights of the newly added edges. After traversing all edges that meet the conditions, generate an intermediate patch set. Re-execute the operations of constructing the regional adjacency graph, calculating the heterogeneity weights of all edges, and traversing and merging on the intermediate patch set to enter a new iteration. When, in a certain iteration, the heterogeneity weights of all edges in the regional adjacency graph are greater than or equal to the preset merging threshold, the patch merging process terminates, and the patch set at this point is output as a candidate arable land parcel set.
[0050] See Figure 5 The horizontal axis in the figure represents the normalized spectral difference value. The value ranges from approximately 0 to 0.8, with the vertical axis representing the normalized texture difference value. The value ranges from approximately 0 to 0.8. The legend distinguishes between two types of data points: green dots represent heterogeneous weights. Less than the merging threshold The boundaries of merged patches, with orange triangles representing heterogeneity weights. Greater than or equal to the merging threshold Unmerged map boundaries.
[0051] As can be seen from the scatter plot distribution, the boundaries of the merged patches are mainly concentrated in areas with low spectral and low texture differences. The values are mostly distributed between 0 and 0.4. The values are mostly between 0 and 0.6, showing strong spectral and textural similarity; while the unmerged patch boundaries and The overall value is relatively high. Mostly distributed between 0.3 and 0.75. The distribution ranges from 0.3 to 0.8, indicating that there are significant differences in the spectral and textural features of the patches corresponding to these boundaries.
[0052] The two types of data points in the figure show a clear separation trend in the two-dimensional feature space, especially in A boundary is formed at approximately 0.4. This boundary corresponds to a preset merging threshold. That is, using heterogeneous weights in the region adjacency graph. Based on this, priority will be given to merging. To avoid merging polygon pairs with high heterogeneity.
[0053] Example 5: In practice, the candidate farmland plots are screened based on rectangularity and shape index to generate the final farmland plot extraction results.
[0054] Calculate the rectangularity of each plot in the candidate farmland plot set. For a candidate farmland plot, obtain its cell area, which is the total number of cells contained in the candidate farmland plot, denoted as . The minimum bounding rectangle area of the candidate farmland plot is obtained. This minimum bounding rectangle area is calculated as follows: The coordinate sequence of all boundary cells of the candidate farmland plot is extracted, and the minimum bounding rectangle area is obtained using the rotating perpendicular hull algorithm. The rotating perpendicular hull algorithm includes: extracting the coordinates of the vertices of the convex hull of the candidate farmland plot; trying each edge of the convex hull as an edge of the rectangle; calculating the longitudinal projection range of all vertices in the direction corresponding to each edge to obtain the width and height of the bounding rectangle; and calculating the product of the width and height as the bounding rectangle area in the current direction; after traversing the directions of all edges of the convex hull, the rectangle corresponding to the direction with the smallest bounding rectangle area is taken as the minimum bounding rectangle. The area of the minimum bounding rectangle is denoted as... Rectangularity Determined by the following formula: in, The pixel area of the candidate arable land plot. Let be the area of the minimum bounding rectangle of the candidate arable land plot. The value ranges from 0 to 1. The closer the value is to 1, the closer the shape of the candidate farmland plot is to a rectangle.
[0055] Calculate the shape index for each plot in the candidate farmland plot set. For a candidate farmland plot, obtain its perimeter. ,perimeter Using the cell side length as the unit length, the chain code length is calculated by traversing the boundary cells of the candidate farmland plot and accumulating the chain code length in 8 directions. The chain code length in the diagonal direction is counted as... The chain code length in the horizontal or vertical direction is counted as 1. Obtain the cell area of the candidate farmland plot. Calculate the circumference of a circle with the same area as the candidate farmland plot. The circumference of a circle with the same area is determined by its area. The derived circle radius multiplied by The calculated value of the circumference of a circle with equal area is... Shape index Calculate using the following formula: in, The perimeter of the candidate arable land plot. The pixel area of the candidate arable land plot. Pi is the mathematical constant of a circle. The value is always greater than or equal to 1 when the candidate farmland plot is circular. The minimum value is 1; the more complex the shape and the more convoluted the boundaries, the better. The larger the value, the better.
[0056] The rectangle of each candidate farmland plot The rectangle is compared with a predetermined rectangularity threshold, which is set to 0.70. The rationale for setting the predetermined rectangularity threshold to 0.70 is that artificially modified farmland plots in karst areas typically exhibit relatively regular rectangular outlines. Plots with a rectangularity lower than 0.70 are mostly irregular natural bare rock, scattered vegetation patches, or non-cultivated land plots. Setting the predetermined rectangularity threshold to 0.70 can filter out these types of irregular plots. Regarding rectangularity... Candidate farmland plots with a ratio greater than 0.70 will be retained; for rectangular plots... Candidate farmland plots with a value less than or equal to 0.70 are removed from the candidate farmland plot set.
[0057] For the reserved plots, the shape index of the reserved plots will be determined. Compare with a predetermined shape index range. The predetermined shape index range is a closed interval with a lower limit. and upper limit value If the shape index of a reserved plot satisfy If the shape index is [value missing], then it will be retained; if the shape index is [value missing], then it will be retained Less than the lower limit value or greater than the upper limit value If the condition is not met, the plot of land to be retained will be filtered out. All plots that remain after comparison of rectangularity and shape index range constitute the final farmland plot extraction result.
[0058] The predetermined shape index range is determined as follows: A predetermined number of plots are selected as sample plots from the candidate arable land plot set using random sampling without replacement. This predetermined number is 10% of the total number of plots in the candidate arable land plot set, but must be at least 30. If the total number of plots in the candidate arable land plot set is less than 30, all plots are selected. For each sample plot, it is manually marked using visual interpretation and combined with field survey data to determine whether it is arable land or non-arable land. All sample plots marked as arable land are collected, and the shape index of each arable land plot is calculated. This yields a set of farmland plot shape indices. All shape index values in the set are arranged in ascending order, and a preset first and second percentile are calculated. The preset first percentile corresponds to the 5th percentile, and the second percentile corresponds to the 95th percentile. The 5th percentile is calculated as follows: Assume the farmland plot shape index set contains... The nth value, sorted and then the nth The number is denoted as Calculate the location index value ,like If it is not an integer, then take... integer part and decimal part 5th percentile lower limit The 95th percentile is calculated by: calculating the position index value. Take the integer part and decimal part Upper limit of the 95th percentile The 5th percentile is used as the lower limit of the predetermined shape index range. The 95th percentile is used as the upper limit of the predetermined shape index range. The 5th and 95th percentiles were used as the basis for defining the range because the shape index of cultivated land plots is concentrated within a certain range. Selecting these two percentiles can eliminate abnormal patches that are too long or too fragmented, while retaining the vast majority of cultivated land patches with normal shapes.
[0059] See Figure 6 The horizontal axis in the figure represents the rectangularity of the candidate farmland plots. The value ranges from 0.15 to 1.0, with the vertical axis representing the shape index. The value ranges from approximately 1.0 to 4.0. The entire scatter plot is divided by two red dashed lines based on the rectangularity threshold of 0.70 and the upper and lower limits of the shape index range. The red dashed line on the left corresponds to the rectangularity threshold. The red dashed lines below and above correspond to the lower limit of the shape index range, respectively. and upper limit .
[0060] The green dots in the figure represent the preserved farmland plots. Their rectangularity is greater than 0.70, and their shape index is between the upper and lower limits. The distribution is relatively concentrated. The rectangularity is mainly concentrated in the range of 0.7 to 1.0, and the shape index is mostly concentrated between 1.0 and 2.6. This reflects that the shapes of these plots tend to be regular and the boundaries are relatively smooth, which is consistent with the morphological characteristics of artificially modified farmland in karst scenes.
[0061] The red squares represent plots of land rejected due to a rectangularity of 0.70 or less. These points are mainly distributed in areas with a rectangularity less than 0.70, and the shape index spans a wide range from 1.0 to over 3.5, indicating that these plots have irregular shapes and may be natural bare rock, scattered vegetation, or uncultivated land patches. By setting a rectangularity threshold of 0.70, these irregular patches can be effectively filtered out.
[0062] The yellow triangles represent plots of land rejected because their shape index exceeds a predetermined range (below the lower limit or above the upper limit). These points are mainly clustered in areas with a shape index greater than approximately 2.62, and most have a rectangularity greater than 0.70. This indicates that although these plots are close to rectangular in shape, their boundaries are complex or fragmented, failing to meet the shape characteristics of arable land. The lower limit for the shape index is approximately 1.0, and no yellow points with values significantly lower than this are observed in the figure, indicating that the lower limit for the shape index is set reasonably.
[0063] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.
Claims
1. A method for extracting farmland plots based on remote sensing imagery, characterized in that, The method includes: Acquire multispectral remote sensing images of the target karst area, and perform atmospheric correction and geometric fine correction on the multispectral remote sensing images to generate preprocessed remote sensing images; The preprocessed remote sensing image is subjected to multi-scale segmentation based on topographic relief to generate an initial set of land parcels. The multi-scale segmentation is implemented using a terrain-following local dynamic window construction method. The initial set of land parcels is subjected to parcel merging processing based on spectral heterogeneity constraints to generate a set of candidate arable land parcels. The parcel merging processing is implemented using an improved regional adjacency graph. The candidate farmland plot set is filtered based on rectangularity and shape index to generate the final farmland plot extraction result.
2. The method for extracting farmland plots based on remote sensing imagery according to claim 1, characterized in that, The step of performing multi-scale segmentation processing based on topographic relief on the preprocessed remote sensing image to generate an initial set of land parcels includes: Extract the digital elevation model of the preprocessed remote sensing image and calculate the local topographic relief of each pixel, wherein the local topographic relief is the standard deviation of the elevation values within a predetermined window around the pixel. A local dynamic window for terrain following is constructed based on the local terrain relief, and the size of the local dynamic window is inversely proportional to the local terrain relief value. For each pixel, the local spectral heterogeneity index is calculated using its corresponding local dynamic window to generate a gradient energy map; The gradient energy map is subjected to watershed transformation processing, and the watershed marker control points are set based on the local topographic relief to generate the initial set of land parcels.
3. The method for extracting farmland plots based on remote sensing imagery according to claim 2, characterized in that, The gradient energy map is generated as follows: Obtain the spectral vectors of all pixels within each local dynamic window, and calculate the average spectral value of the spectral vectors in a predetermined band; The spectral angular distance between each pixel within the local dynamic window and the center pixel of the window is calculated based on the average spectral value. For each pair of adjacent local dynamic windows, the absolute value of the difference between their average spectral values is calculated, and the absolute value of the difference is used as the boundary intensity value. The gradient energy map for each pixel location is obtained by multiplying the spectral angular distance with the boundary intensity value.
4. The method for extracting farmland plots based on remote sensing imagery according to claim 2, characterized in that, The marker control points for setting watersheds based on the local topographic relief include: The local terrain relief value is compared with a preset relief threshold, and flat area pixels with relief values lower than the relief threshold are selected. Local minima detection is performed on the pixels in the flat region to generate a first candidate marker set; The gradient energy map is subjected to morphological reconstruction to suppress local non-minimum values and generate a second set of candidate marker points. The first set of candidate marker points and the second set of candidate marker points are intersected to obtain the marker control points.
5. The method for extracting farmland plots based on remote sensing imagery according to claim 1, characterized in that, The step of performing patch merging processing based on spectral heterogeneity constraints on the initial set of land parcels to generate a candidate set of arable land parcels includes: For each parcel in the initial set of parcels, construct a regional adjacency graph, where nodes in the regional adjacency graph represent parcels and edges represent adjacency relationships between adjacent parcels; Calculate the heterogeneity weight of each edge in the adjacency graph of the region, wherein the heterogeneity weight is determined by the difference in spectral mean and texture standard deviation of adjacent patches; Traverse the region adjacency graph and merge the two patches corresponding to the edges whose heterogeneity weight is lower than the preset merging threshold to generate an intermediate patch set. The regional adjacency graph is repeatedly constructed and merged for the intermediate patch set until the heterogeneity weight of all edges is higher than the merging threshold, thereby generating the candidate farmland patch set.
6. The method for extracting farmland plots based on remote sensing imagery according to claim 5, characterized in that, The calculation of the heterogeneity weight of each edge in the adjacency graph of the region includes: Calculate the spectral mean of two adjacent patches in a predetermined band, and obtain the Euclidean distance between the spectral mean as the spectral difference component; Calculate the local binary pattern texture features of two adjacent patches, and obtain the difference in the standard deviation of the texture features as the texture difference component; The spectral difference component and the texture difference component are normalized to generate normalized spectral difference values and normalized texture difference values. The heterogeneity weight is obtained by weighting and summing the normalized spectral difference value and the normalized texture difference value.
7. The method for extracting farmland plots based on remote sensing imagery according to claim 5, characterized in that, The preset merging threshold is determined in the following way: Statistical analysis is performed on all the heterogeneity weights in the initial set of land parcels to calculate their mean and standard deviation; The sum of the mean and the standard deviation by a predetermined multiple is set as the initial merging threshold; An area constraint test is performed on the intermediate patch set. If there are patches with an area smaller than a predetermined area threshold, the predetermined factor is reduced and the preset merging threshold is recalculated.
8. The method for extracting farmland plots based on remote sensing imagery according to claim 1, characterized in that, The step of performing a screening process on the candidate arable land parcel set based on rectangularity and shape index to generate the final arable land parcel extraction result includes: Calculate the rectangularity of each plot in the candidate arable land plot set, where the rectangularity is the ratio of the plot area to the area of its smallest bounding rectangle; Calculate the shape index of each plot in the candidate arable land plot set, where the shape index is the ratio of the plot's perimeter to the circumference of a circle of equal area; The rectangularity is compared with a predetermined rectangularity threshold, and plots with a rectangularity higher than the predetermined rectangularity threshold are retained; For the retained plots, their shape index is compared with a predetermined shape index range, and plots whose shape index exceeds the predetermined shape index range are filtered out to generate the final farmland plot extraction result.
9. A method for extracting farmland plots based on remote sensing imagery according to claim 8, characterized in that, The predetermined shape index range is determined in the following way: A predetermined number of plots are randomly selected from the candidate arable land plot set as sample plots; Each of the sample plots was manually marked to determine whether it was cultivated land or non-cultivated land; Calculate the shape index of all sample plots marked as cultivated land plots to obtain a set of cultivated land plot shape indices; Calculate the percentiles of the set of farmland plot shape indices, and use the lower limit of the percentiles as the lower limit of the predetermined shape index range, and the upper limit of the percentiles as the upper limit of the predetermined shape index range.
10. A method for extracting farmland plots based on remote sensing imagery according to claim 4, characterized in that, The undulation threshold is determined by performing histogram statistics on the local topographic undulation values of all pixels in the preprocessed remote sensing image, and selecting the undulation value corresponding to the valley of the histogram as the undulation threshold.
