Storage method of ultrasonic movie file, ultrasonic diagnosis device and readable storage medium

文档序号:635854 发布日期:2021-05-11 浏览:16次 中文

阅读说明:本技术 超声电影文件的存储方法、超声诊断设备及可读存储介质 (Storage method of ultrasonic movie file, ultrasonic diagnosis device and readable storage medium ) 是由 史志伟 王彦 董永强 于 2019-11-11 设计创作,主要内容包括:本申请公开了一种超声电影文件的存储方法,涉及医疗检测技术领域,所述方法包括:获取待存储超声电影文件,所述待存储超声电影文件包含至少一帧图像的第一位宽的图像数据;接收超声电影文件的存储指令;响应于所述存储指令,确定所述待存储超声电影文件所包含的至少一帧图像对应的动态范围;根据所述动态范围对所述至少一帧图像的第一位宽的图像数据进行第一特征映射变换,得到至少一帧图像的第二位宽的图像数据,其中,所述第二位宽小于所述第一位宽;存储所述至少一帧图像的第二位宽的图像数据以及所述至少一帧图像对应的动态范围。实现了对大位宽超声电影文件的不失真存储,保证超声电影文件存储完整性的同时,降低超声电影文件的存储量,提高存储效率。(The application discloses a storage method of an ultrasonic movie file, which relates to the technical field of medical detection, and comprises the following steps: acquiring an ultrasonic movie file to be stored, wherein the ultrasonic movie file to be stored comprises image data with a first bit width of at least one frame of image; receiving a storage instruction of an ultrasonic movie file; responding to the storage instruction, and determining a dynamic range corresponding to at least one frame of image contained in the ultrasound movie file to be stored; performing first feature mapping transformation on image data with a first bit width of the at least one frame of image according to the dynamic range to obtain image data with a second bit width of the at least one frame of image, wherein the second bit width is smaller than the first bit width; and storing second bit wide image data of the at least one frame of image and the corresponding dynamic range of the at least one frame of image. The method and the device realize undistorted storage of the large-bit-width ultrasonic film file, ensure the storage integrity of the ultrasonic film file, reduce the storage capacity of the ultrasonic film file and improve the storage efficiency.)

1. A method for storing an ultrasound cine file, the method comprising:

acquiring an ultrasonic movie file to be stored, wherein the ultrasonic movie file to be stored comprises image data with a first bit width of at least one frame of image;

receiving a storage instruction of an ultrasonic movie file;

responding to the storage instruction, and determining a dynamic range corresponding to at least one frame of image contained in the ultrasound movie file to be stored;

performing first feature mapping transformation on image data with a first bit width of the at least one frame of image according to the dynamic range to obtain image data with a second bit width of the at least one frame of image, wherein the second bit width is smaller than the first bit width;

and storing second bit wide image data of the at least one frame of image and the corresponding dynamic range of the at least one frame of image.

2. The method according to claim 1, wherein the determining a dynamic range corresponding to at least one frame of image included in the ultrasound movie file to be stored comprises:

acquiring the maximum gray value and the minimum gray value of pixel points of each frame of image in at least one frame of image contained in the ultrasound movie file to be stored;

and determining a dynamic range corresponding to each frame of image in at least one frame of image contained in the ultrasound movie file to be stored according to the maximum gray value and the minimum gray value of the pixel point of each frame of image.

3. The method according to claim 1, wherein the determining a dynamic range corresponding to at least one frame of image included in the ultrasound movie file to be stored comprises:

acquiring a first quantile and a second quantile of each frame of image in at least one frame of image contained in the ultrasound movie file to be stored, wherein the first quantile is greater than the second quantile;

and determining a dynamic range corresponding to at least one frame of image contained in the ultrasound movie file to be stored according to the first and second scores of each frame of image.

4. The method according to claim 1, wherein the determining a dynamic range corresponding to at least one frame of image included in the ultrasound movie file to be stored comprises:

acquiring image distribution characteristics of each frame of image in at least one frame of image contained in the ultrasound movie file to be stored, wherein the image distribution characteristics comprise a mean value and a standard deviation of the image;

and obtaining a dynamic range corresponding to each frame of image in the at least one frame of image contained in the ultrasound movie file to be stored according to the mean value and the standard deviation of each frame of image in the at least one frame of image.

5. The method according to claim 1, wherein the determining a dynamic range corresponding to at least one frame of image included in the ultrasound movie file to be stored comprises:

acquiring a gray scale ratio corresponding to each frame of image in at least one frame of image contained in the ultrasonic movie file to be stored so as to determine a gray scale maximum value and a gray scale minimum value of each gray scale segment area of each frame of image;

and determining a dynamic range corresponding to each frame of image in at least one frame of image contained in the ultrasound movie file to be stored according to the maximum gray value and the minimum gray value of each gray scale segment area of each frame of image.

6. The method according to any one of claims 1 to 5, wherein said performing a first feature mapping transformation on the image data with the first bit width of the at least one frame of image according to the dynamic range to obtain the image data with the second bit width of the at least one frame of image comprises:

and performing first feature mapping transformation on the image data with the first bit width of the at least one frame of image according to the boundary value included in the dynamic range to obtain image data with a second bit width of the at least one frame of image, wherein the first bit width is 16 bits, and the second bit width is 8 bits.

7. The method according to claim 1, wherein said storing the second bit wide image data of the at least one frame of image and the corresponding dynamic range of the at least one frame of image comprises:

and storing second-bit-width image data of a target frame in the at least one frame of image in a data field of a target frame file, storing the dynamic range of the target frame in the at least one frame of image in a parameter field of the target frame file, and marking the target frame file by identification information.

8. The method of claim 1, wherein the obtaining an ultrasound movie file to be stored comprises:

acquiring an ultrasonic movie file to be stored from a buffer or a cloud server; or the like, or, alternatively,

and sending ultrasonic waves to a target object, and obtaining a corresponding ultrasonic echo signal according to the received ultrasonic echo so as to process the ultrasonic echo signal to obtain an ultrasonic movie file to be stored.

9. The method according to claim 7, wherein after storing the second bit wide image data of the at least one frame of image and the corresponding dynamic range of the at least one frame of image, further comprising:

and storing the frame file in the local memory or an associated cloud server.

10. The method of claim 1, further comprising:

when a file viewing instruction is received, acquiring second bit wide image data of the at least one frame of image and a corresponding dynamic range;

performing second feature mapping transformation on the image data with the second bit width of the at least one frame of image according to the dynamic range to obtain the image data with the first bit width of the at least one frame of image;

and processing the image data with the first bit width of the at least one frame of image to obtain a corresponding ultrasonic movie file for display.

11. The method of claim 7, further comprising:

when a file viewing instruction is received, identifying identification information contained in the file viewing instruction;

acquiring a corresponding frame file according to the identification information;

and reading second bit wide image data of the at least one frame image contained in a data field of the frame file and the dynamic range contained in a parameter field of the frame file.

12. The method according to claim 10, wherein after performing the second feature mapping transformation on the second bit wide image data of the at least one frame of image according to the dynamic range to obtain the first bit wide image data of the at least one frame of image, the method further comprises:

reading frame file information contained in the file viewing instruction, and determining target image data in first bit width image data of the at least one frame of image according to the frame file information so as to process the target image data to obtain a target ultrasonic movie file.

13. The method according to any one of claims 10 to 12, wherein after processing the first bit wide image data of the at least one frame of image to obtain the corresponding ultrasound cine file for presentation, further comprising:

and when an input gain adjusting instruction is received, performing gain adjustment on the displayed ultrasonic movie file according to the gain adjusting instruction, wherein the gain adjustment comprises at least one of brightness adjustment and contrast adjustment.

14. An ultrasonic diagnostic apparatus characterized by comprising:

a probe;

the transmitting circuit excites the probe to transmit ultrasonic waves to a target object;

a receiving circuit which controls the probe to receive an ultrasonic echo returned from the target object to obtain an ultrasonic echo signal;

a processor that processes the ultrasound echo signals to obtain an ultrasound image of the target object;

wherein the processor further performs the steps of:

acquiring an ultrasonic movie file to be stored, wherein the ultrasonic movie file to be stored comprises image data with a first bit width of at least one frame of image;

receiving a storage instruction of an ultrasonic movie file;

responding to the storage instruction, and determining a dynamic range corresponding to at least one frame of image contained in the ultrasound movie file to be stored;

performing first feature mapping transformation on image data with a first bit width of the at least one frame of image according to the dynamic range to obtain image data with a second bit width of the at least one frame of image, wherein the second bit width is smaller than the first bit width;

and storing second bit wide image data of the at least one frame of image and the corresponding dynamic range of the at least one frame of image.

15. The ultrasound diagnostic apparatus according to claim 14, wherein the processor, when implementing the determining of the dynamic range corresponding to at least one frame of image contained in the ultrasound movie file to be stored, further performs the following steps:

acquiring the maximum gray value and the minimum gray value of pixel points of each frame of image in at least one frame of image contained in the ultrasound movie file to be stored;

and determining a dynamic range corresponding to each frame of image in at least one frame of image contained in the ultrasound movie file to be stored according to the maximum gray value and the minimum gray value of the pixel point of each frame of image.

16. The ultrasound diagnostic apparatus according to claim 14, wherein the processor, when implementing the determining of the dynamic range corresponding to at least one frame of image contained in the ultrasound movie file to be stored, further performs the following steps:

acquiring a first quantile and a second quantile of each frame of image in at least one frame of image contained in the ultrasound movie file to be stored, wherein the first quantile is greater than the second quantile;

and determining a dynamic range corresponding to at least one frame of image contained in the ultrasound movie file to be stored according to the first and second scores of each frame of image.

17. The ultrasound diagnostic apparatus according to claim 14, wherein the processor, when implementing the determining of the dynamic range corresponding to at least one frame of image contained in the ultrasound movie file to be stored, further performs the following steps:

acquiring image distribution characteristics of each frame of image in at least one frame of image contained in the ultrasound movie file to be stored, wherein the image distribution characteristics comprise a mean value and a standard deviation of the image;

and obtaining a dynamic range corresponding to each frame of image in the at least one frame of image contained in the ultrasound movie file to be stored according to the mean value and the standard deviation of each frame of image in the at least one frame of image.

18. The ultrasound diagnostic apparatus according to claim 14, wherein the processor, when implementing the determining of the dynamic range corresponding to at least one frame of image contained in the ultrasound movie file to be stored, further performs the following steps:

acquiring a gray scale ratio corresponding to each frame of image in at least one frame of image contained in the ultrasonic movie file to be stored so as to determine a gray scale maximum value and a gray scale minimum value of each gray scale segment area of each frame of image;

and determining a dynamic range corresponding to each frame of image in at least one frame of image contained in the ultrasound movie file to be stored according to the maximum gray value and the minimum gray value of each gray scale segment area of each frame of image.

19. The ultrasonic diagnostic apparatus according to any one of claims 14 to 18, wherein the processor further performs the following steps when implementing the first feature mapping transformation on the image data with the first bit width of the at least one frame image according to the dynamic range to obtain the image data with the second bit width of the at least one frame image:

and performing first feature mapping transformation on the image data with the first bit width of the at least one frame of image according to the boundary value included in the dynamic range to obtain image data with a second bit width of the at least one frame of image, wherein the first bit width is 16 bits, and the second bit width is 8 bits.

20. The ultrasonic diagnostic apparatus according to claim 19, wherein the processor in implementing the storing of the second bit wide image data of the at least one frame of image and the corresponding dynamic range of the at least one frame of image further performs the steps of:

and storing second-bit-width image data of a target frame in the at least one frame of image in a data field of a target frame file, storing the dynamic range of the target frame in the at least one frame of image in a parameter field of the target frame file, and marking the target frame file by identification information.

21. The ultrasound diagnostic apparatus according to claim 14, wherein the processor, in implementing the acquiring an ultrasound movie file to be stored, further performs the steps of:

acquiring an ultrasonic movie file to be stored from a buffer or a cloud server; or the like, or, alternatively,

and sending ultrasonic waves to a target object, and obtaining a corresponding ultrasonic echo signal according to the received ultrasonic echo so as to process the ultrasonic echo signal to obtain an ultrasonic movie file to be stored.

22. The ultrasonic diagnostic apparatus according to claim 20, wherein the processor further performs the following steps after implementing the storing of the second bit wide image data of the at least one frame of image and the corresponding dynamic range of the at least one frame of image:

and storing the frame file in the local memory or an associated cloud server.

23. The ultrasonic diagnostic apparatus according to claim 14, characterized in that the processor further performs the steps of:

when a file viewing instruction is received, acquiring second bit wide image data of the at least one frame of image and a corresponding dynamic range;

performing second feature mapping transformation on the image data with the second bit width of the at least one frame of image according to the dynamic range to obtain the image data with the first bit width of the at least one frame of image;

and processing the image data with the first bit width of the at least one frame of image to obtain a corresponding ultrasonic movie file for display.

24. The ultrasonic diagnostic apparatus according to claim 20, characterized in that the processor further performs the steps of:

when a file viewing instruction is received, identifying identification information contained in the file viewing instruction;

acquiring a corresponding frame file according to the identification information;

and reading second bit wide image data of the at least one frame image contained in a data field of the frame file and the dynamic range contained in a parameter field of the frame file.

25. The ultrasonic diagnostic apparatus according to claim 23, wherein the processor further performs the following steps after implementing the second feature mapping transformation on the image data with the second bit width of the at least one frame image according to the dynamic range to obtain the image data with the first bit width of the at least one frame image:

acquiring a second mapping transformation formula corresponding to the second feature mapping transformation;

and calculating second pixel point information corresponding to each pixel point in the at least one frame of image data with the second bit width according to the second feature mapping transformation formula and the boundary value contained in the dynamic range, so as to obtain at least one frame of image data with the first bit width according to the second pixel point information.

26. The ultrasound diagnostic apparatus according to any one of claims 23 to 25, wherein the processor further performs the following steps after processing the first bit wide image data of the at least one frame of image to obtain the corresponding ultrasound cine file for display:

and when an input gain adjusting instruction is received, performing gain adjustment on the displayed ultrasonic movie file according to the gain adjusting instruction, wherein the gain adjustment comprises at least one of brightness adjustment and contrast adjustment.

27. A computer-readable storage medium storing a computer program, wherein the computer-readable instructions, when executed by the processor, cause one or more processors to perform the method of storing an ultrasound movie file according to any one of claims 1 to 13.

Technical Field

The invention relates to the technical field of medical detection, in particular to a storage method of an ultrasonic movie file, ultrasonic diagnosis equipment and a computer readable storage medium.

Background

In the field of medical image diagnosis, ultrasonic diagnostic apparatuses are most widely used in their relatively inexpensive and substantially non-invasive nature. The movie playback is an indispensable function of the ultrasonic diagnosis equipment and is an important means of the ultrasonic diagnosis. The functions of movie playback refer to: the image data obtained during real-time scanning is simultaneously stored in a memory, and the user can reproduce the image data in the memory on the display device in a speed-controlled manner in the frozen state. This way of playback is obvious to the physician's help in diagnosing the disease.

The playback of the movie file is used for accurately judging diseases, so that the storage of the movie file needs to be guaranteed to be undistorted when the movie file is stored. When storing a movie file, a general storage method is to store the movie file with a bit width as large as possible, so that the effect of no distortion in storage can be achieved, but the stored movie file is large, which is not favorable for transmission of image data. Therefore, another storage method exists, in which a large-bit-width movie file to be stored is intercepted under the condition that data is guaranteed not to be lost as much as possible, and only a part of the movie file is stored, but the stored movie file is still distorted.

Disclosure of Invention

The application provides storage of an ultrasound movie file to ensure the storage integrity of the ultrasound movie file.

According to a first aspect of the present application, there is provided a method for storing an ultrasound movie file, the method comprising:

acquiring an ultrasonic movie file to be stored, wherein the ultrasonic movie file to be stored comprises image data with a first bit width of at least one frame of image;

receiving a storage instruction of an ultrasonic movie file;

responding to the storage instruction, and determining a dynamic range corresponding to at least one frame of image contained in the ultrasound movie file to be stored;

performing first feature mapping transformation on the image data with the first bit width of the at least one frame of image according to the dynamic range to obtain image data with a second bit width of the at least one frame of image, wherein the second bit width is smaller than the first bit width;

and storing the second bit wide image data of the at least one frame of image and the corresponding dynamic range of the at least one frame of image.

According to a second aspect of the present application, there is also provided an ultrasonic diagnostic apparatus comprising:

a probe;

a transmitting circuit which excites the probe to transmit ultrasonic waves to a target object;

a receiving circuit which controls the probe to receive the ultrasonic echo returned from the target object so as to obtain an ultrasonic echo signal;

a processor that processes the ultrasound echo signal to obtain an ultrasound image of the target object;

wherein the processor further performs the steps of:

acquiring an ultrasonic movie file to be stored, wherein the ultrasonic movie file to be stored comprises image data with a first bit width of at least one frame of image;

receiving a storage instruction of an ultrasonic movie file;

responding to the storage instruction, and determining a dynamic range corresponding to at least one frame of image contained in the ultrasound movie file to be stored;

performing first feature mapping transformation on the image data with the first bit width of the at least one frame of image according to the dynamic range to obtain image data with a second bit width of the at least one frame of image, wherein the second bit width is smaller than the first bit width;

and storing the second bit wide image data of the at least one frame of image and the corresponding dynamic range of the at least one frame of image.

According to a third aspect of the present application, there is also provided a computer readable storage medium storing a computer program, the computer readable instructions, when executed by the processor, cause one or more processors to perform the method of storing an ultrasound cine file as described above.

When the ultrasound movie file needs to be stored, the ultrasound movie file needing to be stored is firstly acquired, then input instruction information for storing the ultrasound movie file is received, the received storage instruction is responded, a dynamic range corresponding to at least one frame of image contained in the ultrasound movie file to be stored is acquired when the storage instruction is responded, then feature mapping transformation is carried out on image data with a first bit width of at least one frame of image contained in the ultrasound movie file to be stored according to the acquired dynamic range, image data with a second bit width of at least one frame of image is acquired, wherein the first bit width is larger than the second bit width, and finally the acquired image data with the second bit width of at least one frame of image and the acquired dynamic range are stored. By converting the image data characteristics of the ultrasonic film file with high bit width into the image data with low bit width, the storage capacity of the ultrasonic film file is reduced and the storage efficiency is improved while the data storage integrity is ensured.

Drawings

FIG. 1 is a schematic flow chart illustrating a method for storing an ultrasound movie file according to an embodiment of the present application;

FIG. 2 is a graph illustrating an image data mapping curve according to an embodiment of the present application;

FIG. 3 is a schematic flow chart illustrating a method for storing an ultrasound movie file according to another embodiment of the present application;

FIG. 4 is a schematic flow chart illustrating a method for storing an ultrasound movie file according to another embodiment of the present application;

fig. 5 is a schematic diagram of a block diagram of an ultrasound diagnostic apparatus according to an embodiment of the present application.

Detailed Description

The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

The flow diagrams depicted in the figures are merely illustrative and do not necessarily include all of the elements and operations/steps, nor do they necessarily have to be performed in the order depicted. For example, some operations/steps may be decomposed, combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.

In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.

Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.

Referring to fig. 1, fig. 1 is a schematic flowchart of a method for storing an ultrasound movie file according to an embodiment of the present application.

Specifically, the storage method of the ultrasound movie file comprises the following steps:

step S101, an ultrasound movie file to be stored is obtained, wherein the ultrasound movie file to be stored comprises image data with a first bit width of at least one frame of image.

When the ultrasound movie file needs to be stored, the ultrasound movie file which needs to be stored, namely the ultrasound movie file to be stored, is acquired first, and then the ultrasound movie file to be stored is processed to realize the storage of the file.

The acquired ultrasound movie file to be stored comprises image data with a first bit width of at least one frame of image. The bit width is a data amount which can be transmitted by the memory or the video memory at one time, when the bit width of the data is larger than the bit width which can be received by a system or equipment receiving the data, the data cannot be uploaded if the data is not processed, and a common technical means is to intercept the data to upload part of the data.

In some embodiments, the source of the file when the ultrasound movie file is to be stored is obtained includes: acquiring an ultrasonic movie file to be stored from a buffer or a cloud server; or sending ultrasonic waves to the target object, and obtaining a corresponding ultrasonic echo signal according to the received ultrasonic echo so as to process the ultrasonic echo signal to obtain the ultrasonic movie file to be stored.

The acquired ultrasound movie file to be stored may be pre-existing, that is, the ultrasound movie file is acquired by the ultrasound diagnostic device but is not uploaded for storage, the ultrasound movie file at this time may be stored in a corresponding buffer, or may be stored in a related cloud server, and when the ultrasound movie file needs to be uploaded for storage, the ultrasound movie file is acquired correspondingly for uploading.

In addition, if the ultrasound movie file to be stored is acquired in real time and uploaded for storage, the ultrasound movie file to be stored is acquired by scanning the ultrasound diagnostic equipment in real time.

And S102, receiving a storage instruction of the ultrasonic movie file.

After the stored ultrasound movie file is obtained according to the corresponding file acquisition channel, the input storage instruction of the ultrasound movie file is received, so that the storage of the ultrasound movie file to be stored is completed by responding to the received storage instruction.

Step S103, responding to the storage instruction, and determining a dynamic range corresponding to at least one frame of image contained in the ultrasound movie file to be stored.

After receiving the input storage instruction, the storage instruction is responded to store the file. When the storage instruction is responded, the fact that the received ultrasound movie file to be stored needs to be stored is determined, and at the moment, the dynamic range corresponding to at least one frame of image contained in the acquired ultrasound movie file to be stored is determined.

When the ultrasound movie file to be stored is stored, in order to ensure the integrity of data storage, the data of each frame of image needs to be stored, so that when a corresponding received storage instruction is received, the dynamic range corresponding to at least one frame of image contained in the ultrasound movie file to be stored is determined, that is, several frames of images correspond to several dynamic ranges; for example, the first frame image corresponds to the first dynamic range, the second frame image corresponds to the second dynamic range, … …, and the nth frame image corresponds to the nth dynamic range.

When a dynamic range corresponding to a frame of image is obtained, feature data which can be used for representing the dynamic range is obtained, for example, a boundary value of the dynamic range is directly obtained, and for example, other feature values which can be equivalent to the boundary value are obtained, or other feature values of the boundary value can be obtained by changing the feature values.

In some embodiments, determining a dynamic range corresponding to at least one frame of image included in the ultrasound movie file to be stored specifically includes: acquiring the maximum gray value and the minimum gray value of pixel points of each frame of image in at least one frame of image contained in the ultrasound movie file to be stored; and determining a dynamic range corresponding to each frame of image in at least one frame of image contained in the ultrasound movie file to be stored according to the maximum gray value and the minimum gray value of the pixel point of each frame of image.

When the dynamic range of the ultrasound movie file to be stored is obtained, the gray value of each pixel point in at least one frame of image contained in the ultrasound movie file to be stored is obtained, the maximum gray value and the minimum gray value in the gray value of the corresponding frame of image are determined by reading the gray value of each pixel point, and the gray interval formed by the maximum gray value and the minimum gray value is the dynamic range corresponding to the corresponding frame of image. Each frame of image has a corresponding dynamic range, and the dynamic ranges corresponding to all the frames of images in the ultrasound movie file to be stored can be obtained by adopting the same dynamic range acquisition mode.

In some embodiments, determining a dynamic range corresponding to at least one frame of image included in the ultrasound movie file to be stored may specifically be: acquiring a first quantile and a second quantile of each frame of image in at least one frame of image contained in the ultrasonic movie file to be stored, wherein the first quantile is greater than the second quantile; and determining a dynamic range corresponding to at least one frame of image contained in the ultrasound movie file to be stored according to the first and second scores of each frame of image.

And when the dynamic range corresponding to the ultrasonic film file to be stored is obtained, obtaining the corresponding quantile to determine the dynamic range corresponding to the ultrasonic film file to be stored. Specifically, a first quantile and a second quantile corresponding to each frame of image of the ultrasound movie file to be stored are obtained, the first quantile is larger than the second quantile, and then a corresponding dynamic range is obtained according to the first quantile and the second quantile. When the quantile of at least one frame of image contained in the ultrasound movie file to be stored is obtained, a relatively appropriate gray value can be obtained as a reference value, and then the corresponding first quantile and second quantile are obtained according to the reference value. Taking one frame image as an example, taking the maximum gray value of the frame image as a reference value, setting a 95% quantile which is 1.1 times of the reference value as a first quantile, and setting a 5% quantile which is 1.1 times of the reference value as a second quantile; and determining the first quantile as the maximum value of the dynamic range corresponding to the frame image, and determining the second quantile as the minimum value of the dynamic range corresponding to the frame image.

In some embodiments, determining a dynamic range corresponding to at least one frame of image included in the ultrasound movie file to be stored may specifically be: acquiring image distribution characteristics of each frame of image in at least one frame of image contained in the ultrasound movie file to be stored, wherein the image distribution characteristics comprise a mean value and a standard deviation of the image; and obtaining a dynamic range corresponding to each frame of image in the at least one frame of image contained in the ultrasound movie file to be stored according to the mean value and the standard deviation of each frame of image in the at least one frame of image.

Analyzing and processing each frame of image in at least one frame of image contained in the ultrasonic movie file to be stored to obtain the distribution characteristic corresponding to each frame of image, and further obtaining the dynamic range corresponding to each frame of image according to the distribution characteristic. Specifically, the gray values of the pixel points of each frame of image are read to obtain the distribution characteristics corresponding to each frame of image, where the distribution characteristics include the mean value and the standard deviation of the gray values, and then the dynamic range corresponding to the relevant frame of image is obtained according to the mean value and the standard deviation, for example, the maximum value of the dynamic range is set to be "mean +3 standard deviation", and the minimum value of the dynamic range is set to be "mean-3 standard deviation".

In some embodiments, determining a dynamic range corresponding to at least one frame of image included in the ultrasound movie file to be stored may specifically be: acquiring the gray scale ratio corresponding to each frame of image in at least one frame of image contained in the ultrasonic movie file to be stored so as to determine the maximum gray scale value and the minimum gray scale value of each gray scale segment area of each frame of image; and determining a dynamic range corresponding to each frame of image in at least one frame of image contained in the ultrasound movie file to be stored according to the maximum gray value and the minimum gray value of each gray scale segment area of each frame of image.

And acquiring a distribution histogram of image data corresponding to each frame of image in at least one frame of image contained in the ultrasound movie file to be stored, and obtaining the dynamic range of the corresponding frame of image according to the maximum gray value and the minimum gray value of each frame of image in each gray scale segment area.

For example, the image data may be divided into three gray scale regions, each corresponding to a corresponding dynamic range, that is, for a frame of image, the dynamic range corresponding to each gray scale region may be determined according to the divided gray scale regions.

The manner of segmenting from the histogram of image data as referred to herein may improve the accuracy of image data storage and reading, making the accuracy higher.

Step S104, performing first feature mapping transformation on the image data with the first bit width of the at least one frame of image according to the dynamic range to obtain image data with a second bit width of the at least one frame of image, wherein the second bit width is smaller than the first bit width.

After a dynamic range corresponding to at least one frame of image contained in the ultrasound movie file to be stored is obtained, first feature mapping transformation is performed on image data with a first bit width of the at least one frame of image according to the obtained dynamic range to obtain image data with a changed bit width, and specifically, image data with a second bit width of the at least one frame of image is obtained. Through the first feature mapping transformation, the original ultrasonic film file with the large bit width is transformed into the ultrasonic film file with the small bit width for storage, the integrity of data storage is guaranteed, meanwhile, the storage capacity of the ultrasonic film file is reduced, and the storage efficiency is improved.

When the bit width is converted, each frame image in at least one frame image included in the movie file to be stored is subjected to first feature mapping conversion, generally, the bit width may be 8 bits and 16 bits, and may also be 32 bits under special circumstances, and the like, and when the first feature mapping conversion is performed, the image data with the high bit width is converted into the image data with the low bit width, for example, the bit width of the ultrasound movie file to be stored is 16 bits at this time, and the image data of the ultrasound movie file with the bit width of 16 bits is first converted into the image data with the bit width of 8 bits for storage through the first feature mapping conversion, so that while the integrity of data storage is ensured, the storage amount of the ultrasound movie file is reduced, and the storage efficiency is improved.

Step S105, storing the second bit wide image data of the at least one frame of image and the dynamic range corresponding to the at least one frame of image.

After the first feature mapping transformation is performed to obtain the image data with the second bit width of the corresponding at least one frame of image, the obtained image data with the second bit width of the at least one frame of image and the obtained dynamic range corresponding to the at least one frame of image are stored, so that the corresponding ultrasound movie file can be accurately obtained when reading is needed.

When storing the related data information, the method specifically includes: and storing the second bit wide image data of the target frame in the at least one frame image in the data field of the target frame file, storing the dynamic range of the target frame in the at least one frame image in the parameter field of the target frame file, and marking the target frame file by the identification information.

The obtained related data information needing to be stored comprises: the image data with the second bit width of the at least one frame of image obtained by performing the first feature mapping transformation and the dynamic range corresponding to the at least one frame of image obtained before the transformation are performed, that is, the image data with the second bit width corresponding to each frame of image and the associated dynamic range need to be stored.

And when the image data is stored, calling one frame file to store the second bit width image data and the dynamic range corresponding to one frame of image, wherein the second bit width image data is stored in the data field of the corresponding target frame file, and the related dynamic range is stored in the parameter field of the target frame file.

In addition, after the image data of the second bit width and the dynamic range are stored in the corresponding target frame files, the target frame files may also be marked to distinguish all the frame files for record storage. Specifically, when marking, the frame file is marked by using corresponding identification information, for example, the identification information of the ultrasound movie file is directly marked, where the identification information may be a text description, a number, or a serial number.

In some embodiments, after storing the second bit wide image data of the at least one frame of image and the corresponding dynamic range of the at least one frame of image in the corresponding frame file, the frame file is stored in the local memory or uploaded and stored in the associated cloud server.

In the above embodiment, when the ultrasound movie file needs to be stored, the ultrasound movie file needs to be stored first, then the input instruction information for storing the ultrasound movie file is received, the received storage instruction is responded, the dynamic range corresponding to at least one frame of image included in the ultrasound movie file to be stored is obtained when the storage instruction is responded, further, the feature mapping transformation is performed on the image data with the first bit width of the at least one frame of image included in the ultrasound movie file to be stored according to the obtained dynamic range, the image data with the second bit width of the at least one frame of image is obtained, wherein the first bit width is larger than the second bit width, and finally, the image data with the second bit width of the obtained at least one frame of image and the obtained dynamic range are stored. By converting the image data characteristics of the ultrasonic film file with high bit width into the image data with low bit width, the storage capacity of the ultrasonic film file is reduced and the storage efficiency is improved while the data storage integrity is ensured.

Further, in some embodiments, when the first feature mapping transformation is performed to obtain the second bit width image data of the at least one frame of image, the image data is correspondingly processed to achieve the bit width transformation of the image data.

Taking as an example that a first bit width corresponding to image data of at least one frame of image included in the ultrasound movie file to be stored is 16 bits, and a second bit width corresponding to image data of at least one frame of image obtained after the first feature mapping transformation is performed is 8 bits.

Storing the movie file with the maximum dynamic range of 100db into an 8-bit movie file, assuming that the distribution of the images is uniform, for one frame of image, the corresponding dynamic range is: [ Im _ Min, Im _ Max ] (db), the formula corresponding to the set first feature mapping change is:

Image_Cine=255+255*(Image-Im_Max)/(Im_Max-Im_Min)

or

Image_Cine=255*(Image-Im_Min)/(Im_Max-Im_Min)

Wherein Im _ Min is a minimum value of a dynamic range boundary, Im _ Max is a minimum value of a dynamic range boundary, Image is a gray value (may also be called an original value) corresponding to a certain pixel point in a frame Image, and Image _ picture is a corresponding mapping value after the first feature mapping transformation is performed. Through the change of the first feature mapping, the corresponding relation between before and after transformation is established, that is, the Image in the formula corresponds to the Image _ city.

After the Image _ movie is rounded and stored as 8-bit unsigned number, the number can be stored in a movie file of a local storage or cloud server. In addition, in order to restore the current frame image for subsequent viewing, necessary parameters Im _ Min and Im _ Max need to be stored in the movie file.

In practical application, if Im _ Max is 50000 and Im _ Min is 500 in the dynamic range of the current frame Image, then for the ith pixel, if the gray scale value of the ith pixel is 30000, that is, Image (i) is 30000, at this time, when performing feature mapping transformation, the obtained Image _ city (i) by transformation is: image _ city (i) (+ 255) (30000-.

In some embodiments, in addition to the obtained dynamic range being directly obtained according to the gray-level value of each pixel point in one frame of image, other methods can be used as described above, and the method of performing the feature mapping transformation after obtaining the dynamic range is the same. For example, the dynamic range is obtained by using the first score and the second score of a frame of image, and then Im _ Min is the second score and Im _ Max is the first score.

In addition, when the ultrasound diagnostic apparatus acquires the ultrasound cine file, since the ultrasound echo types received after the ultrasound waves are transmitted are not uniform, the ultrasound diagnostic apparatus may perform segmentation processing, so that each segment is uniformly distributed, and the mapping relationship of each segment is linear.

Digital computers often store data in fixed-point formats, and in order to take full advantage of bit width, the maximum number of energy-saving representations of, for example, 16 words for a 100db ultrasound movie file is 2^16-1 ^ 65535, i.e., 65535 represents 100 db.

Fig. 2 is a schematic diagram of an image data mapping curve according to an embodiment of the present application, in which an upper diagram is a distribution histogram of image data, and a lower diagram is a mapping table stored in a movie file.

At this time, 0db ultrasonic echo is quantized to 0, 100db ultrasonic echo is quantized to 65535, Im _ Min is 5000(7.62db), Im _ Max is 58980(89.99db) in the corresponding dynamic range, but most of gray scales are located at 15000-:

TABLE 1

Original value Mapping values
5000 0
15000 40
40000 200
58980 255

Table 1 above is a quantization/mapping of each pixel in a frame of image, which is not related to the first feature mapping transformation mentioned in the above embodiment, wherein the original value is the gray value of the pixel in the frame of image.

For the gray value interval [5000, 15000], corresponding Im _ Max is 15000 and Im _ Min is 5000, where Im _ Min is mapped to 0 and Im _ Max is mapped to 40 instead of 255.

At this time, for image (i) 10000,

Image_Cine(i)=40+40*(10000-15000)/(15000-5000)=20

similarly, when the grayscale value is in the interval [15000, 40000], corresponding Im _ Max is 40000 and Im _ Min is 15000, where Im _ Min is mapped to 40 and Im _ Max is mapped to 200; when the gray value is in the interval [40000, 58980], corresponding Im _ Max is 58980, Im _ Min is 40000, wherein Im _ Min is mapped to 200 and Im _ Max is mapped to 255.

The method for carrying out feature mapping transformation in a segmented manner can better ensure the accuracy of data storage, and can more accurately display the movie file when carrying out the inverse transformation of the file to display the ultrasonic movie file, but the data quantity of the related data required to be stored is increased. For the mode without the segmented feature mapping, the data amount of the related data needing to be stored is reduced, and meanwhile, the accuracy of data storage can meet the actual use requirement.

Thus, to some extent, the segmented feature mapping transformation may not be performed, but is allowed to be performed.

And calculating the feature mapping transformation result corresponding to each pixel point to realize complete mapping of one frame of image. And after the feature mapping transformation of all the frame images in the ultrasound movie file to be stored is completed, the storage of the whole ultrasound movie file to be stored is completed.

Further, referring to fig. 3, fig. 3 is a schematic flowchart of a method for storing an ultrasound movie file according to another embodiment of the present application.

Specifically, the method further comprises:

step S301, when a file viewing instruction is received, acquiring second bit wide image data and a corresponding dynamic range of the at least one frame of image;

step S302, performing second feature mapping transformation on the image data with the second bit width of the at least one frame of image according to the dynamic range to obtain the image data with the first bit width of the at least one frame of image;

step S303, processing the image data with the first bit width of the at least one frame of image to obtain a corresponding ultrasound movie file for display.

For the stored ultrasound movie file, since the ultrasound movie file is stored after being processed during storage, the file needs to be correspondingly processed during reading, and the ultrasound movie file can be read and viewed accurately.

And when a viewing instruction of the ultrasonic movie file is received, acquiring second bit wide image data and a corresponding dynamic range of at least one frame of image. As can be seen from the above description, when storing the ultrasound movie file, the first feature mapping transformation is performed using the dynamic range corresponding to one frame of image to obtain the data that can be stored, so that when viewing the ultrasound movie file, in addition to acquiring the image data with the second bit width of at least one frame of image, the dynamic range corresponding to the frame of image needs to be acquired.

It should be noted that, for one ultrasound movie file, the number of corresponding frame images is multiple, and at this time, when acquiring corresponding image data, it is necessary to acquire second bit wide image data of all relevant frame images, and dynamic ranges corresponding to all frame images respectively.

After the image data with the second bit width of the at least one frame of image and the corresponding dynamic range are obtained, second feature mapping change is performed according to the dynamic range and the image data with the second bit width of the at least one frame of image, so that the image data with the second bit width of the at least one frame of image is converted into the image data with the first bit width of the corresponding at least one frame of image.

The second feature map transformation corresponds to the first feature map transformation, and if the first feature map transformation is a forward transformation, the second feature map transformation is an inverse transformation.

As described in some embodiments, the first feature mapping transformation corresponds to a mapping rule of:

Image_Cine=255+255*(Image-Im_Max)/(Im_Max-Im_Min)

or

Image_Cine=255*(Image-Im_Min)/(Im_Max-Im_Min)

Then the mapping rule corresponding to the second feature mapping transformation is:

Image_recover=Im_Max+(Image_Cine-255)*(Im_Max-Im_Min)/255

or

Image_recover=Im_Min+(Image_Cine)*(Im_Max-Im_Min)/255

And the Image _ receiver is a gray value after the second feature mapping transformation is carried out, and corresponds to the Image _ Cine.

When feature mapping transformation is carried out, the stored low-bit-width image data (first-bit-width image data) is converted into the original high-bit-width image data (second-bit-width image data), and the storage and the viewing of the ultrasonic movie file are completely carried out, so that the integrity of the ultrasonic movie file is ensured, and the ultrasonic movie file is not only reflected in a storage stage, but also reflected in a viewing stage.

After the image data with the first bit width of at least one frame of image is obtained, corresponding processing is performed, so that an ultrasound movie file to be displayed can be obtained. Specifically, when the ultrasound movie file is viewed, after second feature mapping transformation is performed to obtain image data with a first bit width of at least one corresponding frame of image, post-processing and scan transformation are performed on the obtained image data corresponding to all frames to obtain a corresponding ultrasound movie file for display.

Further, referring to fig. 4, fig. 4 is a schematic flowchart of a method for storing an ultrasound movie file in another embodiment of the present application.

Specifically, the method further comprises:

step S401, when a file viewing instruction is received, identifying identification information contained in the file viewing instruction;

step S402, acquiring a corresponding frame file according to the identification information;

step S403, reading the second bit wide image data of the at least one frame of image contained in the data field of the frame of file and the dynamic range contained in the parameter field of the frame of file.

When a file viewing instruction of the ultrasonic movie file is received, the file viewing instruction is correspondingly identified to obtain identification information contained in the file viewing instruction, then a corresponding frame file is obtained according to the identification information obtained through identification, and further relevant information recorded in the obtained frame file is read, wherein the relevant information comprises second bit wide image data of at least one frame of image stored in a data field of the frame file and a dynamic range of a parameter field stored in the frame file.

According to the above description of some embodiments, the identification information is a mark of the ultrasound movie file to be stored, and it can be accurately determined which frame files belong to which ultrasound movie file. When the ultrasonic movie file needs to be checked, corresponding selection is carried out to determine the ultrasonic movie file which needs to be checked currently, namely, the ultrasonic movie file which needs to be checked correspondingly is contained in a file checking instruction sent by a user through corresponding operation, so that when the file checking instruction of the ultrasonic movie file is received, information contained in the file checking instruction is identified, and corresponding identification information is obtained.

Because each frame file has corresponding identification information, after the identification information contained in the file viewing instruction is identified and obtained, corresponding searching is carried out, the frame file with the identification information being the identified identification information is obtained, and then second feature mapping transformation can be carried out after the relevant data contained in the frame file is obtained, so that the ultrasonic movie file needing to be displayed is obtained.

In some embodiments, after performing the second feature mapping transformation to obtain the first bit wide image data of the at least one frame of image, the method further includes: reading frame file information contained in the file viewing instruction, and determining target image data in the first bit width image data of the at least one frame of image according to the frame file information so as to process the target image data to obtain a target ultrasonic movie file.

The target ultrasound movie file is a part of the displayed ultrasound movie file obtained by processing, for example, the ultrasound movie file is 100db, and the target ultrasound movie file may be 60db or 80 db.

In practical application, for one ultrasound movie file, when a user views the ultrasound movie file, the user does not necessarily view the entire ultrasound movie file, but may view only a part of the ultrasound movie file, so that after the second feature mapping transformation is performed to obtain the image data with the first bit width of at least one frame of image, the user may further select to obtain a target ultrasound movie file that needs to be viewed finally.

Specifically, the frame file information included in the received file viewing instruction is identified, where the frame file information includes which frame file or which frame files that need to be viewed currently are, and for the frame files, the frame files may be marked by numbers, and the numbers may be obtained according to the sequence of the frame images corresponding to the frame files. And after the frame file information is obtained, obtaining a corresponding target image in the image data of the first bit of the obtained at least one frame image, and finally performing corresponding post-processing and scanning on the obtained target image to obtain a target ultrasonic movie file which is finally required to be displayed.

In some embodiments, after obtaining the ultrasound movie file for display, the method may further include: when receiving an input gain adjustment instruction, performing gain adjustment on the ultrasonic movie file to be displayed according to the gain adjustment instruction, wherein the gain adjustment comprises at least one of brightness adjustment and contrast adjustment.

When the ultrasonic movie file is displayed, the ultrasonic movie file can be correspondingly adjusted, so that the ultrasonic movie file can be better checked, for example, the brightness is too low when the ultrasonic movie file is checked, and the brightness can be adjusted to be a proper value.

When receiving an input gain adjustment instruction, the ultrasound movie file is subjected to gain adjustment, such as brightness adjustment, contrast adjustment, and the like, according to the gain adjustment instruction. The viewing of the ultrasound movie file can be made more use of by corresponding gain adjustments.

Likewise, after the target ultrasound cine file is obtained, gain adjustments may also be made to the target ultrasound cine file.

The embodiment of the present application further provides an ultrasound diagnostic apparatus, which can implement the storage method of the ultrasound movie file described in the foregoing embodiment.

Referring to fig. 5, fig. 5 is a schematic diagram of a structural block diagram of an ultrasound diagnostic apparatus according to an embodiment of the present application.

Specifically, the ultrasonic diagnostic apparatus 10 may include a probe 100, a transmission circuit 101, a transmission/reception selection switch 102, a reception circuit 103, a beam forming circuit 104, a processor 105, and a display 106. The transmit circuit 101 may excite the probe 100 to transmit ultrasound waves to the target tissue; the receiving circuit 103 may receive the ultrasonic echo returned from the target tissue through the probe 100, thereby obtaining an ultrasonic echo signal/data; the ultrasonic echo signals/data are subjected to beamforming processing by the beamforming circuit 104, and then sent to the processor 105. The ultrasound echo signals/data are processed by the processor 105 to obtain ultrasound images of the target tissue, which are used to construct an ultrasound cine file. The ultrasound images obtained by the processor 105 may be stored in the memory 107. These ultrasound images may be displayed on the display 106.

In an embodiment of the present application, the display 106 of the ultrasonic imaging apparatus 10 may be a touch display screen, a liquid crystal display screen, or the like, or may be an independent display apparatus such as a liquid crystal display, a television, or the like, which is independent from the ultrasonic imaging apparatus 10, or may be a display screen on an electronic apparatus such as a mobile phone, a tablet computer, or the like.

In practical applications, the Processor 105 may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller, and a microprocessor, so that the Processor 105 may perform corresponding steps of the storage method of the sono-cine file in the embodiments of the present Application.

The Memory 107 may be a volatile Memory (volatile Memory), such as a Random Access Memory (RAM); or a non-volatile Memory (non-volatile Memory), such as a Read Only Memory (ROM), a flash Memory (flash Memory), a Hard Disk (Hard Disk Drive, HDD) or a Solid-State Drive (SSD); or a combination of the above types of memories and provides instructions and data to the processor.

The embodiment of the application further provides a computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, the computer program comprises program instructions, and the processor executes the program instructions to realize the storage method of any one of the ultrasound movie files provided by the embodiment of the application.

The computer-readable storage medium may be an internal storage unit of the ultrasound diagnostic apparatus described in the foregoing embodiment, for example, a hard disk or a memory of the ultrasound diagnostic apparatus. The computer readable storage medium may also be an external storage device of the ultrasound diagnostic apparatus, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the ultrasound diagnostic apparatus.

The foregoing is a more detailed description of the present application in connection with specific embodiments thereof, and it is not intended to limit the present application to the particular forms disclosed. It will be apparent to those skilled in the art from this disclosure that many more simple derivations and substitutions can be made without departing from the inventive concepts herein.

20页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:汽车音乐多通道播放控制方法、存储介质及电子设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!