Ultrasonic image display method and related products
By determining the display parameters, the ratio of pixel distance in the image collected by the ultrasonic acquisition device to the distance within the display area is characterized, and the poor display effect problem caused by the incompatibility of the ultrasonic acquisition device and the display device is solved, and better ultrasonic image display quality is achieved.
Patent Information
- Application Number
- CN202411794628.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-09
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2044-12-09
AI Technical Summary
When the ultrasonic acquisition equipment and the display equipment are not matched, it is difficult for the display equipment to effectively display the ultrasonic images collected by the ultrasonic acquisition equipment, resulting in poor display effect.
By determining the display parameters, the ratio of the distance between two adjacent pixels in the ultrasonic image captured by the ultrasonic acquisition device and the distance within the display area is characterized to adjust the display effect of the display device. The specific method includes acquiring an ultrasound image, determining a distance between objects, and determining a display parameter based on a distance ratio within the display area of the display device.
By adjusting the display parameters, the display effect similar to that of supporting equipment can be achieved between the unsuited ultrasonic acquisition equipment and the display device, and the display quality of ultrasonic images can be improved.
Smart Images

Figure CN119257639B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of medical image processing technology, and in particular to a method for displaying ultrasound images and related products. Background Art
[0002] In the medical field, after acquiring an ultrasound image of a patient, the ultrasound image can be displayed, and relevant personnel can then perform auxiliary diagnosis on the patient based on the displayed ultrasound image.
[0003] When an ultrasonic acquisition device for acquiring ultrasonic images of a patient and a display device for displaying the ultrasonic images are usually matched, the display device has a better display effect on the ultrasonic images acquired by the ultrasonic acquisition device. However, when the ultrasonic acquisition device and the display device are not matched, the display device may have a poor display effect on the ultrasonic images acquired by the ultrasonic acquisition device.
[0004] Therefore, it is necessary to determine display parameters for displaying the ultrasonic image acquired by the ultrasonic acquisition device, so that the display device can display the ultrasonic image acquired by the ultrasonic acquisition device based on the display parameters. Summary of the invention
[0005] The present application provides a method for displaying an ultrasound image and related products to determine display parameters for displaying an ultrasound image, wherein the related products include an ultrasound image display device, an electronic device, a computer-readable storage medium, and a computer program product.
[0006] In a first aspect, a method for displaying an ultrasonic image is provided. The method for displaying an ultrasonic image is used to determine a display parameter for displaying an ultrasonic image acquired by an ultrasonic acquisition device when an effect of displaying the ultrasonic image acquired by an ultrasonic acquisition device through a first display device is desired. The display parameter represents a ratio of a distance between two adjacent pixels in the ultrasonic image acquired by the ultrasonic acquisition device to a distance between the two adjacent pixels in a display area. The method comprises:
[0007] Acquire a first ultrasonic image, where the first ultrasonic image is acquired by the ultrasonic acquisition device, and the first ultrasonic image includes a first target object and a second target object;
[0008] determining a first distance between the first target object and the second target object in the first ultrasound image;
[0009] Acquire a second distance, where the second distance is a distance between the first target object and the second target object within a display area of the first display device when the first ultrasound image is displayed by the first display device;
[0010] The display parameter is determined based on a ratio of the first distance to the second distance.
[0011] In combination with any embodiment of the present application, determining a first distance between the first target object and the second target object in the first ultrasound image includes:
[0012] Determining, from the first ultrasound image, a first target pixel having a semantic meaning of the first target object;
[0013] Determining, from the first ultrasound image, a second target pixel having a semantic meaning of the second target object;
[0014] Determine the center of the first target pixel to obtain a first center pixel;
[0015] Determine the center of the second target pixel to obtain a second center pixel;
[0016] The first distance is obtained based on the distance between the first center and the second center.
[0017] In combination with any implementation manner of the present application, determining the center of the first target pixel to obtain a first center pixel includes:
[0018] Selecting any pixel from the first ultrasound image as a candidate pixel;
[0019] Determine a first vector between the candidate pixel and the first target pixel;
[0020] Calculate the mean of the sum of the first vectors to obtain a second vector;
[0021] When the modulus of the second vector is less than or equal to a modulus threshold, the candidate pixel is determined to be the first central pixel.
[0022] In combination with any embodiment of the present application, selecting any pixel from the first ultrasound image as a candidate pixel includes:
[0023] determining a target pixel region composed of the first target pixels from the first ultrasound image;
[0024] Based on the shape of the first target object, the target pixel area is expanded to obtain an expanded pixel area, and the shape of the expanded pixel area matches the shape of the first target object;
[0025] The center of the expanded pixel area is used as the candidate pixel.
[0026] In combination with any implementation manner of the present application, after determining the display parameter based on the ratio of the first distance to the second distance, the method further includes:
[0027] Acquire a display size of a display area of a second display device, where the second display device is a display device different from the first display device;
[0028] Based on the display size and the display parameters, a target resolution of the second display device for displaying the image acquired by the ultrasound acquisition device is determined.
[0029] In combination with any embodiment of the present application, the display parameter includes a horizontal display parameter and a vertical display parameter, the horizontal display parameter represents the ratio of the horizontal distance between the two adjacent pixels in the ultrasonic image acquired by the ultrasonic acquisition device to the horizontal distance between the two adjacent pixels in the display area, and the vertical display parameter represents the ratio of the vertical distance between the two adjacent pixels in the ultrasonic image acquired by the ultrasonic acquisition device to the vertical distance between the two adjacent pixels in the display area;
[0030] The determining the display parameter based on the ratio of the first distance to the second distance includes:
[0031] Determine a first component of a horizontal coordinate of the first distance in a pixel coordinate system, where the pixel coordinate system is a pixel coordinate system of an image acquired by the ultrasound acquisition device;
[0032] Determine a second component of the longitudinal coordinate of the first distance in the pixel coordinate system;
[0033] determining a third component of the second distance in a horizontal direction, where the horizontal direction is a direction in a display area of the first display device corresponding to a horizontal axis of the pixel coordinate system;
[0034] determining a fourth component of the second distance in a longitudinal direction, where the longitudinal direction is a direction in a display area of the first display device corresponding to a longitudinal axis of the pixel coordinate system;
[0035] determining the horizontal display parameter based on a ratio of the first component to the third component;
[0036] The vertical display parameter is determined based on a ratio of the second component to the fourth component.
[0037] In a second aspect, a display device for an ultrasonic image is provided, the display device for an ultrasonic image is used to determine a display parameter for displaying an ultrasonic image acquired by an ultrasonic acquisition device when it is desired to obtain an effect of displaying the ultrasonic image acquired by the ultrasonic acquisition device by a first display device, the display parameter representing a ratio of a distance between two adjacent pixels in the ultrasonic image acquired by the ultrasonic acquisition device to a distance between the two adjacent pixels in a display area, the display device for an ultrasonic image comprising:
[0038] An acquisition unit, configured to acquire a first ultrasonic image, wherein the first ultrasonic image is acquired by the ultrasonic acquisition device, and the first ultrasonic image includes a first target object and a second target object;
[0039] a determining unit, configured to determine a first distance between the first target object and the second target object in the first ultrasound image;
[0040] The acquiring unit is configured to acquire a second distance, where the second distance is a distance between the first target object and the second target object within a display area of the first display device when the first ultrasound image is displayed by the first display device;
[0041] The determining unit is used to determine the display parameter based on a ratio of the first distance to the second distance.
[0042] In combination with any implementation manner of the present application, the determining unit is specifically configured to:
[0043] Determining, from the first ultrasound image, a first target pixel having a semantic meaning of the first target object;
[0044] Determining, from the first ultrasound image, a second target pixel having a semantic meaning of the second target object;
[0045] Determine the center of the first target pixel to obtain a first center pixel;
[0046] Determine the center of the second target pixel to obtain a second center pixel;
[0047] The first distance is obtained based on the distance between the first center and the second center.
[0048] In combination with any implementation manner of the present application, the determining unit is specifically configured to:
[0049] Selecting any pixel from the first ultrasound image as a candidate pixel;
[0050] Determine a first vector between the candidate pixel and the first target pixel;
[0051] Calculate the mean of the sum of the first vectors to obtain a second vector;
[0052] When the modulus of the second vector is less than or equal to a modulus threshold, the candidate pixel is determined to be the first central pixel.
[0053] In combination with any implementation manner of the present application, the determining unit is specifically configured to:
[0054] determining a target pixel region composed of the first target pixels from the first ultrasound image;
[0055] Based on the shape of the first target object, the target pixel area is expanded to obtain an expanded pixel area, and the shape of the expanded pixel area matches the shape of the first target object;
[0056] The center of the expanded pixel area is used as the candidate pixel.
[0057] In combination with any embodiment of the present application, the acquisition unit is further used to acquire a display size of a display area of a second display device, where the second display device is a display device different from the first display device;
[0058] The determining unit is further configured to determine, based on the display size and the display parameters, a target resolution at which the second display device displays the image acquired by the ultrasound acquisition device.
[0059] In combination with any embodiment of the present application, the display parameter includes a horizontal display parameter and a vertical display parameter, the horizontal display parameter represents the ratio of the horizontal distance between the two adjacent pixels in the ultrasonic image acquired by the ultrasonic acquisition device to the horizontal distance between the two adjacent pixels in the display area, and the vertical display parameter represents the ratio of the vertical distance between the two adjacent pixels in the ultrasonic image acquired by the ultrasonic acquisition device to the vertical distance between the two adjacent pixels in the display area;
[0060] The determining unit is specifically configured to:
[0061] Determine a first component of a horizontal coordinate of the first distance in a pixel coordinate system, where the pixel coordinate system is a pixel coordinate system of an image acquired by the ultrasound acquisition device;
[0062] Determine a second component of the longitudinal coordinate of the first distance in the pixel coordinate system;
[0063] determining a third component of the second distance in a horizontal direction, where the horizontal direction is a direction in a display area of the first display device corresponding to a horizontal axis of the pixel coordinate system;
[0064] determining a fourth component of the second distance in a longitudinal direction, where the longitudinal direction is a direction in a display area of the first display device corresponding to a longitudinal axis of the pixel coordinate system;
[0065] determining the horizontal display parameter based on a ratio of the first component to the third component;
[0066] The vertical display parameter is determined based on a ratio of the second component to the fourth component.
[0067] In a third aspect, an electronic device is provided, comprising: a processor and a memory, the memory being used to store computer program code, the computer program code comprising computer instructions, and when the processor executes the computer instructions, the electronic device executes the method as described in the first aspect above and any possible implementation thereof.
[0068] In a fourth aspect, another electronic device is provided, comprising: a processor, a sending device, an input device, an output device and a memory, wherein the memory is used to store computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device executes the method as described in the first aspect above and any possible implementation method thereof.
[0069] In a fifth aspect, a computer-readable storage medium is provided, in which a computer program is stored. The computer program includes program instructions, and when the program instructions are executed by a processor, the processor is caused to execute the method as described in the first aspect above and any possible implementation method thereof.
[0070] In a sixth aspect, a computer program product is provided, which includes a computer program or instructions, and when the computer program or instructions are run on a computer, the computer is enabled to execute the method of the above-mentioned first aspect and any possible implementation thereof.
[0071] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application.
[0072] In the embodiment of the present application, the first ultrasonic image is acquired by an ultrasonic acquisition device, and the first ultrasonic image includes a first target object and a second target object. After the display device determines the first distance between the first target object and the second target object in the first ultrasonic image, and obtains the second distance between the first target object and the second target object in the world coordinate system. Based on the first distance and the second distance, the display parameter of the ultrasonic image acquired by the ultrasonic acquisition device can be determined, wherein the display parameter represents the ratio of the distance between two adjacent pixels in the ultrasonic image acquired by the ultrasonic acquisition device to the distance between two adjacent pixels in the display area. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the background technology, the drawings required for use in the embodiments of the present application or the background technology will be described below.
[0074] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.
[0075] Figure 1 A schematic diagram of displaying an ultrasound image in a display area provided in an embodiment of the present application;
[0076] Figure 2 A schematic diagram of a flow chart of a method for displaying an ultrasound image provided in an embodiment of the present application;
[0077] Figure 3 A schematic diagram of another method of displaying an ultrasound image in a display area provided in an embodiment of the present application;
[0078] Figure 4 A schematic diagram of a first ultrasound image provided in an embodiment of the present application;
[0079] Figure 5 A schematic diagram of a preset area provided in an embodiment of the present application;
[0080] Figure 6 A schematic diagram of the structure of an ultrasonic image display device provided in an embodiment of the present application;
[0081] Figure 7 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0082] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0083] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0084] Mentioning "embodiment" in this article means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments. It should be understood that in this application, "at least one (item)" means one or more, "multiple" means two or more, and "at least two (items)" means two or three and more.
[0085] In the medical field, after collecting the ultrasonic image of the patient, the ultrasonic image can be displayed, and the relevant personnel can then perform auxiliary diagnosis on the patient based on the displayed ultrasonic image. For example, the patient's lesion and needle insertion point are determined based on the ultrasonic image, and then the puncture path for the lesion can be determined based on the lesion and the needle insertion point. In the case where the ultrasonic acquisition device used to collect the ultrasonic image of the patient and the display device used to display the ultrasonic image are usually matched, the display device has a better display effect on the ultrasonic image collected by the ultrasonic acquisition device (such as the display device can display the ultrasonic image with a suitable resolution). For example, when the ultrasonic acquisition device and the first display device are both owned by the hospital, the hospital can determine the resolution at which the first display device displays the ultrasonic image collected by the ultrasonic acquisition device by calibration, and obtain the desired display effect. However, in the case where the ultrasonic acquisition device and the display device are not matched, it is easy to cause the display device to have a poor display effect on the ultrasonic image collected by the ultrasonic acquisition device. For example, the ultrasonic acquisition device is owned by the hospital, but the display device is not owned by the hospital, which can easily cause the display device to have a poor display effect on the ultrasonic image collected by the ultrasonic acquisition device.
[0086] Based on this, an embodiment of the present application provides a method for displaying an ultrasonic image to determine display parameters of an ultrasonic image acquired by an ultrasonic acquisition device when it is desired to obtain the effect of displaying the ultrasonic image acquired by an ultrasonic acquisition device through a first display device, wherein the display parameters represent the ratio of the distance between two adjacent pixels in the ultrasonic image acquired by the ultrasonic acquisition device to the distance between two adjacent pixels in the display area. The first display device can be understood as the device supporting the ultrasonic acquisition device as described above. The display area can be an area of the display device used to display ultrasonic images, for example, the display area is a display screen of the display device.
[0087] For example, see Figure 1 , Figure 1 A schematic diagram of displaying an ultrasound image in a display area provided in an embodiment of the present application. Figure 1As shown, the ultrasonic image includes pixel A, pixel B, pixel C, pixel D, pixel E, pixel F, pixel G, pixel H, and pixel I. All pixels of the ultrasonic image are located in the display area. Since pixel A is adjacent to pixel B, the distance between pixel A and pixel B in the ultrasonic image is 1 pixel. If the position of pixel A in the display area is p1 and the position of pixel B in the display area is p2, then the position of pixel A and pixel B in the display area is the distance from p1 to p2. The display parameter can be: 1 pixel / distance from p1 to p2.
[0088] Alternatively, since there is a pixel B between pixel A and pixel C, the distance between pixel A and pixel C in the ultrasound image is 2 pixels. If the position of pixel A in the display area is p1, and the position of pixel C in the display area is p3, then the distance between the positions of pixel A and pixel C in the display area is from p1 to p3. The display parameter may be: 2 pixels / distance from p1 to p3.
[0089] After obtaining the display parameters, the resolution of the display device for displaying the ultrasonic image can be determined based on the size of the display area of the display device that needs to display the ultrasonic image acquired by the ultrasonic acquisition device and the display parameters, so as to match the display effect of the display device displaying the ultrasonic image with the effect of the first display device displaying the ultrasonic image.
[0090] The method for displaying an ultrasonic image will be described in detail below. The execution subject of the method for displaying an ultrasonic image in the embodiment of the present application is a display device for an ultrasonic image (hereinafter referred to as a display device), wherein the display device can be any electronic device that can execute the technical solution disclosed in the embodiment of the method of the present application. Optionally, the display device can be one of the following: a mobile phone, a computer, a tablet computer, and a wearable smart device.
[0091] It should be understood that the method embodiment of the present application can also be implemented by a processor executing a computer program code. The following describes the embodiment of the present application in conjunction with the drawings in the embodiment of the present application. Figure 2 , Figure 2 A schematic flow chart of a method for displaying an ultrasound image provided in an embodiment of the present application.
[0092] 201. Acquire a first ultrasound image.
[0093] In the embodiment of the present application, the first ultrasonic image is acquired by an ultrasonic acquisition device, and the first ultrasonic image includes a first target object and a second target object, wherein the first target object and the second target object are different objects. The target object can be any object, for example, the target object is a line, and for example, the target object is a bump.
[0094] In an implementation of acquiring a first ultrasound image, a display device receives the first ultrasound image input by a user through an input component, wherein the input component includes: a mouse, a keyboard, a touch screen, a touch pad, and an audio input device.
[0095] In another implementation method of acquiring the first ultrasonic image, the display device receives the first ultrasonic image sent by a terminal, wherein the terminal includes: a mobile phone, a computer, a tablet computer, and a smart wearable device.
[0096] 202. Determine a first distance between the first target object and the second target object in the first ultrasound image.
[0097] The display device determines the position of the first target object in the first ultrasound image and the position of the second target object in the first ultrasound image, and then determines the distance between the first target object and the second target object in the first ultrasound image based on the two positions, which is the first distance.
[0098] Optionally, the position of the first target object in the first ultrasound image is the coordinates of the first target object in the pixel coordinate system of the first ultrasound image. The position of the second target object in the first ultrasound image is the coordinates of the second target object in the pixel coordinate system of the first ultrasound image.
[0099] In a possible implementation, the display device determines a distance between a center of the first target object and a center of the second target object in the first ultrasound image as the first distance.
[0100] 203. Obtain a second distance.
[0101] In the embodiment of the present application, the second distance represents the distance between the first target object and the second target object in the display area of the first display device when the first ultrasound image is displayed by the first display device. Figure 1 In the example, the display area is the display area of the first display device, the ultrasound image is the first image, the first target object is pixel A, the second target object is pixel B, and the second distance is the distance from p1 to p2.
[0102] In an implementation manner of acquiring the second distance, the display device receives the second distance input by the user through an input component.
[0103] In another implementation of acquiring the second distance, the display device receives the second distance sent by the terminal.
[0104] 204. Determine the display parameter based on the ratio of the first distance to the second distance.
[0105] In the embodiment of the present application, the display parameter represents the ratio of the distance between two adjacent pixels in the ultrasound image acquired by the ultrasound acquisition device to the distance between two adjacent pixels in the display area. Based on the display parameter, it can be determined that when the ultrasound image acquired by the ultrasound acquisition device is displayed in a display area of known size, how many pixels should be used to display the ultrasound image to obtain the effect of the first display device displaying the ultrasound image acquired by the ultrasound acquisition device.
[0106] In the embodiment of the present application, the first ultrasonic image is acquired by an ultrasonic acquisition device, and the first ultrasonic image includes a first target object and a second target object. After the display device determines the first distance between the first target object and the second target object in the first ultrasonic image, and obtains the second distance between the first target object and the second target object in the world coordinate system. Based on the first distance and the second distance, the display parameter of the ultrasonic image acquired by the ultrasonic acquisition device can be determined, wherein the display parameter represents the ratio of the distance between two adjacent pixels in the ultrasonic image acquired by the ultrasonic acquisition device to the distance between two adjacent pixels in the display area.
[0107] As an optional implementation manner, after executing step 204, the display device further executes the following steps:
[0108] 301. Obtain a display size of a display area of a second display device.
[0109] In an embodiment of the present application, the second display device is a display device different from the first display device. In one possible implementation, the ultrasound acquisition device is an ultrasound probe held by the hospital. The first display device is a display device held by the hospital and paired with the ultrasound probe. The desired display effect can be obtained by displaying the ultrasound image acquired by the ultrasound probe on the first display device. The second display device is a display device outside the hospital. For example, when the second display device displays the ultrasound image acquired by the ultrasound probe, relevant personnel outside the hospital can determine the lesion and the needle entry point based on the ultrasound image displayed by the second display device, and then determine the puncture path for the lesion based on the lesion and the needle entry point.
[0110] In the embodiment of the present application, the display size is the size of the display area of the second display device, wherein the display size is the physical size of the display area of the second display device. Optionally, the display size includes the length and width of the display area of the second display device. For example, the display size includes that the length of the display area of the second display device is 80.17 cm and the width of the display area of the second display device is 34.44 cm.
[0111] Optionally, the size of the display area of the second display device is different from the size of the display area of the first display device. Therefore, if the second display device displays the ultrasonic image acquired by the ultrasonic acquisition device, and it is desired to obtain the effect of the second display device displaying the ultrasonic image acquired by the ultrasonic acquisition device, then the resolution of the ultrasonic image acquired by the ultrasonic acquisition device displayed by the second display device (hereinafter referred to as the target resolution) should be different from the resolution of the ultrasonic image acquired by the ultrasonic acquisition device displayed by the first display device (hereinafter referred to as the reference resolution). Therefore, in order to determine the target resolution, it is necessary to first determine the display parameters, and then determine the target resolution based on the display size and display parameters of the display area of the second display device.
[0112] 302. Based on the display size and the display parameters, determine a target resolution for the second display device to display the image acquired by the ultrasound acquisition device.
[0113] As described in step 301, the target resolution is the resolution of the second display device displaying the ultrasound image acquired by the ultrasound acquisition device. Since the ratio of the distance between two adjacent pixels in the first ultrasound image to the distance between two adjacent pixels in the display area of the second display device can be determined based on the display parameters, when the display size of the display area is known, the number of pixels used to display the first ultrasound image can be determined based on the display size and the display parameters, and the effect of the first display device displaying the first ultrasound image can be obtained, thereby determining the target resolution.
[0114] In a possible implementation, the display device determines the quotient of the display size and the display parameter to obtain the target resolution. Optionally, the display device determines the target resolution by the following formula: display size=target resolution×display parameter.
[0115] In one possible implementation, the display parameters include a transverse display parameter and a longitudinal display parameter. The transverse display parameter represents the ratio of the transverse distance between two adjacent pixels in the ultrasound image acquired by the ultrasound acquisition device to the transverse distance between two adjacent pixels in the display area. The longitudinal display parameter represents the ratio of the longitudinal distance between two adjacent pixels in the ultrasound image acquired by the ultrasound acquisition device to the longitudinal distance between two adjacent pixels in the display area. The transverse distance in the display area is the transverse distance of the display area, and the longitudinal distance in the display area is the longitudinal distance of the display area. The transverse direction is a direction parallel to the transverse axis of the pixel coordinate system of the displayed ultrasound image, and the longitudinal direction is a direction parallel to the transverse axis of the pixel coordinate system of the displayed ultrasound image. For example, refer to Figure 3 , Figure 3 Another schematic diagram of displaying an ultrasound image in a display area provided by an embodiment of the present application. Figure 3As shown, the first ultrasonic image includes pixel A, pixel B, pixel C, pixel D, pixel E, pixel F, pixel G, pixel H, and pixel I, wherein all pixels of the first ultrasonic image are located in the display area of the second display device. The pixel coordinate system of the first ultrasonic image is OXY, wherein O is the origin, the X-axis represents the horizontal axis of the pixel coordinate system, and the Y-axis represents the vertical axis of the pixel coordinate system. The direction parallel to the X-axis in the display area of the second display device is the horizontal direction, and the direction parallel to the Y-axis in the display area of the second display device is the vertical direction.
[0116] The display device may determine the horizontal resolution of the target resolution based on the horizontal display parameter and the horizontal size of the display size, wherein the horizontal size is the size of the display area of the second display device in the horizontal direction. The display device may determine the vertical resolution of the target resolution based on the vertical display parameter and the vertical size of the display size, wherein the vertical size is the size of the display area of the second display device in the vertical direction. The target resolution is obtained based on the horizontal resolution of the target resolution and the vertical resolution of the target resolution.
[0117] Optionally, the display device determines the quotient of the horizontal dimension of the display size and the horizontal display parameter to obtain the horizontal resolution of the target resolution. The display device determines the quotient of the horizontal dimension of the display size and the vertical display parameter to obtain the horizontal resolution of the target resolution.
[0118] As an optional embodiment, the above-mentioned display parameters include horizontal display parameters and vertical display parameters. The display device implements "determining the display parameters of the above-mentioned ultrasonic acquisition device based on the above-mentioned first distance and the above-mentioned second distance" by executing the following steps: Determine the first ratio of the above-mentioned second distance to the above-mentioned first distance. Determine the first component of the horizontal coordinate of the above-mentioned first distance in the pixel coordinate system, and the above-mentioned pixel coordinate system is the pixel coordinate system of the image acquired by the above-mentioned ultrasonic acquisition device. Determine the second component of the vertical coordinate of the above-mentioned first distance in the above-mentioned pixel coordinate system. Determine the second ratio of the above-mentioned first component to the length of the image acquired by the above-mentioned ultrasonic acquisition device. Determine the third ratio of the above-mentioned second component to the width of the image acquired by the above-mentioned ultrasonic acquisition device. Based on the above-mentioned first ratio and the above-mentioned second ratio, the above-mentioned horizontal display parameters are obtained. Based on the above-mentioned first ratio and the above-mentioned third ratio, the above-mentioned vertical display parameters are obtained.
[0119] In this embodiment, the display device can determine the horizontal display parameters and the vertical display parameters respectively, thereby more accurately representing the display parameters, which is more conducive to subsequently determining the target resolution for displaying the first ultrasound image based on the display parameters.
[0120] Optionally, after determining the target resolution, the display device displays the first ultrasound image based on the target resolution.
[0121] As an optional implementation manner, the display device performs the following steps during the process of executing step 202:
[0122] 401. Determine, from the first ultrasound image, a first target pixel whose semantics is the first target object.
[0123] 402. Determine, from the first ultrasound image, a second target pixel whose semantics is the second target object.
[0124] 403. Determine the center of the first target pixel to obtain a first center pixel.
[0125] 404. Determine the center of the second target pixel to obtain a second center pixel.
[0126] 405. Obtain the first distance based on the distance between the first center and the second center.
[0127] In this embodiment, after determining the first target pixel of the first target object and the second target pixel of the second target object from the first ultrasonic image, the display device determines the center of the first target pixel to obtain the first center pixel, and determines the center of the second target pixel to obtain the second center pixel. Finally, based on the distance between the first center and the second center, the first distance is obtained. In this way, the first distance between the first target object and the second target object in the first ultrasonic image can be obtained based on the distance between the center of the first target object in the first ultrasonic image and the center of the second target object in the second ultrasonic image.
[0128] In one possible implementation, the display device uses the distance between the first center and the second center as the first distance. In another possible implementation, after determining the distance between the first center and the second center, the display device calculates the sum of the distance and a first preset value to obtain the first distance. In yet another possible implementation, after determining the distance between the first center and the second center, the display device calculates the product of the distance and a second preset value to obtain the first distance.
[0129] As an optional implementation, Figure 4 A schematic diagram of a first ultrasound image provided in an embodiment of the present application. Figure 4 As shown, there are four bright spots A, B, C, and D in the first ultrasound image. The first target object and the second target object can be any two of A, B, C, and D. For example, the first target object is point A, and the second target object is point B.
[0130] Optionally, the line between A and B is parallel to the horizontal axis of the pixel coordinate system of the first ultrasound image, the line between C and D is parallel to the horizontal axis of the pixel coordinate system of the first ultrasound image, the line between A and C is parallel to the vertical axis of the pixel coordinate system of the first ultrasound image, and the line between B and D is parallel to the vertical axis of the pixel coordinate system of the first ultrasound image.
[0131] If point A is taken as the first target and point B is taken as the second target, the first distance is the distance between point A and point B. At this time, the distance is the transverse distance in the first ultrasound image. Correspondingly, the second distance is the transverse distance in the display area. The transverse display parameter can be determined based on the ratio of the first distance to the second distance. Similarly, if point C is taken as the first target and point D is taken as the second target, the transverse display parameter can also be determined based on the ratio of the first distance to the second distance.
[0132] If point A is taken as the first target and point C is taken as the second target, then the first distance is the distance between point A and point C, which is the longitudinal distance in the first ultrasound image. Correspondingly, the second distance is the longitudinal distance in the display area. The longitudinal display parameter can be determined based on the ratio of the first distance to the second distance. Similarly, if point B is taken as the first target and point D is taken as the second target, the longitudinal display parameter can also be determined based on the ratio of the first distance to the second distance.
[0133] As an optional implementation manner, the display device determines the center of the first target pixel to obtain the first center pixel by performing the following steps:
[0134] 501. Select any pixel from the first ultrasound image as a candidate pixel.
[0135] In one possible implementation, the display device selects any pixel from a preset area as a candidate pixel, wherein the preset area is a circular area, the preset area includes a target pixel area, the radius of the preset area is a preset value, and the target pixel area is a pixel area composed of first target pixels. Since in the case where the target pixel area is an irregular shape, the center of the first target pixel may not be within the target pixel area, and there may be pixels other than the first target pixel within the preset area, therefore, any pixel from the preset area is selected as a candidate pixel, and the candidate pixel may be a pixel other than the first target pixel, and further, the first center pixel of the first target pixel determined based on the candidate pixel may be a pixel other than the first target pixel, thereby improving the accuracy of the first center pixel. For example, Figure 5 A schematic diagram of a preset area provided in an embodiment of the present application. Figure 5As shown, the preset area includes a target pixel area, and the shape of the target pixel area is irregular. Moreover, the preset area includes an area other than the target pixel area, that is, the preset area includes pixels other than the first target pixel.
[0136] In another possible implementation, the display device selects any one pixel from the first target pixels as a candidate pixel. The semantics of the first target pixel is the first target object, so the first target pixels are all pixels covered by the first target object in the first ultrasound image. Since the center of the target pixel area (i.e., the first center pixel) has a high probability of being a pixel in the first target pixel, the display device first selects any one pixel from the first target pixels as a candidate pixel, which can increase the speed of subsequently determining the first center pixel based on the candidate pixels.
[0137] Optionally, the display device determines a first average value of the abscissas and a second average value of the ordinates of all first target pixels, and then determines pixels whose abscissas are the first average value and whose ordinates are the second average value as candidate pixels.
[0138] 502. Determine a first vector between the candidate pixel and the first target pixel.
[0139] Specifically, the display device determines the vector of the candidate pixel pointing to the first target pixel to obtain the first vector. Optionally, when the number of the first target pixels is greater than 1, the display device determines the vectors of the candidate pixel and each first target pixel respectively to obtain at least two first vectors.
[0140] 503. Calculate the mean of the sum of the first vectors to obtain a second vector.
[0141] If the average value of the sum of the first vectors represents the average value of the vectors of each pixel in the first target pixel and the candidate pixel with the candidate pixel as the center of the first target pixel, in one possible implementation, the display device first determines the sum of all the first vectors, and then calculates the quotient of the sum and the number of first vectors to obtain the second vector.
[0142] 504. When the modulus of the second vector is less than or equal to a modulus threshold, determine the candidate pixel as the first central pixel.
[0143] Since the modulus of a vector represents the length of the vector, and the second vector represents the average value of the vectors of each pixel in the first target pixel and the candidate pixel, the modulus of the second vector can represent the average value of the distances from each pixel in the first target pixel to the candidate pixel. The smaller the average value of the distances from each pixel in the first target pixel to the candidate pixel, the greater the probability that the candidate pixel is the center pixel of the first target pixel. Therefore, when the modulus of the second vector is small, determining that the candidate pixel is the first center pixel can improve the confidence of the first center pixel.
[0144] In the embodiment of the present application, the display device determines whether the modulus length of the second vector is large or small based on the modulus length threshold. Specifically, if the modulus length of the second vector is less than or equal to the modulus length threshold, it means that the modulus length of the second vector is small, and conversely, if the modulus length of the second vector is greater than the modulus length threshold, it means that the modulus length of the second vector is large. Therefore, when the modulus length of the second vector is less than or equal to the modulus length threshold, the display device determines that the candidate pixel is the first center pixel.
[0145] In this embodiment, the display device selects any one pixel from the first target pixel as a candidate pixel. A first vector of the candidate pixel and the first target pixel is determined. The mean of the sum of the first vectors is calculated to obtain a second vector. When the modulus of the second vector is less than or equal to the modulus threshold, the candidate pixel is determined to be the first center pixel, which can improve the confidence of the first center pixel.
[0146] Optionally, when the modulus of the second vector is greater than the modulus threshold, the display device moves the candidate pixel along the second vector to obtain a new candidate pixel. Then, the candidate pixel is replaced with the new candidate pixel, and the following steps are iteratively performed: determining the first vector of the candidate pixel and the first target pixel, calculating the mean of the sum of the first vectors, obtaining the second vector, until the modulus of the second vector is less than or equal to the modulus threshold, and determining the candidate pixel as the first center pixel.
[0147] As an optional implementation manner, the display device performs the following steps during the process of executing step 501:
[0148] 601. Determine a target pixel area composed of the first target pixels from the first ultrasonic image.
[0149] 602. Based on the shape of the first target object, expand the target pixel area to obtain an expanded pixel area.
[0150] In the embodiment of the present application, the shape of the expanded pixel area matches the shape of the first target object. For example, if the shape of the first target object is circular, then the shape of the expanded pixel area obtained by the display device by executing step 602 is also circular. For another example, if the shape of the first target object is spherical, then the shape of the first target object in the two-dimensional image (i.e., the first ultrasound image) should be circular, so the shape of the expanded pixel area obtained by the display device by executing step 602 is also circular. For another example, if the shape of the first target object is rectangular, then the shape of the expanded pixel area obtained by the display device by executing step 602 is also rectangular.
[0151] 603. The center of the expanded pixel area is used as the candidate pixel.
[0152] Optionally, the display device uses the geometric center of the expanded pixel area as a candidate pixel.
[0153] Since the center of the first target pixel is the center of the first target object in the first ultrasound image, and the shape of the first target object in the first ultrasound image should match the actual shape of the first target object, in this embodiment, the display device first expands the target pixel area based on the shape of the first target object to obtain an expanded pixel area, and then uses the center of the expanded pixel area as a candidate pixel. In this way, the first central pixel is determined based on the candidate pixel, which can reduce the amount of data processing for determining the first central pixel and improve the speed of determining the first central pixel.
[0154] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.
[0155] If the technical solution of this application involves personal information, the product using the technical solution of this application has clearly informed the personal information processing rules and obtained the individual's voluntary consent before processing the personal information. If the technical solution of this application involves sensitive personal information, the product using the technical solution of this application has obtained the individual's separate consent before processing the sensitive personal information, and at the same time meets the "explicit consent" requirement. For example, on personal information collection devices such as cameras, clear and prominent signs are set to inform that the personal information collection scope has been entered and personal information will be collected. If the individual voluntarily enters the collection scope, it is deemed that he or she agrees to the collection of his or her personal information; or on the device that processes personal information, the personal information processing rules are notified by obvious signs / information, and the individual's authorization is obtained through pop-up information or by asking the individual to upload his or her personal information; among which, personal information processing may include information such as the personal information processor, the purpose of personal information processing, the processing method, and the type of personal information processed.
[0156] The method of the embodiment of the present application is described in detail above, and the device of the embodiment of the present application is provided below.
[0157] See also Figure 6 , Figure 6 A schematic diagram of the structure of an ultrasonic image display device provided in an embodiment of the present application. The ultrasonic image display device 1 is used to determine the display parameters of the ultrasonic image collected by the ultrasonic acquisition device when it is desired to obtain the effect of displaying the ultrasonic image collected by the ultrasonic acquisition device through the first display device, and the display parameters represent the ratio of the distance between two adjacent pixels in the ultrasonic image collected by the ultrasonic acquisition device to the distance between the two adjacent pixels in the display area. The ultrasonic image display device 1 includes: an acquisition unit 11 and a determination unit 12, specifically:
[0158] An acquisition unit 11 is used to acquire a first ultrasonic image, where the first ultrasonic image is acquired by the ultrasonic acquisition device, and the first ultrasonic image includes a first target object and a second target object;
[0159] A determining unit 12, configured to determine a first distance between the first target object and the second target object in the first ultrasound image;
[0160] The acquiring unit 11 is configured to acquire a second distance, where the second distance is a distance between the first target object and the second target object within a display area of the first display device when the first ultrasound image is displayed by the first display device;
[0161] The determining unit 12 is configured to determine the display parameter based on a ratio of the first distance to the second distance.
[0162] In combination with any implementation manner of the present application, the determining unit 12 is specifically configured to:
[0163] Determining, from the first ultrasound image, a first target pixel having a semantic meaning of the first target object;
[0164] Determining, from the first ultrasound image, a second target pixel having a semantic meaning of the second target object;
[0165] Determine the center of the first target pixel to obtain a first center pixel;
[0166] Determine the center of the second target pixel to obtain a second center pixel;
[0167] The first distance is obtained based on the distance between the first center and the second center.
[0168] In combination with any implementation manner of the present application, the determining unit 12 is specifically configured to:
[0169] Selecting any pixel from the first ultrasound image as a candidate pixel;
[0170] Determine a first vector between the candidate pixel and the first target pixel;
[0171] Calculate the mean of the sum of the first vectors to obtain a second vector;
[0172] When the modulus of the second vector is less than or equal to a modulus threshold, the candidate pixel is determined to be the first central pixel.
[0173] In combination with any implementation manner of the present application, the determining unit 12 is specifically configured to:
[0174] determining a target pixel region composed of the first target pixels from the first ultrasound image;
[0175] Based on the shape of the first target object, the target pixel area is expanded to obtain an expanded pixel area, and the shape of the expanded pixel area matches the shape of the first target object;
[0176] The center of the expanded pixel area is used as the candidate pixel.
[0177] In combination with any embodiment of the present application, the acquisition unit 11 is further used to acquire a display size of a display area of a second display device, where the second display device is a display device different from the first display device;
[0178] The determining unit 12 is further configured to determine, based on the display size and the display parameters, a target resolution at which the second display device displays the image acquired by the ultrasound acquisition device.
[0179] In combination with any embodiment of the present application, the display parameter includes a horizontal display parameter and a vertical display parameter, the horizontal display parameter represents the ratio of the horizontal distance between the two adjacent pixels in the ultrasonic image acquired by the ultrasonic acquisition device to the horizontal distance between the two adjacent pixels in the display area, and the vertical display parameter represents the ratio of the vertical distance between the two adjacent pixels in the ultrasonic image acquired by the ultrasonic acquisition device to the vertical distance between the two adjacent pixels in the display area;
[0180] The determining unit 12 is specifically configured to:
[0181] Determine a first component of a horizontal coordinate of the first distance in a pixel coordinate system, where the pixel coordinate system is a pixel coordinate system of an image acquired by the ultrasound acquisition device;
[0182] Determine a second component of the longitudinal coordinate of the first distance in the pixel coordinate system;
[0183] determining a third component of the second distance in a horizontal direction, where the horizontal direction is a direction in a display area of the first display device corresponding to a horizontal axis of the pixel coordinate system;
[0184] determining a fourth component of the second distance in a longitudinal direction, where the longitudinal direction is a direction in a display area of the first display device corresponding to a longitudinal axis of the pixel coordinate system;
[0185] determining the horizontal display parameter based on a ratio of the first component to the third component;
[0186] The vertical display parameter is determined based on a ratio of the second component to the fourth component.
[0187] In the embodiment of the present application, the first ultrasonic image is acquired by an ultrasonic acquisition device, and the first ultrasonic image includes a first target object and a second target object. After the display device determines the first distance between the first target object and the second target object in the first ultrasonic image, and obtains the second distance between the first target object and the second target object in the world coordinate system. Based on the first distance and the second distance, the display parameter of the ultrasonic image acquired by the ultrasonic acquisition device can be determined, wherein the display parameter represents the ratio of the distance between two adjacent pixels in the ultrasonic image acquired by the ultrasonic acquisition device to the distance between two adjacent pixels in the display area.
[0188] In some embodiments, the functions or modules included in the apparatus provided in the embodiments of the present application can be used to execute the method described in the above method embodiments, and its specific implementation can be the description of the above method embodiments. For the sake of brevity, it will not be repeated here.
[0189] Figure 7 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. The electronic device 2 includes a processor 21 and a memory 22. Optionally, the electronic device 2 also includes an input device 23 and an output device 24. The processor 21, the memory 22, the input device 23 and the output device 24 are coupled via a connector, and the connector includes various interfaces, transmission lines or buses, etc., which are not limited in the embodiments of the present application. It should be understood that in each embodiment of the present application, coupling refers to mutual connection in a specific manner, including direct connection or indirect connection through other devices, for example, it can be connected through various interfaces, transmission lines, buses, etc.
[0190] The processor 21 may be one or more graphics processing units (GPUs). When the processor 21 is a GPU, the GPU may be a single-core GPU or a multi-core GPU. Optionally, the processor 21 may be a processor group consisting of multiple GPUs, and the multiple processors are coupled to each other via one or more buses. Optionally, the processor may also be other types of processors, etc., which are not limited in the embodiments of the present application.
[0191] The memory 22 can be used to store computer program instructions and various computer program codes including the program code for executing the program code of the present application. Optionally, the memory includes but is not limited to random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM), or portable read only memory (CD-ROM), which is used for related instructions and data.
[0192] The input device 23 is used to input data and / or signals, and the output device 24 is used to output data and / or signals. The input device 23 and the output device 24 can be independent devices or an integrated device.
[0193] It can be understood that in the embodiment of the present application, the memory 22 can be used not only to store relevant instructions, but also to store relevant data. The embodiment of the present application does not limit the specific data stored in the memory.
[0194] Understandably, Figure 7 Only a simplified design of an electronic device is shown. In practical applications, the electronic device may also include other necessary components, including but not limited to any number of input / output devices, processors, memories, etc., and all electronic devices that can implement the embodiments of the present application are within the protection scope of the present application.
[0195] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0196] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. Those skilled in the art can also clearly understand that the descriptions of the various embodiments of the present application have different focuses. For the convenience and brevity of description, the same or similar parts may not be repeated in different embodiments. Therefore, for parts not described or not described in detail in a certain embodiment, refer to the records of other embodiments.
[0197] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0198] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0199] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0200] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions may be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital versatile disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).
[0201] A person skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by a computer program to instruct the relevant hardware, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above-mentioned method embodiments. The aforementioned storage medium includes: a read-only memory (ROM) or a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
Claims
1. A method for displaying an ultrasonic image, characterized in that: The method is used to determine a display parameter for displaying an ultrasonic image acquired by an ultrasonic acquisition device when it is desired to obtain an effect of displaying the ultrasonic image acquired by the ultrasonic acquisition device through a first display device, wherein the display parameter represents a ratio of a distance between two adjacent pixels in the ultrasonic image acquired by the ultrasonic acquisition device to a distance between the two adjacent pixels in a display area of the first display device, and the method comprises: Acquire a first ultrasonic image, where the first ultrasonic image is acquired by the ultrasonic acquisition device, and the first ultrasonic image includes a first target object and a second target object; Determine a first distance between the first target and the second target in the first ultrasonic image; the determining the first distance between the first target and the second target in the first ultrasonic image comprises: determining a first target pixel having semantics of the first target from the first ultrasonic image; determining a second target pixel having semantics of the second target from the first ultrasonic image; determining a center of the first target pixel to obtain a first center pixel; determining a center of the second target pixel to obtain a second center pixel; and obtaining the first distance based on the distance between the first center pixel and the second center pixel; The determining, from the first ultrasound image, the first target pixel with the semantic meaning of the first target object comprises: selecting any pixel from the first ultrasound image as a candidate pixel; determining a first vector between the candidate pixel and the first target pixel; calculating the mean of the sum of the first vectors to obtain a second vector; when the modulus of the second vector is less than or equal to a modulus threshold, determining the candidate pixel to be the first center pixel; when the modulus of the second vector is greater than the modulus threshold, moving the candidate pixel along the second vector to obtain a new candidate pixel; and replacing the candidate pixel with the new candidate pixel; Acquire a second distance, where the second distance is a distance between the first target object and the second target object within a display area of the first display device when the first ultrasound image is displayed by the first display device; The display parameter is determined based on a ratio of the first distance to the second distance.
2. The method according to claim 1, characterized in that The selecting any pixel from the first ultrasound image as a candidate pixel comprises: determining a target pixel region composed of the first target pixels from the first ultrasound image; Based on the shape of the first target object, the target pixel area is expanded to obtain an expanded pixel area, and the shape of the expanded pixel area matches the shape of the first target object; The center of the expanded pixel area is used as the candidate pixel.
3. The method according to claim 1 or 2, characterized in that: After determining the display parameter based on the ratio of the first distance to the second distance, the method further includes: Acquire a display size of a display area of a second display device, where the second display device is a display device different from the first display device; Based on the display size and the display parameters, a target resolution of the second display device for displaying the image acquired by the ultrasound acquisition device is determined.
4. The method according to claim 1 or 2, characterized in that: The display parameters include a horizontal display parameter and a vertical display parameter, wherein the horizontal display parameter represents a ratio of a horizontal distance between two adjacent pixels in the ultrasonic image acquired by the ultrasonic acquisition device to a horizontal distance between the two adjacent pixels in the display area, and the vertical display parameter represents a ratio of a vertical distance between two adjacent pixels in the ultrasonic image acquired by the ultrasonic acquisition device to a vertical distance between the two adjacent pixels in the display area; The determining the display parameter based on the ratio of the first distance to the second distance includes: Determine a first component of a horizontal coordinate of the first distance in a pixel coordinate system, where the pixel coordinate system is a pixel coordinate system of an image acquired by the ultrasound acquisition device; Determine a second component of the longitudinal coordinate of the first distance in the pixel coordinate system; determining a third component of the second distance in a horizontal direction, where the horizontal direction is a direction in a display area of the first display device corresponding to a horizontal axis of the pixel coordinate system; determining a fourth component of the second distance in a longitudinal direction, where the longitudinal direction is a direction in a display area of the first display device corresponding to a longitudinal axis of the pixel coordinate system; determining the horizontal display parameter based on a ratio of the first component to the third component; The vertical display parameter is determined based on a ratio of the second component to the fourth component.
5. A display device for ultrasonic images, characterized in that: The ultrasonic image display device is used to determine display parameters for displaying the ultrasonic image acquired by the ultrasonic acquisition device when it is desired to obtain an effect of displaying the ultrasonic image acquired by the ultrasonic acquisition device through the first display device, wherein the display parameters represent a ratio of a distance between two adjacent pixels in the ultrasonic image acquired by the ultrasonic acquisition device to a distance between the two adjacent pixels in a display area of the first display device, and the ultrasonic image display device includes: An acquisition unit, configured to acquire a first ultrasonic image, wherein the first ultrasonic image is acquired by the ultrasonic acquisition device, and the first ultrasonic image includes a first target object and a second target object; a determining unit, configured to determine a first distance between the first target and the second target in the first ultrasonic image; the determining the first distance between the first target and the second target in the first ultrasonic image comprising: determining a first target pixel having semantics of the first target from the first ultrasonic image; determining a second target pixel having semantics of the second target from the first ultrasonic image; determining a center of the first target pixel to obtain a first center pixel; determining a center of the second target pixel to obtain a second center pixel; and obtaining the first distance based on the distance between the first center pixel and the second center pixel; The determining, from the first ultrasound image, the first target pixel with the semantic meaning of the first target object comprises: selecting any pixel from the first ultrasound image as a candidate pixel; determining a first vector between the candidate pixel and the first target pixel; calculating the mean of the sum of the first vectors to obtain a second vector; when the modulus of the second vector is less than or equal to a modulus threshold, determining the candidate pixel to be the first center pixel; when the modulus of the second vector is greater than the modulus threshold, moving the candidate pixel along the second vector to obtain a new candidate pixel; and replacing the candidate pixel with the new candidate pixel; The acquiring unit is configured to acquire a second distance, where the second distance is a distance between the first target object and the second target object within a display area of the first display device when the first ultrasound image is displayed by the first display device; The determining unit is used to determine the display parameter based on a ratio of the first distance to the second distance.
6. An electronic device, characterized in that: include: A processor and a memory, wherein the memory is used to store computer program codes, wherein the computer program codes include computer instructions, and when the processor executes the computer instructions, the electronic device executes the method according to any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by a processor, the processor is enabled to execute the method according to any one of claims 1 to 4.
8. A computer program product, characterized in that The computer program product comprises a computer program; when the computer program is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Data processor
JP1993282412A
Segmentation method and device based on image of radionuclide imaging
WO2014082393A1