A method for transferring permeability image data based on YUV conversion and iterative threshold segmentation

CN120013959BActive Publication Date: 2026-09-01SOUTHWEST PETROLEUM UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510008082.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-03
Publication Date
2026-09-01
Estimated Expiration
2045-01-03

AI Technical Summary

Technical Problem

然而,由于行业内存在多家公司开发的不同软件系统,这些系统间的数据格式往往不一致,导致数据不能直接使用

Benefits of technology

[0027]处理器,用于执行所述计算机程序以实现上述任意一项所述的实现渗透率图像数据传递方法的步骤。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120013959B_ABST
    Figure CN120013959B_ABST
Patent Text Reader

Abstract

This invention relates to the field of oil and gas engineering technology, and particularly to a method for transmitting permeability image data based on YUV conversion and iterative threshold segmentation. The method includes the following steps: S1, acquiring a first image containing permeability information, and converting the first image into a grayscale image; S2, determining a segmentation threshold, using an iterative method to segment the grayscale image, and constructing a mapping relationship between grayscale image information and color components; S3, acquiring a second image based on the mapping relationship, and obtaining permeability information based on the color components of the second image. This invention enables permeability data exchange between different simulation software, improving data compatibility and usability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of oil and gas engineering technology, and particularly relates to a method for transmitting permeability image data based on YUV conversion and iterative threshold segmentation. Background Technology

[0002] In the oil and gas industry, accurate processing of permeability data is crucial for reservoir assessment and management. However, due to the existence of different software systems developed by various companies within the industry, the data formats of these systems are often inconsistent, making the data unusable directly. This is especially true when different numerical calculation methods are involved; for example, the finite volume method typically uses hexahedral meshes, while the finite element method uses irregular meshes. The permeability data obtained by these methods differ in format and structure, making direct conversion and use between different software impossible.

[0003] To address this issue, this invention proposes a permeability image data transfer method based on YUV conversion and iterative threshold segmentation. This method achieves data transfer between different software systems by converting permeability images into a numerical format. Thus, even with inconsistent grid mappings, efficient data conversion and transfer can be achieved. Summary of the Invention

[0004] The purpose of this invention is to solve the problem of permeability data exchange between different simulation software in the oil and gas industry, enabling users to seamlessly import permeability data between different simulation software and simplifying the workflow.

[0005] To achieve the above objectives, the technical solution adopted by the present invention is as follows:

[0006] This invention provides a method for transferring permeability image data based on YUV conversion and iterative threshold segmentation, comprising the following steps:

[0007] S1. Obtain a first image, which contains permeability information, and convert the first image into a grayscale image.

[0008] S2. Determine the segmentation threshold, use an iterative method to segment the grayscale image, and construct the mapping relationship between grayscale image information and color components;

[0009] S3. Obtain the second image according to the mapping relationship, and obtain the permeability information according to the color components of the second image.

[0010] Furthermore, step S1 also includes:

[0011] The RGB information of the first image is converted into the brightness and chromaticity of a grayscale image.

[0012] Furthermore, the transformation relationship is as follows: ; ; ;

[0013] R, G, and B are the red, green, and blue components in the RGB color space, while Y, U, and V are the luminance and chrominance components in the YUV color space.

[0014] Furthermore, the iterative method step in step S2 includes:

[0015] S2.1 Select the initial segmentation threshold T;

[0016] S2.2. Based on the threshold segmentation of the image, the image pixels are divided into background and foreground, and the average gray level of each is calculated. and ;

[0017] S2.3 Calculate the new threshold using the following formula. : ;

[0018] S2.4 Determine if the iteration has converged. If If the absolute value is less than a preset threshold, the iteration is considered to have converged. That is the final threshold; otherwise, As a new threshold Repeat S2.2 and S2.3.

[0019] Furthermore, in step S2.1, the average gray level of the image is selected as the initial segmentation threshold. .

[0020] Furthermore, in step S2, a piecewise linear function is used to construct the mapping relationship.

[0021] This invention provides a permeability image data transmission system based on YUV conversion and iterative threshold segmentation, characterized by comprising the following modules:

[0022] A first image processing module is used to acquire a first image, which contains permeability information, and convert the first image into a grayscale image.

[0023] The numericalization module is used to determine the segmentation threshold, perform image segmentation on the grayscale image using an iterative method, and construct the mapping relationship between grayscale image information and color components.

[0024] The second image processing module obtains a second image based on the mapping relationship and obtains permeability information based on the color components of the second image.

[0025] This invention provides a hardware method for transmitting permeability image data based on YUV conversion and iterative threshold segmentation, characterized in that it includes:

[0026] Memory, used to store computer programs;

[0027] A processor for executing the computer program to implement the steps of the method for transmitting permeability image data as described in any one of the preceding claims.

[0028] The present invention provides a computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, which is executed by a processor to implement the steps of the method for transferring penetration image data between different software as described in any of the preceding claims.

[0029] The method provided by this invention can improve data compatibility, process penetration rate data between different software systems, and improve data compatibility and usability. The method provided by this invention can seamlessly import penetration rate data between different simulation software, which significantly simplifies the workflow. In addition, through automated image processing and numerical processing, manual operation is reduced, and the efficiency and accuracy of data processing are improved. Attached Figure Description

[0030] Figure 1 This is a schematic diagram of the method flow of the present invention;

[0031] Figure 2 This is the first image in a specific embodiment of the present invention;

[0032] Figure 3 This is a grayscale image of the converted permeability in a specific embodiment of the present invention;

[0033] Figure 4 This is a schematic diagram of a piecewise linear function in a specific embodiment of the present invention;

[0034] Figure 5 This is the second image in a specific embodiment of the present invention. Detailed Implementation

[0035] The present invention will now be described in detail with reference to the accompanying drawings.

[0036] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.

[0037] To achieve the sharing and transfer of penetration rate data between different software, such as Figure 1As shown, this invention provides a method for transferring permeability image data based on YUV conversion and iterative threshold segmentation, comprising the following steps:

[0038] S1. Obtain a first image, which contains permeability information, and convert the first image into a grayscale image.

[0039] Specifically, such as Figure 2 As shown, firstly, a first image containing permeability information is acquired. Since the first image is mostly in the form of a color image, the RGB image is converted to the YUV color space, and the luminance (Y) channel is extracted as a grayscale image, as shown below. Figure 3 As shown.

[0040] Specifically, the YUV color space contains luminance (Y) and chromaticity (U and V) information (where Y represents luminance information, and U and V represent color information). For standard RGB to YUV conversion, in one embodiment, the conversion can be performed using the following method: ; ; ;

[0041] R, G, and B are the red, green, and blue components in the RGB color space, while Y, U, and V are the luminance and chrominance components in the YUV color space.

[0042] S2. Determine the segmentation threshold, use an iterative method to segment the grayscale image, and construct the mapping relationship between grayscale image information and color components.

[0043] The key to iterative thresholding segmentation lies in dynamically adjusting the threshold until a suitable segmentation point is found, effectively separating the foreground and background of the image. The segmentation steps of this method include:

[0044] S2.1 Selecting the initial segmentation threshold: The average gray level of the image is selected as the initial threshold. ;

[0045] S2.2. Based on the threshold segmentation of the image, the image pixels are divided into background and foreground, and the average gray level of each is calculated. and ;

[0046] S2.3 Calculate the new threshold using the following formula. : ;

[0047] S2.4 Determine if the iteration has converged. If If the absolute value is less than a preset threshold, the iteration is considered to have converged. This is the final threshold. Otherwise, it will... As a new threshold Repeat S2.2 and S2.3.

[0048] S3. Obtain the second image according to the mapping relationship, and obtain the permeability information according to the color components of the second image.

[0049] In step S3, the extracted grayscale values ​​are mapped to the final permeability distribution map using piecewise linear functions. The grayscale value of each pixel in the grayscale image is mapped to the R, G, and B dimensions respectively using three piecewise linear functions, and then a color image is generated by overlaying these functions. In one embodiment, such as... Figure 4 As shown, the three piecewise linear functions are as follows: ; ; ;

[0050] By using the above method, a second image containing permeability information can be obtained, such as... Figure 5 As shown.

[0051] Therefore, the method provided in this application can realize the transfer of penetration rate information in image representation between different software, and technicians can also accurately obtain accurate penetration rate numerical information in penetration rate images by applying the method provided in this application. It has the characteristics of high data compatibility and usability, simplified workflow and high processing efficiency.

[0052] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A method for transferring permeability image data based on YUV conversion and iterative threshold segmentation, comprising the following steps: S1. Obtain a first image, which contains permeability information, and convert the first image into a grayscale image. S2. Determine the segmentation threshold, use an iterative method to segment the grayscale image, and construct the mapping relationship between grayscale image information and color components; S3. Obtain the second image according to the mapping relationship, and obtain the permeability information according to the color components of the second image; In step S3, the grayscale values ​​are mapped to the permeability distribution map through a piecewise linear function. The grayscale value of each pixel in the grayscale image is mapped to the three dimensions R, G, and B according to three piecewise linear functions, and then a color image is generated by overlay. The three piecewise linear functions are as follows: Where R, G, and B are the red, green, and blue components in the RGB color space, and Y is the luminance component in the YUV color space.

2. The method for transmitting permeability image data based on YUV conversion and iterative threshold segmentation as described in claim 1, wherein step S1 further includes: The RGB information of the first image is converted into the brightness and chromaticity of a grayscale image.

3. The permeability image data transfer method based on YUV conversion and iterative threshold segmentation as described in claim 1, wherein the conversion relationship is as follows: in, U and V are the chromaticity components in the YUV color space.

4. The permeability image data transfer method based on YUV conversion and iterative threshold segmentation as described in claim 1, wherein the iterative method step in step S2 includes: S2.1 Select the initial segmentation threshold T; S2.

2. Based on the threshold segmentation of the image, the image pixels are divided into background and foreground, and the average gray level of each is calculated. and ; S2.3 Calculate the new threshold using the following formula. : S2.4 Determine if the iteration has converged. If If the absolute value is less than a preset threshold, the iteration is considered to have converged. That is the final threshold; otherwise, As a new threshold Repeat S2.2 and S2.

3.

5. The permeability image data transfer method based on YUV conversion and iterative threshold segmentation as described in claim 4, wherein in step S2.1, the average gray level of the image is selected as the initial segmentation threshold. .

6. The method for transmitting permeability image data based on YUV conversion and iterative threshold segmentation as described in claim 1, wherein a piecewise linear function is used to construct the mapping relationship in step S2.

7. A permeability image data transmission system based on YUV conversion and iterative threshold segmentation, based on the permeability image data transmission method according to any one of claims 1-6, characterized in that, Includes the following modules: A first image processing module is used to acquire a first image, which contains permeability information, and convert the first image into a grayscale image. The numericalization module is used to determine the segmentation threshold, perform image segmentation on the grayscale image using an iterative method, and construct the mapping relationship between grayscale image information and color components. The second image processing module obtains a second image based on the mapping relationship and obtains permeability information based on the color components of the second image.

8. A hardware method for transmitting permeability image data based on YUV conversion and iterative threshold segmentation, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the steps of the permeability image data transmission method according to any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that is executed by a processor to implement the steps of the permeability image data transmission method according to any one of claims 1-6.

Citation Information

Patent Citations

  • Correlated color gamut mapping method suitable for gray-scale color space image

    CN110310342A

  • Method and device for acquiring mapping curve parameters

    CN115883810A