Section map vectorization compilation method
By using DCT transformation and Gaussian blur combined with Canny algorithm and other technologies in geological section image processing, the problems of excessive image smoothing and edge loss in the existing technology are solved, high-definition vector image processing is achieved, and meets the requirements of modern oil field development. Precisely describe the requirements.
Patent Information
- Application Number
- CN202410730101.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-09-20
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When the existing technology vectorizes geological section images, the Canny algorithm will over-smooth the image when performing edge detection, resulting in blurring, distortion and loss of weak edges, especially distortion at edge connections and corners, which is difficult to meet the needs of modern drilling. The need for precise guidance and reservoir description.
Before edge detection, the image is subjected to DCT transformation to remove high-frequency noise, and a one-dimensional Gaussian function is used for low-pass smoothing filtering, combined with the Canny algorithm, Two-pass algorithm, Douglas-Peucker algorithm and cubic Bezier curve fitting, to extract Feature points and vector data compression are performed to obtain clear vector images.
It improves the accuracy of edge detection, reduces high-frequency noise in images, obtains high-definition vector images, reduces the amount of invalid data, facilitates storage and editing, and avoids the problem of over-smoothing of images.
Smart Images

Figure CN118674740A
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of image processing, and in particular to a method for vectorizing a profile. Background Art
[0002] From the perspective of oilfield development geology, a profile refers to a section cut along a certain direction of a geological body. It can reflect the shape of a geological body in a certain direction, the occurrence and thickness changes of strata, the contact relationship of strata, the location and nature of faults, etc. It is one of the basic drawings for studying underground structures. Since oilfield geological bodies exist underground, their profiles cannot be displayed intuitively, and can only be represented by drawing using specific geological data, which is called a profile.
[0003] In the past, geological profiles were mostly drawn by hand and easily converted into bitmap images or drawn by software. Although they can realistically display stratigraphic profiles, they are difficult to process using modern computer technology. The image data volume is large and cannot be scaled with fidelity. It is difficult to meet the requirements of modern advanced technologies such as drilling guidance and accurate description and identification of oil reservoirs. Images need to be vectorized.
[0004] In the prior art, during the process of image vectorization, the Canny algorithm is used to detect the edge of the image. During the process, when the Gaussian function is used for smoothing filtering, the image will be over-smoothed, making the image blurred, and may distort and lose weak edges, especially the edge connections and corners will be severely distorted. Summary of the invention
[0005] The purpose of the present invention is to provide a profile vectorization compilation method, which performs DCT conversion before detecting the edge of an image to improve the image quality, so as to solve the technical problems existing in the prior art.
[0006] In order to solve the above technical problems, the present invention specifically provides the following technical solutions:
[0007] A method for vectorizing a profile, inputting a geological profile into a computer and performing vectorization processing based on MATLAB software, comprises the following steps:
[0008] Step 001, preprocessing the geological profile to retain more effective edge position data information;
[0009] Step 002, using the Canny algorithm to detect the data information of the edge position of the geological profile to obtain the contour information of the edge position;
[0010] Step 003, using a two-pass algorithm to mark the connected areas of the contour information;
[0011] Step 004, using Douglas-Peucker algorithm to compress vector data and extract feature points from each of the marked connected regions;
[0012] Step 005: Use a cubic Bezier curve to fit the extracted feature points to obtain a vectorization result of the geological profile.
[0013] Furthermore, in step 001, the preprocessing steps are as follows:
[0014] Step 011, dividing the geological profile into 8*8 or 16*16 image blocks;
[0015] Step 012, performing DCT transformation on each image block and obtaining DCT coefficients;
[0016] Step 013, analyzing the DCT coefficients and removing high-frequency DCT coefficients;
[0017] Step 014, perform IDCT transformation on the DCT coefficients corresponding to each image block, and splice the image blocks into a complete image.
[0018] Furthermore, in step 002, the steps of obtaining the contour information of the edge position are as follows:
[0019] Step 021, using a one-dimensional Gaussian function to perform Gaussian blurring to perform low-pass smoothing filtering on the image;
[0020] Among them, the standard deviation of the Gaussian function is 1;
[0021] The size of the Gaussian kernel is 5; the Gaussian kernel is a matrix used to implement Gaussian blur, which is 5x5.
[0022] Step 022, calculating the gradient amplitude and gradient direction of the image pixels to obtain the amplitudes in the X-axis and Y-axis directions;
[0023] Step 023, suppressing non-maximum edge contribution pixels along the gradient direction;
[0024] Step 024, setting two thresholds for the gradient amplitude value, namely a high threshold and a low threshold, retaining pixels above the high threshold and ignoring pixels below the low threshold;
[0025] Among them, when the gradient amplitude of a pixel is between the high threshold and the low threshold, it is retained only if it is connected to a pixel above the high threshold; otherwise it is ignored;
[0026] Step 025, connect the retained pixels to form a continuous edge.
[0027] In order to solve the above technical problems, the present invention also provides the following technical solutions:
[0028] Compared with the prior art, the present invention has the following beneficial effects:
[0029] The profile vectorization compilation method provided by the present invention performs proper processing on the image before using the Canny algorithm for edge detection, and uses DCT to reduce the high-frequency noise of the image, which helps to improve the accuracy of edge detection.
[0030] Furthermore, a one-dimensional Gaussian function is used to perform low-pass smoothing filtering on the image. The low-pass filter allows low-frequency signals to pass through while suppressing high-frequency signals, effectively removing noise and preventing the image from being over-smoothed. The final vector image has a higher definition, reduces the amount of invalid data, and facilitates the storage and editing of vector images. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the implementation methods of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the implementation methods or the description of the prior art. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other implementation drawings can be derived from the provided drawings without creative work.
[0032] Figure 1 The present invention is a flow chart of a profile vectorization compilation method.
[0033] Figure 2 This is a schematic diagram of the structure of the outdoor exploration dedicated tablet stand provided in this application in a handheld state;
[0034] Figure 3 This is a schematic diagram of the structure of the outdoor exploration dedicated tablet stand provided in this application with the keyboard in the unfolded state;
[0035] Figure 4 A schematic diagram of the structure of the back of the outdoor exploration dedicated flat panel bracket provided for this application;
[0036] Figure 5 A structural schematic diagram of another perspective of the back side of the outdoor exploration dedicated flat panel bracket provided in this application;
[0037] Figure 6 It is a partial schematic diagram of the limit rod in this application;
[0038] Figure 7 for Figure 4 A local schematic diagram of point A shown;
[0039] Figure 8 for Figure 5 A partial schematic diagram of point B shown;
[0040] Fig. 9 for Figure 5 A partial schematic diagram of point C is shown.
[0041] The numbers in the figure represent the following:
[0042] 1-first protective shell, 2-second protective shell, 3-moving mechanism, 4-supporting leg, 5-limiting rod, 6-linking rod, 7-tablet computer;
[0043] 21-guide rail, 22-slide seat, 211-guide groove, 221-connecting rod, 222-guide wheel, 23-fixed seat, 24-screw rod, 25-connecting piece, 26-bump, 28-guide block;
[0044] 41- hinged seat, 42- support member, 43- positioning hole, 44- through slot, 45- slider, 46- slot;
[0045] 51-spring member, 52-mounting plate, 53-slot;
[0046] 61-Card block. DETAILED DESCRIPTION
[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0048] Image vectorization is a process of converting a raster image (pixel image) into a vector image. Raster images are composed of pixels and will appear pixelated when enlarged, while vector images are composed of lines, curves, and geometric shapes and can be infinitely enlarged without distortion.
[0049] like Figure 1 As shown, the present invention provides an implementation method of a profile vectorization compilation method, wherein a geological profile is input into a computer and vectorized based on MATLAB software, comprising the following steps:
[0050] Step 001, pre-processing the geological profile to retain more effective edge position data information.
[0051] The pixel image is mainly preprocessed by DCT transformation. DCT is used to convert the image from its spatial domain to the frequency domain. It can effectively represent the image data and remove high-frequency information that is not easily perceived by the human eye, thereby improving the clarity of the subsequent image after vectorization.
[0052] The specific method includes the following steps:
[0053] Step 011, dividing the geological profile into 8*8 or 16*16 image blocks.
[0054] Step 012, perform DCT transformation on each image block, transform the image from the spatial domain to the frequency domain, and obtain DCT coefficients.
[0055] Step 013, quantize and analyze the DCT coefficients, and remove high-frequency DCT coefficients.
[0056] Among them, low-frequency coefficients are few and large in amplitude, while high-frequency coefficients are many and small in amplitude. Most of the image information is concentrated in the low-frequency coefficients. By eliminating high-frequency DCT coefficients, most of the image information can be represented by less data.
[0057] At the same time, since noise often appears as high-frequency components and exists in high-frequency coefficients, eliminating the high-frequency coefficients can remove excess noise, reduce the impact of noise on image information, and increase image details.
[0058] DCT coefficients can be used to identify important features in an image, such as edges and textures, and to extract relevant features; by adjusting the DCT coefficients, certain characteristics of the image, such as contrast and clarity, can be enhanced.
[0059] Step 014, perform IDCT transformation on the DCT coefficients corresponding to each image block, transform the data from the frequency domain to the spatial domain, and splice the image blocks into a complete image.
[0060] IDCT is the inverse process of DCT, which restores the data of the image block to pixel values.
[0061] Step 002: Use the Canny algorithm to detect the data information of the edge position of the geological profile to obtain the contour information of the edge position.
[0062] In the prior art, the Canny algorithm will over-smooth the image when using the Gaussian function for smoothing filtering, making the image blurry, possibly distorting and losing weak edges, especially the edge connections and corners will be severely distorted.
[0063] This implementation provides a solution to this problem by improving the Canny algorithm. The specific steps are as follows.
[0064] Step 021, using a one-dimensional Gaussian function to perform Gaussian blurring to perform low-pass smoothing filtering on the image;
[0065] The standard deviation of the Gaussian function is 1; the size of the Gaussian kernel is 5, and the Gaussian kernel is a matrix used to implement Gaussian blur, which is 5×5.
[0066] Create a one-dimensional Gaussian kernel from a one-dimensional Gaussian function based on the required standard deviation and Gaussian kernel size, where each element in the kernel is the value of the Gaussian function at a different position.
[0067] Sliding a Gaussian kernel over the image (or using a convolution operation) computes at each location a weighted average of the surrounding pixels; the weight is usually highest at the center of the kernel, and decreases as the distance from the center increases.
[0068] When dealing with image boundaries, you need to decide how to handle edge pixels. Common methods include duplicating edge pixels, periodically extending, or mirroring.
[0069] The above process is repeated for each pixel of the image until the entire image has been filtered.
[0070] Step 022, calculate the gradient magnitude and gradient direction of the image pixels.
[0071] The gradient magnitude indicates the intensity of the image brightness change; the gradient direction indicates the direction in which the image brightness changes fastest and is usually expressed as the rotation angle from the x-axis counterclockwise to the gradient vector.
[0072] Step 023, suppressing non-maximum edge contribution pixels along the gradient direction.
[0073] It ensures that only the local maximum points in the gradient direction are retained as edge candidates. This means that if a pixel is not a local maximum in its gradient direction, it will not be considered as an edge.
[0074] Step 024, setting two thresholds for the gradient amplitude value, namely a high threshold and a low threshold, retaining pixels above the high threshold and ignoring pixels below the low threshold;
[0075] Among them, when the gradient amplitude of a pixel is between the high threshold and the low threshold, it is retained only if it is connected to a pixel above the high threshold; otherwise it is ignored;
[0076] Step 025, connect the retained pixels to form a continuous edge.
[0077] Through hysteresis thresholding, the algorithm tracks the edges and connects weak edges with strong edges to form a continuous edge.
[0078] Step 003: Use a two-pass algorithm to mark the connected areas of the contour information.
[0079] First, create a label matrix of the same size as the original image to record the connected area to which each pixel belongs.
[0080] Next, starting from the edges obtained by the Canny algorithm, the connected regions are tracked and marked. This usually involves scanning edge points and "growing" inwards to cover the entire region.
[0081] Throughout the process, starting from the edge, select a starting point and assign it a unique label value; traverse its adjacent pixels (usually 4-adjacent or 8-adjacent), and if the adjacent pixels are not marked and their gradient magnitude is below a certain threshold, mark them as the same region as the starting point; continue this process until no more pixels can be added to the current region.
[0082] Finally, the above process is repeated for all unlabeled edge pixels in the image until all connected regions are labeled.
[0083] Step 004: Use Douglas-Peucker algorithm to compress vector data and extract feature points from each of the marked connected regions.
[0084] First, for each labeled connected region, its contour or boundary is extracted.
[0085] Secondly, the first and last points in the contour are selected as the starting points, and the distances from the straight line between these two points to all other points on the contour are calculated. The farthest point is determined (if there are multiple points with the same farthest distance, the first point encountered is selected), and according to the preset tolerance threshold ε (epsilon), it is determined whether the farthest point is far enough from the starting point straight line.
[0086] If so, keep the point and use it together with the starting point as the new starting point and repeat the above process; if not, delete the point and continue to check the next farthest point.
[0087] This process is repeated recursively until all points satisfy the condition or the contour is simplified to only the starting point.
[0088] Finally, feature points are extracted. On the simplified contour, each retained point can be regarded as a feature point, and descriptors are calculated for each feature point, such as curvature, tangent direction, local geometric properties, etc.; the feature points and their descriptors are stored for subsequent analysis or comparison.
[0089] Step 005: Use a cubic Bezier curve to fit the extracted feature points to obtain a vectorization result of the geological profile.
[0090] No more than four points are selected from the extracted feature points as control points of the cubic Bezier curve. Ideally, these points should be able to represent the overall trend of the feature point set.
[0091] A numerical method (such as the least squares method) is used to adjust the positions of the control points so that the curve is as close as possible to all feature points.
[0092] According to the fitting control points, the curve points are calculated based on the cubic Bezier curve; and the curve points are connected to form a vector path.
[0093] Optimize the curve in detail as needed to ensure the smoothness and accuracy of the curve.
[0094] Export the constructed vector paths to vector graphics formats such as SVG, EPS, etc., which can be used by vector graphics editing software.
[0095] Meanwhile, in the prior art, in the open air, prospectors generally vectorize the cross-section diagram of the oil field using a portable laptop, but the laptop is large in size, so that the prospectors cannot hold the laptop with one hand outdoors to check the cross-section vector diagram of the oil field in time.
[0096] With the development of tablet computers, tablet computers can realize most of the functions of computers. Therefore, when the tablet computer is equipped with a keyboard, it can not only meet the needs of explorers to vectorize the profile diagram of the oil field in the field, but also the explorers can check the oil field profile vector diagram in time by holding the tablet in one hand.
[0097] However, in the prior art, the keyboards equipped with tablet computers are generally used at home, and the keyboard and the protective shell of the tablet computer are magnetic structures, which facilitate the combination and separation of the tablet computer and the keyboard. However, this structure is not suitable for outdoor use, and the stability between the tablet computer and the keyboard cannot be guaranteed, and the two are prone to fall off.
[0098] Therefore, the present invention also provides an embodiment of a special flat panel support for outdoor exploration, such as Figure 2-Figure 6 As shown, the tablet stand includes a first protective shell 1 and a second protective shell 2, the first protective shell 1 is used to place the tablet computer 7, and the second protective shell 2 is used to place the keyboard; a moving mechanism 3 is provided between the first protective shell 1 and the second protective shell 2; the moving structure is used to move the second protective shell 2 between the back side of the first protective shell 1 and the side of the display screen of the tablet computer 7 in the first protective shell 1.
[0099] When it is necessary to use a tablet to vectorize the cross-sectional view of the oil field, the second protective shell 2 is flipped to the side of the display screen of the tablet computer 7 in the first protective shell 1, converting it into a notebook form for easy use.
[0100] When it is necessary to consult drawings and data related to the oil field, the second protective shell 2 is flipped to the back of the first protective shell 1 and the two are fixed together; the first protective shell 1 can be held in hand to realize the handheld tablet computer 7, and the vector diagram of the oil field section can be enlarged or reduced by fingers, so as to facilitate the observation of local details of the vector diagram.
[0101] In this embodiment, at least one set of supporting legs 4 is provided on the back of the first protective shell 1, and the supporting legs 4 are hinged to the first protective shell 1. When the tablet needs to be operated through the keyboard, the supporting legs 4 are opened, and the second protective shell 2 is placed horizontally on the support. The supporting legs 4 support the first protective shell 1, so that the angle between the tablet computer 7 and the keyboard is an obtuse angle, which is convenient for use; when holding the tablet computer 7, the supporting legs 4 can be made to fit the back of the first protective shell 1 and be relatively fixed.
[0102] To achieve the above functions, in this embodiment, a limit rod 5 is provided at the hinge of the support leg 4; the limit rod 5 is used to limit the support leg 4 from being away from the first protective shell 1. When the tablet computer 7 is held in hand, the limit rod 5 limits the support leg 4. When the tablet computer 7 needs to be supported, the limit rod 5 is released from the limit of the support leg 4.
[0103] At the same time, the limit rod 5 is also used to limit the relative movement between the second protective shell 2 and the first protective shell 1. When the tablet computer 7 is held in hand, the limit rod 5 limits the second protective shell 2 to the back of the first protective shell 1; when the keyboard needs to be operated, the limit rod 5 contacts the restriction on the second protective shell 2, so that the second protective shell 2 can move, and the second protective shell 2 is flipped to the side of the display screen of the tablet computer 7 in the first protective shell 1, converting it into a notebook form.
[0104] The present application provides an embodiment of the moving mechanism 3, such as Figure 5 and Figure 7 As shown:
[0105] The moving mechanism 3 includes a guide rail 21 and a slide 22; the guide rail 21 is vertically arranged on the back of the first protective shell 1, and the end of the guide rail 21 extends to the bottom of the first protective shell 1; the slide 22 is hinged to the top of the second protective shell 2; the slide 22 moves along the guide rail 21 or in a direction parallel to the guide rail 21; when the slide 22 is relatively located at the top of the guide rail 21, the second protective shell 2 is completely located on the back of the first protective shell 1, and when the slide 22 moves to the bottom of the guide rail 21, the hinge structure between the slide 22 and the second protective shell 2 enables the second protective shell 2 to be flipped toward the display screen side of the tablet computer 7 in the first protective shell 1, changing into the form of a laptop computer.
[0106] In this embodiment, the specific position of the second protective shell 2 is: the keyboard in the second protective shell 2 faces the back of the first protective shell 1, and when the second protective shell 2 is located on the back of the first protective shell 1, the keyboard is protected; and after the second protective shell 2 moves to the bottom of the first protective shell 1, it is directly flipped over and changed into the shape of a laptop computer.
[0107] In this embodiment, two groups of guide rails 21 are arranged in parallel, and the two groups of guide rails 21 are symmetrically provided with guide grooves 211 on the facing sides; at least one group of connecting rods 221 are respectively provided on both sides of the slide 22, and the ends of the connecting rods 221 are rotatably connected with guide wheels 222, the slide 22 is located between the two groups of guide rails 21, the guide wheels 222 are located inside the guide grooves 211, and the two are rollingly connected, so that the movement of the second protective shell 2 is smoother.
[0108] Further, such as Figure 5 As shown, in this embodiment, the moving mechanism 3 also includes a fixed seat 23 and a screw rod 24; the fixed seat 23 is arranged on the back side of the first protective shell 1 and is located above the slide 22; the screw rod 24 is threadedly connected to the fixed seat 23, and the screw rod 24 is arranged vertically downward, and its end can contact the slide 22 along the axial direction; the screw rod 24 is used to drive the slide 22 to move vertically downward; when the keyboard needs to be operated, the screw rod 24 is rotated, and the end of the screw rod 24 applies downward pressure to the slide 22, so that the slide 22 moves downward.
[0109] Further, such as Figure 4 As shown, a connecting member 25 is provided on the back of the first protective shell 1, and a protrusion 26 is provided on the connecting member 25; the position of the protrusion 26 is set so that the second protective shell 2 is located between the first protective shell 1 and the protrusion 26; the position and structure of the connecting member 25 are set so as not to hinder the movement of the second protective shell 2.
[0110] To meet the above requirements, in this embodiment, two groups of connecting members 25 are provided, which are vertically arranged on the two side edges of the back side of the first protective shell 1. The structure of the connecting member 25 is an L-shaped bracket, whose short side is arranged perpendicular to the back side of the first protective shell 1, and whose long side is arranged parallel to the back side of the first protective shell 1. The protrusion 26 is arranged at the end of the long side of the L-shaped bracket. When the second protective shell 2 is completely located on the back side of the first protective shell 1, the end of the L-shaped bracket is located above the second protective shell 2.
[0111] A guide block 28 is provided on the back side of the second protective shell 2 along its own moving direction, which can contact the protrusion 26 during the movement; the surface where the guide block 28 contacts the protrusion 26 is an inclined surface, and the bottom of the inclined surface of the guide block 28 is inclined toward the second protective shell 2; as the second protective shell 2 moves, the protrusion 26 imposes restrictions on the inclined surface of the guide block 28, so that the bottom of the second protective shell 2 flips toward the side of the display screen of the tablet computer 7 in the protective shell.
[0112] The present application provides an embodiment of the hinge structure of the support leg 4, such as Figure 4 and Figure 8 Shown:
[0113] A hinge seat 41 is provided on the back of the first protective shell 1, and the support leg 4 is hinged to the hinge seat 41; the position and structure of the hinge seat 41 are set so as not to hinder the movement of the second protective shell 2; a deformable support member 42 is provided between the support leg 4 and the hinge seat 41; the support member 42 is used to limit the angle between the support leg 4 and the first protective shell 1.
[0114] In this embodiment, the hinge seat 41 and the connecting member 25 are the same structure (L-shaped bracket), which simplifies the structure. The long side of the L-shaped bracket is provided with a slot 46, and the support leg 4 can be received in the slot 46; two groups of support legs 4 are correspondingly arranged to increase the stability of the support for the first protective shell 1.
[0115] Further, such as Fig. 9 As shown, in this embodiment, the support leg 4 is provided with a through groove 44 at its own axial position, and a slider 45 sliding along the through groove 44 is provided in the through groove 44; the two ends of the deformable support member 42 are respectively hinged to the slider 45 and the hinge seat 41; when the support leg 4 can be stored in the slot 46, one end of the deformable support member 42 slides along the slider 45 and will not be bent, thereby extending the service life.
[0116] In order to realize the limiting of the support leg 4 by the limiting rod 5, the present application provides an embodiment, such as Figure 4 , Figure 6 and Figure 8 As shown:
[0117] A positioning hole 43 is provided on one side of the support leg 4 close to the limiting rod 5, and one end of the limiting rod 5 can pass through the hinge seat 41 and be stuck in the positioning hole 43; a spring member 51 is provided between the hinge seat 41 and the limiting rod 5, and the spring member 51 is used to apply an external force to the limiting rod 5 to move toward the support leg 4.
[0118] Furthermore, the limiting rod 5 is arranged horizontally; a mounting plate 52 is arranged upwardly on one side of the limiting rod 5 away from the supporting leg 4; the spring member 51 is arranged parallel to the limiting rod 5, and both ends of the spring member 51 are respectively connected to the hinge seat 41 and the mounting plate 52.
[0119] Furthermore, the linkage rod 6 is arranged perpendicular to the back side of the second protective shell 2, and a block 61 is provided at the end of the linkage rod 6, and the moving trajectory of the block 61 can pass through the limiting rod 5; the limiting rod 5 is provided with a slot 53 that passes through the limiting rod 5 along the moving trajectory of the block 61; the positional relationship between the block 61 and the slot 53 is as follows: in the process of the block 61 passing through the slot 53, the block 61 contacts the side of the slot 53 away from the hinge seat 41, so that the block 61 applies an external force to the slot 53 of the limiting rod 5.
[0120] The surface where the block 61 contacts the notch 53 is an inclined surface, and the bottom of the inclined surface of the block 61 is inclined toward the hinge seat 41; when the block 61 passes through the notch 53, the bottom of the inclined surface of the block 61 first contacts the notch 53 of the limit rod 5, and as the block 61 moves downward, the position where the block 61 contacts the notch 53 becomes thicker, causing the entire limit rod 5 to be relatively displaced toward the side away from the hinge seat 41.
[0121] Therefore, when the block is moving downward, the inclined surface of the block 61 applies a squeezing force to the side of the notch 53 away from the hinge seat 41 , so that the end of the limiting rod 5 is disengaged from the positioning hole 43 of the supporting leg 4 .
[0122] When the thickest position of the block 61 contacts the notch 53 , the end of the limiting rod 5 can fall off from the hinge seat 41 .
[0123] Furthermore, in this embodiment, the pulling force applied by the spring member 51 to the limiting rod 5 is greater than the squeezing force applied by the block 61 to the limiting rod 5 under the gravity of the second protective shell 2 and the keyboard.
[0124] When the second protective shell 2 is located on the back of the first protective shell 1 , the limiting rod 5 limits the downward movement of the linkage rod 6 , thereby limiting the second protective shell 2 , thereby achieving relative fixation of the second protective shell 2 and the first protective shell 1 .
[0125] The outdoor dedicated tablet stand for cross-section vectorization compilation provided by the present invention comprises a first protective shell for a tablet computer and a second protective shell for a keyboard. The two can move relative to each other, and the user can realize the form of a laptop computer by moving the second protective shell (the top of the second protective shell is hinged to the bottom of the first protective shell, and the back of the first protective shell has supporting legs, so that the first protective shell forms an obtuse angle with respect to the second protective shell) and can vectorize the cross-section diagram; and in a handheld form (the second protective shell is fixed behind the first protective shell), the compiled vector diagram can be enlarged or reduced through the touch screen, so that the vector diagram can be easily consulted.
[0126] The connection structure between the two includes multiple limiting devices, so that the entire bracket can stably maintain the handheld form or the notebook computer form to meet the needs of outdoor use.
[0127] The above embodiments are only exemplary embodiments of the present application and are not intended to limit the present application. The protection scope of the present application is defined by the claims. Those skilled in the art may make various modifications or equivalent substitutions to the present application within the essence and protection scope of the present application, and such modifications or equivalent substitutions shall also be deemed to fall within the protection scope of the present application.
Claims
1. A method for vectorizing a profile. It is characterized in that The geological profile is input into the computer and vectorized based on MATLAB software, including the following steps: Step 001, preprocessing the geological profile to retain more effective edge position data information; Step 002, using the Canny algorithm to detect the data information of the edge position of the geological profile to obtain the contour information of the edge position; Step 003, using a two-pass algorithm to mark the connected areas of the contour information; Step 004, using Douglas-Peucker algorithm to compress vector data and extract feature points from each of the marked connected regions; Step 005: Use a cubic Bezier curve to fit the extracted feature points to obtain a vectorization result of the geological profile.
2. According to claim 1, It is characterized in that In step 001, the preprocessing steps are as follows: Step 011, dividing the geological profile into 8*8 or 16*16 image blocks; Step 012, performing DCT transformation on each image block and obtaining DCT coefficients; Step 013, analyzing the DCT coefficients and removing high-frequency DCT coefficients; Step 014, perform IDCT transformation on the DCT coefficients corresponding to each image block, and splice the image blocks into a complete image.
3. According to claim 1, It is characterized in that In step 002, the steps of obtaining the contour information of the edge position are as follows: Step 021, using a one-dimensional Gaussian function to perform Gaussian blurring to perform low-pass smoothing filtering on the image; Among them, the standard deviation of the Gaussian function is 1; The size of the Gaussian kernel is 5; the Gaussian kernel is a matrix used to implement Gaussian blur, which is 5x5. Step 022, calculating the gradient magnitude and gradient direction of the image pixels; Step 023, suppressing non-maximum edge contribution pixels along the gradient direction; Step 024, setting two thresholds for the gradient amplitude value, namely a high threshold and a low threshold, retaining pixels above the high threshold and ignoring pixels below the low threshold; Among them, when the gradient amplitude of a pixel is between the high threshold and the low threshold, it is retained only if it is connected to a pixel above the high threshold; otherwise it is ignored; Step 025, connect the retained pixels to form a continuous edge.
Citation Information
Patent Citations
Method for vectorization of reservoir geological section map
CN107273608A
Medical ultrasonic image denoising method for improved filtering and threshold value function based on NSCT (Non-Subsampled Contourlet Transform)
CN107403416A
Image noise level estimation method based on DCT and gradient covariance matrix
CN107451981A
Texture segmentation method of seismic section image and apparatus thereof
CN107644400A
