Data cutting method and device, ultrasonic diagnosis equipment and board card
By performing data cropping processing when the board collects the initial echo signal, and determining the cropping method based on the data transmission requirements and weight coefficients, the problem of data cropping in the prior art is solved, and imaging efficiency and cropping accuracy are improved.
Patent Information
- Application Number
- CN202411218448.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-12-17
AI Technical Summary
Existing data cropping methods are usually cropped during imaging processing, which is difficult to meet real-time requirements, resulting in resource consumption and low imaging efficiency.
When the board collects the initial echo signal, the data cropping process is performed. By obtaining the data transmission requirements and weight coefficients, the data cropping method is determined, the amount of data transmitted is reduced, and the cropping efficiency and accuracy are improved.
Real-time data cropping is realized, the amount of data transmitted is reduced, the imaging efficiency is improved, the resource consumption of the terminal equipment on the initial echo signal is avoided, and the cropping accuracy is improved.
Smart Images

Figure CN119138918A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of data processing technology, and in particular, relates to a data clipping method, device, ultrasonic diagnostic equipment and board. Background Art
[0002] In the medical field, not all echo signals collected in units of one ultrasound transmission and reception are used for imaging processing, that is, useless data (data not used for imaging) exists in the collected echo signals. Therefore, it is necessary to perform cropping processing on the collected echo signals.
[0003] However, the existing data clipping method usually starts to clip the collected echo signal when the data needs to be processed accordingly (such as imaging processing), which is difficult to meet actual needs. Summary of the invention
[0004] The embodiments of the present application provide a data clipping method, device, ultrasonic diagnostic equipment and board card, which can perform data clipping processing when the board card collects the echo signal, thereby realizing real-time data clipping and reducing the amount of transmitted data, thereby improving the imaging efficiency of the terminal device that receives the data transmitted by the board card based on the target echo signal.
[0005] In a first aspect, an embodiment of the present application provides a data clipping method, which is applied to a board, and the method includes:
[0006] Obtain the initial echo signal and data transmission requirements of the board;
[0007] Determine the data clipping method corresponding to the board based on data transmission requirements and initial echo signals;
[0008] Based on the data clipping method, the control board clips the initial echo signal to obtain the target echo signal.
[0009] A data clipping method provided in an embodiment of the present application obtains an initial echo signal and the data transmission requirements of a board; determines the data clipping method corresponding to the board based on the data transmission requirements and the initial echo signal; and controls the board to clip the initial echo signal based on the data clipping method to obtain a target echo signal. This method can perform data clipping when the board acquires the initial echo signal, thereby achieving the real-time performance of data clipping and reducing the amount of data transmitted, so that the terminal device receiving the data transmitted by the board can directly perform imaging based on the target echo signal, which not only avoids the resource consumption caused by the terminal device clipping the initial echo signal, but also improves the imaging efficiency. At the same time, the data clipping method determined based on the data transmission requirements and the initial echo signal improves the clipping efficiency and clipping accuracy for the echo signal.
[0010] In a possible implementation of the first aspect, the board includes a field programmable gate array chip; accordingly, the data transmission requirement includes a transmission bit width of the field programmable gate array chip; and based on the data transmission requirement and the initial echo signal, determining a data clipping method corresponding to the board includes:
[0011] Based on the initial echo signal, obtaining a weight coefficient corresponding to the initial echo signal;
[0012] Based on the weight coefficient, determine the data range of valid data in the initial echo signal;
[0013] Determine the data trimming method based on the transmission bit width and data range.
[0014] In the above implementation, since ultrasound imaging requires the use of beamforming technology, beamforming is to perform weighted summation operations on the signals received by the array according to the weight coefficients, and finally obtain the spatial information in a specific direction. Therefore, this implementation can accurately determine the data range where the valid data is located based on the weight coefficients, thereby improving the accuracy of determining the data clipping method, and further improving the accuracy and efficiency of data clipping.
[0015] In an implementation of the first aspect, determining a data clipping method based on a transmission bit width and a data range includes:
[0016] Determine the number of data bits of each array element in the probe corresponding to the initial echo signal;
[0017] Determine the data clipping rules of the field programmable gate array chip based on the number of data bits and the transmission bit width;
[0018] Determine the data clipping method based on data clipping rules and data range.
[0019] In the above implementation, by combining the number of data bits and the transmission bit width, the data clipping rules matching the field programmable gate array chip can be accurately determined, thereby further improving the accuracy of determining the data clipping method, and further improving the accuracy and efficiency of data clipping.
[0020] In one implementation of the first aspect, determining a data clipping rule for a field programmable gate array chip based on the number of data bits and the transmission bit width includes:
[0021] receiving the cropping information input by the user; the cropping information is used to describe the cropping requirements for the initial echo signal;
[0022] Based on the clipping information, determine the number of clipped array elements;
[0023] Determine the data clipping rules based on the number of array elements, the number of data bits, and the transmission bit width.
[0024] In the above implementation, the data clipping rules determined based on the clipping information meet the user needs and improve the user experience.
[0025] In an implementation of the first aspect, determining the number of cropped array elements based on the cropping information includes:
[0026] If the cropping information is the first cropping requirement, the quotient of the transmission bit width and the number of data bits is determined as the number of array elements; the first cropping requirement means that there is no need to splice the cropped target echo signal.
[0027] In the above implementation, since the first cropping requirement means that there is no need to splice the cropped target echo signal, it is ensured that the target echo signal does not need to be padded with zeros or spliced during transmission, which can greatly reduce the consumption of logic resources of the field programmable gate array chip.
[0028] In an implementation of the first aspect, initial echo signals within the data range all carry array element numbers; and determining a data clipping method based on a data clipping rule and a data range includes:
[0029] Based on the data clipping rules and data range, determine the starting array element number, the ending array element number and the number of clipping times;
[0030] A data cropping method is generated based on the starting array element number, the ending array element number, and the number of cropping times.
[0031] In the above implementation, the accuracy of the generated data clipping method is improved, thereby improving the accuracy and efficiency of data clipping.
[0032] In an implementation of the first aspect, after the control board performs cropping processing on the initial echo signal based on the data cropping method to obtain the target echo signal, the method further includes:
[0033] encapsulating the target echo signal to obtain an encapsulated target echo signal;
[0034] The encapsulated target echo signal is transmitted to the terminal device through the transmission interface.
[0035] In the above implementation, since the target echo signal is the data after being clipped, the amount of data transmitted through the transmission interface is reduced, thereby improving the bandwidth utilization of the transmission interface.
[0036] In a second aspect, an embodiment of the present application provides a data clipping device, which is applied to a board, and the device includes:
[0037] A first acquisition unit 51 is used to acquire an initial echo signal and a data transmission requirement of a board;
[0038] A first mode determination unit 52 is used to determine a data clipping mode corresponding to the board based on data transmission requirements and an initial echo signal;
[0039] The control unit 53 is used to control the board to perform cropping processing on the initial echo signal based on the data cropping method to obtain the target echo signal.
[0040] In an implementation of the second aspect, the board includes a field programmable gate array chip; accordingly, the data transmission requirement includes a transmission bit width of the field programmable gate array chip; the first mode determination unit 52 specifically includes:
[0041] A second acquisition unit, configured to acquire a weight coefficient corresponding to the initial echo signal based on the initial echo signal;
[0042] A range determination unit, used for determining a data range of valid data in the initial echo signal based on a weight coefficient;
[0043] The second mode determination unit is used to determine the data clipping mode based on the transmission bit width and the data range.
[0044] In an implementation of the second aspect, the second mode determining unit specifically includes:
[0045] A bit number determination unit, used to determine the number of data bits of each array element in the probe corresponding to the initial echo signal;
[0046] A first rule determination unit, used to determine a data clipping rule for a field programmable gate array chip based on the number of data bits and the transmission bit width;
[0047] The third mode determination unit is used to determine the data clipping mode based on the data clipping rule and the data range.
[0048] In an implementation of the second aspect, the first rule determination unit specifically includes:
[0049] A receiving unit, used for receiving the cropping information input by the user; the cropping information is used for describing the cropping requirements for the initial echo signal;
[0050] A first quantity determining unit, configured to determine the number of cropped array elements based on the cropping information;
[0051] The second rule determination unit is used to determine the data clipping rule based on the number of array elements, the number of data bits and the transmission bit width.
[0052] In an implementation manner of the second aspect, the first quantity determination unit specifically includes:
[0053] The second quantity determining unit is used to determine the quotient of the transmission bit width and the number of data bits as the number of array elements if the cropping information is a first cropping requirement; the first cropping requirement means that there is no need to splice the cropped target echo signal.
[0054] In an implementation of the second aspect, the initial echo signals within the data range all carry array element numbers; and the third manner determination unit specifically includes:
[0055] A number determination unit, used to determine the starting array element number, the ending array element number and the number of times of cropping based on the data cropping rule and the data range;
[0056] The generating unit is used to generate a data cropping mode based on the starting array element number, the ending array element number and the cropping times.
[0057] In an implementation of the second aspect, the data clipping device further includes:
[0058] The encapsulation unit is used to encapsulate the target echo signal to obtain the encapsulated target echo signal;
[0059] The transmission unit is used to transmit the encapsulated target echo signal to the terminal device through the transmission interface.
[0060] In a third aspect, an embodiment of the present application provides an ultrasonic diagnostic device, including a trolley 100, a probe 200, an operating table 300, a display screen 400, and a board 500, wherein the operating table 300 is disposed on the trolley 100, the display screen 400 is disposed on the operating table 300, the board 500 is disposed in the trolley 100, and the probe 200 is connected to the board 500 through a wiring harness;
[0061] The probe 200 is used to receive the initial echo signal;
[0062] The board 500 receives the initial echo signal, and executes the data clipping method as described in any one of the first aspects above to obtain a clipped target echo signal;
[0063] The display screen 400 is used to display an image corresponding to the target echo signal.
[0064] In a fourth aspect, an embodiment of the present application provides a board card, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the data clipping method as described in any one of the first aspects above is implemented.
[0065] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the data clipping method as described in any one of the above-mentioned first aspects is implemented.
[0066] In a sixth aspect, an embodiment of the present application provides a computer program product. When the computer program product runs on a board, the board can execute the data clipping method described in any one of the first aspects above. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0068] Figure 1 is a schematic diagram of the structure of an ultrasonic diagnostic device provided in some embodiments of the present application;
[0069] Figure 2 It is a schematic diagram of the data transmission principle provided by some embodiments of the present application;
[0070] Figure 3 It is a schematic diagram of the data clipping principle provided in some embodiments of the present application;
[0071] Figure 4 is a flow chart of implementing the data clipping method provided in some embodiments of the present application;
[0072] Figure 5 is a specific implementation flow chart of step S102 in the data clipping method provided in some embodiments of the present application;
[0073] Figure 6 is a specific implementation flow chart of step S203 in the data clipping method provided in some embodiments of the present application;
[0074] Figure 7 is a specific implementation flow chart of step S302 in the data clipping method provided in some embodiments of the present application;
[0075] Figure 8 is a schematic diagram of the structure of a data clipping device provided in some embodiments of the present application;
[0076] Fig. 9 It is a schematic diagram of the structure of the board provided in some embodiments of the present application. DETAILED DESCRIPTION
[0077] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0078] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0079] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0080] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0081] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0082] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0083] In practical applications, in the medical field, not all echo signals collected in units of ultrasound transmission and reception are used for imaging processing, that is, useless data (data not used for imaging) exists in the collected echo signals. Therefore, it is necessary to perform cropping processing on the collected echo signals.
[0084] For example, see Figure 1 , Figure 1 Schematic diagram of the structure of the ultrasonic diagnostic equipment provided in some embodiments of the present application. Figure 1 As shown, the ultrasonic diagnostic device 1 includes: a trolley 100, a probe 200, an operating table 300, a display screen 400, and a board 500. The operating table 300 is arranged on the trolley 100, the display screen 400 is arranged on the operating table 300, the board 500 is arranged in the trolley 100, and the probe 200 is connected to the board 500 by wire through a wire harness.
[0085] The probe 200 is used to receive the initial echo signal.
[0086] In actual applications, since the probe 200 in the ultrasonic diagnostic equipment 1 is usually used to send ultrasonic waves into human tissue and then receive ultrasonic waves reflected from the above-mentioned sent ultrasonic waves, in one implementation of an embodiment of the present application, the probe 200 can be used to transmit a signal and receive an initial echo signal reflected from the transmitted signal.
[0087] In some possible embodiments, after receiving the initial echo signal, the probe 200 may send the initial echo signal to the board 500 .
[0088] In the embodiment of the present application, the board 500 receives an initial echo signal and performs a clipping process on the initial echo signal to obtain a clipped target echo signal.
[0089] It should be noted that the data clipping method for the board 500 to clip the initial echo signal can be referred to as follows. Figures 4 to 7 The implementation process corresponding to any method embodiment will not be described in detail here.
[0090] In some possible embodiments, after obtaining the target echo signal, the board 500 may process the target echo signal based on an existing signal processing method to obtain ultrasonic data, and send the ultrasonic data to the display screen 400 .
[0091] In other possible embodiments, after obtaining the target echo signal, the board card 500 can send the target echo signal to the remaining boards used to perform signal processing on the target echo signal, so that the remaining boards can process the target echo signal based on the existing signal processing method to obtain ultrasonic data, and send the ultrasonic data to the display screen 400.
[0092] In the embodiment of the present application, the display screen 400 is used to display an image corresponding to the above-mentioned target echo signal.
[0093] See also Figure 2 , Figure 2 Schematic diagram of data transmission principle provided by an embodiment of the present application. Figure 2 As shown, when the board includes a field programmable gate array (FPGA) chip, the initial echo signal is transmitted to the field programmable gate array chip in the board through the deserializer (Serdes) in the board, and the field programmable gate array chip divides the initial echo signal into two signals based on the serial communication protocol of high-speed differential signal transmission. Among them, one signal is the data value itself (usually a positive voltage), and the other signal is a reference signal (negative voltage) used to indicate the starting edge of the initial echo signal. Afterwards, the above two signals are respectively cached in the first-in-first-out data buffer (First Input First Output, FIFO) 10 corresponding to each other, and then the above two signals are respectively controlled by the write operation of the respective random access memory (Double Data Rate, DDR). Afterwards, the above two signals are transmitted to the respective random access memory controller 11, and then each performs the random access memory read operation control. Then, the above two signals are respectively cached in the first-in-first-out data buffer 10 corresponding to each other.
[0094] After the above two signals are transmitted to the data inspection module 12, the data inspection module can perform data inspection on the initial echo signal based on the above two signals, and obtain the initial echo signal based on the two signals, and encapsulate the initial echo signal according to the first set format to obtain the encapsulated first data. Then, the first data is transmitted to the first-in-first-out data buffer 10 for data caching. Afterwards, the first data is converted into the second data of the second set format through the data conversion processing of the data conversion module 13, and is transmitted to the data clipping module 14 for data clipping processing to obtain the target echo signal. Afterwards, the board can transmit the target echo signal to the terminal device for ultrasonic imaging through the transmission interface 15.
[0095] The first setting format and the second setting format can be set according to actual needs and are not limited here. In some possible embodiments, the second setting format can be set to a data format corresponding to the AXI_STREAM interface.
[0096] The transmission interface 15 may be a high-speed serial computer expansion bus standard (Peripheral Component Interconnect Express, PCIe) interface.
[0097] Terminal devices include but are not limited to laptops, desktop computers, and computers.
[0098] See also Figure 3 , Figure 3 Schematic diagram of the data clipping principle provided by an embodiment of the present application. Figure 3 As shown, the data clipping module 14 in the field programmable gate array chip can perform data clipping processing on the initial echo signal based on the data clipping method to obtain the target echo signal. Then, the board can transmit the target echo signal to the first-in-first-out data buffer 10 for data caching. After that, the target echo signal is converted into third data in a second set format through the data conversion processing of the data conversion module 13. Finally, the board can transmit the third data to a terminal device for ultrasonic imaging through a transmission interface.
[0099] It should be noted that the above-mentioned data clipping method is used to perform data clipping on the initial echo signal to obtain the target echo signal. Specifically, the data clipping of the initial echo signal can be achieved through the method embodiments corresponding to the following figure, which will not be elaborated here.
[0100] See also Figure 4 , Figure 4 This is a flow chart of a data clipping method provided in an embodiment of the present application. In the embodiment of the present application, the execution subject of the data clipping method is a board.
[0101] It should be noted that a field programmable gate array chip is provided in the board.
[0102] like Figure 4 As shown, the data clipping method provided in an embodiment of the present application may include S101 to S103, which are described in detail as follows:
[0103] In S101, an initial echo signal and a data transmission requirement of the board are obtained.
[0104] In practical applications, the board is used to collect the initial echo signal generated by the probe in the ultrasonic diagnostic equipment, and transmit the initial echo signal to the terminal device, so that the terminal device performs ultrasonic imaging processing based on the initial echo signal.
[0105] In the embodiment of the present application, when the board detects that it has collected the initial echo signal, it indicates that the board needs to perform data cropping processing on the collected initial echo signal in a timely manner. Therefore, the board can obtain its own data transmission requirements.
[0106] In some possible embodiments, when the board is provided with a field programmable gate array chip, the above data transmission requirements may include but are not limited to the transmission bit width when the field programmable gate array chip transmits data.
[0107] In S102, based on the data transmission requirements and the initial echo signal, a data clipping method corresponding to the board is determined.
[0108] In the embodiment of the present application, in order to ensure that the data cropping method meets both the data transmission requirements of the board and the subsequent imaging requirements, the board can determine the data cropping method corresponding to the board based on the data transmission requirements and the initial echo signal.
[0109] In one embodiment of the present application, when the board includes a field programmable gate array chip, and the data transmission requirement includes the transmission bit width when the field programmable gate array chip transmits data, in order to further improve the accuracy of determining the data clipping method and ensure the success rate of subsequent ultrasonic imaging, the board can specifically be as follows: Figure 5 Steps S201 to S203 shown implement step S102, which are described in detail as follows:
[0110] In S201 , based on the initial echo signal, a weight coefficient corresponding to the initial echo signal is acquired.
[0111] In S202, based on the weight coefficient, the data range of the valid data in the initial echo signal is determined.
[0112] In this embodiment, since ultrasound imaging requires the use of beamforming technology, beamforming is to perform weighted summation operations on the signals received by the array according to weight coefficients, and finally obtain spatial information in a specific direction. Therefore, the board can obtain the weight coefficient corresponding to the initial echo signal.
[0113] It should be noted that the above initial echo signal includes multiple data, and each data corresponds to a weight coefficient. Therefore, in this embodiment, the board can determine the data range of valid data in the initial echo signal based on the weight coefficient of each data in the above initial echo signal.
[0114] In some possible embodiments, since the data with a larger weight coefficient has a greater impact on ultrasonic imaging, that is, it is more important to ultrasonic imaging, the board can compare the weight coefficients of each data in the above-mentioned initial echo signal with the first threshold in sequence, and determine multiple data with weight coefficients greater than the first threshold as valid data in the initial echo signal. Among them, the first threshold can be determined according to actual needs and is not limited here.
[0115] It should be noted that, since each data in the initial echo signal carries a data number, the board can determine the data range of the valid data according to the data number corresponding to each valid data.
[0116] In S203, a data clipping method is determined based on the transmission bit width and the data range.
[0117] In this embodiment, after obtaining the data range of valid data in each initial echo signal, the board can determine the data clipping method based on the data range and the transmission bit width of the field programmable gate array chip.
[0118] In one embodiment of the present application, when the data information also includes the number of data bits of each array element in the probe corresponding to each initial echo signal, in order to further improve the accuracy of determining the data clipping method, and further improve the accuracy and efficiency of data clipping, the board card can specifically be as follows: Figure 6 The steps S301 to S303 shown execute step S203, which is described in detail as follows:
[0119] In S301, the number of data bits of each array element in the probe corresponding to the initial echo signal is determined.
[0120] In S302, based on the number of data bits and the transmission bit width, a data clipping rule of the field programmable gate array chip is determined.
[0121] In practical applications, since the probe includes multiple array elements, the initial echo signal also includes data from multiple array elements. Therefore, the board can determine the number of array elements to be cropped for the field programmable gate array chip based on the number of data bits and the transmission bit width, and determine the data cropping rules based on the number of array elements.
[0122] In one embodiment of the present application, in order to ensure that data does not need to be padded with zeros or spliced during transmission, thereby greatly reducing the consumption of logic resources of the field programmable gate array chip, the board can calculate the quotient of the transmission bit width and the number of data bits, and directly determine the quotient as the number of array elements cut by the field programmable gate array chip, so that the board can obtain valid data under the number of array elements. Afterwards, since the number of bits of valid data under the number of array elements is equal to the transmission bit width, the field programmable gate array chip can transmit all the valid data under the number of array elements to the terminal device at one time without performing additional operations (such as zero padding and splicing operations, etc.).
[0123] For example, assuming that the transmission bit width is 512 bits and the number of data bits of each array element is 32 bits, the board can calculate that the quotient of the transmission bit width and the number of data bits is 16. Therefore, the board can determine that the number of cropped array elements is 16.
[0124] In another embodiment of the present application, when the number of array elements is too large, it is easy to cause the data corresponding to a certain array element in the initial echo signal corresponding to the number of cropped array elements to be invalid data, and the invalid data cannot be cropped out. Therefore, in order to further improve the accuracy of data cropping, the board can calculate the quotient of the transmission bit width and the number of data bits, and determine a first value less than the quotient as the number of array elements cropped by the field programmable gate array chip, so as to improve the success rate of cropping the above-mentioned invalid data.
[0125] For example, assuming that the transmission bit width is 512 bits and the number of data bits of each array element is 32 bits, the board can calculate that the quotient of the transmission bit width and the number of data bits is 16. Therefore, the board can determine that the number of array elements to be pruned is 8 or 4, which is less than 16.
[0126] In another embodiment of the present application, in order to meet the user's cutting needs and improve the user experience, the board card can be specifically configured as follows: Figure 7 Steps S401 to S403 shown execute step S301, which are described in detail as follows:
[0127] In S401, the cropping information input by the user is received; the cropping information is used to describe the cropping requirement for the initial echo signal.
[0128] In S402, the number of cropped array elements is determined based on the cropping information.
[0129] In S403, a data clipping rule is determined based on the number of array elements, the number of data bits, and the transmission bit width.
[0130] In this embodiment, the user can input the tailoring information required by the user through the display interface of the terminal device communicating with the board, wherein the tailoring information is used to describe the tailoring requirements for the initial echo signal.
[0131] The cropping information includes but is not limited to: a first cropping requirement and a second cropping requirement, wherein the first cropping requirement refers to not needing to splice the cropped target echo signals, and the second cropping requirement refers to improving the cropping accuracy.
[0132] In one embodiment of the present application, when the board detects that the cropping information is the first cropping requirement, the board may determine the quotient of the transmission bit width and the number of data bits as the number of array elements.
[0133] In another embodiment of the present application, when the board detects that the cropping information is the second cropping requirement, the board may determine a first value that is smaller than the quotient of the transmission bit width and the number of data bits as the number of array elements.
[0134] In S303, a data clipping method is determined based on the data clipping rule and the data range.
[0135] In this embodiment, after obtaining the data clipping rule, the board can determine the data clipping method based on the data clipping rule and the data range of the valid data.
[0136] In one embodiment of the present application, when the initial echo signals within the data range all carry the array element number, in order to improve the accuracy of the generated data clipping method, and thus improve the accuracy and efficiency of data clipping, the board can specifically perform step S303 according to the following steps, which are described in detail as follows:
[0137] Based on the data clipping rules and data range, determine the starting array element number, the ending array element number and the number of clipping times;
[0138] A data cropping method is generated based on the starting array element number, the ending array element number, and the number of cropping times.
[0139] In this embodiment, since the initial echo signals within the data range all carry the array element number, the board can determine the starting array element number, the ending array element number and the number of cropping times based on the data cropping rules, and based on the starting array element number and the ending array element number, divide the initial echo signals within the data range into multiple cropping queues, and the number of cropping queues is the same as the number of cropping times.
[0140] It should be noted that each cropping queue includes a starting array element number and an ending array element number.
[0141] Afterwards, the board may generate a data clipping information table based on the multiple clipping queues, and determine the data clipping information table as the data clipping mode.
[0142] In some possible embodiments, in combination with S401 to S403, when the data clipping rule includes the number of array elements, the data clipping information table is as follows:
[0143] Table 1
[0144]
[0145] Among them, Start represents the starting element number, End represents the ending element number, and Count represents the number of cropping times.
[0146] In S103, based on the data clipping method, the control board performs clipping processing on the initial echo signal to obtain the target echo signal.
[0147] In the embodiment of the present application, after determining the data clipping method, the board can control the board to process the initial echo signal based on the data clipping method, so as to obtain a clipped target echo signal.
[0148] In some possible embodiments, when the board includes a field programmable gate array chip, the board can control the field programmable gate array chip to perform a cropping process on the initial echo signal based on the data cropping method to obtain a cropped target echo signal.
[0149] As can be seen from the above, a data clipping method provided by an embodiment of the present application obtains the initial echo signal and the data transmission requirements of the board; determines the data clipping method corresponding to the board based on the data transmission requirements and the initial echo signal; and controls the board to clip the initial echo signal based on the data clipping method to obtain the target echo signal. This method can perform data clipping when the board collects the initial echo signal, thereby realizing the real-time performance of data clipping and reducing the amount of data transmitted, so that the terminal device receiving the data transmitted by the board can directly perform imaging based on the target echo signal, which not only avoids the resource consumption caused by the terminal device clipping the initial echo signal, but also improves the imaging efficiency. At the same time, the data clipping method determined based on the data transmission requirements and the initial echo signal improves the clipping efficiency and clipping accuracy of the echo signal.
[0150] In the first embodiment of the present application, after obtaining the target echo signal, the board can also encapsulate the target echo signal to obtain an encapsulated target echo signal. Afterwards, the board can transmit the encapsulated target echo signal to the terminal device through the transmission interface, so that the terminal device performs ultrasonic imaging based on the target echo signal.
[0151] It can be seen from the above that since the target echo signal is the data after being clipped, the amount of data transmitted through the transmission interface is reduced, thereby improving the bandwidth utilization of the transmission interface.
[0152] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0153] Corresponding to a data clipping method described in the above embodiment, Figure 8 The structure diagram of a data clipping device provided by an embodiment of the present application is shown. For the convenience of explanation, only the part related to the embodiment of the present application is shown. Figure 8 The data clipping device 500 includes: a first acquisition unit 51, a first mode determination unit 52 and a control unit 53. Among them:
[0154] The first acquisition unit 51 is used to acquire the initial echo signal and the data transmission requirement of the board.
[0155] The first mode determination unit 52 is used to determine the data clipping mode corresponding to the board based on the data transmission requirement and the initial echo signal.
[0156] The control unit 53 is used to control the board to perform cropping processing on the initial echo signal based on the data cropping method to obtain the target echo signal.
[0157] In one embodiment of the present application, the board includes a field programmable gate array chip; accordingly, the data transmission requirement includes the transmission bit width of the field programmable gate array chip; the first mode determination unit 52 specifically includes: a second acquisition unit, a range determination unit and a second mode determination unit. Among them:
[0158] The second acquisition unit is used to acquire a weight coefficient corresponding to the initial echo signal based on the initial echo signal.
[0159] The range determination unit is used to determine the data range of valid data in the initial echo signal based on the weight coefficient.
[0160] The second mode determination unit is used to determine the data clipping mode based on the transmission bit width and the data range.
[0161] In one embodiment of the present application, the second mode determination unit specifically includes: a digit determination unit, a first rule determination unit and a third mode determination unit. Wherein:
[0162] The bit number determination unit is used to determine the data bit number of each array element in the probe corresponding to the initial echo signal.
[0163] The first rule determination unit is used to determine the data clipping rule of the field programmable gate array chip based on the number of data bits and the transmission bit width.
[0164] The third mode determination unit is used to determine the data clipping mode based on the data clipping rule and the data range.
[0165] In one embodiment of the present application, the first rule determination unit specifically includes: a receiving unit, a first quantity determination unit and a second rule determination unit.
[0166] The receiving unit is used to receive the clipping information input by the user; the clipping information is used to describe the clipping requirements for the initial echo signal.
[0167] The first quantity determining unit is used to determine the quantity of cropped array elements based on the cropping information.
[0168] The second rule determination unit is used to determine the data clipping rule based on the number of array elements, the number of data bits and the transmission bit width.
[0169] In one embodiment of the present application, the first quantity determination unit specifically includes: a second quantity determination unit.
[0170] The second number determination unit is used to determine the quotient of the transmission bit width and the number of data bits as the number of array elements if the cropping information is a first cropping requirement; the first cropping requirement means that there is no need to splice the cropped target echo signals.
[0171] In one embodiment of the present application, the initial echo signals within the data range all carry array element numbers; the third mode determination unit specifically includes: a number determination unit and a generation unit. Among them:
[0172] The number determination unit is used to determine the starting array element number, the ending array element number and the number of times of cropping based on the data cropping rule and the data range.
[0173] The generating unit is used to generate a data clipping method based on the starting array element number, the ending array element number and the clipping times.
[0174] In one embodiment of the present application, the data clipping device 500 further includes: an encapsulation unit and a transmission unit.
[0175] The encapsulation unit is used to encapsulate the target echo signal to obtain the encapsulated target echo signal.
[0176] The transmission unit is used to transmit the encapsulated target echo signal to the terminal device through the transmission interface.
[0177] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0178] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0179] Fig. 9 This is a schematic diagram of the structure of a board provided in one embodiment of the present application. Fig. 9 As shown, the board 6 of this embodiment includes: at least one processor 60 ( Fig. 9 Only one is shown in the figure) a processor, a memory 61, and a computer program 62 stored in the memory 61 and executable on the at least one processor 60, and when the processor 60 executes the computer program 62, the steps in any of the above-mentioned data clipping method embodiments are implemented.
[0180] The board may include, but is not limited to, a processor 60 and a memory 61. Those skilled in the art will appreciate that Fig. 9 It is only an example of the board 6 and does not constitute a limitation on the board 6. It may include more or less components than shown in the figure, or a combination of certain components, or different components, for example, it may also include input and output devices, network access devices, etc.
[0181] The processor 60 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0182] In some embodiments, the memory 61 may be an internal storage unit of the board 6, such as the memory of the board 6. In other embodiments, the memory 61 may also be an external storage device of the board 6, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the board 6. Further, the memory 61 may also include both the internal storage unit of the board 6 and an external storage device. The memory 61 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program. The memory 61 may also be used to temporarily store data that has been output or is to be output.
[0183] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0184] An embodiment of the present application provides a computer program product. When the computer program product runs on a board, the board can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0185] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the board, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, U disk, mobile hard disk, disk or optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0186] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0187] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A data clipping method, It is characterized in that Applied to a board, the method comprises: Obtain the initial echo signal and data transmission requirements of the board; Determining a data clipping method corresponding to the board based on the data transmission requirement and the initial echo signal; Based on the data clipping method, the board is controlled to perform clipping processing on the initial echo signal to obtain a target echo signal.
2. The data clipping method according to claim 1, It is characterized in that The board includes a field programmable gate array chip; accordingly, the data transmission requirement includes a transmission bit width of the field programmable gate array chip; and determining the data clipping method corresponding to the board based on the data transmission requirement and the initial echo signal includes: Based on the initial echo signal, obtaining a weight coefficient corresponding to the initial echo signal; Based on the weight coefficient, determining a data range of valid data in the initial echo signal; The data clipping method is determined based on the transmission bit width and the data range.
3. The data clipping method according to claim 2, It is characterized in that The determining the data clipping method based on the transmission bit width and the data range includes: Determine the number of data bits of each array element in the probe corresponding to the initial echo signal; Determining a data clipping rule for the field programmable gate array chip based on the data bit number and the transmission bit width; The data clipping method is determined based on the data clipping rule and the data range.
4. The data clipping method according to claim 3, It is characterized in that The step of determining the data clipping rule of the field programmable gate array chip based on the number of data bits and the transmission bit width includes: receiving clipping information input by a user; the clipping information is used to describe clipping requirements for the initial echo signal; Based on the cropping information, determining the number of cropped array elements; The data clipping rule is determined based on the number of array elements, the number of data bits, and the transmission bit width.
5. The data clipping method according to claim 4, It is characterized in that The determining the number of cropped array elements based on the cropping information includes: If the cropping information is a first cropping requirement, the quotient of the transmission bit width and the number of data bits is determined as the number of array elements; the first cropping requirement means that there is no need to splice the cropped target echo signal.
6. The data clipping method according to claim 3, It is characterized in that The initial echo signals within the data range all carry array element numbers; and determining the data clipping method based on the data clipping rule and the data range includes: Based on the data clipping rule and the data range, determine the starting array element number, the ending array element number and the number of clipping times; The data cropping method is generated based on the starting array element number, the ending array element number and the cropping times.
7. The data clipping method according to any one of claims 1 to 6, It is characterized in that After the board is controlled to perform cropping processing on the initial echo signal based on the data cropping method to obtain the target echo signal, the method further includes: encapsulating the target echo signal to obtain the encapsulated target echo signal; The packaged target echo signal is transmitted to the terminal device through the transmission interface.
8. A data cutting device, It is characterized in that Applied to a board, the device comprises: A first acquisition unit (51) is used to acquire an initial echo signal and a data transmission requirement of a board; A first mode determination unit (52) is used to determine the data clipping mode corresponding to the board based on the data transmission requirement and the initial echo signal; A control unit (53) is used to control the board to perform a clipping process on the initial echo signal based on the data clipping method to obtain a target echo signal.
9. An ultrasonic diagnostic device, It is characterized in that The device comprises a trolley (100), a probe (200), an operating table (300), a display screen (400), and a board (500), wherein the operating table (300) is arranged on the trolley (100), the display screen (400) is arranged on the operating table (300), the board (500) is arranged in the trolley (100), and the probe (200) is connected to the board (500) via a wire harness; The probe (200) is used to receive an initial echo signal; The board (500) receives the initial echo signal, and executes the data clipping method according to any one of claims 1 to 7 to obtain a clipped target echo signal; The display screen (400) is used to display an image corresponding to the target echo signal.
10. A board comprising a processor (60), a memory (61), and a computer program (62) stored in the memory (61) and executable on the processor (60), It is characterized in that When the processor (60) executes the computer program (62), the data clipping method according to any one of claims 1 to 7 is implemented.
