CN116320467B - Geological survey data compression storage method - Google Patents

Geological survey data compression storage method Download PDF

Info

Publication number
CN116320467B
CN116320467B CN202310565853.9A CN202310565853A CN116320467B CN 116320467 B CN116320467 B CN 116320467B CN 202310565853 A CN202310565853 A CN 202310565853A CN 116320467 B CN116320467 B CN 116320467B
Authority
CN
China
Prior art keywords
edge
geological survey
pair
edge block
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310565853.9A
Other languages
Chinese (zh)
Other versions
CN116320467A (en
Inventor
高秋波
苏宁
李梁山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Zhongke Metallurgical Mining Machinery Co ltd
Original Assignee
Shandong Zhongke Metallurgical Mining Machinery Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Zhongke Metallurgical Mining Machinery Co ltd filed Critical Shandong Zhongke Metallurgical Mining Machinery Co ltd
Priority to CN202310565853.9A priority Critical patent/CN116320467B/en
Publication of CN116320467A publication Critical patent/CN116320467A/en
Application granted granted Critical
Publication of CN116320467B publication Critical patent/CN116320467B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • H04N19/423Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/85Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression
    • H04N19/86Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression involving reduction of coding artifacts, e.g. of blockiness
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A90/00Technologies having an indirect contribution to adaptation to climate change
    • Y02A90/30Assessment of water resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Analysis (AREA)

Abstract

The invention relates to the technical field of image processing, in particular to a geological survey data compression storage method, which comprises the following steps: collecting historical geological survey images and current geological survey images, carrying out self-adaptive blocking on the geological survey images to obtain a plurality of edge blocks, obtaining the overlapping rate between each edge block of the current geological survey images and each edge block in the historical geological survey images, obtaining edge block pairs according to the overlapping rate, matching edge pixel points contained in the edge block pairs, obtaining the edge matching rate of the edge block pairs, obtaining areas with small geological changes according to the edge matching rate, and carrying out compression storage on the geological survey images according to the areas with small geological changes. The method eliminates the interference of angle errors in shooting, the acquired area with small geological change is more accurate, the calculated amount is small, the compression of geological survey images is more accurate, and the loss degree is small.

Description

Geological survey data compression storage method
Technical Field
The invention relates to the technical field of image processing, in particular to a geological survey data compression storage method.
Background
Because of the wide range of operators in China, the quantity of foundation engineering construction is large, the complexity of actual geological survey is large for the physical energy consumption of staff, but with the progress of scientific technology, the high-load unmanned aerial vehicle aerial photographing technology is introduced into geological survey work, so that data with higher accuracy can be obtained, and the life safety of the staff is also protected. For convenience of comparison, the geological data obtained by the unmanned aerial vehicle needs to be stored, but due to the large data volume of the geological survey data, the geological survey data needs to be compressed and stored. Accurate storage is required for larger geological changes, and data updating is not required for smaller geological changes, so that the compression of geological survey data can be performed according to smaller geological changes in the geological survey data.
When geological investigation is carried out, certain areas with small changes are not easy to identify, but with the development of computer vision technology, a series of image difference contrast algorithms can be utilized to acquire the changes of images, for example, a predefined template matching can be utilized to search for areas with high relevance in the images so as to determine the positions of template images in the images. However, the existing template matching algorithm needs to traverse all images, so that the calculation amount is huge and the efficiency is low.
Disclosure of Invention
The invention provides a geological survey data compression storage method, which aims to solve the existing problems.
The invention relates to a geological survey data compression storage method which adopts the following technical scheme:
one embodiment of the invention provides a method for compressing and storing geological survey data, which comprises the following steps:
collecting a historical geological survey image and a current geological survey image; acquiring all edge pixel points in a historical geological survey image and a current geological survey image; setting a plurality of detection directions, and acquiring a historical geological survey image and an edge block in a current geological survey image according to the detection directions and the edge pixel points;
projecting each edge block of the current geological survey image into a historical geological survey image, and acquiring the overlapping rate between each edge block of the current geological survey image and each edge block in the historical geological survey image according to projection; acquiring all edge block pairs between the current geological survey image and the historical geological survey image according to the overlapping rate; taking any edge block pair as a target edge block pair;
obtaining the edge matching rate of the target edge block pair comprises the following steps:
s1: acquiring all initial matching point pairs according to the overlapping rate of two edge blocks in the target edge block pair; taking any initial matching point pair as a target initial matching point pair, and taking the target initial matching point pair as a current matching point pair;
s2: according to the current matching point pairs, candidate matching point pairs are obtained, the difference degree of each candidate matching point pair is calculated, and the candidate matching point pair with the smallest difference degree is used as a new matching point pair;
s3: repeating the step S2 until no candidate matching point pairs exist, stopping iteration, and obtaining all matching point pairs; obtaining the matching rate of the target edge block pair under the target initial matching point pair according to the repetition rate and the difference degree of all the matching point pairs;
s4: acquiring the matching rate of all initial matching point pairs and lower target edge block pairs, and taking the maximum matching rate as the edge matching rate of the target edge block pairs;
and acquiring edge matching rates of all edge block pairs, acquiring a region with small geological change according to the edge matching rates, and compressing the current geological survey image according to the region with small geological change.
Preferably, the setting a plurality of detection directions, acquiring the historical geological survey image and the edge block in the current geological survey image according to the detection directions and the edge pixel points, includes the following specific steps:
will beThe directions are respectively used as a detection direction; taking a first edge pixel point in a current geological survey image as a center;
performing edge block acquisition operation according to the center, including: obtaining edges formed by all edge pixel points which are positioned in the detection direction of the center and are directly or indirectly connected with the center, and taking the edges as block edges, performing convex hull detection on the block edges, obtaining convex hull areas of the block edges, and taking the convex hull areas as an edge block;
taking a first edge pixel point outside all edge blocks in the current geological survey image as a new center, repeating the edge block acquisition operation according to the new center, and stopping iteration until the new center does not exist, so as to obtain a plurality of edge blocks in the current geological survey image;
and similarly, acquiring all edge blocks in the historical geological survey image.
Preferably, the step of obtaining the overlapping rate between each edge block of the current geological survey image and each edge block in the historical geological survey image according to projection includes the following specific steps:
wherein,,image No. for current geological surveyEdge blocks and the first of the historical geological survey imagesThe overlap ratio between the edge blocks;image No. for current geological surveyA set of all pixels comprised by projections of the edge blocks in the historical geological survey image;for the first in the historical geological survey imageA set of all pixel points contained in the edge blocks;is an intersection symbol;is a union symbol;a function is obtained for the number of pixel points.
Preferably, the step of acquiring all edge block pairs between the current geological survey image and the historical geological survey image according to the overlapping rate comprises the following specific steps:
taking any edge block in the current geological survey image as a target edge block, acquiring an edge block with the largest overlapping rate with the target edge block in the current geological survey image in the historical geological survey image, and taking the edge block with the largest overlapping rate and the target edge block in the current geological survey image as an edge block pair;
and similarly, taking all edge blocks in the current geological survey image as target edge blocks respectively to obtain all edge block pairs.
Preferably, the obtaining all the initial matching point pairs according to the overlapping rate of the two edge blocks in the target edge block pair includes the following specific steps:
forming a sequence by all edge pixel points in a first edge block in the target edge block pair, marking the sequence as a first edge sequence of the target edge block pair, forming a sequence by all edge pixel points in a second edge block in the target edge block pair, marking the sequence as a second edge sequence of the target edge block pair;
using the overlapping rate of two edge blocks in the target edge block pairRepresenting the length of the first edge sequence of the target edge block pair byRepresenting the length of the second edge sequence of the target edge block pair byA representation; the 1 st edge pixel point to the 1 st edge pixel point in the first edge sequenceThe first candidate initial point set is formed by the edge pixel points, and the 1 st edge pixel point to the 1 st edge pixel point in the second edge sequenceThe edge pixels form a second candidate initial point set, whereinRounding up the symbol; any one edge pixel point in the first candidate initial point set and any one edge pixel point in the second candidate initial point setAn edge pixel point is intended to form an initial matching point pair, and all the initial matching point pairs are acquired.
Preferably, the step of obtaining the candidate matching point pair according to the current matching point pair includes the following specific steps:
using the current matching point pairRepresentation of whereinFirst edge sequence of target edge block pairA number of edge pixel points are provided,second edge sequence of target edge block pairEdge pixel points; will beAndRespectively as a candidate matching point pair, whereinFirst edge sequence of target edge block pairA number of edge pixel points are provided,second edge sequence of target edge block pairAnd edge pixel points.
Preferably, the calculating the difference degree of each candidate matching point pair includes the following specific steps:
wherein,,is the firstThe degree of difference of the candidate matching point pairs;is the firstCurvature of the first edge pixel point in the candidate matching point pairs;is the firstCurvature of the second edge pixel point in the candidate matching point pair;a set formed by curvature differences of two edge pixel points in all candidate matching point pairs;is the firstGray value of first edge pixel point in candidate matching point pair;is the firstGray values of the second edge pixel point in the candidate matching point pairs;a set formed by gray differences of two edge pixel points in all candidate matching point pairs;is the firstProjection point and first edge pixel point in historical geological survey image of first candidate matching point pairEuclidean distance between the second edge pixel points in the candidate matching point pairs;a set formed by the Euclidean distance between the projection point of the first edge pixel point in the historical geological survey image and the second edge pixel point in the corresponding candidate matching point pair for all the candidate matching point pairs;as a function of the maximum value.
Preferably, the step of obtaining the matching rate of the target initial matching point pair to the lower target edge block pair according to the repetition rate and the difference of all the matching point pairs includes the following specific steps:
wherein,,the matching rate of the target edge block pair is the matching rate of the target initial matching point pair;the first object edge block pair is the object initial matching point pairThe degree of difference of the matching point pairs;the number of all matching point pairs in the target edge block pair is the number of the target initial matching point pairs;the overlapping rate between two edge blocks in the target edge block pair is used;the number of edge pixel points contained in the first edge block in the target edge block pair is the number of edge pixel points contained in the first edge block in the target edge block pair;the number of edge pixel points contained in the second edge block in the target edge block pair;is a maximum function;is an exponential function with a base of natural constant.
Preferably, the obtaining the region with small geological change according to the edge matching rate includes the following specific steps:
when the edge matching rate of the edge block pair is larger than a preset threshold, taking the edge block in the historical geological survey image in the edge block pair as a template image, and taking the edge block in the current geological survey image as an image to be matched; and matching the template image with the image to be matched in a template matching mode, and taking the matched result in the image to be matched as a region with small geological change.
The technical scheme of the invention has the beneficial effects that: according to the invention, by collecting the historical geological survey image and the current geological survey image, the geological survey image is adaptively segmented to obtain a plurality of edge blocks, and the traditional segmentation method can cut off one complete edge in the geological survey image, so that the subsequent matching result is inaccurate; according to the invention, the overlapping rate between each edge block of the current geological survey image and each edge block in the historical geological survey image is obtained, and edge block pairs are obtained according to the overlapping rate; according to the method, edge pixel points contained in the edge block pair are matched according to the overlapping rate, the edge matching rate of the edge block pair is obtained, the region with small geological change is obtained according to the edge matching rate, the geological survey image is compressed and stored according to the region with small geological change, the shot angle error interference is eliminated, the obtained region with small geological change is more accurate, the calculated amount is small, the compression of the geological survey image is more accurate, and the loss degree is small.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of the steps of a method for compressed storage of geological survey data according to the present invention.
Detailed Description
In order to further describe the technical means and effects adopted by the invention to achieve the preset aim, the following is a detailed description of a specific implementation, structure, characteristics and effects of a geological survey data compression storage method according to the invention with reference to the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" means that the embodiments are not necessarily the same. Furthermore, the particular features, structures, or characteristics of one or more embodiments may be combined in any suitable manner.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
The following specifically describes a specific scheme of the geological survey data compression storage method provided by the invention with reference to the accompanying drawings.
Referring to fig. 1, a flowchart illustrating steps of a geological survey data compression storage method according to an embodiment of the present invention is shown, the method includes the steps of:
s001, collecting geological survey images.
It should be noted that, due to the continuous change of geology, it is necessary to periodically survey the change of geology.
In the embodiment of the invention, the unmanned aerial vehicle is utilized to periodically survey mountains, and the mountain images shot by the unmanned aerial vehicle for the first time are used as historical mountain images. In order to avoid interference of factors such as weather and illumination, a mountain image is shot based on the same angle at a time basically consistent with the weather condition at the time of primary shooting, and the mountain image is taken as a current mountain image. In order to facilitate the subsequent processing, the captured historical mountain image and the current mountain image are subjected to gray scale processing, and the mountain image after gray scale processing is respectively called a historical geological survey image and a current geological survey image.
Thus, the geological survey images of the same mountain at different times are obtained.
S002, performing self-adaptive blocking on the geological survey image.
In order to save the storage space of the geological survey data, the current geological survey image needs to be compressed and stored, the storage is not needed for the region with very small geological change, and the data update is needed for the region with large geological change. In order to identify areas of very little geological variation in the current geological survey image, template matching of the current geological survey image from the historical geological survey image is required. Because the existing template matching needs to carry out all traversal on the images, the calculated amount is very large, and the current geological survey images need to be segmented in order to reduce the calculated amount and improve the efficiency. The traditional blocking method can cut off a complete edge in the geological survey image, so that a subsequent matching result is inaccurate.
In the embodiment of the invention, the Canny edge detection algorithm is utilized to carry out edge detection on the current geological survey image, and all edge pixel points in the current geological survey image are obtained. In other embodiments, the practitioner may select other edge detection algorithms depending on the actual implementation.
Will beThe directions are respectively taken as a detection direction.
Taking the first edge pixel point in the current geological survey image as a center, and carrying out edge block acquisition operation according to the center, wherein the edge block acquisition operation specifically comprises the following steps: and obtaining all edge pixel points which are positioned in the detection direction of the center and are directly or indirectly connected with the center, taking the edge pixel points and the edge formed by the center as a block edge, carrying out convex hull detection on the block edge, obtaining a convex hull area of the block edge, and taking the convex hull area as an edge block.
It should be noted that, in the embodiment of the present invention, if one pixel is within eight adjacent regions of another pixel, the two pixels are directly connected. If two pixels are not directly connected, but there is a pixel directly connected with the two pixels, the two pixels are indirectly connected. If two pixels are not directly connected, but there is a pixel indirectly connected to the two pixels, the two pixels are also indirectly connected.
And taking the first edge pixel point outside all edge blocks in the current geological survey image as a new center, repeating the edge block acquisition operation according to the new center until no new center exists, and stopping iteration, so that a plurality of edge blocks are obtained.
Thus, the self-adaptive blocking of the current geological survey image is realized, and a plurality of edge blocks in the current geological survey image are obtained.
And in the same way, performing self-adaptive blocking on the historical geological survey image to acquire a plurality of edge blocks in the historical geological survey image.
S003, acquiring the overlapping rate of edge blocks among different geological survey images, and acquiring edge block pairs according to the overlapping rate.
It should be noted that, the shape of the edge block in the current geological survey image and the shape of the edge block in the historical geological survey image may be different, so that the corresponding relationship between the edge block in the current geological survey image and the edge block in the historical geological survey image cannot be directly obtained. Therefore, the overlapping rate of the edge blocks needs to be obtained by combining the overlapping relation between the edge blocks in the current geological survey image and the edge blocks in the historical geological survey image, so that the corresponding relation between the edge blocks in the current geological survey image and the edge blocks in the historical geological survey image is obtained.
In an embodiment of the invention, each edge block of the current geological survey image is projected into the historical geological survey image. Acquiring the overlapping rate between each edge block of the current geological survey image and each edge block in the historical geological survey image according to projection:
wherein,,image No. for current geological surveyEdge blocks and the first of the historical geological survey imagesThe overlap ratio between the edge blocks;image No. for current geological surveyA set of all pixels comprised by projections of the edge blocks in the historical geological survey image;for the first in the historical geological survey imageA set of all pixel points contained in the edge blocks;is an intersection symbol;is a union symbol;as a function of the number of pixel points,representing a collectionSum setThe number of pixels contained in the intersection of (a),aggregationSum setThe number of pixels included in the union of (2); when collectingSum setThe more the intersection and union of (a) tend to agree, i.e. the setSum setWhen the proportion of the pixel points contained in the intersection set to the pixel points contained in the union set is largerFront geological survey image NoEdge blocks and the first of the historical geological survey imagesThe greater the overlap ratio between the edge blocks; when collectingSum setThe smaller the proportion of pixel points contained in the intersection of the two sets is, the smaller the proportion of pixel points contained in the intersection of the two sets isEdge blocks and the first of the historical geological survey imagesThe smaller the overlap ratio between the edge blocks.
Acquiring the first of the historical geological survey image and the current geological survey imageEdge blocks with the largest overlapping rate of the edge blocks are connected with the current geological survey imageThe edge blocks serve as an edge block pair.
And similarly, acquiring all edge block pairs.
Thus, edge block pairs between the current geological survey image and the historical geological survey image are obtained.
S004, obtaining edge matching rates of edge block pairs among different geological survey images.
It should be noted that, two edge blocks in the pair reflect the change condition of mountain geology of the same area at different time, if the geology change in the area is smaller, the edges contained in the two edge blocks in the pair are similar, and if the geology change in the area is larger, the edge difference contained in the two edge blocks in the pair is larger. In order to measure the degree of geological change, edge pixel points in each edge block pair are required to be matched, and the edge matching rate of the edge block pair is obtained.
In the embodiment of the invention, any one edge block pair is taken as a target edge block pair, and edge pixel points in two edge blocks of the target edge block pair are matched:
1. an initial matching point pair is obtained.
It should be noted that, the DTW is a sequence matching algorithm, and when the conventional DTW algorithm matches two sequences, the first data of the two sequences is used as an initial matching point pair. However, since the two edge blocks in the target edge block pair do not completely coincide, the first edge pixel point in the first edge block does not necessarily correspond to the first edge pixel point in the second edge block. It is therefore necessary to adaptively obtain an initial pair of matching points based on the coincidence ratio of two edge blocks in the pair.
In the embodiment of the invention, all edge pixel points in the first edge block in the target edge block pair are extracted according to the ZigZag scanning sequence to form an edge sequence of the first edge block in the target edge block pair, and the edge sequence is recorded as the first edge sequence of the target edge block pair. And similarly, acquiring an edge sequence of a second edge block in the target edge block pair, and recording the edge sequence as the second edge sequence of the target edge block pair.
Using the overlapping rate of two edge blocks in the target edge block pairRepresenting the length of the first edge sequence of the target edge block pair byRepresenting the length of the second edge sequence of the target edge block pair byAnd (3) representing. The 1 st edge pixel point to the 1 st edge pixel point in the first edge sequenceThe first candidate initial point set is formed by the edge pixel points, and the 1 st edge pixel point to the 1 st edge pixel point in the second edge sequenceThe edge pixels form a second candidate initial point set, whereinTo round the symbol up. And forming an initial matching point pair by any one edge pixel point in the first candidate initial point set and any one edge pixel point in the second candidate initial point set. And similarly, acquiring all initial matching point pairs.
And taking any initial matching point pair as a target initial matching point pair. The initial matching point pair is taken as the initial matching point pair.
2. Candidate matching point pairs are obtained.
Using the current matching point pairRepresentation of whereinFirst edge sequence of target edge block pairA number of edge pixel points are provided,second edge sequence of target edge block pairAnd edge pixel points. Will beRespectively as a candidateMatching pairs of points, whereFirst edge sequence of target edge block pairA number of edge pixel points are provided,second edge sequence of target edge block pairAnd edge pixel points.
Obtaining the difference degree of each candidate matching point pair:
wherein,,is the firstThe degree of difference of the candidate matching point pairs;is the firstCurvature of the first edge pixel point in the candidate matching point pairs;is the firstCurvature of the second edge pixel point in the candidate matching point pair;a set formed by curvature differences of two edge pixel points in all candidate matching point pairs;is the firstGray value of first edge pixel point in candidate matching point pair;is the firstGray values of the second edge pixel point in the candidate matching point pairs;a set formed by gray differences of two edge pixel points in all candidate matching point pairs;is the firstProjection point and first edge pixel point in historical geological survey image of first candidate matching point pairEuclidean distance between the second edge pixel points in the candidate matching point pairs;a set formed by the Euclidean distance between the projection point of the first edge pixel point in the historical geological survey image and the second edge pixel point in the corresponding candidate matching point pair for all the candidate matching point pairs;is a maximum function; the smaller the curvature difference, the smaller the gray difference and the closer the distance is, the smaller the difference degree of the candidate matching point pair is.
3. And taking the candidate matching point pair with the smallest difference degree as a new current matching point pair.
4. And (3) repeating the step (2-3) until no candidate matching point pairs exist, stopping iteration, and obtaining all the matching point pairs.
Obtaining the matching rate of a target initial matching point pair and a lower target edge block pair:
wherein,,the matching rate of the target edge block pair is the matching rate of the target initial matching point pair;the first object edge block pair is the object initial matching point pairThe degree of difference of the matching point pairs;the number of all matching point pairs in the target edge block pair is the number of the target initial matching point pairs;the overlapping rate between two edge blocks in the target edge block pair is used;the number of edge pixel points contained in the first edge block in the target edge block pair is the number of edge pixel points contained in the first edge block in the target edge block pair;the number of edge pixel points contained in the second edge block in the target edge block pair;is a maximum function;is an exponential function with a natural constant as a base; when the difference degree of all the matching point pairs in the target edge block is large, the number of the matching point pairs is small, and the overlapping rate is small, the target initial matching point pairs are listed downThe matching rate of the target edge block pair is smaller, and conversely, the matching rate is larger.
And similarly, acquiring the matching rate of the target edge block pair under all the initial matching point pairs, and taking the largest matching rate as the edge matching rate of the target edge block pair.
And similarly, obtaining the edge matching rate of all the edge block pairs.
S005, compressing and storing the geological survey image.
It should be noted that, in order to obtain a region with very small geological change in the current geological survey image, store the region with very small geological change, store the region with large geological change, update geological survey data, further judge edge block pairs according to edge matching rate, and match other image details of edge block pairs with large edge matching rate.
In the embodiment of the invention, when the edge matching rate of the edge block pair is greater than the preset threshold valueAnd when the edge block in the historical geological survey image is used as a template image, and the edge block in the current geological survey image is used as an image to be matched. And matching the template image with the image to be matched in a template matching mode. The result matched in the images to be matched is the region with very small geological change, and the region with very small geological change is not required to be stored when the current geological survey image is stored. Thus, the compression of the current geological survey image can be realized. In an embodiment of the present invention, in the present invention,in other embodiments, the practitioner may set a preset threshold according to the actual implementationIs a value of (2).
Thus, the compression of the geological survey image is realized.
Through the steps, the compressed storage of the geological survey data is completed.
According to the embodiment of the invention, the historical geological survey image and the current geological survey image are collected, the geological survey image is adaptively segmented to obtain a plurality of edge blocks, and the traditional segmentation method can cut off a complete edge in the geological survey image, so that a follow-up matching result is inaccurate; according to the invention, the overlapping rate between each edge block of the current geological survey image and each edge block in the historical geological survey image is obtained, and edge block pairs are obtained according to the overlapping rate; according to the method, edge pixel points contained in the edge block pair are matched according to the overlapping rate, the edge matching rate of the edge block pair is obtained, the region with small geological change is obtained according to the edge matching rate, the geological survey image is compressed and stored according to the region with small geological change, the shot angle error interference is eliminated, the obtained region with small geological change is accurate, the calculated amount is small, the compression of the geological survey image is more accurate, and the loss degree is small.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, alternatives, and improvements that fall within the spirit and scope of the invention.

Claims (9)

1. A method for compressed storage of geological survey data, the method comprising the steps of:
collecting a historical geological survey image and a current geological survey image; acquiring all edge pixel points in a historical geological survey image and a current geological survey image; setting a plurality of detection directions, and acquiring a historical geological survey image and an edge block in a current geological survey image according to the detection directions and the edge pixel points;
projecting each edge block of the current geological survey image into a historical geological survey image, and acquiring the overlapping rate between each edge block of the current geological survey image and each edge block in the historical geological survey image according to projection; acquiring all edge block pairs between the current geological survey image and the historical geological survey image according to the overlapping rate; taking any edge block pair as a target edge block pair;
obtaining the edge matching rate of the target edge block pair comprises the following steps:
s1: acquiring all initial matching point pairs according to the overlapping rate of two edge blocks in the target edge block pair; taking any initial matching point pair as a target initial matching point pair, and taking the target initial matching point pair as a current matching point pair;
s2: according to the current matching point pairs, candidate matching point pairs are obtained, the difference degree of each candidate matching point pair is calculated, and the candidate matching point pair with the smallest difference degree is used as a new matching point pair;
s3: repeating the step S2 until no candidate matching point pairs exist, stopping iteration, and obtaining all matching point pairs; obtaining the matching rate of the target edge block pair under the target initial matching point pair according to the repetition rate and the difference degree of all the matching point pairs;
s4: acquiring the matching rate of all initial matching point pairs and lower target edge block pairs, and taking the maximum matching rate as the edge matching rate of the target edge block pairs;
and acquiring edge matching rates of all edge block pairs, acquiring a region with small geological change according to the edge matching rates, and compressing the current geological survey image according to the region with small geological change.
2. The method for compressing and storing geological survey data according to claim 1, wherein the steps of setting a plurality of detection directions, acquiring the historical geological survey image and the edge block in the current geological survey image according to the detection directions and the edge pixel points, and comprising the specific steps of:
will beThe directions are respectively used as a detection direction; taking a first edge pixel point in a current geological survey image as a center;
performing edge block acquisition operation according to the center, including: obtaining edges formed by all edge pixel points which are positioned in the detection direction of the center and are directly or indirectly connected with the center, and taking the edges as block edges, performing convex hull detection on the block edges, obtaining convex hull areas of the block edges, and taking the convex hull areas as an edge block;
taking a first edge pixel point outside all edge blocks in the current geological survey image as a new center, repeating the edge block acquisition operation according to the new center, and stopping iteration until the new center does not exist, so as to obtain a plurality of edge blocks in the current geological survey image;
and similarly, acquiring all edge blocks in the historical geological survey image.
3. The method for storing and compressing geological survey data according to claim 1, wherein the step of obtaining the overlapping rate between each edge block of the current geological survey image and each edge block of the historical geological survey image according to the projection comprises the following specific steps:
wherein,,for the current geological survey image +.>Edge blocks and +.>The overlap ratio between the edge blocks; />Is the current placeInvestigation image->A set of all pixels comprised by projections of the edge blocks in the historical geological survey image; />For +.>A set of all pixel points contained in the edge blocks; />Is an intersection symbol; />Is a union symbol; />A function is obtained for the number of pixel points.
4. The method for compressing and storing geological survey data according to claim 1, wherein said acquiring all edge block pairs between the current geological survey image and the historical geological survey image according to the overlapping rate comprises the following specific steps:
taking any edge block in the current geological survey image as a target edge block, acquiring an edge block with the largest overlapping rate with the target edge block in the current geological survey image in the historical geological survey image, and taking the edge block with the largest overlapping rate and the target edge block in the current geological survey image as an edge block pair;
and similarly, taking all edge blocks in the current geological survey image as target edge blocks respectively to obtain all edge block pairs.
5. The method for compressing and storing geological survey data according to claim 1, wherein said obtaining all initial pairs of matching points according to the overlapping ratio of two edge blocks in the target edge block pair comprises the following steps:
forming a sequence by all edge pixel points in a first edge block in the target edge block pair, marking the sequence as a first edge sequence of the target edge block pair, forming a sequence by all edge pixel points in a second edge block in the target edge block pair, marking the sequence as a second edge sequence of the target edge block pair;
using the overlapping rate of two edge blocks in the target edge block pairRepresenting the length of the first edge sequence of the target edge block pair with +.>Representing the length of the second edge sequence of the target edge block pair with +.>A representation; pixel point of 1 st edge to +.>The first candidate initial point set is formed by the edge pixel points, and the 1 st edge pixel point to the 1 st edge pixel point in the second edge sequence are processed by>The edge pixels form a second candidate initial point set, wherein->Rounding up the symbol; and forming an initial matching point pair by any one edge pixel point in the first candidate initial point set and any one edge pixel point in the second candidate initial point set, and acquiring all the initial matching point pairs.
6. The method for compressed storage of geological survey data according to claim 5, wherein the step of obtaining candidate matching point pairs from the current matching point pairs comprises the specific steps of:
using the current matching point pairRepresentation of->First edge sequence for target edge block pair +.>Edge pixels->First in the second edge sequence for the target edge block pair>Edge pixel points; will->、/>And +.>Respectively as a candidate matching point pair, wherein +.>First edge sequence for target edge block pair +.>Edge pixels->First in the second edge sequence for the target edge block pair>And edge pixel points.
7. A method for storing compressed geological survey data according to claim 1, wherein said calculating the degree of difference for each candidate matching point pair comprises the steps of:
wherein,,is->The degree of difference of the candidate matching point pairs; />Is->Curvature of the first edge pixel point in the candidate matching point pairs; />Is->Curvature of the second edge pixel point in the candidate matching point pair; />A set formed by curvature differences of two edge pixel points in all candidate matching point pairs; />Is->Gray value of first edge pixel point in candidate matching point pair; />Is->Gray values of the second edge pixel point in the candidate matching point pairs; />A set formed by gray differences of two edge pixel points in all candidate matching point pairs; />Is->Projection point and +.f. of first edge pixel point in each candidate matching point pair in historical geological survey image>Euclidean distance between the second edge pixel points in the candidate matching point pairs; />A set formed by the Euclidean distance between the projection point of the first edge pixel point in the historical geological survey image and the second edge pixel point in the corresponding candidate matching point pair for all the candidate matching point pairs; />As a function of the maximum value.
8. The method for compressing and storing geological survey data according to claim 1, wherein the step of obtaining the matching rate of the target initial matching point pair to the lower target edge block pair according to the repetition rate and the difference of all the matching point pairs comprises the following specific steps:
wherein,,the matching rate of the target edge block pair is the matching rate of the target initial matching point pair; />First +.in the target edge block pair under the target initial matching point pair>The degree of difference of the matching point pairs; />The number of all matching point pairs in the target edge block pair is the number of the target initial matching point pairs; />The overlapping rate between two edge blocks in the target edge block pair is used; />The number of edge pixel points contained in the first edge block in the target edge block pair is the number of edge pixel points contained in the first edge block in the target edge block pair; />The number of edge pixel points contained in the second edge block in the target edge block pair; />Is a maximum function; />Is an exponential function with a base of natural constant.
9. The method for compressing and storing geological survey data according to claim 1, wherein the step of obtaining the region with small geological change according to the edge matching rate comprises the following specific steps:
when the edge matching rate of the edge block pair is larger than a preset threshold, taking the edge block in the historical geological survey image in the edge block pair as a template image, and taking the edge block in the current geological survey image as an image to be matched; and matching the template image with the image to be matched in a template matching mode, and taking the matched result in the image to be matched as a region with small geological change.
CN202310565853.9A 2023-05-19 2023-05-19 Geological survey data compression storage method Active CN116320467B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310565853.9A CN116320467B (en) 2023-05-19 2023-05-19 Geological survey data compression storage method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310565853.9A CN116320467B (en) 2023-05-19 2023-05-19 Geological survey data compression storage method

Publications (2)

Publication Number Publication Date
CN116320467A CN116320467A (en) 2023-06-23
CN116320467B true CN116320467B (en) 2023-07-25

Family

ID=86791007

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310565853.9A Active CN116320467B (en) 2023-05-19 2023-05-19 Geological survey data compression storage method

Country Status (1)

Country Link
CN (1) CN116320467B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117934884B (en) * 2024-03-21 2024-06-18 西安云图信息技术有限公司 Intelligent field investigation digital recording system and method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108305261A (en) * 2017-08-11 2018-07-20 腾讯科技(深圳)有限公司 Picture segmentation method, apparatus, storage medium and computer equipment
CN109903836A (en) * 2019-03-31 2019-06-18 山西慧虎健康科技有限公司 A kind of diet intelligent recommendation and matching system and method based on constitution and big data
WO2021057629A1 (en) * 2019-09-23 2021-04-01 Huawei Technologies Co., Ltd. Apparatus and method for performing deblocking
CN112883121A (en) * 2021-02-01 2021-06-01 南京苏宁软件技术有限公司 Data processing method, data processing device, computer equipment and storage medium
CN113963353A (en) * 2020-07-02 2022-01-21 苏宁云计算有限公司 Character image processing and identifying method and device, computer equipment and storage medium
CN115861325A (en) * 2023-03-01 2023-03-28 山东中科冶金矿山机械有限公司 Suspension spring defect detection method and system based on image data

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108305261A (en) * 2017-08-11 2018-07-20 腾讯科技(深圳)有限公司 Picture segmentation method, apparatus, storage medium and computer equipment
CN109903836A (en) * 2019-03-31 2019-06-18 山西慧虎健康科技有限公司 A kind of diet intelligent recommendation and matching system and method based on constitution and big data
WO2021057629A1 (en) * 2019-09-23 2021-04-01 Huawei Technologies Co., Ltd. Apparatus and method for performing deblocking
CN113963353A (en) * 2020-07-02 2022-01-21 苏宁云计算有限公司 Character image processing and identifying method and device, computer equipment and storage medium
CN112883121A (en) * 2021-02-01 2021-06-01 南京苏宁软件技术有限公司 Data processing method, data processing device, computer equipment and storage medium
CN115861325A (en) * 2023-03-01 2023-03-28 山东中科冶金矿山机械有限公司 Suspension spring defect detection method and system based on image data

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Design and implementation of high-soeed real-time data acquisition system based on FPGA;wang xuying等;《The journal of china universities of posts and telecommunications》;全文 *
星地遥感数据压缩的差分编码方法研究;林宗坚;姚娜;邓冰;;航天器工程(05);全文 *

Also Published As

Publication number Publication date
CN116320467A (en) 2023-06-23

Similar Documents

Publication Publication Date Title
Salomon et al. Deep learning for image-based automatic dial meter reading: Dataset and baselines
CN105844669B (en) A kind of video object method for real time tracking based on local Hash feature
US20220309772A1 (en) Human activity recognition fusion method and system for ecological conservation redline
CN104200495B (en) A kind of multi-object tracking method in video monitoring
CN116320467B (en) Geological survey data compression storage method
CN107665351B (en) Airport detection method based on difficult sample mining
CN107665498B (en) Full convolution network aircraft detection method based on typical example mining
CN111666434B (en) Streetscape picture retrieval method based on depth global features
CN110991311A (en) Target detection method based on dense connection deep network
CN113516012A (en) Pedestrian re-identification method and system based on multi-level feature fusion
CN113537386A (en) Ship typical motion track self-adaptive mining method based on improved K-Medoids clustering
CN111079773A (en) Gravel parameter acquisition method, device, equipment and storage medium based on Mask R-CNN network
CN109034237B (en) Loop detection method based on convolutional neural network signposts and sequence search
CN113822368B (en) Anchor-free incremental target detection method
CN109101981A (en) Winding detection method based on global image bar code under a kind of streetscape scene
CN117313222B (en) Building construction data processing method based on BIM technology
CN112613551A (en) Automobile part identification method, storage medium and system
CN114861761A (en) Loop detection method based on twin network characteristics and geometric verification
CN115546116A (en) Method and system for extracting and calculating spacing of discontinuous surface of fully-covered rock mass
CN110097585B (en) SAR image matching method and system based on SIFT algorithm
CN114235815A (en) Method for detecting surface defects of outdoor electrical equipment of converter station based on scene filtering
CN112529003A (en) Instrument panel digital identification method based on fast-RCNN
CN116721288A (en) Helmet detection method and system based on YOLOv5
Yang et al. A light CNN based method for hand detection and orientation estimation
CN115311456A (en) Tuyere coke segmentation method based on improved DeepLabv3+

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20230623

Assignee: Jining Zhongke Mining Machinery Factory

Assignor: Shandong Zhongke Metallurgical Mining Machinery Co.,Ltd.

Contract record no.: X2023990000994

Denomination of invention: A method for compressing and storing geological exploration data

Granted publication date: 20230725

License type: Common License

Record date: 20231219

EE01 Entry into force of recordation of patent licensing contract