Ultra-long logging diagram image output method, system and device and medium

By longitudinally segmenting and merging the ultra-long log map, the problem of insufficient image clarity is solved, and high-resolution log map export is achieved to meet the needs of archiving and communication display.

CN120182297APending Publication Date: 2025-06-20CHINA NAT PETROLEUM CORP +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311754490.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-19
Publication Date
2025-06-20

Smart Images

  • Figure CN120182297A_ABST
    Figure CN120182297A_ABST
Patent Text Reader

Abstract

The invention discloses an ultra-long logging image output method, system and device and a medium, and the method comprises the steps: obtaining the length of a logging image based on the resolution of the logging image, the height of a drawing and a conversion factor; obtaining length pixels of the logging image based on the length parameter of the logging image; judging whether the length pixel of the logging image exceeds a threshold value or not; if yes, segmenting the logging image into a plurality of sub-drawing segments in the longitudinal direction according to the logging image threshold value; storing and numbering the divided sub-drawing segments; and based on the numbering sequence of the sub-drawing segments, longitudinally merging the sub-drawing segments, and outputting a merged logging image. According to the method, the problem of exporting the ultra-long well logging diagram image can be solved, the image resolution is ensured, exporting of the ultra-long well logging diagram is realized, and the requirements of filing and communication display are met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical fields of logging and drawing, and relates to a method, system, device and medium for outputting ultra-long logging map images. Background Art

[0002] Logging, as an important method and technology for exploring and developing oil and gas fields, is an important means for determining and evaluating oil and gas layers. Visualization of logging data is an important means of visually displaying logging data information to logging analysts in graphical form, facilitating more intuitive and in-depth analysis and research of logging data.

[0003] Logging Figure 1 Generally, it is no more than 1 meter in width and ranges from several meters to dozens of meters in length. Exporting images of logging maps is also an important part of the logging interpretation process. Compared with forms such as computer screen capture and mobile phone photography, exporting images of logging maps has the advantages of high resolution, high clarity, and a larger range of exported images, and is widely used for report writing, interpretation communication, printing maps, and data archiving, etc., playing an important role. Most of the on-site logging data processing and interpretation work still mainly uses ordinary-performance computers. Most of the logging maps are less than 10 meters in length, and the logging maps can be normally exported. However, when the logging map is ultra-long, such as more than 10 meters in length, usually the image resolution needs to be reduced to export, resulting in insufficient clarity of the exported image, not meeting the archiving requirements (above 200 DPI), affecting the archiving of the result map, and also not meeting the requirements for communication and display. Summary of the Invention

[0004] The purpose of the present invention is to solve the problem that when the logging map is ultra-long in the prior art, the clarity of the exported image is insufficient, not meeting the archiving requirements, affecting the archiving of the result map, and also not meeting the requirements for communication and display, and to provide a method, system, device and medium for outputting ultra-long logging map images.

[0005] To achieve the above purpose, the present invention adopts the following technical solutions:

[0006] An ultra-long logging map image output method, comprising:

[0007] Based on the resolution of the logging image, the height of drawing, and the conversion factor, obtain the length of the logging image;

[0008] Based on the length parameter of the logging image, obtain the length pixels of the logging image;

[0009] Judge whether the length pixels of the logging image exceed the threshold; if so, then vertically divide the logging image into several sub-drawing segments according to the logging image threshold;

[0010] Save and number the segmented sub-drawing segments; based on the numbering order of the sub-drawing segments, perform vertical merging on the sub-drawing segments and output the merged logging image.

[0011] A further improvement of the present invention lies in:

[0012] Further, based on the resolution of the logging image, the height of the drawing, and the conversion factor, obtain the length of the logging image, specifically:

[0013] Height = HeightMM * mmToInch * dpiY (1)

[0014] Where, Height is the length of the image, in pixels; HeightMM is the height of the drawing, in millimeters; mmToInch is the conversion factor from millimeters to inches; dpiY is the resolution of the exported image.

[0015] Further, based on the length parameter of the logging image, obtain the pixel length of the logging image, specifically:

[0016] imageHeight =w / (we - ws)*(edep - sdep) + sdep (2)

[0017] Where, imageHeight is the total pixel height of the logging image; w is the current pixel position; we is the bottom pixel corresponding to the logging image; ws is the top pixel corresponding to the logging image; edep is the end depth corresponding to the logging image. sdep is the starting depth corresponding to the logging image.

[0018] Further, according to the logging image threshold, vertically divide the logging image into several sub-drawing segments, specifically:

[0019] Count=imageHeight / baseCut (3)

[0020] Where, Count is the number of sub-images vertically segmented from the image, rounded up, with a minimum of 1, and baseCut is the image segmentation threshold;

[0021] The formula for the actual segmentation height is as shown in formula (4):

[0022] trueBaseH =imageHeight / Count (4)

[0023] Where, the height of Count - 1 images is trueBaseH, and the height of the last drawing segment is

[0024] tailH= trueBaseH + imageHeight% Count (5)

[0025] Among them, tailH is the height of the last drawing segment; imageHeight % Count is the remainder obtained by taking the remainder.

[0026] Furthermore, based on the sequential numbering of the sub-drawing segments, the sub-drawing segments are merged vertically to output the merged logging image. Specifically: starting from the top to the bottom, every two files are merged into one. After the merging is completed, starting from the top to the bottom again, every two merged files are merged, and this process loops continuously until a single independent file is formed.

[0027] Furthermore, the number of merges is:

[0028] N = log2(num) (6)

[0029] Among them, num is the number of sub-images, N is the number of loops, rounded up, and log2 is the logarithm to the base 2.

[0030] Furthermore, to output the merged logging image, specifically: the sub-drawing segments are saved as BMP format images to the disk, and the merged BMP format logging image is converted to the required image format.

[0031] An ultra-long logging graph image output system, comprising:

[0032] A first acquisition module, which acquires the length of the logging image based on the resolution of the logging image, the height of the drawing, and the conversion factor;

[0033] A second acquisition module, which acquires the pixel length of the logging image based on the length parameter of the logging image;

[0034] A judgment module, which judges whether the pixel length of the logging image exceeds the threshold; if so, the logging image is vertically segmented into several sub-drawing segments according to the logging image threshold;

[0035] A merging module, which saves and numbers the segmented sub-drawing segments; based on the sequential numbering of the sub-drawing segments, the sub-drawing segments are merged vertically to output the merged logging image.

[0036] A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the above method are implemented.

[0037] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0038] Compared with the prior art, the present invention has the following beneficial effects:

[0039] The present invention obtains the length pixels of a logging image through the length parameter of the logging image; determines whether the length pixels of the logging image exceed a threshold value; if so, vertically divides the logging image into several sub-drawing segments according to the logging image threshold; saves and numbers the divided sub-drawing segments; and performs vertical merging on the sub-drawing segments based on the number sequence of the sub-drawing segments, and outputs the merged logging image. The present invention can solve the problem of exporting ultra-long logging images, ensure the image resolution, and at the same time achieve the export of ultra-large logging images, meeting the requirements of archiving and communication display. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required to be used in the embodiments. It should be understood that the following drawings only show some embodiments of the present invention, and therefore should not be regarded as limiting the scope. For those of ordinary skill in the art, without creative efforts, other related drawings can also be obtained based on these drawings.

[0041] Figure 1 It is a schematic flowchart of a method for outputting an ultra-long logging image of the present invention;

[0042] Figure 2 It is a schematic structural diagram of a system for outputting an ultra-long logging image of the present invention;

[0043] Figure 3 It is another schematic structural diagram of a method for outputting an ultra-long logging image of the present invention;

[0044] Figure 4 It is a schematic diagram of merging sub-drawing segments of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0045] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. Usually, the components of the embodiments of the present invention described and illustrated herein can be arranged and designed in various different configurations.

[0046] Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed present invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present invention.

[0047] It should be noted that like reference numerals and letters refer to like items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.

[0048] In the description of the embodiments of the present invention, it should be noted that if terms such as "upper", "lower", "horizontal", "inner", etc. are used to indicate the orientation or positional relationship, it is based on the orientation or positional relationship shown in the figures, or the orientation or positional relationship in which the product of the present invention is usually placed when in use. This is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it should not be construed as a limitation of the present invention. In addition, terms such as "first", "second", etc. are only used for distinguishing descriptions and cannot be understood as indicating or implying relative importance.

[0049] In addition, if the term "horizontal" appears, it does not mean that the component is required to be absolutely horizontal, but it can be slightly inclined. For example, "horizontal" only means that its direction is more horizontal relative to "vertical", and does not mean that the structure must be completely horizontal, but it can be slightly inclined.

[0050] In the description of the embodiments of the present invention, it should also be noted that unless otherwise clearly specified and limited, if terms such as "set", "installed", "connected", "coupled" are used, they should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium, and it can be the communication inside two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0051] The present invention will be further described in detail below with reference to the accompanying drawings:

[0052] See Figure 1 , the present invention discloses a method for outputting an ultra-long well logging image, including:

[0053] S101, obtaining the length of the well logging image based on the resolution of the well logging image, the height of drawing, and the conversion factor.

[0054] Height = HeightMM * mmToInch * dpiY (1)

[0055] Wherein, Height is the length of the image, and the unit is pixel. HeightMM is the height of drawing, and the unit is millimeter; mmToInch is the conversion factor from millimeter to inch; dpiY is the resolution of the exported image.

[0056] S102. Obtain the log image length pixels based on the length parameter of the log image.

[0057] imageHeight = w / (we - ws) * (edep - sdep) + sdep (2)

[0058] Where, imageHeight is the total pixel height of the log image; w is the current pixel position; we is the bottom pixel corresponding to the log image; ws is the top pixel corresponding to the log image; edep is the end depth corresponding to the log image. sdep is the starting depth corresponding to the log image.

[0059] S103. Determine whether the log image length pixels exceed the threshold; if so, vertically divide the log image into several sub - drawing segments according to the log image threshold.

[0060] Count = ceiling(imageHeight / baseCut) (3)

[0061] Where, Count is the number of sub - images divided vertically of the image, rounded up, with a minimum of 1, and baseCut is the image segmentation threshold;

[0062] The formula for the actual segmentation height is shown in formula (4):

[0063] trueBaseH = imageHeight / Count (4)

[0064] Where, the height of Count - 1 images is trueBaseH, and the height of the last drawing segment is

[0065] tailH = trueBaseH + imageHeight % Count (5)

[0066] Where, tailH is the height of the last drawing segment; imageHeight % Count is the remainder.

[0067] S104. Save and number the segmented sub - drawing segments; based on the numbering order of the sub - drawing segments, vertically merge the sub - drawing segments and output the merged log image.

[0068] Merge every two files from top to bottom into one. After the merge is completed, merge every two merged files from top to bottom again, and keep looping until merged into a single independent file. Save the sub - drawing segments as BMP - format images to the disk, and convert the merged BMP - format log image to the required image format.

[0069] The number of merges is:

[0070] N = log2(num) (6)

[0071] Where num is the number of sub-images, N is the number of loops, rounded up, and log2 is the logarithm to the base 2.

[0072] See Figure 2 , the present invention discloses an ultra-long log image output system, including:

[0073] A first acquisition module, which acquires the length of the log image based on the resolution of the log image, the height of the drawing, and the conversion factor.

[0074] A second acquisition module, which acquires the pixel length of the log image based on the length parameter of the log image.

[0075] A judgment module, which judges whether the pixel length of the log image exceeds the threshold; if so, the log image is vertically segmented into a plurality of sub-drawing segments according to the log image threshold.

[0076] A merging module, which saves and numbers the segmented sub-drawing segments; based on the numbering order of the sub-drawing segments, the sub-drawing segments are vertically merged to output the merged log image.

[0077] Embodiment:

[0078] As Figure 3 shown, the present invention discloses an ultra-long log image export method, including:

[0079] Step S1: Determine the length and image format of the log image.

[0080] Determine the depth range and image format of the exported log map, and then calculate the pixel length according to the length of the log map.

[0081] Height = HeightMM * mmToInch * dpiY

[0082] Where Height is the length of the image in pixels. HeightMM is the height of the drawing in millimeters; mmToInch is the conversion factor from millimeters to inches, with a value equal to 1 / 25.4; dpiY is the resolution of the exported image. For example, for a log map with a resolution of 200 and a length of 10 meters, the calculated pixel length is 78740 pixels.

[0083] Step S2: Judge whether the length of the log image exceeds the threshold; if the judgment result is no, directly export the image.

[0084] The threshold is 32768; if the pixel length of the log image is less than the threshold 32768, directly export the image in the specified format, and the process ends.

[0085] Step S3: If so, vertically divide the logging image into several sub-drawing segments according to the logging image threshold.

[0086] The number of pixels in the length of the logging image is greater than the threshold 32768. The logging image is vertically divided into multiple small drawing segments. The formula for the number of segments is:

[0087] Count = imageHeight / baseCut

[0088] Where, Count is the number of sub-images vertically segmented from the image, rounded up, with a minimum of 1. For example, if the calculation result of Count is 4.2, after rounding up, it is 5. imageHeight is the total pixel height of the logging image; baseCut is the image segmentation threshold.

[0089] The formula for the actual segmentation height is:

[0090] trueBaseH = imageHeight / Count

[0091] Where, the length of Count - 1 images is trueBaseH, and the length of the last drawing segment is

[0092] tailH = trueBaseH + imageHeight % Count

[0093] Where, tailH is the length of the last drawing segment; imageHeight % Count is the remainder.

[0094] Step S4: Generate BMP images of the drawing segments to the disk

[0095] The segmented sub-drawing segments each generate BMP format images and are saved to the disk. They are numbered 1, 2, 3, 4... from top to bottom, and the generated sub-images are named 1.bmp, 2.bmp, 3.bmp, 4.bmp...

[0096] Step S5: Image merging

[0097] As Figure 4 shown, the sub-drawing segments generated in Step S4 are merged vertically in the order of their numbers into a logging map BMP format file. To improve the file merging speed, the specific method is: every two files from top to bottom are merged into one, and re-numbered as 11, 12, 13..., then again every two files from top to bottom are merged into one and re-numbered as 21, 22, 23..., and keep looping until merged into a single independent file. The number of merging loops is:

[0098] N = log2(num)

[0099] Among them, num is the number of sub-images, N is the number of loop iterations, rounded up, and log2 is the logarithm to the base 2. For example, when merging 1.bmp, 2.bmp, 3.bmp, 4.bmp, and 5.bmp vertically into X.bmp, the merging process is as follows: Calculation of the number of merging loop iterations: N = log2(5), rounded up to 3.

[0100] First merge: 1.bmp and 2.bmp are merged into 11.bmp, 3.bmp and 4.bmp are merged into 12.bmp, and 5.bmp is renamed as 13.bmp.

[0101] Second merge: 11.bmp and 12.bmp are merged into 21.bmp, and 13.bmp is renamed as 22.bmp.

[0102] Third merge: 21.bmp and 22.bmp are merged into 31.bmp, and the merging ends.

[0103] Step S6: Convert the BMP file into an image of a specified format.

[0104] Convert the BMP format file merged in step S5 into the image format determined in step 1. For example, if you want to export in the png format, convert the bmp format to png. For example, convert the X.bmp file to the X.png file.

[0105] While ensuring the image resolution, the present invention can export ultra-large logging diagrams, meet the requirements of archiving and communication display, enhance the smoothness of the logging process, and improve the logging interpretation efficiency; on the other hand, the image format exported by the present invention is the uncompressed format bmp, which can be further converted into various other image formats such as png, prn, gif, jpg, tif, tiff, tga, pcx, jb2, jpc, pgx, pnm, ras, wmf, and emf, enriching the diversity of the logging diagram export formats and meeting the various image format export requirements of logging interpreters.

[0106] A terminal device provided by an embodiment of the present invention. The terminal device of this embodiment includes: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps in the above-mentioned various method embodiments are implemented. Alternatively, when the processor executes the computer program, the functions of each module / unit in the above-mentioned various device embodiments are implemented.

[0107] The computer program can be divided into one or more modules / units, and the one or more modules / units are stored in the memory and executed by the processor to complete the present invention.

[0108] The terminal device may be a computing device such as a desktop computer, a notebook, a palm computer, and a cloud server. The terminal device may include, but is not limited to, a processor and a memory.

[0109] The processor may be a central processing unit (CPU), or may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.

[0110] The memory may be used to store the computer program and / or module. The processor realizes various functions of the terminal device by running or executing the computer program and / or module stored in the memory, and by calling the data stored in the memory.

[0111] If the modules / units integrated in the terminal device are implemented in the form of software functional units and sold or used as independent products, they may be stored in a computer-readable storage medium. Based on such an understanding, to implement all or part of the processes in the above-described embodiment methods of the present invention, it may also be completed by a computer program instructing relevant hardware. The computer program may be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-described method embodiments may be implemented. Among them, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, an executable file, or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc. It should be noted that the content included in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electrical carrier signals and telecommunication signals.

[0112] The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims

1. A method for outputting an ultra-long well logging graph image, characterized in that, Including: Obtain the length of the logging image based on the resolution of the logging image, the height of the drawing, and the conversion factor; Obtain the pixel length of the logging image based on the length parameter of the logging image; Determine whether the pixel length of the logging image exceeds the threshold; if so, vertically divide the logging image into several sub-drawing segments according to the logging image threshold; Save and number the segmented sub-drawing segments; based on the numbering order of the sub-drawing segments, perform vertical merging on the sub-drawing segments, and output the merged logging image.

2. The method for outputting an ultra-long well logging graph image according to claim 1, characterized in that, The obtaining the length of the logging image based on the resolution of the logging image, the height of the drawing, and the conversion factor is specifically as follows: Height = HeightMM * mmToInch * dpiY (1) Where, Height is the length of the image, in pixels; HeightMM is the height of the drawing, in millimeters; mmToInch is the conversion factor from millimeters to inches; dpiY is the resolution of the exported image.

3. The method for outputting an ultra-long well logging graph image according to claim 2, characterized in that, The obtaining the pixel length of the logging image based on the length parameter of the logging image is specifically as follows: imageHeight =w / (we-ws)*(edep-sdep) + sdep (2) Where, imageHeight is the total pixel height of the logging image; w is the current pixel position; we is the bottom pixel corresponding to the logging image; ws is the top pixel corresponding to the logging image; edep is the end depth corresponding to the logging image; sdep is the start depth corresponding to the logging image.

4. The method for outputting an ultra-long well logging graph image according to claim 3, characterized in that, The vertically dividing the logging image into several sub-drawing segments according to the logging image threshold is specifically as follows: Count=imageHeight / baseCut (3) Where, Count is the number of sub-images obtained by vertical segmentation of the image, rounded up, with a minimum of 1, and baseCut is the image segmentation threshold; The formula for the actual segmentation height is as shown in formula (4): trueBaseH =imageHeight / Count (4) Where, the height of Count-1 images is trueBaseH, and the height of the last drawing segment is tailH= trueBaseH + imageHeight% Count (5) Where, tailH is the height of the last drawing segment; imageHeight%Count is the remainder.

5. The method for outputting an ultra-long well logging graph image according to claim 4, characterized in that, The performing vertical merging on the sub-drawing segments based on the numbering order of the sub-drawing segments and outputting the merged logging image is specifically as follows: Merge every two files from top to bottom into one. After the merging is completed, merge every two merged files from top to bottom again, and keep looping until merged into a single independent file.

6. The method for outputting an ultra-long well logging graph image according to claim 5, characterized in that, The number of merges is: N = log2(num) (6) Where, num is the number of sub-images, N is the number of loops, rounded up, and log2 is the logarithm to the base 2.

7. The method for outputting an ultra-long well logging graph image according to claim 1, characterized in that, The outputting the merged logging image is specifically as follows: Save the sub-drawing segments as images in BMP format to the disk, and convert the merged logging image in BMP format to the required image format.

8. An ultra-long well logging graph image output system, characterized in that, Including: A first acquisition module, which acquires the length of the logging image based on the resolution of the logging image, the height of the drawing, and the conversion factor; A second acquisition module, which acquires the pixel length of the logging image based on the length parameter of the logging image; A judgment module, which judges whether the pixel length of the logging image exceeds the threshold; if so, the logging image is vertically segmented into a plurality of sub-drawing segments according to the logging image threshold; A merging module, which saves and numbers the segmented sub-drawing segments; based on the numbering order of the sub-drawing segments, the sub-drawing segments are vertically merged to output the merged logging image.

9. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, the steps of the method according to any one of claims 1-7 are implemented.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, the steps of the method according to any one of claims 1-7 are implemented.