TGC data consistency processing method, processing system, equipment and medium
By building a TGC coordinate system in an ultrasonic diagnostic device and dividing the data into multiple sampling intervals, the problem of large data volume and insufficient storage capacity of high-precision TGC curves is solved, and data volume reduction and storage efficiency improvement are achieved.
Patent Information
- Application Number
- CN202510105416.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-23
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2045-01-23
AI Technical Summary
When handling high-precision TGC curves, existing ultrasonic diagnostic equipment faces the problems of large data volume and insufficient storage capacity. Especially in the acoustic experimental platform, it is necessary to make gain compensation for the data of 8192 sampling points, resulting in insufficiency of storage and export.
By constructing the TGC coordinate system, the horizontal axis is divided into multiple sampling intervals, each interval corresponds to a gain value, receive key point position information and correct the initial gain value to match it with the gain sequence, generate TGC discrete data sequences, reduce the amount of data and improve storage efficiency.
The data volume of TGC curve is reduced, the capacity requirements for storage devices are reduced, the export efficiency is improved, and data consistency is ensured by correcting the gain value.
Smart Images

Figure CN119621737A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of acoustic experiment technology, and in particular to a TGC data consistency processing method, processing system, equipment and medium. Background Art
[0002] The TGC curve (Time Gain Compensation) is a curve used to adjust the echo intensity of tissues at different depths in ultrasound images. In ultrasound examinations, ultrasound waves will attenuate when propagating in human tissues, resulting in inconsistent echo intensity of tissues at different depths, strong near-field echoes, and weak far-field echoes. The TGC curve performs gain compensation on echo signals at different depths to make the echo intensity in the image more uniform, thereby improving the image quality and diagnostic value.
[0003] The TGC of real-time imaging of ultrasound diagnostic equipment is usually organized into 8 intervals, which are manually adjusted by doctors in real time. High precision is not required. However, for acoustic experimental platforms that have higher requirements for TGC, in order to ensure accurate gain compensation of images at different depths, the horizontal axis of the TGC curve may have 8192 sampling points, and each sampling point corresponds to a gain compensation data, which results in a large amount of data. Whether it is the storage system of the device itself or exporting data to an external storage device, there may be challenges in storage capacity. Summary of the invention
[0004] In view of the above-mentioned defects or deficiencies in the prior art, the present invention aims to provide a TGC data consistency processing method, processing system, device and medium.
[0005] In a first aspect, the present invention provides a TGC data consistency processing method, the processing method includes a derivation method, and the derivation method includes the following steps: Constructing a TGC coordinate system, wherein the horizontal axis of the TGC coordinate system includes a plurality of sampling points representing depths, and the vertical axis includes a gain sequence, wherein the gain sequence includes a plurality of gain values; The horizontal axis is equally divided into a plurality of sampling intervals, and the vertical coordinates corresponding to the sampling points in each sampling interval are the same; Receiving multiple key point position information, and constructing a TGC curve according to the key point position information, wherein the key point position information includes the horizontal coordinate and the vertical coordinate of the key point drawn by the user; Acquire the value horizontal coordinate of each sampling interval according to the value acquisition strategy, and obtain the initial gain value corresponding to each value horizontal coordinate according to the TGC curve; When the initial gain value does not correspond to any of the gain values in the gain sequence, correcting the initial gain value to the gain value closest thereto; A TGC discrete data sequence is obtained, wherein the TGC discrete data sequence includes a plurality of gain values corresponding to the value horizontal coordinates, and the number of the gain values is the same as the number of the sampling intervals.
[0006] According to the technical solution provided by the present invention, after receiving the plurality of key point position information and before constructing the TGC curve according to the key point position information, the following steps are also included: According to the sampling point setting strategy, the sampling points of each sampling interval are obtained; When the horizontal coordinate of the key point does not correspond to the horizontal coordinate of any of the sampling points, the key point is adsorbed so that its horizontal coordinate is the same as the horizontal coordinate of the sampling point closest to it.
[0007] According to the technical solution provided by the present invention, the value-taking strategy is: the horizontal coordinates of the sampling points corresponding to all the sampling intervals are the value-taking horizontal coordinates of each of the sampling intervals.
[0008] According to the technical solution provided by the present invention, the processing method also includes an import method, and the import method includes the following steps: Receiving a user discrete data sequence, including a plurality of gain values to be imported, wherein the user discrete data sequence is set by a user or is the TGC discrete data sequence modified by a user; According to the data screening strategy, the user discrete data sequence is modified to be an updated discrete data sequence, wherein the updated discrete data sequence includes a plurality of updated gain values; and the updated discrete data sequence meets the requirements of system import; An updated discrete data sequence is received, and the updated gain value or the gain value to be imported corresponding to the value abscissa of each sampling interval is obtained by reverse calculation, and a TGC curve is generated and displayed.
[0009] According to the technical solution provided by the present invention, the data screening strategy includes the following steps: Determining whether the number of gain values to be introduced in the user discrete data sequence is equal to the number of the sampling intervals formed by division; When the two are equal, if it is determined that the gain value to be introduced is greater than the largest gain value in the gain sequence, or less than the smallest gain value in the gain sequence, the gain value to be introduced is corrected to the edge value to form the updated gain value.
[0010] According to the technical solution provided by the present invention, after the two are equal, the following steps are also included: When it is determined that the accuracy of each of the gain values to be imported does not meet the system preset accuracy, the gain value to be imported is corrected to the updated gain value to meet the system preset accuracy.
[0011] According to the technical solution provided by the present invention, after receiving the updated discrete data sequence and inversely calculating the updated gain value corresponding to the value abscissa of each sampling interval, the following steps are also included: According to the key point value selection strategy, a plurality of modified key points are obtained in the updated discrete data sequence; Generating and displaying a TGC curve, wherein the TGC curve includes the correction key point; receiving correction position information of a correction key point, wherein the correction position information is formed by a user dragging the correction key point; Obtain the sampling interval where the correction key point is located, and record it as the correction sampling interval; The TGC curve corresponding to the corrected sampling interval is corrected according to the corrected position information to obtain a corrected TGC curve.
[0012] In a second aspect, the present invention provides a TGC data consistency processing system for implementing the TGC data consistency processing method as described above, the system comprising: A first construction module, wherein the construction module is configured to construct a TGC coordinate system, wherein the horizontal axis of the TGC coordinate system includes a plurality of sampling points representing depths, and the vertical axis includes a gain sequence, wherein the gain sequence includes a plurality of gain values; The first construction module is further configured to equally divide the horizontal axis into a plurality of sampling intervals, and the vertical coordinates corresponding to the sampling points in each sampling interval are the same; A second construction module, the second construction module is configured to receive a plurality of key point position information and construct a TGC curve according to the key point position information, wherein the key point position information includes abscissas and ordinates of key points drawn by a user; An analysis module, the analysis module is configured to obtain the value horizontal coordinates of each sampling interval according to the value strategy, and obtain the initial gain value corresponding to each value horizontal coordinate according to the TGC curve; an adsorption module, wherein the adsorption module is configured to correct the initial gain value to the gain value closest thereto when the initial gain value does not correspond to any of the gain values in the gain sequence; A storage module, wherein the storage module is configured to obtain a TGC discrete data sequence, wherein the TGC discrete data sequence includes a plurality of gain values corresponding to the value horizontal coordinates, and the number of the gain values is the same as the number of the sampling intervals.
[0013] In a third aspect, the present invention provides a terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the TGC data consistency processing method as described above when executing the computer program.
[0014] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the TGC data consistency processing method as described above are implemented.
[0015] In summary, the present invention proposes a TGC data consistency processing method, processing system, device and medium. The processing method includes a data export method, which includes: constructing a TGC coordinate system, the horizontal axis of the TGC coordinate system includes multiple sampling points, and the vertical axis includes a gain sequence with multiple gain values; dividing the horizontal axis into multiple sampling intervals, the sampling points of each sampling interval have the same corresponding vertical coordinates, receiving the key point position information selected by the user, and constructing a TGC curve; obtaining the value horizontal coordinate of each sampling interval according to the value strategy, and obtaining the initial gain value corresponding to it according to the TGC curve; when the initial gain value and the gain value in the gain sequence do not correspond, correcting the initial gain value to the closest gain value to obtain a TGC discrete data sequence, which includes multiple gain values corresponding to the value horizontal coordinate, and the number of gain values is the same as the number of sampling intervals. This method obtains multiple sampling intervals by dividing the sampling points, obtains multiple gain values corresponding to the sampling intervals, and constructs a TGC discrete data sequence. Compared with the existing method of exporting all TGC curve data, this sequence reduces the amount of TGC curve data, reduces the capacity requirement for storage devices, and improves the export efficiency. In addition, this method corrects the initial gain value corresponding to each sampling interval to the gain value in the set gain sequence, ensuring that the gain value has the same accuracy and improving data consistency. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A flow chart of the TGC data consistency processing method provided by the present invention; Figure 2 The TGC curve provided by the present invention does not include the key points of correction when it is introduced; Figure 3 The user dragging provided by the present invention Figure 2 The curve formed after a certain point in the TGC curve; Figure 4 A TGC curve including a correction key point when imported provided by an embodiment of the present invention; Figure 5 A TGC curve after a user drags and corrects a key point provided in an embodiment of the present invention; Figure 6 A schematic diagram of the structure of the terminal device provided by the present invention.
[0017] The text annotations in the figure represent: 700. Computer system; 701. CPU; 702. ROM; 703. RAM; 704. Bus; 705. I / O interface; 706. Input part; 707. Output part; 708. Storage part; 709. Communication part; 710. Drive; 711. Removable media. DETAILED DESCRIPTION
[0018] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the invention are shown in the accompanying drawings.
[0019] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0020] Example 1 As the technical problem mentioned in the background technology, the present invention proposes a TGC data consistency processing method, such as Figure 1 As shown, the following steps are included: S1. constructing a TGC coordinate system, wherein the horizontal axis of the TGC coordinate system includes a plurality of sampling points representing depths, and the vertical axis includes a gain sequence, wherein the gain sequence includes a plurality of gain values; Among them, this scheme can be executed through an acoustic experimental platform, the horizontal axis represents depth, and the vertical axis represents gain value. The gain value is set according to the accuracy of the acoustic experimental platform. Exemplarily, the horizontal axis includes 8192 sampling points, and the horizontal coordinates corresponding to each sampling point are integers with values of (0, 1, 2...8192); the system accuracy is one decimal place, and optionally, the gain sequence is (0.1, 0.2, 0.3...32), and the difference between any two adjacent gain values in the gain sequence is set according to the accuracy of the acoustic experimental platform.
[0021] S2. The horizontal axis is divided into a plurality of sampling intervals, and the vertical coordinates corresponding to the sampling points in each sampling interval are the same; In the scenario of ultrasonic testing, by touching the skin with a handheld probe, sound wave signals with different vibration frequencies can be received. The greater the depth, the greater the sound wave attenuation. In order to ensure the consistency of echo intensity, it is necessary to perform gain compensation on echo signals at different depths. According to engineering necessity and accuracy requirements, the gains corresponding to similar depths are set equal. For example, every 128 sampling points on the horizontal axis correspond to one vertical axis, and the number of sampling intervals is 64, namely [0~127], [128~255], [256~383]...
[0022] S3. receiving a plurality of key point position information, and constructing a TGC curve according to the key point position information, wherein the key point position information includes the horizontal coordinate and the vertical coordinate of the key point selected by the user; Among them, the acoustic experimental platform includes a display interface that can display the TGC coordinate system, and the user can select key points on the TGC coordinate system using the mouse.
[0023] In a preferred embodiment, after receiving the plurality of key point position information and before constructing the TGC curve according to the key point position information, the following steps are also included: S31. Get the sampling points of each sampling interval according to the sampling point setting strategy; S32. When the horizontal coordinate of the key point does not correspond to the horizontal coordinate of any of the sampling points, the key point is adsorbed so that its horizontal coordinate is the same as the horizontal coordinate of the sampling point closest to it.
[0024] Among them, the sampling point setting strategy is to select a sampling point corresponding to each sampling interval as the sampling point, for example, the left endpoint of each sampling interval is selected as the sampling point, and the sampling points include 0, 128, 256,... The right endpoint can also be selected, or any sampling point corresponding to each sampling interval can be selected as the sampling point.
[0025] After receiving the position information of multiple key points, the user completes the selection of multiple key points on the display interface. When the user draws key points on the TGC curve through the display interface, there may be a key point whose horizontal coordinate does not correspond to the horizontal coordinate of the sampling point. For example, the horizontal coordinate of the key point drawn by the user is 127, and the right end point of the sampling interval is selected as the sampling point of each sampling interval. Then, according to the principle of proximity, the key point is adsorbed to the horizontal coordinate of 128. By adsorbing the key point to the nearest sampling point horizontal coordinate, all key points used to construct the TGC curve meet the preset sampling points, which is beneficial in the subsequent data processing process. The system can process the TGC curve related data according to fixed and regular sampling points; in addition, the drawn key points will be displayed on the display interface. When the user draws the key points of the TGC curve, due to the existence of the adsorption mechanism, the user's expectations and actual visual effects can be consistent.
[0026] After the key points are corrected, the TGC curve is obtained through a fitting algorithm. Optionally, the fitting algorithm is a cubic spline interpolation algorithm.
[0027] S4. Obtaining the value coordinates of each sampling interval according to the value strategy, and obtaining the initial gain value corresponding to each value coordinate according to the TGC curve; The value-taking strategy is as follows: the horizontal coordinates of the sampling points corresponding to all the sampling intervals are the value-taking horizontal coordinates of each of the sampling intervals.
[0028] That is to say, the value-taking method of the horizontal coordinate is not fixed, as long as the value-taking method of each sampling interval is the same. Optionally, when the endpoint coordinate on the left side of the sampling interval is selected as the horizontal coordinate of the value, the horizontal coordinate of the value is 0, 128, 256...; when the endpoint coordinate on the right side of the sampling interval is selected as the horizontal coordinate of the value, the horizontal coordinate of the value is 127, 255, 383...; when the horizontal coordinate of the second sampling point from the left side of the sampling interval is selected as the horizontal coordinate of the value, the horizontal coordinate of the value is 1, 129, 257...: S5. When the initial gain value does not correspond to any of the gain values in the gain sequence, the initial gain value is corrected to the gain value closest thereto; Among them, since the TGC curve is an arc, when the ordinate of the point on the TGC curve corresponding to the value horizontal coordinate is not any gain value in the gain sequence, the ordinate is corrected to the gain value according to the principle of proximity to meet the system accuracy requirements. For example, if the value horizontal coordinate is 127, the initial gain value obtained according to the TGC curve is 0.18, and as mentioned above, the gain sequence is (0.1, 0.2, 0.3...32), the initial gain value is corrected to 0.2, which is the closest to it. This ensures that all gain values corresponding to the value horizontal coordinate meet the system accuracy requirements and improves data consistency.
[0029] S6. Obtain a TGC discrete data sequence, wherein the TGC discrete data sequence includes a plurality of gain values corresponding to the value horizontal coordinates, and the number of the gain values is the same as the number of the sampling intervals.
[0030] The TGC discrete data sequence format can be any of TXT, CSV, etc., including 64 gain values. Compared with the original 8192 sampling points corresponding to 8192 gain values, the data volume is significantly reduced, and the gain values in each TGC discrete data sequence meet the system accuracy and rule requirements, maintaining data consistency.
[0031] The above is the process of exporting TGC curve data. In some scenarios, after researchers optimize the exported data after data calculation, they still need to import the corrected data into the acoustic experiment platform to observe the optimization results. Therefore, data import is involved. The processing method also includes the import method, which includes the following steps: S7. Receive a user discrete data sequence, including a plurality of gain values to be imported, wherein the user discrete data sequence is set by a user-defined setting or is the TGC discrete data sequence modified by a user; Among them, the user discrete data sequence can be the TGC discrete data sequence exported on this acoustic experimental platform, or it can be a set of data obtained by the user through software code or software editing. It can be in Excel format, TXT format, CSV format, etc., as long as it meets the requirements of the acoustic experimental platform.
[0032] S8. According to the data screening strategy, the user discrete data sequence is modified to be an updated discrete data sequence, wherein the updated discrete data sequence includes multiple updated gain values; the updated discrete data sequence meets the requirements of the system import; the data screening strategy includes the following methods: S81. Determine whether the number of gain values to be imported in the user discrete data sequence is equal to the number of the sampling intervals formed by division; S82. When the two are equal, if it is determined that the gain value to be imported is greater than the largest gain value in the gain sequence, or less than the smallest gain value in the gain sequence, the gain value to be imported is corrected to the edge value of the gain sequence to form the updated gain value; For example, as described above, 8192 sampling points are divided into 64 sampling intervals in groups of 128, and the exported TGC discrete data sequence includes 64 gain values. When the number of gain values to be imported in the user discrete data sequence to be imported is not 64, the system cannot recognize the regrouped data and stops importing.
[0033] When the number of gain values to be imported is 64, import is allowed. After importing the user discrete data sequence, it is necessary to first determine whether the gain values to be imported meet the system requirements. As mentioned above, the gain sequence is (0.1, 0.2, 0.3...32), that is, the gain value to be imported cannot be greater than 32 and less than 0.1. When it is greater than 32, the gain value to be imported is corrected to 32. When it is less than 0.1, the gain value to be imported is corrected to 0.1.
[0034] In a preferred embodiment, when the two are equal, the following steps are further included: S83. When it is determined that the accuracy of each of the gain values to be imported does not meet the system preset accuracy, correct the gain value to be imported to the updated gain value to meet the system preset accuracy.
[0035] That is, when the user's discrete data sequence meets the system's quantity requirements and size requirements, it is also necessary to determine whether it meets the accuracy requirements. If not, it is corrected to a value that meets the system requirements, wherein the system preset accuracy is one decimal place as described above. For example, if after user optimization, a certain gain value to be imported changes to 1.11, it does not meet the system preset accuracy and must be corrected to 1.1. In summary, when importing data, the data must first be judged and corrected to meet the system requirements and maintain consistency in the imported and exported data.
[0036] S9. Receive an updated discrete data sequence, reversely deduce the updated gain value or the gain value to be imported corresponding to the value abscissa of each sampling interval, and generate and display a TGC curve.
[0037] Among them, through the same value-taking strategy, the value horizontal coordinates of each sampling interval can be obtained, and the updated discrete data sequence includes the gain values to be imported or the updated gain values corresponding to each value horizontal coordinate, and then the TGC curve can be obtained, and the curve is displayed on the display interface for users to watch, such as Figure 2 shown.
[0038] In a preferred embodiment, after receiving the updated discrete data sequence and inversely calculating the updated gain value or the gain value to be imported corresponding to the value abscissa of each sampling interval, the following steps are also included: S91. According to the key point value strategy, a plurality of modified key points are obtained in the updated discrete data sequence; Optionally, the key point value selection strategy includes: taking the data at the starting point, 1 / 2, 1 / 4, 1 / 8 and midpoint in the updated discrete data sequence as the vertical coordinate of the corrected key point, and then inverting the horizontal coordinate of the corrected key point through the value selection strategy to determine the corrected key point.
[0039] S92. Generate and display a TGC curve, wherein the TGC curve includes the correction key points; wherein the correction key points are marked on the TGC curve in the form of hollow circles, such as Figure 4 shown.
[0040] S93. Receive the correction position information of the correction key point, the correction position information is formed by the user dragging the correction key point; The corrected position information is the horizontal and vertical coordinate information of the corrected key point after being dragged by the user; S94. Obtain the sampling interval where the correction key point is located, recorded as the correction sampling interval; S95. Correct the TGC curve corresponding to the corrected sampling interval according to the corrected position information to obtain a corrected TGC curve.
[0041] That is, when the TGC curve is modified by dragging the correction key point, the TGC curve corresponding to the correction sampling interval is not changed, and only the TGC curve corresponding to the correction sampling interval where the correction key point is located is modified. Under the restriction of the fixed curves on both sides, the obtained corrected TGC curve has little change with the original TGC curve, such as Figure 5However, when no correction key point is set on the TGC curve, if the user wants to make corrections by dragging a point on the curve, the entire curve will change significantly due to the position information of the point because there is no restriction on the fixed curves on both sides, such as Figure 3 As shown, the reference value of the original TGC curve is lost. Figure 2-Figure 5 The horizontal axis is the sampling point, the unit is div, and the vertical axis is the gain value, the unit is dB.
[0042] In summary, the present invention proposes a method for generating a TGC curve by exporting TGC curve data and importing data, which reduces the requirement on the capacity of the storage device by reducing the exported data; the formats of the exported data and the imported data are fully compatible, which improves the readability and consistency of the data; and through the integrated solution of the adsorption mechanism and the import and export, it not only ensures the flexibility of the user's free drawing, but also ensures the accuracy of the exported data.
[0043] Example 2 Based on Example 1, the present invention provides a TGC data consistency export system for implementing the TGC data consistency processing method as described above, and the processing system includes: A first construction module, wherein the construction module is configured to construct a TGC coordinate system, wherein the horizontal axis of the TGC coordinate system includes a plurality of sampling points representing depths, and the vertical axis includes a gain sequence, wherein the gain sequence includes a plurality of gain values; The first construction module is further configured to divide the horizontal axis into a plurality of sampling intervals, and the vertical coordinates corresponding to the sampling points in the sampling intervals are the same; A second construction module, the second construction module is configured to receive a plurality of key point position information and construct a TGC curve according to the key point position information, wherein the key point position information includes abscissas and ordinates of key points drawn by a user; An analysis module, the analysis module is configured to obtain the value horizontal coordinates in each sampling interval according to the value strategy, and obtain the initial gain value corresponding to each value horizontal coordinate according to the TGC curve; an adsorption module, wherein the adsorption module is configured to adsorb the initial gain value to the gain value closest to it when the initial gain value does not correspond to any of the gain values in the gain sequence; A storage module, wherein the storage module is configured to obtain a TGC discrete data sequence, wherein the TGC discrete data sequence includes a plurality of gain values corresponding to the value horizontal coordinates, and the number of the gain values is the same as the number of the sampling intervals.
[0044] Example 3 like Figure 6As shown, the computer system 700 of the terminal device includes a CPU 701, which can perform various appropriate actions and processes according to the program stored in the ROM 702 or the program loaded from the storage part 708 to the RAM 703. In the RAM 703, various programs and data required for system operation are also stored. The CPU 701, the ROM 702 and the RAM 703 are connected to each other through the bus 704. The I / O interface 705 is also connected to the bus 704. The following components are connected to the I / O interface 705: an input part 706 including a keyboard, a mouse, etc.; an output part 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc. and a speaker, etc.; a storage part 708 including a hard disk, etc.; and a communication part 709 including a network interface card such as a LAN card, a modem, etc. The communication part 709 performs communication processing via a network such as the Internet. The drive is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like, is mounted on the drive 710 as needed, so that a computer program read therefrom is installed into the storage section 708 as needed.
[0045] In particular, according to an embodiment of the present invention, the above reference process Figure 1 The described process can be implemented as a computer software program. For example, embodiment 3 of the present invention includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a removable medium. When the computer program is executed by CPU 701, the above-mentioned functions defined in the present computer system 700 are executed.
[0046] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0047] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments 3 of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart, can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0048] As another aspect, the present invention further provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the TGC data consistency processing method described in the above embodiment.
[0049] For example, the electronic device may implement Figure 1 As shown in: Step S1. Construct a TGC coordinate system, wherein the horizontal axis of the TGC coordinate system includes multiple sampling points representing depths, and the vertical axis includes a gain sequence, wherein the gain sequence includes multiple gain values; Step S2. Divide the horizontal axis into multiple sampling intervals, wherein the vertical coordinates corresponding to the sampling points in each sampling interval are the same; Step S3. Receive multiple key point position information, and construct a TGC curve according to the key point position information, wherein the key point position information includes the horizontal coordinate and the vertical coordinate of the key point drawn by the user; Step S4. Obtain the value horizontal coordinate of each sampling interval according to the value strategy, and obtain the initial gain value corresponding to each value horizontal coordinate according to the TGC curve; Step S5. When the initial gain value does not correspond to any of the gain values in the gain sequence, correct the initial gain value to the gain value closest to it; Step S6. Obtain a TGC discrete data sequence, wherein the TGC discrete data sequence includes multiple gain values corresponding to the value horizontal coordinate, and the number of the gain values is the same as the number of the sampling intervals.
[0050] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments disclosed in the present invention, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0051] In addition, although the steps of the method of the present invention are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.
[0052] Through the description of the above implementations, those skilled in the art can easily understand that the example implementations described here can be implemented by software, or by combining software with necessary hardware.
[0053] The above description is only a preferred embodiment of the present invention and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present invention is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present invention (but not limited to) to form a technical solution.
Claims
1. A TGC data consistency processing method, characterized in that: The processing method includes an export method, and the export method includes the following steps: Constructing a TGC coordinate system, wherein the horizontal axis of the TGC coordinate system includes a plurality of sampling points representing depths, and the vertical axis includes a gain sequence, wherein the gain sequence includes a plurality of gain values; The horizontal axis is equally divided into a plurality of sampling intervals, and the vertical coordinates corresponding to the sampling points in each sampling interval are the same; Receiving multiple key point position information, and constructing a TGC curve according to the key point position information, wherein the key point position information includes the horizontal coordinate and the vertical coordinate of the key point drawn by the user; Acquire the value horizontal coordinate of each sampling interval according to the value acquisition strategy, and obtain the initial gain value corresponding to each value horizontal coordinate according to the TGC curve; When the initial gain value does not correspond to any of the gain values in the gain sequence, correcting the initial gain value to the gain value closest thereto; A TGC discrete data sequence is obtained, wherein the TGC discrete data sequence includes a plurality of gain values corresponding to the value horizontal coordinates, and the number of the gain values is the same as the number of the sampling intervals.
2. The TGC data consistency processing method according to claim 1, characterized in that: After receiving the plurality of key point position information and before constructing the TGC curve according to the key point position information, the following steps are also included: According to the sampling point setting strategy, the sampling points of each sampling interval are obtained; When the horizontal coordinate of the key point does not correspond to the horizontal coordinate of any of the sampling points, the key point is adsorbed so that its horizontal coordinate is the same as the horizontal coordinate of the sampling point closest to it.
3. The TGC data consistency processing method according to claim 1, characterized in that: The value-taking strategy is: the horizontal coordinates of the sampling points corresponding to all the sampling intervals are the value-taking horizontal coordinates of each of the sampling intervals.
4. The TGC data consistency processing method according to claim 1, characterized in that: The processing method also includes an import method, and the import method includes the following steps: Receiving a user discrete data sequence, including a plurality of gain values to be imported, wherein the user discrete data sequence is set by a user or is the TGC discrete data sequence modified by a user; According to the data screening strategy, the user discrete data sequence is modified to be an updated discrete data sequence, wherein the updated discrete data sequence includes a plurality of updated gain values; and the updated discrete data sequence meets the requirements of system import; An updated discrete data sequence is received, and the updated gain value or the gain value to be imported corresponding to the value abscissa of each sampling interval is obtained by reverse calculation, and a TGC curve is generated and displayed.
5. The TGC data consistency processing method according to claim 4, characterized in that: The data screening strategy includes the following steps: Determining whether the number of gain values to be introduced in the user discrete data sequence is equal to the number of the sampling intervals formed by division; When the two are equal, if it is determined that the gain value to be introduced is greater than the largest gain value in the gain sequence, or less than the smallest gain value in the gain sequence, the gain value to be introduced is corrected to the edge value of the gain sequence to form the updated gain value.
6. The TGC data consistency processing method according to claim 5, characterized in that: When the two are equal, the following steps are also included: When it is determined that the accuracy of each of the gain values to be imported does not meet the system preset accuracy, the gain value to be imported is corrected to the updated gain value to meet the system preset accuracy.
7. The TGC data consistency processing method according to claim 4, characterized in that: After receiving the updated discrete data sequence and inversely calculating the updated gain value corresponding to the horizontal coordinate of each sampling interval, the following steps are also included: According to the key point value selection strategy, a plurality of modified key points are obtained in the updated discrete data sequence; Generating and displaying a TGC curve, wherein the TGC curve includes the correction key point; receiving correction position information of a correction key point, wherein the correction position information is formed by a user dragging the correction key point; Obtain the sampling interval where the correction key point is located, and record it as the correction sampling interval; The TGC curve corresponding to the corrected sampling interval is corrected according to the corrected position information to obtain a corrected TGC curve.
8. A TGC data consistency processing system, used to implement the TGC data consistency processing method according to any one of claims 1 to 7, characterized in that: The processing system comprises: A first construction module, wherein the construction module is configured to construct a TGC coordinate system, wherein the horizontal axis of the TGC coordinate system includes a plurality of sampling points representing depths, and the vertical axis includes a gain sequence, wherein the gain sequence includes a plurality of gain values; The first construction module is further configured to equally divide the horizontal axis into a plurality of sampling intervals, and the vertical coordinates corresponding to the sampling points in each sampling interval are the same; A second construction module, the second construction module is configured to receive a plurality of key point position information and construct a TGC curve according to the key point position information, wherein the key point position information includes abscissas and ordinates of key points drawn by a user; An analysis module, the analysis module is configured to obtain the value horizontal coordinates of each sampling interval according to the value strategy, and obtain the initial gain value corresponding to each value horizontal coordinate according to the TGC curve; an adsorption module, wherein the adsorption module is configured to correct the gain value to the gain value closest thereto when the initial gain value does not correspond to any of the gain values in the gain sequence; A storage module, wherein the storage module is configured to obtain a TGC discrete data sequence, wherein the TGC discrete data sequence includes a plurality of gain values corresponding to the value horizontal coordinates, and the number of the gain values is the same as the number of the sampling intervals.
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 TGC data consistency processing method as described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the TGC data consistency processing method as described in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Feature point obtaining and waveform drawing
CN105054925A
Website user behavior analysis method and device
CN111124847A
Non-convex domain elastic simulation method and device based on K neighborhood and readable medium
CN116756967A
Point coordinate homogenization method and system capable of being implemented by FPGA (Field Programmable Gate Array) and medium
CN118827820A
Automatic Time Gain Compensation (TGC) in Ultrasound Imaging
US20190018125A1