Method and device for automatically marking contour of heart cavity image of left ventricle

Through two-dimensional ultrasound image processing and threshold interpolation technology, the left ventricular chamber contour is automatically marked, which solves the problems of tedious drawing steps and low efficiency in the existing technology, achieves fast and accurate image analysis, and is suitable for medical equipment.

CN118845084APending Publication Date: 2024-10-29ESONIC MEDICAL TECHNOLOGY (BEIJING) CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410917144.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

The existing technology has the problems of cumbersome steps and low efficiency in the left ventricular chamber image contour drawing process, and has high hardware and software requirements for equipment and users, making it difficult to meet the needs for fast and accurate diagnosis.

Method used

By acquiring two-dimensional ultrasound images, segmenting the probe imaging area, calculating cumulative values ​​and effective point sequences, and using threshold and interpolation techniques to draw cardiac chamber contours, the impact of subjective judgment is reduced and automatic labeling is achieved.

Benefits of technology

It improves the drawing efficiency of left ventricular chamber image contours, lowers the threshold for use of equipment and users, provides high-precision and real-time image analysis results, and is suitable for medical color ultrasound equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118845084A_ABST
    Figure CN118845084A_ABST
Patent Text Reader

Abstract

The invention provides a method and device for automatically marking the contour of a left ventricular heart cavity image, and the method comprises the steps: obtaining a two-dimensional ultrasonic image of the left ventricular heart cavity from an ultrasonic scanning display device, taking the two-dimensional ultrasonic image as a first image, and enabling the first image to comprise a calibrated scale and an image region image of a screen display interface of other graphic icons; determining the complete pixel size of the image according to the first image; according to the first image, cutting along the boundary pixels of the graduated scale and the icon or removing elements of a peripheral non-image display area through an effect of processing a mask to obtain a second image; according to the second image, distinguishing the image of the imaging area of the probe from other external images; and traversing each point in the probe imaging area, and calculating to obtain an accumulated value and a sequence of effective points. The device comprises a threshold acquisition module, a coordinate processing module and an image display module. According to the invention, automatic marking of the left ventricle cardiac cavity image is realized, and a rapid and accurate result is provided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of ultrasonic image processing, and in particular to a method and a device for automatically marking the contour of a left ventricular cavity image. Background Art

[0002] Ultrasound imaging technology is a medical imaging technology that uses the principle of ultrasonic wave propagation and reflection in human tissue to generate images of human tissue by receiving and processing ultrasonic signals. It is a non-invasive and radiation-free imaging technology that does no harm to the human body. With the continuous development and widespread application of ultrasonic imaging technology, intracardiac ultrasound has gradually been widely used in the diagnosis and treatment of heart diseases.

[0003] In the past, when measuring cardiac ultrasound images, the mouse was often dragged to manually draw contours on the image interface, which facilitated the measurement, calculation and functional evaluation of image contents such as the left ventricle and the heart cavity. However, the disadvantages of this contour drawing method are obvious, specifically: the operation of dragging the mouse is affected by factors such as the device hardware and user techniques, which can easily affect the accuracy of the drawn contour; in addition, the judgment of the contour is also affected by human subjectivity. In addition, some ultrasound devices have proposed a user-assisted selection scheme for left ventricular contour drawing: the user drags the mouse on the image interface to pull out a bright box, drags the box to an appropriate size, covers and only covers the entire left ventricle, and thus selects the region of interest (ROI) for the left ventricle. The device will use this area as the boundary to calculate and display the contour boundary position of the left ventricle. Although the above contour drawing method is more convenient than the traditional manual drawing method, it is still subject to subjective influence of user judgment; and this method is still a manually assisted semi-automatic drawing method in operation. Some ultrasound devices have proposed adding machine learning to make the contour of the heart cavity adapt to changing situations when drawing the contour of the left ventricle. However, this method not only requires a large amount of data and images to support it, but also requires the machine learning model to be trained and tested in advance before the contour of the heart cavity image can be drawn on the device; in addition, the data processing process also requires a certain amount of computing power for the device. With the development of technology, the demand for contour drawing is gradually expanding, so improving the efficiency of drawing the contour of the heart cavity has also become a problem that needs to be solved.

[0004] Prior art 1, application number: CN 202211055845.1 discloses a left ventricular cavity contour extraction method, device, medium and equipment, the method comprising: obtaining a cardiac ultrasound image; obtaining the left atrium and left ventricle area in the cardiac ultrasound image; expanding the left atrium and left ventricle area in the cardiac ultrasound image to obtain a target image; processing the target image to obtain the cardiac cavity contour and its feature points; displaying the cardiac cavity contour and its feature points. Although the left ventricular cavity contour extraction method can accurately extract the cardiac cavity contour and its feature points. However, using the cardiac cavity contour extraction model to process the target image to obtain the cardiac cavity contour and its feature points, it relies too much on the model, puts high requirements on the hardware and software of the equipment, and the steps are cumbersome and the efficiency is low.

[0005] Prior art 2, application number: CN 202210244876.5 discloses a left ventricular edge contour fitting method, device, equipment and storage medium, the method comprising: determining the apex position point according to the first intersection point of the left ventricular septum and the mitral valve and the second intersection point of the left ventricular wall and the mitral valve in the target two-dimensional echocardiogram; determining the first edge contour according to the first intersection point and the apex position point; determining the second edge contour according to the second intersection point and the apex position point; determining the left ventricular edge contour in the target two-dimensional echocardiogram according to the first edge contour and the second edge contour. The apex position point is determined by the first intersection point of the left ventricular septum and the mitral valve and the second intersection point of the left ventricular wall and the mitral valve, and the left ventricular edge contour is determined according to the first edge contour determined by the first intersection point and the apex position point and the second edge contour determined by the second intersection point and the apex position point. Although the left ventricular edge contour can be fitted according to the first edge contour and the second edge contour, the accuracy of the left ventricular edge contour is improved. However, determining the contour through position points leads to inaccurate contours on the one hand, and multiple contour determinations place high demands on the computing power of the device hardware on the other.

[0006] Prior art three, application number: CN202210881016.2 discloses a method, device and ultrasonic imaging equipment for determining left ventricular parameters, including: collecting two-dimensional ultrasonic cardiac data of a target object within a continuous time period, the continuous time period is greater than one cardiac cycle, and the two-dimensional ultrasonic cardiac data includes multiple frames of two-dimensional ultrasonic cardiac images; determining multiple frames of target frame images in the multiple frames of two-dimensional ultrasonic cardiac images, the target frame images include multiple frames of end-diastolic images corresponding to the end-diastolic period and multiple frames of end-systolic images corresponding to the end-systolic period; performing image segmentation on the target frame images to determine the left ventricular contour of the target frame images; determining the apex position point, the junction point between the left ventricular septum and the mitral valve, and the junction point between the left ventricular wall and the mitral valve in the left ventricular contour; determining the left ventricular parameters according to the left ventricular contour, the apex position point, the junction point between the left ventricular septum and the mitral valve, and the junction point between the left ventricular wall and the mitral valve. Although both the efficiency and accuracy of left ventricular measurement are taken into account. However, its function is relatively simple, and it only realizes the measurement of left ventricular parameters, but does not make accurate measurement of its contour, which limits its application and cannot improve the accuracy of left ventricular images.

[0007] At present, the existing technologies 1, 2 and 3 have the problem that the steps of drawing the left ventricle image are complicated and the drawing efficiency is low. Therefore, the present invention provides a method and device for automatically marking the contour of the left ventricle cavity image, and a method for automatically drawing the contour of the left ventricle cavity with two measurement states for different probe types; it can improve the contour drawing efficiency, reduce the threshold for equipment and user use, and better meet user needs. Summary of the invention

[0008] In order to solve the above technical problems, the present invention provides a method for automatically marking the contour of a left ventricular cavity image, comprising the following steps:

[0009] Acquire a two-dimensional ultrasonic image of the left ventricular cavity from an ultrasonic scanning display device, and use the two-dimensional ultrasonic image as a first image;

[0010] Determine the full pixel size of the image based on the first image; obtain the second image based on the first image;

[0011] According to the second image, the image of the probe imaging area is distinguished from other external images; each point in the probe imaging area is traversed to calculate the sequence of accumulated values ​​and valid points; the calculated result set is integerized, and the corresponding coordinate set is marked and displayed in the image display area on the screen, so as to obtain a marking curve for drawing the contour of the heart cavity.

[0012] Optionally, based on the first image, the elements of the peripheral non-image display area are removed by cutting the boundary pixels along the scale and the icon or by processing the mask effect to obtain the second image.

[0013] Optionally, the process of calculating the sequence of accumulated values ​​and valid points includes the following steps:

[0014] According to the acquired second image, the probe imaging area is segmented from the second image, and the position of the probe imaging area is determined according to the gray value or edge information of the image;

[0015] For a determined probe imaging area, traverse each pixel point therein; for each traversed pixel point, accumulate its pixel value to obtain the accumulated value of the pixels in the imaging area;

[0016] The coordinates of each valid pixel point traversed are recorded to form a sequence of all valid points in the area; the sequence is used to analyze and process local features in the area; statistics are extracted and calculated to obtain threshold parameters for determining the coordinates of valid pixel points.

[0017] Optionally, the process of calculating the center point of the probe imaging area according to the probe type includes the following steps:

[0018] Get the type of probe and input the relevant parameters of the probe;

[0019] According to the probe type, characteristics and known variables, the imaging area is subjected to image processing or numerical extraction operations including mask processing, and the vertex coordinates of the imaging area are found;

[0020] According to the parameters and their characteristics in the imaging area, the imaging display area is divided into different divisions by the midline, angle bisector and arc line.

[0021] Optionally, the operation part of searching for the edge point of the selected cardiac cavity and obtaining the coordinates of the edge point includes the following steps:

[0022] According to the input search center coordinates or position coordinates, a coordinate system is established at the position of the search center point; and the image display area is divided into several parts according to the coordinate system;

[0023] The edge points of the cardiac cavity contour are searched by emitting rays from the search center to the surroundings; the step length of the ray search is set, including different angles and different distances of the rays; according to the step length, the edge points of the cardiac cavity contour are searched line by line and point by point on each ray to find the edge points of the cardiac cavity contour;

[0024] According to the gray value of the calculated point, the difference or multiple value is calculated, and combined with the set threshold or weight, it is judged whether the requirement for determining the coordinates of the edge point here is met.

[0025] Optionally, mark the edge points found, and determine whether the result is accurate based on the mark value, and use a threshold to determine the accuracy of the edge points; if the threshold is reached, stop searching and return the value; if the threshold is not reached, continue the calculation of the current edge point search.

[0026] Optionally, the process of obtaining the result set includes the following steps:

[0027] According to the calculated edge point coordinates, fill in the empty positions that were searched according to the step size but did not return a valid value; by traversing the coordinate values ​​of all edge points, calculate the first set of all points after completion; fill in according to the horizontal and vertical coordinates respectively, or use the parameters calculated by the coordinates to fill in;

[0028] Traverse each point in the first set, filter it to smooth the connection between the points, and perform coordinate transformation operations as needed;

[0029] According to the first set of points processed by filtering and smoothing, the indexes thereof are interpolated; when the set threshold or weight value is exceeded, interpolation is performed between adjacent points to form a second set of more uniform points; interpolation calculation is performed on the second set of uniform points obtained by index interpolation; after processing, a third set is obtained, the horizontal and vertical coordinates of the third set points are calculated, and a result set is obtained.

[0030] Optionally, the coordinate processing of all points includes conversions between different coordinate systems or coordinate forms;

[0031] Interpolation calculation is performed on the second set of uniform points obtained by index interpolation; if the completion data is not directly completed using the horizontal and vertical coordinates, it is necessary to convert the coordinates here, and the third set is obtained after processing.

[0032] The present invention provides a device for automatically marking the contour of a left ventricular cavity image, comprising:

[0033] The threshold acquisition module is responsible for acquiring the two-dimensional ultrasonic image of the cardiac cavity and extracting the threshold parameter after processing the two-dimensional ultrasonic image;

[0034] The coordinate processing module is responsible for determining the location of the search center point according to the characteristics of various probes; establishing a coordinate system by searching the center point, and finding points at the edge of the heart cavity in the form of ray search; completing the edge points found; performing smoothing filtering; performing coordinate conversion on the points; and interpolating the coordinate index of the points to make the distribution more uniform.

[0035] The image display module is responsible for interpolating the coordinates of the points to make the distribution more continuous; the processed points are displayed on the screen according to the coordinates.

[0036] Optional, coordinate processing module, including:

[0037] The edge point processing submodule is responsible for processing edge points: completing the set of all edge points searched; performing smoothing filtering; and then transforming the coordinates of the points to obtain processed edge points;

[0038] The index interpolation submodule is responsible for interpolating the index of the points to make the distribution more uniform and obtain the edge points after index interpolation;

[0039] The coordinate difference submodule is responsible for interpolating the coordinates of the points to make the distribution more continuous and obtain the edge points after coordinate interpolation;

[0040] The coordinate overlay submodule is responsible for displaying the marked contour map and quantitative index parameters of the edge points superimposed by coordinates on the screen.

[0041] The real-time performance and algorithm simplicity of the present invention: the method adopted should be real-time and be able to generate the contour of the heart cavity shape in a relatively short time; at the same time, the algorithm should be simple, easy to implement and operate. High precision: the method should be able to draw the contour with the basic heart cavity shape, ensure that the drawn contour has a high degree of consistency with the actual heart cavity shape, and provide accurate structural information. Strong feasibility: the method should have simple and rapid deployment capabilities and can be easily applied to medical color ultrasound equipment; it does not require a large amount of data and image support, nor does it require advance training and testing of machine learning methods. Automatic drawing method: the method should be an automatic drawing method that does not require manual operation by the user, thereby reducing the use threshold of the equipment and users. However, the method should also include an optional manual operation scheme to meet specific needs. Reduce the impact of subjective judgment: by using an automatic drawing method, the impact of subjective judgment that exists when the user draws manually can be reduced, thereby improving the objectivity and accuracy of the drawing results.

[0042] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings.

[0043] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0045] Figure 1 This is a flow chart of a method for automatically marking the contour of a left ventricular cavity image in Embodiment 1 of the present invention;

[0046] Figure 2 The principle of the method for automatically marking the contour of the left ventricle cavity image in embodiment 1 of the present invention Figure 1 ;

[0047] Figure 3 The principle of the method for automatically marking the contour of the left ventricle cavity image in embodiment 1 of the present invention Figure 2 ;

[0048] Figure 4 is a diagram of the process of acquiring a two-dimensional ultrasonic image in Example 2 of the present invention;

[0049] Figure 5 is a diagram of the process of obtaining the second image in Embodiment 3 of the present invention;

[0050] Figure 6 A process diagram of calculating a sequence of accumulated values ​​and effective points in Embodiment 4 of the present invention;

[0051] Figure 7 A process diagram of calculating the center point of the probe imaging area according to the probe type in Example 5 of the present invention;

[0052] Figure 8 It is a schematic diagram of the process of the phased array searching for the search center point on the ray in Embodiment 5 of the present invention;

[0053] Fig. 9 It is a schematic diagram of the process of searching for the center point of the convex array on the ray in Example 5 of the present invention;

[0054] Fig.10 This is a process diagram for obtaining edge point coordinates in Example 6 of the present invention;

[0055] Fig.11 This is a schematic diagram of searching for edge points by emitting rays from the search center in Embodiment 7 of the present invention;

[0056] Fig.12 A block diagram of a device for automatically marking the contour of a left ventricular cavity image in Embodiment 8 of the present invention;

[0057] Fig.13 This is a schematic diagram of the device for automatically marking the contour of the left ventricular cavity image in Example 8 of the present invention. DETAILED DESCRIPTION

[0058] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0059] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the embodiments of the present application. The singular forms of "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0060] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims. In the description of the present application, it should be understood that the terms "first", "second", "third", etc. are only used to distinguish similar objects, and do not have to be used to describe a specific order or sequence, nor can they be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances.

[0061] Example 1: Figure 1 As shown, an embodiment of the present invention provides a method for automatically marking the contour of a left ventricular cavity image, comprising the following steps:

[0062] S100: Acquire a two-dimensional ultrasound image of the left ventricular cavity from an ultrasound scanning display device, and use the two-dimensional ultrasound image as a first image, wherein the first image includes an image area image of a screen display interface including a scale and other graphic icons;

[0063] S200: determining the full pixel size of the image according to the first image; according to the first image, removing elements of the peripheral non-image display area by cutting pixels along the scale and the icon boundary or by processing the mask effect, to obtain a second image;

[0064] S300: Based on the second image, the image of the probe imaging area is distinguished from other external images; each point in the probe imaging area is traversed to calculate the sequence of accumulated values ​​and valid points; the calculated result set is integerized, and the corresponding coordinate set is marked and displayed in the image display area on the screen, so as to obtain a marking curve for drawing the contour of the cardiac cavity.

[0065] Among them, external other images refer to partial images or noise other than the two-dimensional ultrasound image obtained by the ultrasound scanning equipment; due to the imaging principle and range limitation of the ultrasound scanning equipment, the image may contain some irrelevant information or noise, such as the markings of the instrument itself, invalid data in the boundary part, etc.; when performing image processing and analysis, these external other images need to be distinguished from the target image in order to correctly locate and process the content of the target image.

[0066] The working principle and beneficial effects of the above technical solution are as follows: This embodiment first obtains a two-dimensional ultrasonic image of the left ventricular cavity from an ultrasonic scanning display device, and uses the two-dimensional ultrasonic image as the first image. The first image includes an image area image of a screen display interface of a scale and other graphic icons; secondly, the complete pixel size of the image is determined according to the first image; according to the first image, the elements of the peripheral non-image display area are removed by cutting along the boundary pixels of the scale and the icon or by processing the mask effect to obtain a second image; finally, according to the second image, the image of the probe imaging area is distinguished from other external images; each point in the probe imaging area is traversed to calculate the accumulated value and the sequence of valid points; the calculated result set is integerized, and the corresponding coordinate set is marked and displayed in the image display area on the screen to obtain a marking curve for drawing the contour of the cardiac cavity. (For specific principles, please refer to the attached Figure 2 and attached Figure 3 ). Step S100 of the above scheme obtains the original cardiac cavity image and displays it on the screen to facilitate subsequent processing and analysis. Step S200 removes the non-cardiac cavity area in the image and only retains the image information of the cardiac cavity, which reduces the complexity of subsequent processing and focuses on the automatic marking of the cardiac cavity contour. Step S300 determines the boundary of the cardiac cavity and calculates the position of the effective point to provide accurate boundary information for subsequent automatic marking and achieve accurate cardiac cavity contour marking.

[0067] In summary, this embodiment realizes automatic labeling of left ventricular cavity images and provides fast and accurate results; automatic labeling can help doctors analyze the morphology and function of the heart cavity and assist in the diagnosis of heart disease; this automated method can save time and labor costs and improve the efficiency and accuracy of medical diagnosis. This embodiment removes non-image elements in the imaging area in a reasonable way, improving the quality of contour curve drawing; according to the characteristics of different probes and imaging areas of different types and geometric shapes, it can obtain different reasonable processing methods through image processing and geometric calculation under the premise of controlling a certain number of calculation methods, thereby improving the efficiency of contour drawing on the basis of the obtained results; it does not require a large amount of data and images for training and testing in advance, and is highly feasible.

[0068] The real-time performance and algorithm simplicity of this embodiment: the method adopted should be real-time and be able to generate the contour of the heart cavity shape in a relatively short time; at the same time, the algorithm should be simple, easy to implement and operate. High precision: the method should be able to draw the contour with the basic heart cavity shape, ensure that the drawn contour has a high degree of consistency with the actual heart cavity shape, and provide accurate structural information. Strong feasibility: the method should have simple and rapid deployment capabilities and can be easily applied to medical color ultrasound equipment; it does not require a large amount of data and image support, nor does it require advance training and testing of machine learning methods. Automatic drawing method: the method should be an automatic drawing method that does not require manual operation by the user, thereby reducing the use threshold of the equipment and users. However, the method should also include an optional manual operation scheme to meet specific needs. Reduce the impact of subjective judgment: by using an automatic drawing method, the impact of subjective judgment that exists when the user draws manually can be reduced, thereby improving the objectivity and accuracy of the drawing results.

[0069] The result image of the marker contour displayed in this embodiment is not limited to a single marker image, but may include a combination of the marker image and other ultrasound image modes. The combined image can be displayed in real time or statically. The indicator parameters can be displayed as a single indicator or in combination of multiple indicators, and each indicator parameter can be displayed dynamically over time.

[0070] Example 2: Figure 4 As shown, based on Example 1, the process of acquiring a two-dimensional ultrasound image provided by the embodiment of the present invention includes the following steps:

[0071] S101: transmitting and receiving ultrasound signals to a left ventricular cavity target, using an ultrasound scanning device to obtain a two-dimensional ultrasound image of the left ventricular cavity, extracting feature points from consecutive frames of the two-dimensional ultrasound image, and calculating a feature descriptor for each extracted feature point; the feature descriptor is a vector used to describe a local image structure around the feature point;

[0072] S102: For feature points in consecutive frames, matching is performed by comparing feature descriptors to find corresponding feature point pairs in two frames;

[0073] S103: using the matched feature point pairs, estimating the motion between the images; adjusting the position and scale of the images according to the translation, rotation and scaling between the images according to the motion estimation result, and aligning the continuous frames.

[0074] The working principle and beneficial effects of the above technical solution are as follows: In this embodiment, first, ultrasonic signals are transmitted and received to the left ventricular cavity target, and a two-dimensional ultrasonic image of the left ventricular cavity is obtained by using an ultrasonic scanning device, and feature points are extracted from the continuous frames of the two-dimensional ultrasonic image. For each extracted feature point, its feature descriptor is calculated; the feature descriptor is a vector used to describe the local image structure around the feature point; secondly, for the feature points in the continuous frames, matching is performed by comparing the feature descriptors to find the corresponding feature point pairs in the two frames; finally, the motion between the images is estimated using the matched feature point pairs; according to the motion estimation results, the position and scale of the image are adjusted according to the translation, rotation and scaling between the images, and the continuous frames are aligned. The feature point extraction and description in step S101 of the above scheme is to find stable and distinguishable structures in the image. By calculating the feature descriptors, these feature points can be quantitatively described and compared, providing a basis for subsequent feature matching. In step S102, feature point matching can establish a corresponding relationship between continuous frames, provide accurate motion information for subsequent image alignment, and thus solve the misalignment problem caused by vibration and motion between images. Image alignment in step S103 can reduce image motion caused by vibration, keep consecutive frames consistent in position and scale, and thus improve image quality and clarity. The aligned image can more accurately display the cardiac cavity structure, which is helpful for doctors to evaluate and diagnose the left ventricular cavity.

[0075] In summary, this embodiment can reduce the vibration and motion in the image and improve the quality and clarity of the two-dimensional ultrasound image through the steps of feature point extraction, feature point matching and image alignment, thereby providing doctors with more accurate cardiac cavity structure information, which is helpful for diagnosing diseases and formulating treatment plans. Through the above process, the method based on feature point matching can align continuous frames and reduce image motion caused by vibration, thereby improving image quality and clarity. It is necessary to select appropriate feature extraction, description, matching and motion estimation algorithms according to specific application scenarios and image characteristics, and adjust and optimize parameters.

[0076] Example 3: Figure 5 As shown, based on Example 1, the second image acquisition process provided by the embodiment of the present invention includes the following steps:

[0077] S201: creating a mask image of the same size as the first image according to the size and shape of the first image; in the mask image, the central area is white or other obvious colors, and the peripheral area is black or other colors that will not be confused with the image display;

[0078] S202: superimposing the mask image and the first image, performing bitwise operation on the two images pixel by pixel, and determining the pixel value in the first image according to the value of the mask image; the white area in the mask image will retain the pixel value in the first image, and the black area will be blocked by the mask;

[0079] S203: By superimposing the masked image, distinguish the probe scanning area with image display in the center and other peripheral display element areas; use different colors or marking methods to mark these two areas; according to the marking result, use the cropping function in the image processing software or programming language to determine the image area that needs to be retained according to the marking information, cut off other areas, and obtain a second image.

[0080] The working principle and beneficial effects of the above technical solution are as follows: First, according to the size and shape of the first image, this embodiment creates a mask image of the same size as the first image; in the mask image, the central area is white or other obvious colors, and the peripheral area is black or other colors that will not be confused with the image display; secondly, the mask image is superimposed on the first image, and the two images are bitwise operated pixel by pixel, and the pixel value in the first image is determined according to the value of the mask image; the white area in the mask image will retain the pixel value in the first image, and the black area will be blocked by the mask; finally, by superimposing the masked image, the probe scanning area with image display in the center and other display element areas in the periphery are distinguished; different colors or marking methods are used to mark these two areas; according to the marking results, the cropping function in the image processing software or programming language is used to determine the image area to be retained according to the marking information, and other areas are cut off to obtain the second image. The purpose of creating the mask image in step S201 of the above scheme is to distinguish the central area from the peripheral area, and provide guidance and restrictions for subsequent image processing. Step S202 can retain the central area in the first image and block the peripheral area by superimposing a mask, thereby separating the image display area. Step S203 distinguishes and marks the central area and the peripheral area for further processing the image, accurately determining the image area to be retained, and eliminating the influence of external interference factors; by cutting the image, the elements of the peripheral non-image display area can be removed to obtain a second image containing only the probe scanning area with image display in the center, making the image clearer and more accurate.

[0081] In this embodiment, in addition to operating by using a mask, the boundary of the entire image can also be cut directly or indirectly along the boundary pixels of other elements such as the scale and the icon, and only the probe scanning area in the middle of the first image is retained, thereby obtaining the second image; specifically, the following steps are included:

[0082] Scanning with an ultrasonic scanning device to obtain a first image, including a probe scanning area with an image displayed in the center and surrounding scales and other elements;

[0083] Through image processing algorithms, the boundary pixels of other elements such as scales and icons can be detected; edge detection algorithms, such as Canny edge detection, can be used to find boundary pixels in an image;

[0084] According to the detected boundary pixels, the bounding box of the image is calculated, and according to the position and size of the bounding box, the first image can be cut to keep only the probe scanning area in the middle;

[0085] The second image can be obtained by cutting the image. The second image only contains the probe scanning area in the middle, and the surrounding scales and other elements are removed. Through the above steps, the boundary of the entire image can be cut along the boundary pixels of other elements such as scales and icons, and only the probe scanning area in the middle of the first image is retained to obtain the second image. The processing can remove the interference elements in the image, making the second image clearer and more accurate, which is convenient for subsequent image analysis and processing.

[0086] In this embodiment, image processing in the second image acquisition process may refer to methods such as dilation, erosion, binarization, edge detection, etc., or may refer to methods such as cropping, splicing, and expanding the edge of the image; the background and image include graphics displayed on the screen interface, image display area, probe scanning area, etc.

[0087] In summary, through the above steps, this embodiment can create a mask image, superimpose the mask and the marked area, cut the image, and finally obtain the second image; the central area can be separated from the peripheral area, and the external interference elements can be removed, so that the second image is clearer and more accurate, which is convenient for subsequent image analysis and processing. Through the above steps, the mask superposition method can be used to distinguish the probe scanning area with image display in the center and other display element areas in the periphery, and the elements of the peripheral non-image display area can be cut off to obtain the second image; the image of the central area can be displayed more clearly, and the interference elements in the periphery can be removed, thereby improving the quality and accuracy of the image.

[0088] Example 4: Figure 6 As shown, based on Example 1, the process of calculating and obtaining the sequence of accumulated values ​​and effective points provided in the embodiment of the present invention specifically includes the following steps:

[0089] S301: segmenting a probe imaging region from the second image according to the acquired second image, and determining a position of the probe imaging region according to a gray value or edge information of the image;

[0090] S302: for the determined probe imaging area, traverse each pixel point therein; for each traversed pixel point, the pixel value thereof may be accumulated to obtain the accumulated value of the pixels in the imaging area;

[0091] S303: Record the coordinates of each valid pixel point traversed to form a sequence of all valid points in the region; the sequence is used to analyze and process local features in the region, such as morphological shape analysis and contour extraction; extract statistics and calculate to obtain threshold parameters for determining the coordinates of valid pixel points;

[0092] According to the accumulated value and the sequence of valid points, the mean, standard deviation or variance and other statistics are calculated to distinguish the gray values ​​in the image; and the image is divided by setting the threshold variable according to the calculated statistics, and set as the linear threshold res th ;

[0093]

[0094] Wherein, ΔTh represents the threshold interval; ΔG represents the statistical value interval of the judgment threshold; ΔG1 represents the interval between the real-time statistical value and the statistical value of the judgment threshold; Th1 represents the reference threshold;

[0095] Optionally, set the same threshold res when setting the threshold th or multiple thresholds: res th1 ,res th2 ,res th3 , ..., res thN Etc., so as to distinguish them when using.

[0096] The working principle and beneficial effects of the above technical solution are as follows: This embodiment first segments the probe imaging area from the second image according to the acquired second image, and determines the position of the probe imaging area according to the grayscale value or edge information of the image; secondly, for the determined probe imaging area, traverse each pixel point therein; for each traversed pixel point, its pixel value can be accumulated to obtain the accumulated value of the pixels in the imaging area; finally, the coordinates of each traversed valid pixel point are recorded to form a sequence of all valid points in the area; the sequence is used to analyze and process local features in the area, such as morphological shape analysis and contour extraction, etc.; extract statistics calculation to obtain threshold parameters for determining the coordinates of valid pixel points. Step S301 of the above scheme can remove the interference of other external factors on image analysis and processing, making subsequent calculations and analysis more accurate and reliable. Step S302 The accumulated value can provide overall brightness information in the imaging area for subsequent image analysis and processing, such as brightness adjustment, contrast enhancement, etc. The effective point sequence in step S303 can be used to analyze and process local features within the area, such as morphological shape analysis, contour extraction, etc.; by analyzing the position and distribution of effective points, more detailed image structure information can be obtained; by calculating statistics and setting thresholds, segmentation and classification can be performed according to the grayscale values ​​in the image, and the image area of ​​interest can be further extracted; it is helpful to accurately extract the contour of the heart cavity shape and provide accurate structural information for subsequent analysis and diagnosis.

[0097] In summary, this embodiment can analyze and process the image of the probe imaging area through the above steps, including the calculation of cumulative values, the recording of effective point sequences, the calculation of statistics and the setting of thresholds, which can extract effective image information, help further analyze and understand the characteristics of the heart cavity shape, and provide accurate image data for medical diagnosis and research. Through the above steps, the image of the probe imaging area can be distinguished from other external images based on the second image, and each pixel point in the area can be traversed, and the cumulative value of the pixels in the imaging area and the sequence of all effective points in the area can be calculated. Such processing can provide basic data for subsequent image analysis and processing, and help further analyze the characteristics and properties of the probe imaging area.

[0098] In this embodiment, the calculated statistics may refer to the mean, median, standard deviation, variance, etc.; the obtained threshold may be a difference or a multiple, or may be one or more depending on the actual situation; the threshold variable refers to the threshold taken in different images, which will change in real time according to the image changes and participate in the calculation as a variable.

[0099] Example 5: Figure 7 As shown, based on Example 4, the process of calculating the center point of the probe imaging area according to the probe type provided in the embodiment of the present invention includes the following steps:

[0100] S3021: Obtain the type of probe and input parameters related to the probe;

[0101] The relevant parameters of the probe include: one or more of the following parameters: the probe viewing angle φ, the maximum radius R of the probe imaging, the coordinate value of the top or bottom center point, etc.;

[0102] S3022: According to the probe type, characteristics and known variables, etc., the imaging area is subjected to appropriate image processing or numerical extraction operations including mask processing, and the vertex coordinates of the imaging area are found;

[0103] S3023: Divide the imaging display area into different divisions by means of a midline, an angle bisector and an arc line according to the parameters and their characteristics in the imaging area.

[0104] The working principle and beneficial effects of the above technical solution are as follows: the present embodiment first obtains the type of probe and inputs the parameters related to the probe; secondly, according to the type, characteristics and known variables of the probe, the imaging area is subjected to appropriate image processing or numerical extraction including mask processing, and the vertex coordinates of the imaging area are found; finally, according to the parameters and their characteristics in the imaging area, the imaging display area is divided into different divisions by the midline, angle bisector and arc line. Step S3021 of the above scheme obtains the type and related parameters of the probe for subsequent calculation and processing; the type and parameters of the probe have an important influence on the calculation of the center point of the imaging area. By obtaining this information, corresponding processing and calculation can be performed according to different probe types. Step S3022 performs appropriate image processing or numerical extraction operations on the imaging area to find the vertex coordinates of the imaging area; the vertex coordinates of the imaging area are an important basis for calculating the center point. By processing and analyzing the imaging area, the geometric features of the imaging area can be located, thereby finding the position of the center point. Step S3023 divides the imaging display area according to the parameters and characteristics of the imaging area, such as by midline, angle bisector and arc line; the appropriate division of the imaging area can better extract the characteristics and structure of the imaging area, so as to accurately calculate the position of the center point, which is helpful to further analyze and understand the characteristics of the probe imaging area.

[0105] In summary, through the above steps, this embodiment can calculate the center point of the probe imaging area according to the probe type; it can appropriately process and analyze the imaging area according to the specific probe type and parameters, find the vertex coordinates of the imaging area, and calculate the position of the center point through a suitable division method; it helps to accurately extract the center point of the probe imaging area and provide accurate structural information for subsequent analysis and diagnosis.

[0106] In this embodiment, the phased array search center calculation process includes:

[0107] like Figure 8 As shown, when the probe type is a phased array, the fixed coordinates of the top vertex pixel point of the probe scanning area in the first image Img are obtained, and the angle bisector of the probe viewing angle φ is made through the point. At this time, the range of the imaging area can be divided into two equal parts;

[0108] Starting from the vertex and the angle bisector, num1 rays are emitted into the image area with a step length of δ as the angle step length; along each ray, the grayscale value is searched on the ray with a step length of d as the point distance step length, and the search direction is from the middle to both sides at the same time;

[0109] On each ray, find the coordinates of the critical pixel point where the gray value increases on the line:

[0110]

[0111] Among them, j represents the index of the point on the ray; n represents the index interpolation of the point on the ray; N represents the maximum value of the index interpolation of the point on the ray; res th represents the set threshold; weightcoef represents the weight coefficient; Img represents the first image;

[0112] Find the coordinates of the critical pixel points where the grayscale value decreases on each ray. The formula is the same as finding the coordinates of the critical pixel points where the grayscale value increases on each ray. Collect the coordinates of the critical pixel points where the grayscale value increases and decreases on each ray, and record them as sets M and N respectively.

[0113] Filter or protect the searched result values. Eliminate values ​​in M ​​that are smaller than any element in N, and eliminate values ​​in M ​​that are smaller than any element in N; and eliminate values ​​in the same set that have no elements in the other set.

[0114] The purpose in this example can be to find the value with the largest interval between adjacent elements M and N; or to find the value with the largest difference between elements M and N; and collect all coordinate positions related to the value;

[0115] The collected coordinate positions are numerically calculated to obtain a new set Q. If the elements in the set Q are a non-empty set; there is only one element; and the coordinate value of the element meets the range requirements of the image area;

[0116] According to the above requirements, the search center point O can be directly specified here; or the approximate position P of the search center point can also be specified here;

[0117] At the same time, after finding point O or point P, stop searching for the center point immediately; if it is not found on the ray, continue searching on the next ray.

[0118] In this embodiment, the calculation process of searching the center of the linear array is similar to that of the phased array, but no angle needs to be calculated: it starts directly from the straight line where the middle pixel point in the horizontal coordinate direction of the image display area is located, and searches in the left and right directions at the same time, and then searches for the coordinates of the critical pixel point with increased grayscale value on each ray until point O or point P is found, and then stops the same step of calculating the center point search immediately. After completion, the coordinates of point O or point P can be obtained.

[0119] In this embodiment, the calculation process of finding the search center of the convex array includes:

[0120] like Fig. 9 As shown, when the probe type is a convex array, firstly obtain the fixed coordinates of the midpoint pixel point B at the bottom of the probe scanning area in the first image Img;

[0121] The two ends of the convex array probe are from points C and D to Figure 8 The two extension lines are extended in the opposite direction above the depth of 0 mm shown in the figure, and the two extension lines intersect at a point T, forming an angle φ.

[0122] Connect points T and B. The line on which line segment TB lies is the median line. Line segment TB intersects arc CD at point A. Connect CD to intersect TB at point E. Connect AC.

[0123] Find the midpoint of the depth pixel on the probe surface, and distinguish the probe scanning area of ​​the first image from other element areas of the image through processing; when the image quality of the probe scanning area is good, the processed result can be directly used for subsequent processing; if the image quality of the probe scanning area is average, it needs to go through expansion or corrosion and other processes before continuing processing;

[0124] Find the horizontal coordinate x of point B on the processed image b , and at the same time respectively with x b Several adjacent horizontal coordinates are used as references, and the vertical direction is searched upward from the middle of the processed image until the value of a point becomes the same as the point in the probe scanning area. At this time, the height h1 of the vertical point of the point here is found;

[0125] According to the mathematical geometric relationship, we can get:

[0126]

[0127] d = h1*tanγ;

[0128]

[0129] Among them, γ is the angle of angle EAC, β is the angle of angle ATC and angle ETC, d is the length of line segment CE, h1 is the length of line segment AE, h2 is the length of line segment ET, and r is the radius length corresponding to arc CD;

[0130] Starting from the vertex and the angle bisector, num1 rays are emitted into the image area with a step length of δ as the angle step length; along each ray, the grayscale value is searched on the ray with a step length of d as the point distance step length. The search direction is from the middle to both sides at the same time;

[0131] On each ray, find the coordinates of the critical pixel point where the gray value increases on the line:

[0132]

[0133] Among them, j represents the index of the point on the ray; n represents the index interpolation of the point on the ray; N represents the maximum value of the index interpolation of the point on the ray; res th represents the set threshold; weightcoef represents the weight coefficient; Img represents the first image;

[0134] Find the coordinates of the critical pixel points where the grayscale value decreases on each ray. The formula is the same as finding the coordinates of the critical pixel points where the grayscale value increases on each ray. Collect the coordinates of the critical pixel points where the grayscale value increases and decreases on each ray, and record them as sets M and N respectively.

[0135] Filter or protect the searched result values; remove values ​​in M ​​that are smaller than any element in N, remove values ​​in M ​​that are smaller than any element in N; and remove values ​​in the same set where there is no element in the other set between the elements; in this example, the purpose can be to find the value with the largest interval between adjacent elements of M and N; or to find the value with the largest difference between the elements of M and N. And collect all coordinate positions related to the value;

[0136] The collected coordinate positions are numerically calculated to obtain a new set Q. If the elements in the set Q are non-empty sets; there is only one element; and the coordinate value of the element meets the range requirements of the image area; according to the above requirements, it can be directly specified as the search center point O; or it can also be specified as the approximate position P of the search center point;

[0137] At the same time, after finding point O or point P, stop searching for the center point immediately. If it is not found on the ray, continue searching on the next ray.

[0138] In this embodiment, the characteristics of various types of probes such as linear array, phased array and convex array include imaging characteristics and image display characteristics; the search center point search process under each probe type includes the calculation process of finding the search center with different fixed points related to linear array, phased array, convex array and other probes; during the search process, the imaging display area can be divided into different divided areas by the midline, angle bisector or arc line; the center point is found by calculation. The coordinates of the search center can be calculated by separating the probe types, or directly by known variables and coordinate calculation. Since the display area of ​​medical ultrasound equipment will be designed differently according to probes such as phased array, convex array and linear array, this embodiment will show the calculation method based on separating the probe types, which can be applied to more equipment and scenarios.

[0139] Example 6: Fig.10 As shown, based on Example 5, the operation part of searching for the selected cardiac cavity edge point and obtaining the edge point coordinates provided in the embodiment of the present invention includes the following steps:

[0140] S3024: according to the input search center coordinates or position coordinates, a coordinate system is established at the position of the search center point; and the image display area is divided into several parts according to the coordinate system;

[0141] S3025: searching for edge points of the cardiac cavity contour by emitting rays from the search center to the surroundings; setting the step length of the ray search, including different angles and different distances of the rays; searching line by line and point by point on each ray according to the step length to find the edge points of the cardiac cavity contour;

[0142] S3026: Calculate the difference or multiple value based on the grayscale value of the calculated point, and determine whether the requirements for determining the coordinates of the edge point here are met in combination with the set threshold or weight; mark the searched edge points, and determine whether the result is accurate based on the mark value, and use the threshold to determine the accuracy of the edge points; if the threshold is reached, stop searching and return the value; if the threshold is not reached, continue the calculation of the current edge point search.

[0143] The working principle and beneficial effects of the above technical solution are as follows: the present embodiment first establishes a coordinate system at the position of the search center point according to the input search center coordinates or position coordinates; divides the image display area into several parts according to the coordinate system; secondly searches for the edge points of the cardiac cavity contour by emitting rays from the search center to the surroundings; sets the step length of the ray search, including different angles and different distances of the rays; searches line by line and point by point on each ray according to the step length to find the edge points of the cardiac cavity contour; finally, calculates the difference or multiple value according to the gray value of the calculated point, and judges whether the requirements for determining the coordinates of the edge point here are met in combination with the set threshold or weight; marks the edge points searched, and judges whether the result is accurate according to the mark value, and uses the threshold to judge the accuracy of the edge point; if the threshold is reached, stops the search and returns the value; if the threshold is not reached, continues the calculation of the current edge point search. Step S3024 of the above scheme can limit the search range to a specific area by establishing a coordinate system and dividing the image display area, thereby reducing the search range and improving the search efficiency. Step S3025 can gradually approach the edge points of the cardiac cavity contour through ray search, obtain more accurate edge point coordinates, and provide accurate data for subsequent analysis and processing. Step S3026 can screen out edge points that meet the requirements through grayscale value and threshold judgment to improve the accuracy of the results; marking and judging accuracy can help further analyze and process edge points and verify the reliability of the results.

[0144] In summary, through the above steps, this embodiment can obtain the coordinates of the edge points in the operation part of searching for the edge points of the selected cardiac cavity; by establishing a coordinate system, dividing the image display area, and then searching the edge points of the cardiac cavity contour line by line and point by point through ray search and setting the step size; judging the accuracy of the edge points according to the gray value of the calculated points and the set threshold or weight, and marking them; it can help determine the coordinates of the edge points of the cardiac cavity and provide accurate structural information for subsequent analysis and diagnosis. At the same time, by marking and judging the accuracy, the reliability of the results can be verified and the accuracy of the edge points can be improved.

[0145] The search center coordinates or their approximate position coordinates calculated in this embodiment can be directly or indirectly input into the operation part of searching for the edge point of the selected cardiac cavity, and the edge point coordinates are obtained. The main steps are:

[0146] like Fig.11 As shown, a coordinate system is established on the first image, and the image is divided into four quadrants by establishing the coordinate system; a step size is set for different angles and distances of the ray, and a line-by-line and point-by-point search is performed according to the step size;

[0147] In each quadrant, several search rays are emitted from point O or point P. The search of the rays starts from the coordinate axis on one side of the quadrant, and rotates clockwise according to the set angle step to search line by line until the coordinate axis on the other side of the quadrant is searched. The angle that the ray rotates in the quadrant is θ, and the angle when it rotates to the diagonal of the quadrant is θ c ;

[0148] In the quadrant, each ray intersects with the length or width of the image, and the distance from the intersection point to the search center O or point P is the maximum distance r searched on this ray. max ;

[0149] If the coordinates of the upper left and lower right pixel points of the image are known, the maximum search distance r on each ray can be calculated based on mathematical geometric relationships such as trigonometric functions. max ;

[0150] When searching here, the difference or multiple value is calculated according to the gray value of the calculated point, and combined with the set threshold or weight to determine whether the requirements for determining the coordinates of the edge point here are met;

[0151] On each ray, find the coordinates of the critical pixel point where the gray value increases on the line:

[0152]

[0153] Among them, j represents the index of the point on the ray; n represents the index interpolation of the point on the ray; N represents the maximum value of the index interpolation of the point on the ray; res th represents the set threshold; weightcoef represents the weight coefficient; Img represents the first image;

[0154] Determine the state: if the state required by the inequality is reached, stop searching and return the coordinate value; if the state of the inequality is not reached, continue the calculation of edge point search on the current ray;

[0155] When the search for points on each ray is completed and there is still no point that meets the conditions, this position is marked as a gap; if a point that meets the conditions is found, the horizontal and vertical coordinates of the point are returned; according to the display effect of the image, filtering protection can be added here to prevent unnecessary elements from affecting image judgment; the returned coordinate values ​​can be filtered, and the coordinates with values ​​exceeding the scanning range of the probe can be removed, etc., to obtain the first set of points;

[0156] The above part of searching for edge point coordinates may be performed only once, or may be performed multiple times or iteratively adjusted to find more accurate coordinate values.

[0157] In this embodiment, when establishing a coordinate system, the coordinate value can be changed, or the original coordinate value can be used with the coordinate axis as a reference; the form of searching for points on the ray is determined by the angle step and the point distance step, where the angle step and the point distance step are preset values; the process of searching for points includes searching for edge points and screening protection processes, which can be run once or multiple times, and can also be iteratively adjusted.

[0158] Example 7: Fig.12 As shown, based on Example 1, the process of obtaining the result set provided by the embodiment of the present invention includes the following steps:

[0159] S304: according to the calculated edge point coordinates, fill in the vacancies that have not returned valid values ​​according to the step search; by traversing the coordinate values ​​of all edge points, calculate the first set of all points after filling in; fill in according to the horizontal and vertical coordinates respectively, or fill in using the parameters calculated by the coordinates;

[0160] S305: traverse each point in the first set and perform filtering processing on it to smooth the connection between the points; in the coordinate processing process of all the above points, conversion between different coordinate systems or coordinate forms is included, and coordinate conversion operations are performed as needed;

[0161] S306: interpolate the indexes of the first set of points that have been filtered and smoothed; when the set threshold or weight value is exceeded, interpolate between adjacent points to form a second set of more uniform points; perform interpolation calculations on the second set of uniform points obtained by the above index interpolation; if the completed data is not directly completed using the horizontal and vertical coordinates, it is necessary to convert the coordinates here, and obtain the third set after processing. The horizontal and vertical coordinates of the third set points are calculated, and a result set is obtained.

[0162] The working principle and beneficial effects of the above technical solution are as follows: the present embodiment firstly fills in the vacancies that have not returned valid values ​​according to the step search based on the calculated edge point coordinates; calculates the first set of all the points after filling in by traversing the coordinate values ​​of all edge points; fills in the points according to the horizontal and vertical coordinates respectively, or fills in the points using the parameters obtained by coordinate calculation; secondly, traverses each point in the first set and performs filtering processing on the points to smooth the connection between the points; in the coordinate processing process of all the above points, the conversion between different coordinate systems or coordinate forms is included, and the coordinate conversion operation is performed as needed; finally, according to the first set of points processed by filtering and smoothing, the indexes thereof are interpolated; when the set threshold or weight value range is exceeded, the interpolation is performed between adjacent points to form a second set of more uniform points; the interpolation calculation is performed on the second set of uniform points obtained by the above index interpolation; if the filled data is not directly filled in using the horizontal and vertical coordinates, the coordinate conversion needs to be performed here, and the third set is obtained after processing, and the horizontal and vertical coordinates of the points in the third set are calculated, and a result set is obtained. Step S304 of the above scheme completes the vacancies that do not return valid values ​​during the search process and obtains the completed first set; completing the vacancies can fill the gaps in the search process, making the result set more complete and continuous, and improving the accuracy and reliability of the edge points. Step S305 smoothes the connections between the points through filtering processing; performs coordinate transformation to convert different coordinate systems or coordinate forms; filtering processing can remove noise and discontinuous points, and improve the continuity and smoothness of edge points; coordinate transformation can unify points in different coordinate systems or forms, facilitating subsequent calculations and analysis. Step S306 obtains the third set after interpolation calculation through index interpolation and value interpolation; index interpolation and value interpolation can increase the density and uniformity of the points, making the result set smoother and more uniform, and improving the accuracy and continuity of edge points.

[0163] In summary, through the above steps, this embodiment can complete the vacancies and obtain the completed first set according to the calculated edge point coordinates. Then, the points in the first set are filtered and the coordinates are transformed to improve the continuity of the edge points and the consistency of the processed coordinates. Finally, the third set after interpolation is obtained through index interpolation and value interpolation calculations; it helps to improve the accuracy, continuity and uniformity of the edge points, and provide more accurate structural information for subsequent analysis and diagnosis. Through the above steps, the edge point coordinates can be completed, filtered and interpolated to obtain a smooth and evenly distributed point set. Completing vacancies and filtering help eliminate gaps and noise between points and improve the continuity and smoothness of edge points. Index interpolation and value interpolation can further increase the density and uniformity of the points, making the distribution of edge points smoother and more continuous.

[0164] In this embodiment, coordinate processing is performed on the edge points obtained by calculation;

[0165] According to the calculated edge point coordinates, fill in the empty positions that have not returned valid values ​​according to the step search, that is, the positions that have been marked as gaps; traverse all edge points, and the coordinates of the points in the first set can be directly calculated according to the coordinate values ​​or calculated by the distance between the coordinates to complete the data; the horizontal and vertical coordinates can be completed separately; or the indicator parameters calculated by using the coordinates can be used for completion, but this completion method will cause the subsequent processing to perform an additional coordinate conversion operation;

[0166] Traverse all coordinate points. If the gap is marked at the beginning, look for the first unmarked coordinate point in the back for calculation; if the gap is marked at the end, look for the first unmarked coordinate point in the front for calculation; if the gap is marked at other positions in the middle, look for the first unmarked coordinate point in the front and back at the same time, and calculate after finding the first and second specified points. Get the second set;

[0167] Smoothing filtering is performed on the second set. First determine the window. Optionally, the values ​​at both ends of the coordinate point set are supplemented with points of a certain length. The points here can be the continuation of the original values ​​at both ends, or the result of the continuous change of the original values ​​at both ends according to the step length; or the values ​​at both ends are cyclically filled. According to the filling of data, the connection of filtered data can be made smoother; use the window to filter on the data;

[0168] If the data in the above steps are not directly completed using the horizontal and vertical coordinates, it is necessary to convert the coordinates here to obtain the third set after processing;

[0169] According to the first set of points processed by filtering and smoothing, the indexes are interpolated. When the set threshold or weight value is exceeded, the interpolation is performed between adjacent points. Before directly operating the coordinates of the points, in order to make the final marking curve smoother and more uniform, the indexes in the coordinate set of the points can be interpolated, including:

[0170] Set the threshold value of the interval pixels pixel , used to determine whether interpolation is needed;

[0171] Traverse the third set, search for the horizontal and vertical coordinates of the points in the third set respectively, and calculate the coordinate distance between every two adjacent points;

[0172] If the coordinate spacing is less than th pixel , then the coordinate interval here does not need index interpolation; if the coordinate interval is greater than or equal to th pixel, then index interpolation is required. The interpolation method here can use nearest neighbor interpolation, linear interpolation, polynomial interpolation, spline interpolation, Lagrange interpolation, etc.;

[0173] The new fourth index set can be obtained by taking the union of the index of the third set and the new interpolation point index set.

[0174] In order to obtain a more continuous marking curve, this embodiment interpolates the points of the third set according to the fourth index set. In order to achieve different detail effects, polynomial interpolation, spline interpolation, Lagrange interpolation and other methods can be used; in order to achieve faster calculation speed, nearest interpolation, linear interpolation and other methods can also be used; in order to ensure smooth connection of the ending coordinates of the interpolation, the values ​​at both ends of the coordinate point set can be supplemented with points of a certain length, where the points can be the continuation of the original values ​​at both ends, or the result of the continuous change of the original values ​​at both ends according to the step size; or the values ​​at both ends can be filled in a loop;

[0175] According to the calculation method, each element in the fourth index set is traversed and calculated. Optionally, the index position that needs to be interpolated can be interpolated by judging whether it is an integer or a non-integer; the interpolation result of the index position that needs to be interpolated can also be calculated according to the change rule of several adjacent indexes;

[0176] According to the above interpolation process, the horizontal and vertical coordinates of the third set of points are calculated respectively, and a result set is obtained.

[0177] The completion process of this embodiment can be calculated directly according to the coordinate value or by the distance between the coordinates; the completion process can be completed by the horizontal and vertical coordinates respectively; or the completion can be performed by using the parameter index calculated by the coordinates; when the smoothing filtering process supplements the two end points of the array, it can be a continuation of the original two end values, or it can be the result of the continuous change of the original two end values ​​according to the step size; or the values ​​at the two ends are cyclically filled;

[0178] The methods used for index interpolation of edge points in this embodiment include but are not limited to neighbor interpolation, linear interpolation, polynomial interpolation, spline interpolation, Lagrange interpolation, etc.; the methods used for coordinate interpolation of edge points include but are not limited to neighbor interpolation, linear interpolation, polynomial interpolation, spline interpolation, Lagrange interpolation, etc.; the coordinate interpolation of edge points can interpolate the index position that needs to be interpolated by judging whether it is an integer or a non-integer; the interpolation result can also be calculated according to the change rule of several adjacent indexes.

[0179] Example 8: Fig.13 As shown, based on Embodiments 1 to 7, the device for automatically marking the contour of a left ventricular cavity image provided by the embodiment of the present invention comprises:

[0180] The threshold acquisition module is responsible for acquiring the two-dimensional ultrasonic image of the cardiac cavity and extracting the threshold parameter after processing the two-dimensional ultrasonic image;

[0181] The coordinate processing module is responsible for determining the location of the search center point according to the characteristics of various probes; establishing a coordinate system by searching the center point, and finding points at the edge of the heart cavity in the form of ray search; completing the edge points found; performing smoothing filtering; performing coordinate conversion on the points; and interpolating the coordinate index of the points to make the distribution more uniform.

[0182] The image display module is responsible for interpolating the coordinates of the points to make the distribution more continuous; the processed points are displayed on the screen according to the coordinates.

[0183] The working principle and beneficial effects of the above technical solution are as follows: the threshold acquisition module of this embodiment acquires a two-dimensional ultrasound image of the cardiac cavity, and extracts the threshold parameter after processing the two-dimensional ultrasound image; the coordinate processing module determines the position of the search center point according to the characteristics of various probes; establishes a coordinate system by searching the center point, and searches for points at the edge of the cardiac cavity in the form of ray search; completes the searched edge points; performs smoothing filtering; performs coordinate conversion on the points; interpolates the coordinate index of the points to make the distribution more uniform; the image display module interpolates the coordinates of the points to make the distribution more continuous; and displays the processed points on the screen according to the coordinates (for specific principles, refer to the attached Fig.13 ). The above scheme can process the two-dimensional ultrasound image through the threshold acquisition module, extract the characteristic information of the heart cavity, and provide accurate threshold parameters for subsequent edge point marking and processing. The coordinate processing module determines the operations of searching the center point, establishing the coordinate system, searching the edge points, completion, smoothing filtering and coordinate conversion. These operations help to extract the edge points of the heart cavity, and process and optimize them to make the distribution of the edge points more accurate, continuous and uniform, providing an accurate data basis for subsequent image display and analysis. The image display module includes interpolation and display of the processed points; through interpolation processing, the distribution between points can be made more continuous and the visualization effect can be improved; the processed points are displayed on the screen according to the coordinates, which can intuitively show the edge contour of the heart cavity, making it convenient for doctors to observe, analyze and diagnose.

[0184] In summary, this embodiment can realize automatic marking of the left ventricular cavity image contour through the above modules. The threshold acquisition module is used to extract the threshold parameters of the image, the coordinate processing module is used to search and process the coordinates of the cavity edge points, and the image display module is used to display the processed points on the screen according to the coordinates; it can improve the accuracy and continuity of the cavity edge points, provide doctors with more accurate image information, and assist doctors in diagnosis and treatment decisions. It can improve the efficiency of contour drawing, lower the user's usage threshold, and better meet user needs.

[0185] Embodiment 9: Based on Embodiment 8, the threshold value acquisition module provided in the embodiment of the present invention includes:

[0186] The feature description submodule is responsible for transmitting and receiving ultrasound signals to the left ventricular cavity target, using ultrasound scanning equipment to obtain a two-dimensional ultrasound image of the left ventricular cavity, extracting feature points from consecutive frames of the two-dimensional ultrasound image, and calculating the feature descriptor for each extracted feature point; the feature descriptor is a vector used to describe the local image structure around the feature point;

[0187] The feature matching submodule is responsible for matching the feature points in consecutive frames by comparing the feature descriptors and finding the corresponding feature point pairs in the two frames;

[0188] The image alignment submodule is responsible for estimating the motion between images using matched feature point pairs; based on the motion estimation results, the position and scale of the images are adjusted according to the translation, rotation and scaling between the images to align consecutive frames.

[0189] The working principle and beneficial effects of the above technical solution are as follows: the feature description submodule of this embodiment transmits and receives ultrasonic signals to the left ventricular cavity target, uses an ultrasonic scanning device to obtain a two-dimensional ultrasonic image of the left ventricular cavity, extracts feature points from continuous frames of the two-dimensional ultrasonic image, and calculates its feature descriptor for each extracted feature point; the feature descriptor is a vector used to describe the local image structure around the feature point; the feature matching submodule matches the feature points in continuous frames by comparing the feature descriptors, and finds the corresponding feature point pairs in the two frames; the image alignment submodule uses the matched feature point pairs to estimate the motion between images; according to the motion estimation results, the position and scale of the image are adjusted according to the translation, rotation and scaling between the images, and the continuous frames are aligned. The feature description submodule of the above scheme can extract the key features in the image and describe them in vector form by extracting feature points and calculating feature descriptors; it helps to locate and identify specific structures in the image, such as the edge points of the left ventricular cavity, and provide accurate feature point information for subsequent processing. The feature matching submodule can match feature points in consecutive frames and find their corresponding relationship between different frames; it helps to determine the motion information between consecutive frames and provide accurate matching point pairs for subsequent image alignment and tracking. The image alignment submodule can align consecutive frames by estimating the motion information between images so that they have the same position and scale; it helps to eliminate motion offset and deformation between images, provide accurate image alignment results for subsequent processing, and facilitate tracking and analysis of feature points.

[0190] In summary, through the above modules, the threshold acquisition module of this embodiment can realize the feature point extraction, feature matching and image alignment of the left ventricular cavity; the feature description submodule is used to extract feature points and calculate feature descriptors to help locate and identify specific structures in the image; the feature matching submodule finds the corresponding feature point pairs in continuous frames by comparing feature descriptors, and determines the correspondence between images. The image alignment submodule uses the matched feature point pairs to estimate the movement between images and align the images to eliminate motion offset and deformation; it helps to extract accurate feature points, determine the correspondence between images, provide accurate image information for subsequent processing, and improve the accuracy and reliability of automatic marking of the left ventricular cavity image contour.

[0191] Embodiment 10: Based on Embodiment 8, the coordinate processing module provided in the embodiment of the present invention comprises:

[0192] The edge point processing submodule is responsible for processing edge points: completing the set of all edge points searched; performing smoothing filtering; and then transforming the coordinates of the points to obtain processed edge points;

[0193] The index interpolation submodule is responsible for interpolating the index of the points to make the distribution more uniform and obtain the edge points after index interpolation;

[0194] The coordinate difference submodule is responsible for interpolating the coordinates of the points to make the distribution more continuous and obtain the edge points after coordinate interpolation;

[0195] The coordinate overlay submodule is responsible for displaying the marked contour map and quantitative index parameters of the edge points superimposed by coordinates on the screen.

[0196] The working principle and beneficial effects of the above technical solution are as follows: the edge point processing submodule of this embodiment processes the edge points: the set of all edge points searched is completed; smooth filtering is performed; the coordinates of the points are converted to obtain processed edge points; the index interpolation submodule interpolates the index of the points to make the distribution more uniform and obtain edge points after index interpolation; the coordinate difference submodule interpolates the coordinates of the points to make the distribution more continuous and obtain edge points after coordinate interpolation; the coordinate superposition submodule displays the marked contour map and quantitative index parameters of the edge points superimposed by the coordinates on the screen. The edge point processing submodule of the above scheme can optimize and process the searched edge points through operations such as completion, filtering and coordinate conversion; the completion operation can fill the gaps in the search process, making the distribution of edge points more complete and continuous; the filtering operation can remove noise and discontinuous points, and improve the accuracy and continuity of edge points; the coordinate conversion operation can unify the coordinate form of edge points, which is convenient for subsequent calculation and analysis. The index interpolation submodule can increase the density and uniformity of the points by interpolating the indexes of the edge points, which helps to improve the accuracy and continuity of the edge points and make the distribution of the edge points smoother and more uniform. The coordinate interpolation submodule can make the distribution between edge points more continuous and improve the smoothness and continuity of the edge contour by interpolating the coordinates of the edge points. The coordinate overlay submodule can intuitively display the edge contour and quantitative index parameters of the heart cavity by displaying the processed edge points on the screen in the form of coordinate overlay, which is convenient for doctors to observe, analyze and diagnose.

[0197] In summary, through the technical effects of the above submodules, the coordinate processing module of this embodiment can process, interpolate and overlay the edge points. The edge point processing submodule is used for completion, filtering and coordinate conversion to improve the accuracy and continuity of edge points; the index interpolation submodule and the coordinate interpolation submodule are used to increase the density and uniformity of points, respectively, to improve the accuracy and continuity of edge points; the coordinate overlay submodule is used to overlay the processed edge points for doctors to observe and analyze; it helps to improve the accuracy, continuity and uniformity of edge points, and provide more accurate structural information for subsequent analysis and diagnosis.

[0198] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A method for automatically marking the contour of left ventricular cavity images, It is characterized in that The following steps are involved: Acquire a two-dimensional ultrasonic image of the left ventricular cavity from an ultrasonic scanning display device, and use the two-dimensional ultrasonic image as a first image; Determine the full pixel size of the image based on the first image; obtain the second image based on the first image; According to the second image, the image of the probe imaging area is distinguished from other external images; each point in the probe imaging area is traversed to calculate the sequence of accumulated values ​​and valid points; the calculated result set is integerized, and the corresponding coordinate set is marked and displayed in the image display area on the screen, so as to obtain a marking curve for drawing the contour of the heart cavity.

2. The method for automatically marking the contour of a left ventricular cavity image according to claim 1, It is characterized in that Based on the first image, the elements of the peripheral non-image display area are removed by cutting along the boundary pixels of the scale and the icon or by processing the mask effect to obtain the second image.

3. The method for automatically marking the contour of a left ventricular cavity image according to claim 1, It is characterized in that The process of calculating the sequence of accumulated values ​​and effective points includes the following steps: According to the acquired second image, the probe imaging area is segmented from the second image, and the position of the probe imaging area is determined according to the gray value or edge information of the image; For a determined probe imaging area, traverse each pixel point therein; for each traversed pixel point, accumulate its pixel value to obtain the accumulated value of the pixels in the imaging area; The coordinates of each valid pixel point traversed are recorded to form a sequence of all valid points in the area; the sequence is used to analyze and process local features in the area; The statistical calculation is extracted to obtain the threshold parameters for determining the coordinates of valid pixel points.

4. The method for automatically marking the contour of a left ventricular cavity image as claimed in claim 3, It is characterized in that The process of calculating the center point of the probe imaging area according to the probe type includes the following steps: Get the type of probe and input the relevant parameters of the probe; According to the probe type, characteristics and known variables, the imaging area is subjected to image processing or numerical extraction operations including mask processing, and the vertex coordinates of the imaging area are found; According to the parameters and their characteristics in the imaging area, the imaging display area is divided into different divisions by the midline, angle bisector and arc line.

5. The method for automatically marking the contour of a left ventricular cavity image as claimed in claim 4, It is characterized in that The operation part of searching for the edge point of the selected cardiac cavity and obtaining the coordinates of the edge point includes the following steps: According to the input search center coordinates or position coordinates, a coordinate system is established at the position of the search center point; and the image display area is divided into several parts according to the coordinate system; The edge points of the cardiac cavity contour are searched by emitting rays from the search center to the surrounding areas; the step length of the ray search is set, including different angles and different distances of the rays; According to the step length, search line by line and point by point on each ray to find the edge point of the cardiac cavity contour; According to the gray value of the calculated point, the difference or multiple value is calculated, and combined with the set threshold or weight, it is judged whether the requirement for determining the coordinates of the edge point here is met.

6. The method for automatically marking the contour of a left ventricular cavity image as claimed in claim 5, It is characterized in that Mark the edge points found, and judge whether the result is accurate based on the mark value, and use the threshold to judge the accuracy of the edge points; If the threshold is reached, stop searching and return the value; if the threshold is not reached, continue the calculation of the current edge point search.

7. The method for automatically marking the contour of a left ventricular cavity image as claimed in claim 1, It is characterized in that The process of obtaining the result set includes the following steps: According to the calculated edge point coordinates, fill in the empty positions that were searched according to the step size but did not return a valid value; by traversing the coordinate values ​​of all edge points, calculate the first set of all points after completion; fill in according to the horizontal and vertical coordinates respectively, or use the parameters calculated by the coordinates to fill in; Traverse each point in the first set, filter it to smooth the connection between the points, and perform coordinate transformation operations as needed; According to the first set of points processed by filtering and smoothing, the indexes thereof are interpolated; when the set threshold or weight value is exceeded, interpolation is performed between adjacent points to form a second set of more uniform points; interpolation calculation is performed on the second set of uniform points obtained by index interpolation; after processing, a third set is obtained, the horizontal and vertical coordinates of the third set points are calculated, and a result set is obtained.

8. The method for automatically marking the contour of a left ventricular cavity image as claimed in claim 7, It is characterized in that In the process of coordinate processing of all points, conversion between different coordinate systems or coordinate forms is included; Interpolation calculation is performed on the second set of uniform points obtained by index interpolation; if the completion data is not directly completed using the horizontal and vertical coordinates, it is necessary to convert the coordinates here, and the third set is obtained after processing.

9. A device for automatically marking the contour of left ventricular cavity images, It is characterized in that Include: The threshold acquisition module is responsible for acquiring the two-dimensional ultrasonic image of the cardiac cavity and extracting the threshold parameter after processing the two-dimensional ultrasonic image; The coordinate processing module is responsible for determining the location of the search center point according to the characteristics of various probes; establishing a coordinate system by searching the center point, and finding points at the edge of the heart cavity in the form of ray search; completing the edge points found; performing smoothing filtering; performing coordinate conversion on the points; and interpolating the coordinate index of the points to make the distribution more uniform. The image display module is responsible for interpolating the coordinates of the points to make the distribution more continuous; the processed points are displayed on the screen according to the coordinates.

10. The device for automatically marking the contour of a left ventricle cavity image according to claim 9, It is characterized in that Coordinate processing module, including: The edge point processing submodule is responsible for processing edge points: completing the set of all edge points searched; performing smoothing filtering; and then transforming the coordinates of the points to obtain processed edge points; The index interpolation submodule is responsible for interpolating the index of the points to make the distribution more uniform and obtain the edge points after index interpolation; The coordinate difference submodule is responsible for interpolating the coordinates of the points to make the distribution more continuous and obtain the edge points after coordinate interpolation; The coordinate superposition submodule is responsible for displaying the marked contour map and quantitative index parameters of the edge points superimposed by coordinates on the screen.

Citation Information

Cited By

  • Cardiac time phase identification method, device and equipment and storage medium

    CN122156062A