WO2019062842A1 - Ultrasound image processing method and device, ultrasonic diagnosis device, and storage medium - Google Patents

Ultrasound image processing method and device, ultrasonic diagnosis device, and storage medium Download PDF

Info

Publication number
WO2019062842A1
WO2019062842A1 PCT/CN2018/108295 CN2018108295W WO2019062842A1 WO 2019062842 A1 WO2019062842 A1 WO 2019062842A1 CN 2018108295 W CN2018108295 W CN 2018108295W WO 2019062842 A1 WO2019062842 A1 WO 2019062842A1
Authority
WO
WIPO (PCT)
Prior art keywords
amniotic fluid
sheep
pool
ultrasonic image
dvp
Prior art date
Application number
PCT/CN2018/108295
Other languages
French (fr)
Chinese (zh)
Inventor
廖静秋
黄子殷
曹锡华
许龙
Original Assignee
深圳开立生物医疗科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳开立生物医疗科技股份有限公司 filed Critical 深圳开立生物医疗科技股份有限公司
Publication of WO2019062842A1 publication Critical patent/WO2019062842A1/en

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B8/00Diagnosis using ultrasonic, sonic or infrasonic waves
    • A61B8/08Detecting organic movements or changes, e.g. tumours, cysts, swellings
    • A61B8/0833Detecting organic movements or changes, e.g. tumours, cysts, swellings involving detecting or locating foreign bodies or organic structures
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B8/00Diagnosis using ultrasonic, sonic or infrasonic waves
    • A61B8/44Constructional features of the ultrasonic, sonic or infrasonic diagnostic device
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B8/00Diagnosis using ultrasonic, sonic or infrasonic waves
    • A61B8/48Diagnostic techniques
    • A61B8/488Diagnostic techniques involving Doppler signals
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B8/00Diagnosis using ultrasonic, sonic or infrasonic waves
    • A61B8/52Devices using data or image processing specially adapted for diagnosis using ultrasonic, sonic or infrasonic waves
    • A61B8/5215Devices using data or image processing specially adapted for diagnosis using ultrasonic, sonic or infrasonic waves involving processing of medical diagnostic data
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B8/00Diagnosis using ultrasonic, sonic or infrasonic waves
    • A61B8/52Devices using data or image processing specially adapted for diagnosis using ultrasonic, sonic or infrasonic waves
    • A61B8/5269Devices using data or image processing specially adapted for diagnosis using ultrasonic, sonic or infrasonic waves involving detection or reduction of artifacts
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/20Image enhancement or restoration by the use of local operators
    • G06T5/30Erosion or dilatation, e.g. thinning
    • G06T5/70
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10132Ultrasound image
    • G06T2207/101363D ultrasound image

Definitions

  • the present invention relates to the field of ultrasonic diagnostic technology devices, and in particular, to an ultrasonic image processing method and device, an ultrasonic diagnostic device, and a computer readable storage medium.
  • abnormality of amniotic fluid volume is closely related to the normal development of fetal development, and has become an important test content in pregnancy. Due to the limitation of the inspection time, the ultrasound should not be too long for the fetal radiation time and limited by the professional level and the function of the ultrasonic instrument. At present, it is not possible to diagnose each abnormality in a short time for each pregnant woman. Therefore, abnormal amniotic fluid volume has become a reminder of the discovery of high-risk conditions, and its detection and judgment is particularly important. It can prompt the testing doctor to conduct a detailed examination of the fetus in time.
  • the B-mode scan is usually performed by using an ultrasonic probe to image the amniotic cavity of the pregnant woman to obtain a B-ultrasound image, and the sheep pool is expressed as a liquid dark area in the B-ultrasound image.
  • the liquid dark area refers to the dark area where the liquid is concentrated when the human body is in the B-ultrasound examination because it is not easy to transmit ultrasonic waves. Liquids in human body such as effusion, empyema, amniotic fluid, blood, etc. can all appear as liquid dark areas in B-ultrasound images.
  • the methods and standards for commonly used ultrasonic testing of amniotic fluid include: 1 measuring the vertical depth of the largest sheep pool, called deepest vertical pool (DVP), generally used in early pregnancy and middle pregnancy, the normal range of DVP is 2cm ⁇ 7.9 Cm; 2 measurement of amniotic fluid index (AFI), generally used in late pregnancy, AFI is divided into four upper quadrants, upper right, lower left and lower right quadrant, measuring amniotic fluid depth DVP in each quadrant, the four quadrants obtained The sum of DVP is AFI, and the normal range of AFI is 6cm to 19.9cm.
  • DVP deepest vertical pool
  • AFI amniotic fluid index
  • the ultrasonic testing process for the amount of amniotic fluid in a pregnant woman is usually: first, the doctor finds the largest sheep pool of the pregnant woman by moving the ultrasonic probe, and freezes the current image; after that, the doctor determines in the liquid dark area of the current image according to subjective judgment.
  • the position with the largest vertical depth, and manually inserting the line segment at the position, the length of the line segment represents the vertical depth of the liquid dark area at the position; after the ultrasonic image processing device obtains the line segment inserted by the doctor, the current image is calculated according to the length of the line segment.
  • the maximum vertical depth of the sheep pool and serves as the DVP result for the pregnant woman.
  • the maximum vertical depth of the sheep pool in the four quadrants of the pregnant woman's womb can be calculated, and the AFI result of the pregnant woman can be obtained after the summation.
  • Both DVP and AFI measurements are based on the measurement of the maximum vertical depth of the sheep pool in the ultrasound image.
  • the prior art measurement of the maximum vertical depth requires the physician to determine the maximum vertical depth in the dark region of the amniotic fluid in the frozen ultrasound image based on subjective judgment. Position, and insert a line segment representing the maximum vertical depth at the position, and finally determine the maximum vertical depth according to the length of the line segment.
  • the invention provides an ultrasonic image processing method and device, an ultrasonic diagnostic device and a computer readable storage medium, which are used for solving the problem of low accuracy of the existing amniotic fluid detection result.
  • An aspect of an embodiment of the present invention provides an ultrasonic image processing method, including:
  • the maximum vertical depth of the sheep pool is measured based on the maximum vertical depth of the amniotic fluid dark zone.
  • the identifying the dark region of the amniotic fluid corresponding to the sheep pool in the ultrasonic image includes:
  • the target scale comprising a first scale, a second scale, and a third scale
  • the amniotic fluid dark area in the ultrasonic image is determined according to the denoised synthetic binary image.
  • the method further includes:
  • the Doppler signal of the blood flow is used to determine the pixel corresponding to the color blood flow, and is marked as a non-amniotic dark area.
  • Measuring the maximum vertical depth of the sheep pool according to the maximum vertical depth of the amniotic fluid dark area includes:
  • the method further includes:
  • the obtained maximum vertical depth of the sheep pool is displayed as a measurement result of DVP;
  • acquiring the ultrasonic image of the sheep pool includes:
  • the method further includes:
  • a second aspect of the embodiments of the present invention provides an ultrasonic image processing apparatus, including:
  • An identification module configured to identify a dark area of amniotic fluid corresponding to the sheep pool in the ultrasonic image
  • a measuring module for measuring a maximum vertical depth of the sheep pool according to a maximum vertical depth of the amniotic fluid dark area.
  • the device further includes:
  • a first display module configured to display, in a measurement mode of the DVP, a maximum vertical depth of the obtained sheep pool as a measurement result of the DVP;
  • a first determining module configured to determine whether the measurement result of the DVP is within a preset range
  • a first prompting module configured to: when the first determining module determines that the measurement result of the DVP is within a preset range, prompting that the test result of the DVP is normal, when the first determining module determines the measurement of the DVP When the result is not within the preset range, the test result of the DVP is abnormal, and the corresponding medical treatment prompt is displayed.
  • the acquiring module includes:
  • the ultrasonic image processing apparatus further includes:
  • a calculation module for summing the maximum vertical depths of the four quadrants of the sheep pool in the AFI measurement mode to obtain the AFI measurement result
  • a second display module configured to display the measurement result of the AFI
  • a second determining module configured to determine whether the measurement result of the AFI is within a preset range
  • a second prompting module configured to: when the second determining module determines that the measurement result of the AFI is within a preset range, prompting that the measurement result of the AFI is normal, and when the second determining module determines the measurement of the AFI When the result is not within the preset range, the measurement result of the AFI is abnormal, and the corresponding medical treatment prompt is displayed.
  • a third aspect of the embodiments of the present invention provides an ultrasonic diagnostic apparatus, wherein the ultrasonic diagnostic apparatus includes a host computer and an ultrasonic probe;
  • the host computer includes a processor for performing the steps of the method of any of claims 1-6 when executing the computer program stored in the memory.
  • a fourth aspect of the embodiments of the present invention provides a computer readable storage medium having stored thereon a computer program, wherein the computer program is executed by a processor to implement any one of the first aspect or the first aspect A possible implementation step.
  • the invention can obtain the ultrasonic image of the sheep pool, identify the dark area of the amniotic fluid corresponding to the sheep pool in the ultrasonic image, and measure the maximum vertical depth of the sheep pool according to the maximum vertical depth of the dark area of the amniotic fluid, thereby avoiding the measurement result of the artificial factors on the amniotic fluid.
  • the effect of improving the accuracy of amniotic fluid test results is conducive to reducing misdiagnosis.
  • FIG. 1 is a schematic diagram of an embodiment of an ultrasonic image processing method of the present invention
  • FIG. 2 is a schematic view showing an embodiment of a method for identifying a dark region of amniotic fluid in an ultrasonic image according to the present invention
  • FIG. 3 is a schematic view showing another embodiment of a method for identifying a dark region of amniotic fluid in an ultrasonic image according to the present invention
  • FIG. 4 is a schematic view showing an embodiment of a method for measuring a maximum vertical depth of a sheep pool according to the present invention
  • Figure 5 is a schematic view of a binary image of the present invention.
  • Figure 6 is a schematic view showing another embodiment of the ultrasonic image processing method of the present invention.
  • Figure 7 is a schematic view showing another embodiment of the ultrasonic image processing method of the present invention.
  • Figure 8 is a schematic view showing an embodiment of an ultrasonic image processing apparatus of the present invention.
  • FIG. 9 is a schematic view showing another embodiment of the ultrasonic image processing apparatus of the present invention.
  • FIG. 10 is a schematic view showing another embodiment of the ultrasonic image processing apparatus of the present invention.
  • Figure 11 is a schematic view showing an embodiment of the ultrasonic diagnostic apparatus of the present invention.
  • the embodiment of the invention provides an ultrasonic image processing method and device, an ultrasonic diagnostic device and a computer readable storage medium, which are used for reducing human factors in the amniotic fluid measurement process and improving the accuracy of the amniotic fluid detection result.
  • an embodiment of the method for processing an ultrasonic image in the embodiment of the present invention includes:
  • the ultrasonic image to be measured can be obtained first, and since the present invention is used for amniocentesis measurement, the ultrasonic image includes a sheep pool.
  • the connected area with lower gray level can be identified from the ultrasonic image according to the gray value of the pixel as the dark area of the amniotic fluid.
  • the maximum vertical depth of the sheep pool can be measured according to the maximum vertical depth of the dark area of the amniotic fluid. Based on the measured maximum vertical depth of the sheep pool, indicators representing amniotic fluid volume, such as amniotic fluid depth DVP and amniotic fluid index AFI, can be further obtained.
  • the invention can automatically identify the dark region of the amniotic fluid in the ultrasonic image, and measure the maximum vertical depth of the sheep pool. Compared with the prior art, the influence of the human factor on the measurement result is excluded. Improve the accuracy of amniotic fluid test results and reduce misdiagnosis.
  • An embodiment of the method for identifying a dark region of amniotic fluid in an ultrasound image according to the present invention comprises:
  • the B-mode scan is usually performed by using an ultrasonic probe to image the amniotic cavity of the pregnant woman, and the B-ultrasound image is obtained as a grayscale image.
  • the ultrasound image needs to be segmented into at least two parts - the dark area of amniotic fluid and the dark area of non-amniotic water. Compared with the dark area of non-amniotic water, the dark area of amniotic fluid is lower in gray scale. Connected area ultrasound image.
  • the sliding window of the target scale can be used to traverse the ultrasonic image, and the image in each sliding window region is separately segmented during the traversal process.
  • step 203 determining whether the current sliding window area belongs to the amniotic fluid dark area, if it belongs, step 203 is performed, if not, step 204 is performed;
  • the current sliding window area may be determined to belong to the amniotic fluid dark area according to the gray value distribution of the current sliding window area. If yes, step 203 is performed, and if not, step 204 is performed.
  • the method for determining whether the current sliding window area belongs to the amniotic fluid dark area according to the gray value distribution of the current sliding window area may be:
  • the pixels in the current sliding window area are marked to indicate that the pixels in the current sliding window area belong to the amniotic fluid dark area.
  • the pixels in the current sliding window area may be marked as 1.
  • step 204 determining whether the current sliding window area belongs to a non-amniotic dark area, if it is, then executing step 205; if not, executing step 206;
  • step 205 If the current sliding window area does not belong to the amniotic fluid dark area, it indicates that the current sliding window area has uneven distribution of gray values, or the gray value is evenly distributed and high. If the gray value is evenly distributed and high, the current sliding window is displayed. The pixels in the area belong to the non-amniotic dark area. Therefore, it can be determined whether the current sliding window area belongs to the non-amniotic dark area. If yes, step 205 is performed; if not, step 206 is performed.
  • the method for determining whether the current sliding window region belongs to a non-amphibious dark region according to the pixel value distribution of the current sliding window region may be:
  • step 202 The calculation result of step 202 can be directly utilized.
  • the mean value of the gray value is greater than the second mean threshold, and the mean square error is smaller than the second difference threshold, indicating that the gray value of the current sliding window area is evenly distributed and is a bright area, and the current sliding window area can be directly determined. It belongs to the dark area of non-amniotic water;
  • the mean value of the gray value is less than the second mean threshold, or the mean square error is greater than the second difference threshold, it indicates that the gray value of the current sliding window area is unevenly distributed, or the mean value of the gray value is centered, and the current sliding window area is determined not to be It belongs to the dark area of amniotic fluid, and does not belong to the dark area of non-amniotic water. That is to say, all pixels in the current sliding window area cannot be uniformly determined to belong to the dark area of amniotic fluid or the dark area of non-amniotic water.
  • the second mean threshold is greater than or equal to the first mean threshold.
  • the first mean threshold, the second mean threshold, the first difference threshold, and the second difference threshold may be set according to the gray histogram of the ultrasound image.
  • the pixels in the current sliding window area are marked to indicate that the pixels in the current sliding window area belong to the non-amphibious dark area, for example, the pixels in the current sliding window area may be Marked as 0.
  • the current sliding window area may be image-divided according to the gray value distribution of the current sliding window area, and the first area and the second area are obtained, and the gray value of the first area is smaller than the first Two areas.
  • the OTSU algorithm can be used to segment the current sliding window region.
  • the OTSU algorithm is also called the maximum inter-class variance method.
  • the image is divided into two parts: the background and the foreground. The larger the variance between the background and the foreground, the greater the difference between the two parts of the image.
  • the segmentation with the largest variance means that the probability of misclassification is the smallest, so the segmentation threshold corresponding to the segment with the largest variance between classes is called the optimal grayscale threshold.
  • the OTSU algorithm first determines an optimal gray threshold according to the gray value distribution of the current sliding window region, and then divides the current sliding window region according to the optimal gray threshold to obtain two regions—the first region. And the second area.
  • the gradation of the pixel belonging to the first region is smaller than the optimal gradation threshold
  • the gradation of the pixel belonging to the second region is greater than the optimal gradation threshold
  • the pixel whose gradation is equal to the optimal gradation threshold may be determined to belong to the first region. It can also be determined to belong to the second area, and is not specifically limited herein.
  • the pixel in the first area is marked as 1, and the pixel in the second area is marked as 0;
  • the first region and the second region may be respectively marked to indicate that the first region is a dark region of amniotic fluid
  • the second area is a dark area other than amniotic fluid. For example, a pixel in the first region can be marked as 1 and a pixel in the second region can be marked as 0.
  • step 202 to step 205 may not be performed, but image segmentation is directly performed on each sliding window region of the ultrasonic image, but the efficiency is low due to the large amount of calculation of image segmentation.
  • step 204 may be performed to determine whether the current sliding window area belongs to the non-amniotic dark area. If it does not belong to the non-amniotic dark area, step 202 is performed to determine whether the current sliding window area belongs to the amniotic fluid dark area.
  • the area with the most amniotic fluid should be selected, and there is no structure such as carcass or umbilical cord inside.
  • the umbilical cord can also be expressed as liquid dark area like amniotic fluid. It is often necessary to image the uterus of a pregnant woman by means of a color Doppler ultrasound mode.
  • the color Doppler image quantizes the Doppler signal of the bloodstream and performs color coding, and the real-time overlay is displayed on the B-ultrasound image.
  • the umbilical cord region appears as a color blood flow
  • the dark area of amniotic fluid still appears as a liquid dark area, which can be distinguished from the dark area of amniotic fluid in color. Therefore, when the ultrasonic measurement mode is the color Doppler ultrasound mode, the Doppler signal of the blood flow can be used to determine the pixels in the region where the color blood flow is located in the ultrasonic image, and the pixel corresponding to the color blood flow is marked as non-amniotic water. In dark areas, for example, pixels corresponding to color blood flow can be marked as 0.
  • step 208 is not performed after step 207.
  • the marking of each pixel in the ultrasonic image is completed. According to the marking, it can be determined whether any pixel belongs to the amniotic fluid dark area or the non-amphibious water dark area, and the ultrasonic image can be converted into a binary image according to the marking of each pixel. In other words, any pixel has only two selectable values. In the embodiment of the present invention, after the ultrasonic image is converted into a binary image, the value of any one pixel is either 1 or 0.
  • the binary image obtained by image segmentation often includes noise, such as a small number of 1-value pixels surrounded by 0-value pixels, or a small number of 0-value pixels surrounded by 1-value pixels. Therefore, preferably, the binary image can be subjected to noise smoothing processing, for example, morphological expansion etching can be used to eliminate noise. Morphological expansion is to enlarge the boundary of each 1 pixel connection component in the binary image, filling the edge or the hole inside the 0 pixel; morphological corrosion is to remove the boundary point of each 1 pixel connection component in the binary image to reduce one Layer, you can extract the backbone information, remove the glitch, and remove the isolated 0 pixels.
  • noise smoothing processing for example, morphological expansion etching can be used to eliminate noise. Morphological expansion is to enlarge the boundary of each 1 pixel connection component in the binary image, filling the edge or the hole inside the 0 pixel; morphological corrosion is to remove the boundary point of each 1 pixel connection component in the binary image to reduce one Layer, you can
  • the pixels belonging to the dark region of the amniotic fluid in the ultrasonic image can be determined, and the dark water regions of the amniotic fluid are composed of the pixels, and the dark region of the amniotic fluid in the ultrasonic image can be determined according to the coordinate positions of the pixels.
  • the amniotic fluid dark area is composed of pixels having a value of 1.
  • the dark areas of amniotic fluid obtained by selecting different sliding window scales usually have some differences.
  • steps 201 to 211 to determine the dark areas of amniotic fluid in the ultrasonic images corresponding to the sliding windows of other scales.
  • the dark region of the amniotic fluid in the second ultrasonic image corresponding to the sliding window of the second scale and the third amniotic dark region in the ultrasonic image corresponding to the sliding window of the third scale may be determined, and then multiple scale slidings may be integrated.
  • the dark area of the amniotic fluid in the ultrasound image corresponding to the window determines the dark area of the amniotic fluid in the final ultrasound image.
  • another embodiment of the amniotic fluid dark area in the ultrasonic image of the present invention includes:
  • the target scale may be set to the first scale, the second scale, and the third scale, respectively, and the ultrasonic images are respectively converted into binary images at the first scale, the second scale, and the third scale.
  • the target scale may be set to the first scale, and steps 201 to 209 are performed to obtain the binary image at the first scale; the target scale is set to the second scale, and steps 201 to 209 are performed to obtain the second scale.
  • the binary image is set to the third scale, and steps 201 to 209 are performed to obtain the binary image at the third scale.
  • the binary image at the first scale, the second scale and the third scale can be used to determine the value of each pixel in the ultrasonic image to generate a composite binary image, and the composite binary image is obtained by comprehensively considering the binary image at different scales.
  • Any pixel in the ultrasonic image corresponds to a value in the binary image at each scale.
  • the corresponding value in the binary image of the pixel at a certain scale is called the pixel.
  • An alternative value is selected, and the candidate value of the pixel having a higher frequency appears in the candidate value of each scale as the value of the pixel in the synthesized binary image.
  • a composite binary image may be generated by using a voting mechanism, and the voter is each pixel in the ultrasonic image, and the voting party is the first amniocentetics dark zone, the second amniotic fluid dark zone, and the third amniotic fluid dark zone. Traverse each pixel in the ultrasonic image to vote for each pixel.
  • the first amniocentetic dark area votes for the current pixel
  • a ticket is added for the current pixel, otherwise, the current pixel is not added.
  • the third amniotic fluid dark area is the current pixel voting time. If the current pixel belongs to the third amniotic dark area, a ticket is added for the current pixel; otherwise, the number of votes of the current pixel is not increased. Accumulate the voting result of the first amniotic fluid dark zone, the second amniotic fluid dark zone and the third amniotic fluid dark zone to the current pixel as the total number of votes of the current pixel.
  • the threshold of the number of votes belonging to the dark area of the amniotic fluid can be preset. For example, it can be set to 2 votes. Then, the pixels with the total number of votes in the ultrasonic image greater than or equal to 2 can be determined to belong to the dark area of the amniotic fluid and marked as the dark area of the amniotic fluid. If the number of voters is greater than three, then the number of votes will increase accordingly, at least greater than the median of the number of voters.
  • Steps 303 to 304 are the same as steps 210 to 211 in the embodiment corresponding to FIG. 2, and details are not described herein again.
  • the maximum vertical depth of the sheep pool can be measured. Since the ultrasonic image is composed of pixels of the same size and arranged in rows and columns, it represents the pool of sheep.
  • the target line segment of the maximum vertical depth can be considered to be composed of a part of consecutive pixels in a certain column of pixels. Therefore, the maximum vertical depth of the sheep pool can be calculated according to the number of pixels corresponding to the target line segment.
  • An optional method of measuring the maximum vertical depth of a sheep pond is provided below. Referring to Figure 4, one embodiment of the method of measuring the maximum vertical depth of a sheep pond of the present invention includes:
  • the target pixels with the same abscissa and continuous ordinate are grouped into one group, and the target pixel is a pixel marked as a dark region of the amniotic fluid in the ultrasonic image;
  • the ultrasonic image is composed of pixels of the same size and distributed in rows and columns, the number of the column in which the pixel is located can represent the abscissa of the pixel, and the number of the row in which the pixel is located represents the ordinate of the pixel.
  • the pixels marked as the dark region of the amniotic fluid in the ultrasonic image can be counted.
  • the pixel marked as the dark region of the amniotic fluid in the ultrasonic image is referred to as the target pixel.
  • the target pixels having the same abscissa and continuous ordinates may be grouped into one group, that is, the target pixels of the continuous distribution in the same column in the ultrasonic image are grouped.
  • the number of pixels of the target pixel in each group can be calculated, and a group having a large number of pixels is selected as the target group.
  • the target line segment composed of the target pixels in the target group corresponds to the maximum vertical depth of the sheep pool, and the maximum vertical depth of the sheep pool can be calculated according to the number of pixels in the target group.
  • the size occupied by the ultrasonic image can further calculate the corresponding size of the corresponding pixel on the subject.
  • the target line segment is determined to highlight the target line segment in the ultrasound image displayed to the doctor, so that the doctor can determine the maximum vertical depth corresponding to the line segment in the ultrasonic image, and judge whether the target line segment is selected according to experience, in actual use, if There is no need to highlight the target line segment or determine the target line segment.
  • the ultrasound image can be converted into a binary image, that is, any pixel in the ultrasound image can only be selected from two values, one value represents the dark region of the amniotic fluid, and the other value represents For non-amniotic dark areas, for example, "1" can be used to represent the dark area of amniotic fluid, and "0" is used to represent the dark area of non-amniotic water. If the value of any pixel in the ultrasonic image is not "0", it is "1". As shown in FIG.
  • the large square represents the entire binary image
  • each small square in the large square represents one pixel
  • the pixel coordinates of the upper left corner are (1, 1)
  • the lower right corner is The pixel coordinates are (8,8)
  • the pixels filled with dark colors have a value of "0”, which belongs to the non-amniotic dark area.
  • the pixels filled with white have a value of "1", belonging to the dark area of amniotic fluid, and the dark area of amniotic fluid is A connected area that includes some non-amniotic dark areas.
  • the voting idea may be adopted, and the voting item is the abscissa of the dark region of the amniotic fluid.
  • the voting items are 2, 3, 4, 5, 6, and 7, respectively, and then the entire amniotic dark area in FIG. 5 is traversed line by line. And all the pixels inside it (that is, all the pixels inside the dotted line in Fig. 5), according to whether the pixel belongs to the amniotic fluid dark area to vote on the voting item corresponding to the abscissa of the pixel, and in an array of 3 rows and 6 columns set in advance Record the voting data.
  • the 6 columns in the array correspond to 6 voting items respectively, and the row a in the array records consecutive current votes, that is, when the current pixel belongs to the amniotic dark area, the count corresponding to the abscissa of the current pixel in row a is increased by one vote.
  • the count corresponding to the abscissa of the current pixel in row a is cleared; the row b in the array records the maximum number of consecutive votes, that is, an item in line a, such as In vote 2, before the corresponding count is cleared, the count corresponding to vote 2 of line b remains the same as the count of vote 2 of line a, and when the count corresponding to vote 2 of line a is cleared, line b The count corresponding to the voting item 2 is unchanged until the count corresponding to the voting item 2 of the row a exceeds the count corresponding to the voting item 2 of the row b.
  • the count corresponding to the voting item 2 of the row b is re-held with the voting item of the row a. 2
  • the corresponding count is the same; the row c in the array records that the row b and the row a remain the same (excluding the case where all are 0), and the last count increases the ordinate of the corresponding pixel.
  • Voting item 2 3 4 5 6 7 a 6 4 3 3 6 4 b 6 4 3 3 6 4 c 7 7 7 7 7 6
  • the maximum count result of row b is used to calculate the maximum vertical depth of the sheep pool, with the maximum count result of row b as the target segment length, the abscissa of the maximum count result item as the abscissa of the lower endpoint of the target segment,
  • the target line segment can be determined in the ultrasonic image by using the corresponding ordinate of the horizontal coordinate in the row c as the ordinate of the lower end point of the target line segment, wherein the target line segment is an ultrasonic image or a binary image representing the sheep pool The line segment of the maximum vertical depth. Taking the binary image of FIG.
  • the maximum counting result of row b is 6, and the abscissa of the maximum counting result item is 2 and 6, and one of them can be taken.
  • a smaller abscissa 2 and an abscissa can be taken. 2
  • the corresponding ordinate in row c is 7, and since the length of the target segment corresponds to 6 pixels, the coordinates of the lower endpoint of the target segment are (2, 7) and the coordinates of the upper endpoint are (2, 2).
  • the maximum vertical depth of the sheep pool in the ultrasonic image can be measured.
  • the amniotic fluid index can be obtained, such as DVP or AFI, and the following are respectively for DVP and AFI. The measurement process is described.
  • another embodiment of the ultrasonic image processing method in the embodiment of the present invention includes:
  • the ultrasonic image to be measured can be obtained first, and since the present invention is used for amniocentesis measurement, the ultrasonic image includes a sheep pool.
  • the doctor can obtain the different horizontal positions in the uterus by changing the detection position of the ultrasonic probe on the pregnant woman's belly surface within the entire uterus of the pregnant woman.
  • the doctor gives an instruction to freeze the current ultrasonic preview image when the ultrasonic preview image including the deepest sheep pool is determined according to the experience comparison, and the ultrasonic image processing apparatus can acquire the frozen ultrasonic image.
  • the ultrasound image includes the deepest sheep pool.
  • two or more ultrasonic images can also be acquired in actual use.
  • doctors compare the depths of the sheep pools in multiple ultrasound preview images
  • the plurality of ultrasonic preview images having a large depth are frozen, and the ultrasonic image processing apparatus can acquire the frozen plurality of ultrasonic images, and then the plurality of acquired ultrasonic images can be processed in series or in parallel.
  • the connected region with a lower gray value can be identified from the ultrasonic image according to the grayscale difference as the dark region of the amniotic fluid.
  • step 601 If the ultrasonic image acquired in step 601 is one, then only one maximum vertical depth measurement result and its corresponding line segment are obtained in this step, and this measurement result is directly used as the measurement result of the amniotic fluid depth DVP measured this time.
  • the corresponding line segment is used as the target line segment.
  • step 601 acquires two or more ultrasound images, then this step can obtain a corresponding number of maximum vertical depth measurements and corresponding corresponding number of line segments, for example, a total of three ultrasound images are acquired, then The maximum vertical depths d1, d2, and d3 of the sheep pools of the three ultrasonic images are respectively obtained, and the line segments l1 corresponding to d1, the line segments l2 corresponding to d2, and the line segments l3 corresponding to d3.
  • the maximum value (assumed to be d1) is selected from d1, d2, and d3 as the amniotic fluid depth DVP of this measurement, and then the line segment l1 corresponding to d1 is determined as the target line segment.
  • the DVP result can be displayed to the user, and the target line segment is highlighted in the displayed ultrasonic image, so that the doctor can determine the corresponding vertical line depth in the ultrasonic image, and judge the target line segment according to experience. Is it reasonable? Highlighting a target segment highlights all pixels on the target segment, or you can highlight both endpoints of the target segment.
  • step 605 determining whether the measurement result of the DVP is within a preset range, and if so, executing step 606, if not, executing step 607;
  • step 606 After the measurement result of the DVP is obtained, it can be determined whether the measurement result of the DVP is within a preset range. If yes, step 606 is performed, and if no, step 607 is performed. Clinically, the preset range of DVP is usually set to [2,8). When DVP ⁇ 8cm, the amount of amniotic fluid is considered to be too much. When DVP ⁇ 2cm, the amount of amniotic fluid is considered to be too small.
  • a preset range setting option can be added to the DVP test system, and the user can set the preset range as needed.
  • step 605 may also be performed before step 604, or may be performed simultaneously with step 604, that is, as long as it is performed after step 603, the timing is not uniquely defined herein.
  • the DVP detection result is normal, and the DVP test result can be prompted to be normal.
  • the DVP test result is abnormal, and the corresponding medical treatment prompt is displayed.
  • the DVP detection result is abnormal, and the DVP test result may be prompted to be abnormal, and the corresponding medical treatment prompt is displayed. Specifically, if DVP ⁇ 8cm, the amount of amniotic fluid can be indicated too much. If DVP ⁇ 2cm, the amount of amniotic fluid can be indicated to be too small.
  • the abnormal amniotic fluid volume is closely related to the normal development of fetal development.
  • the excessive amniotic fluid may be related to fetal digestive tract obstruction, central nervous system abnormality, intrauterine infection and other causes.
  • the oligohydramnios may be associated with fetal growth restriction and fetal congenital urinary tract.
  • another embodiment of the ultrasonic image processing method in the embodiment of the present invention includes:
  • the sheep pool is divided into four quadrants: the upper left, the lower left, the upper right, and the lower right, respectively, to obtain ultrasonic images of the four quadrants of the sheep pool. Then, the maximum vertical depth of the sheep pool in each quadrant is measured separately, and then the maximum vertical depth of the four quadrants is added to obtain the amniotic fluid index AFI, and the maximum value among the maximum vertical depths of the four quadrants is used as the DVP value. In order to more fully reflect the distribution of amniotic fluid in the entire uterine cavity. After the ultrasound doctor freezes the ultrasound preview images of the four quadrants in the upper left, lower left, upper right, and lower right quadrants respectively, the ultrasonic image processing apparatus can acquire the ultrasonic images of the four quadrants of the sheep pool.
  • the gray value of the dark region of the amniotic fluid is low and is a connected region, after acquiring the ultrasonic images of the respective quadrants, for each ultrasonic image of the quadrant, the gray value can be recognized from the image according to the grayscale difference.
  • Low connected area as a dark area of amniotic fluid.
  • the maximum vertical depth can be measured separately, and the target line segments corresponding to the maximum vertical depth are respectively determined.
  • the maximum vertical depth corresponding to the ultrasonic images of the four quadrants can be summed to obtain the measurement result of the AFI.
  • the maximum value can be selected as the measurement result of the DVP.
  • the measurement results can be displayed, and the respective target line segments are highlighted in the ultrasonic images of each quadrant to facilitate the doctor to determine the maximum vertical depth corresponding to the line segment in the ultrasonic image, and according to experience Determine whether the selection of the target line segment is reasonable.
  • Highlighting a target segment highlights all pixels on the target segment, or it can highlight both endpoints of the target segment.
  • step 707 determine whether the measurement result of AFI and DVP is within a preset range, and if so, step 708 is performed, and if not, step 709 is performed;
  • step 708 is performed, whether the measurement results of AFI and DVP are respectively determined to be within a preset range, if yes, step 708 is performed, and if not, step 709 is performed.
  • the preset range of DVP is usually set to [2,8).
  • DVP ⁇ 8cm the amount of amniotic fluid is considered too much.
  • DVP ⁇ 2cm the amount of amniotic fluid is considered too small;
  • the preset range of AFI is usually set to [ 6,20), when AFI ⁇ 20cm, it is considered that the amount of amniotic fluid is too much.
  • AFI ⁇ 6cm the amount of amniotic fluid is considered to be too small.
  • step 708 is performed; when the measurement result of AFI is not within the preset range, or the measurement of DVP When the result is not within the preset range, it is determined that the measurement results of AFI and DVP are not within the preset range, and step 709 is performed.
  • a preset range setting option can be added to the AFI test system. Users can set the preset range of AFI and DVP as needed.
  • the AFI test result is abnormal, and the corresponding medical prompt is displayed.
  • the AFI detection result is abnormal, and the AFI test result may be abnormal at this time, and the corresponding medical treatment prompt is displayed. Specifically, if DVP ⁇ 8cm, or AFI ⁇ 20cm, you can indicate excessive amniotic fluid. If DVP ⁇ 2cm, or AFI ⁇ 6cm, you can indicate that the amount of amniotic fluid is too small.
  • the abnormal amniotic fluid volume is closely related to the normal development of fetal development.
  • the excessive amniotic fluid may be related to fetal digestive tract obstruction, central nervous system abnormality, intrauterine infection and other causes.
  • the oligohydramnios may be associated with fetal growth restriction and fetal congenital urinary tract. System malformations and other related. In order to assist the doctor to make a correct diagnosis based on the test results, screening for diseases that may cause abnormal amniotic fluid, when the system has determined that the amniotic fluid is abnormal, it can display the diagnosis and treatment tips related to amniotic fluid abnormalities, for example, when the amniotic fluid is indicated When there are few, you can suggest "Possible causes include: fetal growth restriction, fetal congenital urinary system malformation, etc.”; when the amount of amniotic fluid is too much, you may be prompted "probable causes include: fetal digestive tract obstruction, central nervous system abnormalities, palace Cavity infection, etc.”.
  • DVP can also be measured and displayed.
  • the embodiment corresponding to FIG. 6 and FIG. 7 can greatly simplify the operation flow of the user in measuring the amniotic fluid index AFI and DVP, and significantly improve the working efficiency of the doctor.
  • an embodiment of an ultrasonic image processing apparatus in an embodiment of the present invention includes:
  • the obtaining module 801 is configured to acquire an ultrasonic image of the sheep pool
  • the identification module 802 is configured to identify a dark area of the amniotic fluid corresponding to the sheep pool in the ultrasonic image
  • the measuring module 803 is configured to measure the maximum vertical depth of the sheep pool according to the maximum vertical depth of the dark region of the amniotic fluid.
  • the identification module 802 can include:
  • a traversing unit for traversing the ultrasonic image by using a sliding window of a target scale, the target scale comprising a first scale, a second scale, and a third scale;
  • a dividing unit configured to perform image segmentation on the current sliding window region according to the gray value distribution of the current sliding window region, to obtain a first region and a second region, wherein the gray value of the first region is smaller than the gray value of the second region;
  • a first marking unit configured to mark pixels in the first area as amniotic dark areas, and pixels in the second area as non-amphibious dark areas;
  • a conversion unit configured to convert the ultrasonic image into a binary image at a target scale according to the mark of the pixel, and obtain binary images at the first scale, the second scale, and the third scale, respectively;
  • a first determining unit configured to determine a value of each pixel in the ultrasonic image by using the binary image at the first scale, the second scale, and the third scale to generate a synthesized binary image
  • a smoothing unit for performing noise smoothing on the synthesized binary image
  • a second determining unit configured to determine a dark region of the amniotic fluid in the ultrasonic image according to the synthesized binary image after denoising.
  • the identification module 802 can further include:
  • a third determining unit configured to determine a pixel corresponding to the color blood flow by using a Doppler signal of the blood flow
  • a second marking unit configured to mark the third determining unit to identify the hungry pixel as a non-amniotic dark area.
  • the measurement module 803 comprises:
  • a grouping unit for dividing a target pixel having the same abscissa and a continuous ordinate into a group, wherein the target pixel is a pixel marked as a dark region of the amniotic fluid in the ultrasonic image;
  • a first calculating unit configured to calculate a number of pixels of each group, and select a group with the largest number of pixels as the target group;
  • a second calculating unit configured to calculate a maximum vertical depth of the sheep pool according to the number of pixels of the target group.
  • another embodiment of the ultrasonic image processing apparatus in the embodiment of the present invention includes:
  • the obtaining module 901 is configured to acquire an ultrasonic image of the sheep pool
  • the identification module 902 is configured to identify a dark area of the amniotic fluid corresponding to the sheep pool in the ultrasonic image;
  • a measuring module 903 configured to measure a maximum vertical depth of the sheep pool according to a maximum vertical depth of the dark region of the amniotic fluid
  • the first display module 904 is configured to display the maximum vertical depth of the obtained sheep pool as a measurement result of the DVP in the DVP measurement mode;
  • the first determining module 905 is configured to determine whether the measurement result of the DVP is within a preset range
  • the first prompting module 906 is configured to: when the first determining module determines that the measurement result of the DVP is within the preset range, the test result of the DVP is normal, when the first determining module determines that the measurement result of the DVP is not within the preset range, The test result of DVP is abnormal, and the corresponding medical tips are displayed.
  • another embodiment of the ultrasonic image processing apparatus in the embodiment of the present invention includes:
  • the obtaining module 1001 is configured to acquire an ultrasonic image of the sheep pool, and the obtaining module includes an acquiring subunit for respectively acquiring ultrasonic images of four quadrants of the sheep pool;
  • the identification module 1002 is configured to identify a dark region of the amniotic fluid corresponding to the sheep pool in the ultrasonic image;
  • a measuring module 1003 configured to measure a maximum vertical depth of the sheep pool according to a maximum vertical depth of the dark region of the amniotic fluid
  • the calculating module 1004 is configured to sum the maximum vertical depths of the four quadrants of the sheep pool in the AFI measurement mode to obtain the AFI measurement result;
  • the second display module 1005 is configured to display the measurement result of the AFI
  • the second determining module 1006 is configured to determine whether the measurement result of the AFI is within a preset range
  • the second prompting module 1007 is configured to: when the second determining module determines that the measurement result of the AFI is within the preset range, prompting the measurement result of the AFI to be normal, and when the second determining module determines that the measurement result of the AFI is not within the preset range, The AFI measurement results are abnormal and the corresponding medical tips are displayed.
  • the embodiment of the present invention further provides an ultrasonic diagnostic apparatus 11 as shown in FIG. 11.
  • the ultrasonic diagnostic apparatus includes a host computer 11-1 and an ultrasonic probe 11-2.
  • the host computer 11-1 can be a terminal device with signal processing capability such as a tablet computer or a desktop computer, and the host computer 11-1 is connected to the ultrasonic probe 11-2.
  • the ultrasonic image can be acquired based on the output data of the ultrasonic probe 11-2.
  • the host computer 11-1 includes a power source 1110, a memory 1120, a display unit 1130, a processor 1140, and a computer program stored in the memory and operable on the processor.
  • the processor 1140 implements the steps in the various method embodiments described above when executing a computer program, such as steps 101 through 103 shown in FIG. Alternatively, the processor implements the functions of the modules or units in the various apparatus embodiments described above when the computer program is executed.
  • the computer program can be partitioned into one or more modules/units that are stored in the memory and executed by the processor to perform the present invention.
  • the one or more modules/units may be a series of computer program instruction segments capable of performing a particular function, the instruction segments being used to describe the execution of the computer program in the host computer 11-1.
  • the computer program may be divided into an obtaining module 81, an identifying module 82, and a measuring module 83.
  • the specific functions of each module are as follows:
  • the obtaining module 81 is configured to acquire an ultrasonic image of the sheep pool
  • the identification module 82 is configured to identify a dark area of the amniotic fluid corresponding to the sheep pool in the ultrasonic image
  • the measuring module 83 is configured to measure the maximum vertical depth of the sheep pool according to the maximum vertical depth of the dark region of the amniotic fluid.
  • the structure shown in FIG. 11 does not constitute a limitation to the ultrasonic diagnostic apparatus 11, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements,
  • the host computer 11-1 may further include an input/output device, a network access device, a bus, and the like.
  • the so-called processor can be a central processing unit (CPU), or other general-purpose processor, digital signal processor (DSP), application specific integrated circuit (ASIC), ready-made Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like, and the processor is a control center of the upper computer 11-1, and connects the entire upper computer 11 by using various interfaces and lines. The various parts of 1.
  • the memory can be used to store the computer program and/or module, the processor implementing the upper level by running or executing a computer program and/or module stored in the memory, and recalling data stored in the memory Various functions of the machine 11-1.
  • the memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored. Data created based on the use of the mobile phone (such as audio data, phone book, etc.).
  • the memory may include a high-speed random access memory, and may also include non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SMC), and a Secure Digital (SD) card.
  • non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SMC), and a Secure Digital (SD) card.
  • Flash Card at least one disk storage device, flash memory device, or other volatile solid-state storage device.
  • the computer-integrated modules/units if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the present invention implements all or part of the processes in the foregoing embodiments, and may also be completed by a computer program to instruct related hardware.
  • the computer program may be stored in a computer readable storage medium. The steps of the various method embodiments described above may be implemented when the program is executed by the processor.
  • the computer program comprises computer program code, which may be in the form of source code, object code form, executable file or some intermediate form.
  • the computer readable medium may include any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM). , random access memory (RAM, Random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media. It should be noted that the content contained in the computer readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in a jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, computer readable media Does not include electrical carrier signals and telecommunication signals.
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of cells is only a logical function division.
  • multiple units or components may be combined or integrated. Go to another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.

Landscapes

  • Life Sciences & Earth Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Surgery (AREA)
  • Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
  • Pathology (AREA)
  • Radiology & Medical Imaging (AREA)
  • Biomedical Technology (AREA)
  • Veterinary Medicine (AREA)
  • Medical Informatics (AREA)
  • Molecular Biology (AREA)
  • Biophysics (AREA)
  • Animal Behavior & Ethology (AREA)
  • General Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)

Abstract

An ultrasound image processing method and device, an ultrasonic diagnosis device, and a computer-readable storage medium, relating to the field of image processing. The ultrasound image processing method comprises: acquiring an ultrasound image of an amniotic fluid pocket; identifying an amniotic fluid opaque area corresponding to the amniotic fluid pocket in the ultrasound image; and measuring the greatest vertical depth of the amniotic fluid pocket according to the greatest vertical depth of the amniotic fluid opaque area. The method and related device can avoid the impact of human factors on a measurement result of an amniotic fluid volume as far as possible and improve the accuracy of an amniotic fluid detection result, and are beneficial to reduction in misdiagnoses.

Description

超声波图像处理方法及装置、超声诊断装置及存储介质Ultrasonic image processing method and device, ultrasonic diagnostic device and storage medium
本申请要求于2017年9月30日提交中国专利局、申请号为201710923233.2、发明名称为“超声波图像处理方法及装置、超声诊断装置及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application filed on September 30, 2017, the Chinese Patent Office, the application number is 201710923233.2, and the invention name is "ultrasonic image processing method and device, ultrasonic diagnostic device and storage medium", the entire contents of which are The citations are incorporated herein by reference.
技术领域Technical field
本发明涉及超声诊断技术设备领域,具体涉及一种超声波图像处理方法及装置、超声诊断装置及计算机可读存储介质。The present invention relates to the field of ultrasonic diagnostic technology devices, and in particular, to an ultrasonic image processing method and device, an ultrasonic diagnostic device, and a computer readable storage medium.
背景技术Background technique
羊水量的异常与胎儿发育正常与否关系密切,已成为妊娠期重要的检测内容。由于受检查时间限制一般超声对胎儿辐射时间不宜过长及受专业人员水平和超声仪器功能限制,目前尚不能对每一孕妇在单次检测时,在较短时间内对各种畸形予以确诊。因此,羊水量异常就成为发现高危情况的一种提示,其检测及判断就显得尤为重要,它可提示检测医生及时对胎儿进行详细检查。The abnormality of amniotic fluid volume is closely related to the normal development of fetal development, and has become an important test content in pregnancy. Due to the limitation of the inspection time, the ultrasound should not be too long for the fetal radiation time and limited by the professional level and the function of the ultrasonic instrument. At present, it is not possible to diagnose each abnormality in a short time for each pregnant woman. Therefore, abnormal amniotic fluid volume has become a reminder of the discovery of high-risk conditions, and its detection and judgment is particularly important. It can prompt the testing doctor to conduct a detailed examination of the fetus in time.
目前通常利用超声波探头执行B模式扫描,对孕妇的羊膜腔进行成像,得到B超图像,羊水池在B超图像中表现为液性暗区。液性暗区是指人体在做B超检查时,液体聚集的地方因不容易透过超声波而在显示器上呈现暗区。积液、积脓、羊水、血液等人体内的液体均可在B超图像中呈现为液性暗区。At present, the B-mode scan is usually performed by using an ultrasonic probe to image the amniotic cavity of the pregnant woman to obtain a B-ultrasound image, and the sheep pool is expressed as a liquid dark area in the B-ultrasound image. The liquid dark area refers to the dark area where the liquid is concentrated when the human body is in the B-ultrasound examination because it is not easy to transmit ultrasonic waves. Liquids in human body such as effusion, empyema, amniotic fluid, blood, etc. can all appear as liquid dark areas in B-ultrasound images.
目前临床常用超声检测羊水量的方法以及标准包括:①测量最大羊水池的垂直深度,称羊水深度(deepest vertical pool,DVP),一般用于早孕期及中孕期,DVP的正常范围为2cm~7.9cm;②测量羊水指数(amniotic fluid index,AFI),一般用于晚孕期,AFI是将子宫分成左上、右上、左下和右下四个象限,测量各个象限的羊水深度DVP,得到的四个象限的DVP之和即为AFI,AFI的正常范围为6cm~19.9cm。At present, the methods and standards for commonly used ultrasonic testing of amniotic fluid include: 1 measuring the vertical depth of the largest sheep pool, called deepest vertical pool (DVP), generally used in early pregnancy and middle pregnancy, the normal range of DVP is 2cm ~ 7.9 Cm; 2 measurement of amniotic fluid index (AFI), generally used in late pregnancy, AFI is divided into four upper quadrants, upper right, lower left and lower right quadrant, measuring amniotic fluid depth DVP in each quadrant, the four quadrants obtained The sum of DVP is AFI, and the normal range of AFI is 6cm to 19.9cm.
现有技术中,对孕妇进行羊水量的超声波检测过程通常是:首先医生通过移动超声波探头找到孕妇的最大羊水池,并冻结当前图像;之后,医生根据主观判断在当前图像的液态暗区中确定垂直深度最大的位置,并在该位置手动插入线段,线段的长度代表该位置处液性暗区的垂直深度;超声波图像处理装置获取医生插入的线段后,根据该线段的长度计算当前图像对应的羊水池的最大 垂直深度,并作为该孕妇的DVP结果。相似的,可以计算得到孕妇子宫四个象限的羊水池的最大垂直深度,求和后可以得到该孕妇的AFI结果。In the prior art, the ultrasonic testing process for the amount of amniotic fluid in a pregnant woman is usually: first, the doctor finds the largest sheep pool of the pregnant woman by moving the ultrasonic probe, and freezes the current image; after that, the doctor determines in the liquid dark area of the current image according to subjective judgment. The position with the largest vertical depth, and manually inserting the line segment at the position, the length of the line segment represents the vertical depth of the liquid dark area at the position; after the ultrasonic image processing device obtains the line segment inserted by the doctor, the current image is calculated according to the length of the line segment. The maximum vertical depth of the sheep pool and serves as the DVP result for the pregnant woman. Similarly, the maximum vertical depth of the sheep pool in the four quadrants of the pregnant woman's womb can be calculated, and the AFI result of the pregnant woman can be obtained after the summation.
DVP与AFI测量均基于对超声波图像中羊水池的最大垂直深度的测量,但是,现有技术对最大垂直深度的测量需要医生根据主观判断在冻结的超声波图像的羊水暗区中确定垂直深度最大的位置,并在该位置插入代表该最大垂直深度的线段,最终根据线段的长度来确定最大垂直深度,可见DVP与AFI的测量结果在很大程度上受到人为因素的影响,也就是说,不同医生专业技术水平差异、主观性以及手动测量的误差等均会导致对同一检测对象得到不同检测结果,导致羊水检测结果的准确性较低,容易出现羊水测量值出现假阴性或者假阳性结果,从而给孕妇及胎儿造成不必要的误诊。Both DVP and AFI measurements are based on the measurement of the maximum vertical depth of the sheep pool in the ultrasound image. However, the prior art measurement of the maximum vertical depth requires the physician to determine the maximum vertical depth in the dark region of the amniotic fluid in the frozen ultrasound image based on subjective judgment. Position, and insert a line segment representing the maximum vertical depth at the position, and finally determine the maximum vertical depth according to the length of the line segment. It can be seen that the measurement results of DVP and AFI are largely affected by human factors, that is, different doctors Differences in professional skill level, subjectivity, and errors in manual measurement can result in different test results for the same test subject, resulting in lower accuracy of amniotic fluid test results, and prone to false negative or false positive results of amniotic fluid measurements, thus giving Pregnant women and the fetus cause unnecessary misdiagnosis.
发明内容Summary of the invention
本发明提供一种超声波图像处理方法及装置、超声诊断装置及计算机可读存储介质,用于解决现有的羊水检测结果的准确性较低的问题。The invention provides an ultrasonic image processing method and device, an ultrasonic diagnostic device and a computer readable storage medium, which are used for solving the problem of low accuracy of the existing amniotic fluid detection result.
本发明实施例的一方面提供了一种超声波图像处理方法,包括:An aspect of an embodiment of the present invention provides an ultrasonic image processing method, including:
获取羊水池的超声波图像;Obtain an ultrasound image of the sheep pool;
识别所述超声波图像中羊水池对应的羊水暗区;Identifying a dark area of amniotic fluid corresponding to the sheep pool in the ultrasonic image;
根据所述羊水暗区的最大垂直深度测量所述羊水池的最大垂直深度。The maximum vertical depth of the sheep pool is measured based on the maximum vertical depth of the amniotic fluid dark zone.
结合第一方面,在第一方面的第一种可能的实现方式中,识别所述超声波图像中羊水池对应的羊水暗区包括:In conjunction with the first aspect, in a first possible implementation manner of the first aspect, the identifying the dark region of the amniotic fluid corresponding to the sheep pool in the ultrasonic image includes:
采用目标尺度的滑动窗口遍历所述超声波图像,所述目标尺度包括第一尺度、第二尺度和第三尺度;Traversing the ultrasound image using a sliding window of a target scale, the target scale comprising a first scale, a second scale, and a third scale;
根据当前滑动窗口区域的灰度值分布对当前滑动窗口区域进行图像分割,得到第一区域和第二区域,所述第一区域的灰度值小于所述第二区域的灰度值;Performing image segmentation on the current sliding window region according to the gray value distribution of the current sliding window region, to obtain a first region and a second region, wherein the gray value of the first region is smaller than the gray value of the second region;
将所述第一区域内的像素标记为羊水暗区,将所述第二区域内的像素标记为非羊水暗区;Marking pixels in the first area as amniotic dark areas, and marking pixels in the second area as non-amphibious dark areas;
根据像素的标记将所述超声波图像转换为目标尺度下的二值图像,分别得到所述第一尺度、所述第二尺度和所述第三尺度下的二值图像;Converting the ultrasonic image into a binary image at a target scale according to a mark of the pixel, respectively obtaining binary images at the first scale, the second scale, and the third scale;
利用所述第一尺度、所述第二尺度和所述第三尺度下的二值图像确定所述超声波图像中各个像素的取值,生成合成二值图像;Determining, by using the binary image of the first scale, the second scale, and the third scale, a value of each pixel in the ultrasonic image to generate a composite binary image;
对所述合成二值图像进行噪声平滑处理;Performing noise smoothing processing on the synthesized binary image;
根据去噪后的合成二值图像确定所述超声波图像中的羊水暗区。The amniotic fluid dark area in the ultrasonic image is determined according to the denoised synthetic binary image.
结合第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,在对所述第一区域内的像素和所述第二区域内的像素进行标记之后,在将所述超声波图形转换为目标尺度下的二值图像之前,所述方法还包括:With reference to the first possible implementation of the first aspect, in a second possible implementation manner of the first aspect, after the pixels in the first area and the pixels in the second area are marked, Before converting the ultrasound pattern to a binary image at a target scale, the method further includes:
利用血流的多普勒信号确定彩色血流对应的像素,并将其标记为非羊水暗区。The Doppler signal of the blood flow is used to determine the pixel corresponding to the color blood flow, and is marked as a non-amniotic dark area.
结合第一方面、第一方面的第一种可能的实现方式和第一方面的第二种可能的实现方式中任意一种可能的实现方式,在第一方面的第三种可能的实现方式中,根据所述羊水暗区的最大垂直深度测量所述羊水池的最大垂直深度包括:In conjunction with the first aspect, the first possible implementation of the first aspect, and the second possible implementation of the first aspect, in a third possible implementation of the first aspect Measuring the maximum vertical depth of the sheep pool according to the maximum vertical depth of the amniotic fluid dark area includes:
将横坐标相同且纵坐标连续的目标像素分为一组,所述目标像素为所述超声波图像中被标记为羊水暗区的像素;Dividing target pixels having the same abscissa and continuous ordinates into a group, wherein the target pixels are pixels marked as amniotic dark areas in the ultrasonic image;
计算各组的像素数目,选择像素数目最大的组作为目标组;Calculating the number of pixels in each group, and selecting the group with the largest number of pixels as the target group;
根据所述目标组的像素数目计算所述羊水池的最大垂直深度。Calculating a maximum vertical depth of the sheep pool according to the number of pixels of the target group.
结合第一方面、第一方面的第一种可能的实现方式、第一方面的第二种可能的实现方式和第一方面的第三种可能的实现方式之中任意一种,在第一方面的第四种可能的实现方式中,在羊水深度DVP的测量模式下,根据所述羊水暗区的最大垂直深度测量所述羊水池的最大垂直深度之后,所述方法还包括:In combination with the first aspect, the first possible implementation of the first aspect, the second possible implementation of the first aspect, and the third possible implementation of the first aspect, in a first aspect In a fourth possible implementation manner, after measuring the maximum vertical depth of the sheep pool according to the maximum vertical depth of the amniotic fluid dark area in the amniotic fluid depth DVP measurement mode, the method further includes:
将得到的所述羊水池的最大垂直深度作为DVP的测量结果进行显示;The obtained maximum vertical depth of the sheep pool is displayed as a measurement result of DVP;
判断所述DVP的测量结果是否处于预设范围内;Determining whether the measurement result of the DVP is within a preset range;
若是,则提示所述DVP的测试结果正常;If yes, the test result of the DVP is normal;
若否,则提示所述DVP的测试结果异常。If not, the test result of the DVP is abnormal.
结合第一方面、第一方面的第一种可能的实现方式、第一方面的第二种可能的实现方式、第一方面的第三种可能的实现方式和第一方面的第四种可能的实现方式之中任意一种,在第一方面的第五种可能的实现方式中,在羊水指数AFI的测量模式下,获取羊水池的超声波图像包括:Combining the first aspect, the first possible implementation of the first aspect, the second possible implementation of the first aspect, the third possible implementation of the first aspect, and the fourth possible aspect of the first aspect In any one of the implementation manners, in the fifth possible implementation manner of the first aspect, in the measurement mode of the amniotic fluid index AFI, acquiring the ultrasonic image of the sheep pool includes:
分别获取所述羊水池的四个象限的超声波图像;Obtaining ultrasonic images of four quadrants of the sheep pool respectively;
根据所述羊水暗区的最大垂直深度测量所述羊水池的最大垂直深度之后,所述方法还包括:After measuring the maximum vertical depth of the sheep pool according to the maximum vertical depth of the amniotic fluid dark area, the method further includes:
对所述羊水池的四个象限的最大垂直深度进行求和,得到AFI的测量结果,并对其进行显示;The maximum vertical depths of the four quadrants of the sheep pool are summed to obtain the AFI measurement results and displayed;
判断所述AFI的测量结果是否处于预设范围内;Determining whether the measurement result of the AFI is within a preset range;
若是,则提示所述AFI的测量结果正常;If yes, it indicates that the measurement result of the AFI is normal;
若否,则提示所述AFI的测量结果异常。If not, it indicates that the measurement result of the AFI is abnormal.
本发明实施例的第二方面提供了一种超声波图像处理装置,包括:A second aspect of the embodiments of the present invention provides an ultrasonic image processing apparatus, including:
获取模块,用于获取羊水池的超声波图像;Obtaining a module for acquiring an ultrasonic image of a sheep pool;
识别模块,用于识别所述超声波图像中羊水池对应的羊水暗区;An identification module, configured to identify a dark area of amniotic fluid corresponding to the sheep pool in the ultrasonic image;
测量模块,用于根据所述羊水暗区的最大垂直深度测量所述羊水池的最大垂直深度。And a measuring module for measuring a maximum vertical depth of the sheep pool according to a maximum vertical depth of the amniotic fluid dark area.
结合第二方面,在第二方面的第一种可能的实现方式中,所述装置还包括:In conjunction with the second aspect, in a first possible implementation of the second aspect, the device further includes:
第一显示模块,用于在DVP的测量模式下,将得到的所述羊水池的最大垂直深度作为DVP的测量结果进行显示;a first display module, configured to display, in a measurement mode of the DVP, a maximum vertical depth of the obtained sheep pool as a measurement result of the DVP;
第一判断模块,用于判断所述DVP的测量结果是否处于预设范围内;a first determining module, configured to determine whether the measurement result of the DVP is within a preset range;
第一提示模块,用于当所述第一判断模块判定所述DVP的测量结果处于预设范围内时,提示所述DVP的测试结果正常,当所述第一判断模块判定所述DVP的测量结果不处于预设范围内时,提示所述DVP的测试结果异常,并显示相应的诊疗提示。a first prompting module, configured to: when the first determining module determines that the measurement result of the DVP is within a preset range, prompting that the test result of the DVP is normal, when the first determining module determines the measurement of the DVP When the result is not within the preset range, the test result of the DVP is abnormal, and the corresponding medical treatment prompt is displayed.
结合第二方面或者第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,所述获取模块包括:With reference to the second aspect, or the first possible implementation manner of the second aspect, in the second possible implementation manner of the second aspect, the acquiring module includes:
获取子单元,用于分别获取所述羊水池的四个象限的超声波图像;Obtaining a subunit for respectively acquiring ultrasonic images of four quadrants of the sheep pool;
所述超声波图像处理装置还包括:The ultrasonic image processing apparatus further includes:
计算模块,用于在AFI的测量模式下,对所述羊水池的四个象限的最大垂直深度进行求和,得到AFI的测量结果;a calculation module for summing the maximum vertical depths of the four quadrants of the sheep pool in the AFI measurement mode to obtain the AFI measurement result;
第二显示模块,用于对所述AFI的测量结果进行显示;a second display module, configured to display the measurement result of the AFI;
第二判断模块,用于判断所述AFI的测量结果是否处于预设范围内;a second determining module, configured to determine whether the measurement result of the AFI is within a preset range;
第二提示模块,用于当所述第二判断模块判定所述AFI的测量结果处于预设范围内时,提示所述AFI的测量结果正常,当所述第二判断模块判定所述AFI的测量结果不处于预设范围内时,提示所述AFI的测量结果异常,并显示相应的诊疗提示。a second prompting module, configured to: when the second determining module determines that the measurement result of the AFI is within a preset range, prompting that the measurement result of the AFI is normal, and when the second determining module determines the measurement of the AFI When the result is not within the preset range, the measurement result of the AFI is abnormal, and the corresponding medical treatment prompt is displayed.
本发明实施例的第三方面提供了一种超声诊断装置,其特征在于,所述超声诊断装置包括上位机和超声波探头;A third aspect of the embodiments of the present invention provides an ultrasonic diagnostic apparatus, wherein the ultrasonic diagnostic apparatus includes a host computer and an ultrasonic probe;
所述上位机包括处理器,所述处理器用于执行存储器中存储的计算机程序时实现如权利要求1-6中任意一项所述方法的步骤。The host computer includes a processor for performing the steps of the method of any of claims 1-6 when executing the computer program stored in the memory.
本发明实施例的第四方面提供了一种计算机可读存储介质,其上存储有计算机程序,其特征在于:所述计算机程序被处理器执行时实现如第一方面或第一方面的任意一种可能的实现方式的步骤。A fourth aspect of the embodiments of the present invention provides a computer readable storage medium having stored thereon a computer program, wherein the computer program is executed by a processor to implement any one of the first aspect or the first aspect A possible implementation step.
从以上技术方案可以看出,本发明实施例具有以下优点:It can be seen from the above technical solutions that the embodiments of the present invention have the following advantages:
本发明可以获取羊水池的超声波图像,识别超声波图像中羊水池对应的羊水暗区,根据羊水暗区的最大垂直深度测量羊水池的最大垂直深度,从而尽量避免人为因素对羊水量的测量结果的影响,提高羊水检测结果的准确性,有利于减少误诊。The invention can obtain the ultrasonic image of the sheep pool, identify the dark area of the amniotic fluid corresponding to the sheep pool in the ultrasonic image, and measure the maximum vertical depth of the sheep pool according to the maximum vertical depth of the dark area of the amniotic fluid, thereby avoiding the measurement result of the artificial factors on the amniotic fluid. The effect of improving the accuracy of amniotic fluid test results is conducive to reducing misdiagnosis.
附图说明DRAWINGS
图1是本发明超声波图像处理方法一个实施例示意图;1 is a schematic diagram of an embodiment of an ultrasonic image processing method of the present invention;
图2是本发明识别超声波图像中羊水暗区的方法一个实施例示意图;2 is a schematic view showing an embodiment of a method for identifying a dark region of amniotic fluid in an ultrasonic image according to the present invention;
图3是本发明识别超声波图像中羊水暗区的方法另一个实施例示意图;3 is a schematic view showing another embodiment of a method for identifying a dark region of amniotic fluid in an ultrasonic image according to the present invention;
图4是本发明测量羊水池的最大垂直深度的方法一个实施例示意图;4 is a schematic view showing an embodiment of a method for measuring a maximum vertical depth of a sheep pool according to the present invention;
图5是本发明二值图像的一个示意图;Figure 5 is a schematic view of a binary image of the present invention;
图6是本发明超声波图像处理方法另一个实施例示意图;Figure 6 is a schematic view showing another embodiment of the ultrasonic image processing method of the present invention;
图7是本发明超声波图像处理方法另一个实施例示意图;Figure 7 is a schematic view showing another embodiment of the ultrasonic image processing method of the present invention;
图8是本发明超声波图像处理装置一个实施例示意图;Figure 8 is a schematic view showing an embodiment of an ultrasonic image processing apparatus of the present invention;
图9是本发明超声波图像处理装置另一个实施例示意图;Figure 9 is a schematic view showing another embodiment of the ultrasonic image processing apparatus of the present invention;
图10是本发明超声波图像处理装置另一个实施例示意图;Figure 10 is a schematic view showing another embodiment of the ultrasonic image processing apparatus of the present invention;
图11是本发明超声诊断装置一个实施例示意图。Figure 11 is a schematic view showing an embodiment of the ultrasonic diagnostic apparatus of the present invention.
具体实施方式Detailed ways
本发明实施例提供了一种超声波图像处理方法及装置、超声诊断装置及计算机可读存储介质,用于减少羊水测量过程中的人为因素,提高羊水检测结果的准确率。The embodiment of the invention provides an ultrasonic image processing method and device, an ultrasonic diagnostic device and a computer readable storage medium, which are used for reducing human factors in the amniotic fluid measurement process and improving the accuracy of the amniotic fluid detection result.
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is an embodiment of the invention, but not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of the present invention.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if present) in the specification and claims of the present invention and the above figures are used to distinguish similar objects without having to use To describe a specific order or order. It is to be understood that the data so used may be interchanged where appropriate so that the embodiments described herein can be implemented in a sequence other than what is illustrated or described herein. In addition, the terms "comprises" and "comprises" and "the" and "the" are intended to cover a non-exclusive inclusion, for example, a process, method, system, product, or device that comprises a series of steps or units is not necessarily limited to Those steps or units may include other steps or units not explicitly listed or inherent to such processes, methods, products or devices.
为便于理解,下面对本发明实施例中的具体流程进行描述,请参阅图1,本发明实施例中超声波图像处理方法一个实施例包括:For ease of understanding, the specific process in the embodiment of the present invention is described below. Referring to FIG. 1, an embodiment of the method for processing an ultrasonic image in the embodiment of the present invention includes:
101、获取羊水池的超声波图像;101. Obtain an ultrasonic image of a sheep pool;
首先可以获取待测量的超声波图像,由于本发明用于羊水测量,因此,超声波图像中包括羊水池。The ultrasonic image to be measured can be obtained first, and since the present invention is used for amniocentesis measurement, the ultrasonic image includes a sheep pool.
102、识别超声波图像中羊水池对应的羊水暗区;102. Identify a dark area of the amniotic fluid corresponding to the sheep pool in the ultrasonic image;
由于羊水暗区的灰度较低,且连通,因此在获取到超声波图像之后,可以根据像素的灰度值从超声波图像中识别出灰度较低的连通区域,作为羊水暗区。Since the gray scale of the amniotic fluid dark area is low and connected, after the ultrasonic image is acquired, the connected area with lower gray level can be identified from the ultrasonic image according to the gray value of the pixel as the dark area of the amniotic fluid.
103、根据羊水暗区的最大垂直深度测量羊水池的最大垂直深度。103. Measure the maximum vertical depth of the sheep pool according to the maximum vertical depth of the dark area of the amniotic fluid.
识别出超声波图像中羊水池对应的羊水暗区之后,可以根据羊水暗区的最大垂直深度测量羊水池的最大垂直深度。基于测量得到的羊水池的最大垂直深度可以进一步得到代表羊水量的指标,比如羊水深度DVP和羊水指数AFI等。After identifying the dark area of the amniotic fluid corresponding to the sheep pool in the ultrasound image, the maximum vertical depth of the sheep pool can be measured according to the maximum vertical depth of the dark area of the amniotic fluid. Based on the measured maximum vertical depth of the sheep pool, indicators representing amniotic fluid volume, such as amniotic fluid depth DVP and amniotic fluid index AFI, can be further obtained.
本发明在获取待测量的超声波图像之后,可以自动识别该超声波图像中的羊水暗区,并测量该羊水池的最大垂直深度,和现有技术相比,排除了人为因素对测量结果的影响,提高了羊水检测结果的准确率,减少误诊。After obtaining the ultrasonic image to be measured, the invention can automatically identify the dark region of the amniotic fluid in the ultrasonic image, and measure the maximum vertical depth of the sheep pool. Compared with the prior art, the influence of the human factor on the measurement result is excluded. Improve the accuracy of amniotic fluid test results and reduce misdiagnosis.
图1对应的实施例中,在获取到羊水池的超声波图像之后,首先需要识别超声波图像中的羊水暗区,下面提供一种可选的识别超声波图像中的羊水暗区的方法,请参阅图2,本发明识别超声波图像中羊水暗区的方法一个实施例包括:In the corresponding embodiment of FIG. 1, after acquiring the ultrasonic image of the sheep pool, it is first necessary to identify the dark region of the amniotic fluid in the ultrasonic image, and an optional method for identifying the dark region of the amniotic fluid in the ultrasonic image is provided below. 2. An embodiment of the method for identifying a dark region of amniotic fluid in an ultrasound image according to the present invention comprises:
201、采用目标尺度的滑动窗口遍历超声波图像;201. Traversing the ultrasonic image by using a sliding window of a target scale;
测量羊水量的指标时,通常利用超声波探头执行B模式扫描,对孕妇的羊膜腔进行成像,得到B超图像,为灰度图像。为了识别超声波图像中的羊水暗区,需要将超声波图像进行分割,至少分为两部分——羊水暗区和非羊水暗区,和非羊水暗区相比,羊水暗区为灰度较低的连通区域超声波图像。为了提高图像分割的精度,可以选用目标尺度的滑动窗口遍历超声波图像,在遍历过程中,分别对各个滑动窗口区域内的图像进行图像分割。When measuring the amniotic fluid index, the B-mode scan is usually performed by using an ultrasonic probe to image the amniotic cavity of the pregnant woman, and the B-ultrasound image is obtained as a grayscale image. In order to identify the dark area of amniotic fluid in the ultrasound image, the ultrasound image needs to be segmented into at least two parts - the dark area of amniotic fluid and the dark area of non-amniotic water. Compared with the dark area of non-amniotic water, the dark area of amniotic fluid is lower in gray scale. Connected area ultrasound image. In order to improve the accuracy of image segmentation, the sliding window of the target scale can be used to traverse the ultrasonic image, and the image in each sliding window region is separately segmented during the traversal process.
202、判断当前滑动窗口区域是否属于羊水暗区,若属于,则执行步骤203,若不属于,则执行步骤204;202, determining whether the current sliding window area belongs to the amniotic fluid dark area, if it belongs, step 203 is performed, if not, step 204 is performed;
可以根据当前滑动窗口区域的灰度值分布判断当前滑动窗口区域是否属于羊水暗区,若属于,则执行步骤203,若不属于,则执行步骤204。作为举例,根据当前滑动窗口区域的灰度值分布判断当前滑动窗口区域是否属于羊水暗区的方法可以为:The current sliding window area may be determined to belong to the amniotic fluid dark area according to the gray value distribution of the current sliding window area. If yes, step 203 is performed, and if not, step 204 is performed. As an example, the method for determining whether the current sliding window area belongs to the amniotic fluid dark area according to the gray value distribution of the current sliding window area may be:
1)计算当前滑动窗口区域中所有像素的灰度值的均值和均方差;1) calculating the mean and mean square error of the gray values of all pixels in the current sliding window area;
2)若灰度值的均值小于第一均值阈值、且均方差小于第一差异阈值,则表明当前滑动窗口区域的灰度值分布均匀,且为暗区,此时可以将当前滑动窗口区域判定为属于羊水暗区;2) If the mean value of the gray value is smaller than the first mean threshold, and the mean square error is smaller than the first difference threshold, it indicates that the gray value of the current sliding window area is evenly distributed, and is a dark area, and the current sliding window area can be determined at this time. To belong to the dark area of amniotic fluid;
3)若灰度值的均值大于第一均值阈值、或均方差大于第一差异阈值,则可以判定当前滑动窗口区域不属于羊水暗区。3) If the mean value of the gray value is greater than the first mean threshold, or the mean square error is greater than the first difference threshold, it may be determined that the current sliding window area does not belong to the amniotic fluid dark area.
203、将当前滑动窗口区域内的像素标记为1;203, mark the pixel in the current sliding window area as 1;
若判定当前滑动窗口区域属于羊水暗区,则对当前滑动窗口区域内的像素进行标记,以表明当前滑动窗口区域内的像素属于羊水暗区,比如,可以将当前滑动窗口区域内的像素标记为1。If it is determined that the current sliding window area belongs to the amniotic fluid dark area, the pixels in the current sliding window area are marked to indicate that the pixels in the current sliding window area belong to the amniotic fluid dark area. For example, the pixels in the current sliding window area may be marked as 1.
204、判断当前滑动窗口区域是否属于非羊水暗区,若属于,则执行步骤205;若不属于,则执行步骤206;204, determining whether the current sliding window area belongs to a non-amniotic dark area, if it is, then executing step 205; if not, executing step 206;
若当前滑动窗口区域不属于羊水暗区,那么表明当前滑动窗口区域的灰度值分布不均、或者灰度值分布均匀且偏高,若灰度值分布均匀且偏高,则表明当前滑动窗口区域内的像素均属于非羊水暗区,因此,可以判断当前滑动窗口区域是否属于非羊水暗区,若属于,则执行步骤205;若不属于,则执行步骤206。If the current sliding window area does not belong to the amniotic fluid dark area, it indicates that the current sliding window area has uneven distribution of gray values, or the gray value is evenly distributed and high. If the gray value is evenly distributed and high, the current sliding window is displayed. The pixels in the area belong to the non-amniotic dark area. Therefore, it can be determined whether the current sliding window area belongs to the non-amniotic dark area. If yes, step 205 is performed; if not, step 206 is performed.
作为举例,根据当前滑动窗口区域的像素值分布判断当前滑动窗口区域是否属于非羊水暗区的方法可以为:As an example, the method for determining whether the current sliding window region belongs to a non-amphibious dark region according to the pixel value distribution of the current sliding window region may be:
1)计算当前滑动窗口区域中所有像素的灰度值的均值和均方差;1) calculating the mean and mean square error of the gray values of all pixels in the current sliding window area;
可以直接利用步骤202的计算结果。The calculation result of step 202 can be directly utilized.
2)若灰度值的均值大于第二均值阈值、且均方差小于第二差异阈值,表明当前滑动窗口区域的灰度值分布均匀、且为亮区,此时可以直接将当前滑动窗口区域判定为属于非羊水暗区;2) If the mean value of the gray value is greater than the second mean threshold, and the mean square error is smaller than the second difference threshold, indicating that the gray value of the current sliding window area is evenly distributed and is a bright area, and the current sliding window area can be directly determined. It belongs to the dark area of non-amniotic water;
3)若灰度值的均值小于第二均值阈值、或均方差大于第二差异阈值,表明当前滑动窗口区域的灰度值分布不均匀、或者灰度值的均值居中,判定当前滑动窗口区域不属于羊水暗区,也不属于非羊水暗区,也就是说无法将当前滑动窗口区域内的所有像素统一判定为属于羊水暗区或非羊水暗区。3) If the mean value of the gray value is less than the second mean threshold, or the mean square error is greater than the second difference threshold, it indicates that the gray value of the current sliding window area is unevenly distributed, or the mean value of the gray value is centered, and the current sliding window area is determined not to be It belongs to the dark area of amniotic fluid, and does not belong to the dark area of non-amniotic water. That is to say, all pixels in the current sliding window area cannot be uniformly determined to belong to the dark area of amniotic fluid or the dark area of non-amniotic water.
需要说明的是,第二均值阈值大于或等于第一均值阈值,优选的,可以根据超声波图像的灰度直方图设置第一均值阈值、第二均值阈值、第一差异阈值以及第二差异阈值。It should be noted that the second mean threshold is greater than or equal to the first mean threshold. Preferably, the first mean threshold, the second mean threshold, the first difference threshold, and the second difference threshold may be set according to the gray histogram of the ultrasound image.
205、将当前滑动窗口区域标记为0;205. Mark the current sliding window area as 0;
若判定当前滑动窗口区域属于非羊水暗区,则对当前滑动窗口区域内的像素进行标记,以表明当前滑动窗口区域内的像素属于非羊水暗区,比如,可以将当前滑动窗口区域内的像素标记为0。If it is determined that the current sliding window area belongs to the non-amniotic dark area, the pixels in the current sliding window area are marked to indicate that the pixels in the current sliding window area belong to the non-amphibious dark area, for example, the pixels in the current sliding window area may be Marked as 0.
206、对当前滑动窗口区域进行图像分割,得到第一区域和第二区域,第一区域的灰度值小于第二区域;206. Perform image segmentation on the current sliding window region to obtain a first region and a second region, where the gray value of the first region is smaller than the second region;
若判定当前滑动窗口区域既不属于非羊水暗区,则表明当前滑动窗口区域既不属于羊水暗区,也不属于非羊水暗区,无法将当前滑动窗口区域内的所有像素统一归类为属于羊水暗区或非羊水暗区,此时,可以根据当前滑动窗口区域的灰度值分布对当前滑动窗口区域进行图像分割,得到第一区域和第二区域,第一区域的灰度值小于第二区域。If it is determined that the current sliding window area does not belong to the non-amniotic dark area, it indicates that the current sliding window area is neither a amniotic fluid dark area nor a non-amphibious water dark area, and all pixels in the current sliding window area cannot be uniformly classified as belonging to The amniotic fluid dark area or the non-amniotic water dark area. At this time, the current sliding window area may be image-divided according to the gray value distribution of the current sliding window area, and the first area and the second area are obtained, and the gray value of the first area is smaller than the first Two areas.
对当前滑动窗口区域进行图像分割可以采用OTSU算法,OTSU算法也称最大类间方差法,是按图像的灰度特性,采用一定的分割阈值,将图像分为背景和前景两部分。背景和前景之间的类间方差越大,说明构成图像的两部分的差别越大,当部分前景错分为背景、或部分背景错分为前景,都会导致两部分差别变小,使类间方差最大的分割意味着错分概率最小,因此将类间方差最大的分割对应的分割阈值称作最优灰度阈值。应用在本步骤中,OTSU算法首先根据当前滑动窗口区域的灰度值分布确定最优灰度阈值,之后根据最优灰度阈值对当前滑动窗口区域进行分割,得到两个区域——第一区域和第二区域。属于第一区域的像素的灰度小于最优灰度阈值,属于第二区域的像素的灰度大于最优灰度阈值,灰度等于最优灰度阈值的像素既可以判定为属于第一区域,也可以判定为属于第二区域,此处不做具体限定。The OTSU algorithm can be used to segment the current sliding window region. The OTSU algorithm is also called the maximum inter-class variance method. According to the grayscale characteristics of the image, the image is divided into two parts: the background and the foreground. The larger the variance between the background and the foreground, the greater the difference between the two parts of the image. When part of the foreground is misclassified into the background, or part of the background is divided into the foreground, the difference between the two parts will be reduced. The segmentation with the largest variance means that the probability of misclassification is the smallest, so the segmentation threshold corresponding to the segment with the largest variance between classes is called the optimal grayscale threshold. In this step, the OTSU algorithm first determines an optimal gray threshold according to the gray value distribution of the current sliding window region, and then divides the current sliding window region according to the optimal gray threshold to obtain two regions—the first region. And the second area. The gradation of the pixel belonging to the first region is smaller than the optimal gradation threshold, the gradation of the pixel belonging to the second region is greater than the optimal gradation threshold, and the pixel whose gradation is equal to the optimal gradation threshold may be determined to belong to the first region. It can also be determined to belong to the second area, and is not specifically limited herein.
在实际使用中,还可以采用其他算法对当前滑动窗口区域进行图像分割,此处不做排他性限定。In actual use, other algorithms may also be used to perform image segmentation on the current sliding window region, and no exclusive limitation is made here.
207、将第一区域内的像素标记为1,将第二区域内的像素标记为0;207, the pixel in the first area is marked as 1, and the pixel in the second area is marked as 0;
根据当前滑动窗口区域的灰度值分布对当前滑动窗口区域进行图像分割得到第一区域和第二区域之后,可以分别对第一区域和第二区域进行标记,以表明第一区域为羊水暗区,第二区域为非羊水暗区。比如,可以将第一区域内的像素标记为1,将第二区域内的像素标记为0。After image segmentation of the current sliding window region according to the gray value distribution of the current sliding window region to obtain the first region and the second region, the first region and the second region may be respectively marked to indicate that the first region is a dark region of amniotic fluid The second area is a dark area other than amniotic fluid. For example, a pixel in the first region can be marked as 1 and a pixel in the second region can be marked as 0.
在实际使用中,也可以不执行步骤202至步骤205,而是直接对超声波图像的各个滑动窗口区域进行图像分割,但是由于图像分割的计算量较大,效率较低。另外,也可以先执行步骤204,判断当前滑动窗口区域是否属于非羊水暗 区,若不属于非羊水暗区,再执行步骤202,判断当前滑动窗口区域是否属于羊水暗区。In actual use, step 202 to step 205 may not be performed, but image segmentation is directly performed on each sliding window region of the ultrasonic image, but the efficiency is low due to the large amount of calculation of image segmentation. In addition, step 204 may be performed to determine whether the current sliding window area belongs to the non-amniotic dark area. If it does not belong to the non-amniotic dark area, step 202 is performed to determine whether the current sliding window area belongs to the amniotic fluid dark area.
208、利用血流的多普勒信号确定彩色血流对应的像素,并将其标记为0;208, using the Doppler signal of the blood flow to determine the pixel corresponding to the color blood flow, and marking it as 0;
由于测量羊水量的指标时,应选择羊水相对最多的区域、且内部无胎体或脐带等结构存在,而B超图像中,脐带也可以与羊水一样,表现为液性暗区,此时医生常需借助彩色多普勒超声波模式对孕妇的子宫进行成像。彩色多普勒图像是将血流的多普勒信号加以量化,进行彩色编码,实时的重叠显示在B超图像上,因此,在彩色多普勒图像中,脐带区域表现为彩色血流,而羊水暗区仍然表现为液性暗区,从而在颜色上能够与羊水暗区区分开。因此,当超声波测量模式为彩色多普勒超声波模式时,可以利用血流的多普勒信号在超声波图像中确定彩色血流所在区域内的像素,并将彩色血流对应的像素标记为非羊水暗区,比如,可以将彩色血流对应的像素标记为0。Because of the measurement of amniotic fluid volume, the area with the most amniotic fluid should be selected, and there is no structure such as carcass or umbilical cord inside. In the B-ultrasound image, the umbilical cord can also be expressed as liquid dark area like amniotic fluid. It is often necessary to image the uterus of a pregnant woman by means of a color Doppler ultrasound mode. The color Doppler image quantizes the Doppler signal of the bloodstream and performs color coding, and the real-time overlay is displayed on the B-ultrasound image. Therefore, in the color Doppler image, the umbilical cord region appears as a color blood flow, and The dark area of amniotic fluid still appears as a liquid dark area, which can be distinguished from the dark area of amniotic fluid in color. Therefore, when the ultrasonic measurement mode is the color Doppler ultrasound mode, the Doppler signal of the blood flow can be used to determine the pixels in the region where the color blood flow is located in the ultrasonic image, and the pixel corresponding to the color blood flow is marked as non-amniotic water. In dark areas, for example, pixels corresponding to color blood flow can be marked as 0.
在实际使用中,在对羊水量的指标进行测量的过程中也可以不开启彩色多普勒超声波模式,此时,在步骤207之后不执行步骤208。In actual use, the color Doppler ultrasound mode may not be turned on during the measurement of the amniotic fluid index. At this time, step 208 is not performed after step 207.
209、根据各个像素的标记将超声波图像转换为二值图像;209. Convert the ultrasonic image into a binary image according to the mark of each pixel;
经过步骤202至步骤208,完成对超声波图像中各个像素的标记,根据标记可以确定任意一个像素属于羊水暗区还是属于非羊水暗区,根据各个像素的标记可以将超声波图像转换为二值图像,也就是说,任意一个像素只有两个可选取值。在本发明实施例中,将超声波图像转换为二值图像后,任意一个像素的值要么为1,要么为0。After step 202 to step 208, the marking of each pixel in the ultrasonic image is completed. According to the marking, it can be determined whether any pixel belongs to the amniotic fluid dark area or the non-amphibious water dark area, and the ultrasonic image can be converted into a binary image according to the marking of each pixel. In other words, any pixel has only two selectable values. In the embodiment of the present invention, after the ultrasonic image is converted into a binary image, the value of any one pixel is either 1 or 0.
210、对二值图像进行噪声平滑处理,得到去噪后的二值图像;210. Perform noise smoothing processing on the binary image to obtain a denoised binary image;
由于羊水暗区应该为连通区域,而图像分割得到的二值图像中往往包括噪声,比如由0值像素包围的少量的1值像素,或者由1值像素包围的少量的0值像素。因此,优选的,可以对二值图像进行噪声平滑处理,比如,可以采用形态学膨胀腐蚀来消除噪声。形态学膨胀是把二值图像中各个1像素连接成分的边界扩大一层,填充边缘或0像素内部的孔;形态学腐蚀是把二值图像中各个1像素连接成分的边界点去掉从而缩小一层,可以提取骨干信息,去掉毛刺,去掉孤立的0像素。Since the dark region of amniotic fluid should be a connected region, the binary image obtained by image segmentation often includes noise, such as a small number of 1-value pixels surrounded by 0-value pixels, or a small number of 0-value pixels surrounded by 1-value pixels. Therefore, preferably, the binary image can be subjected to noise smoothing processing, for example, morphological expansion etching can be used to eliminate noise. Morphological expansion is to enlarge the boundary of each 1 pixel connection component in the binary image, filling the edge or the hole inside the 0 pixel; morphological corrosion is to remove the boundary point of each 1 pixel connection component in the binary image to reduce one Layer, you can extract the backbone information, remove the glitch, and remove the isolated 0 pixels.
211、根据去噪后的二值图像确定超声波图像中的羊水暗区。211. Determine a dark region of amniotic fluid in the ultrasonic image according to the denoised binary image.
得到去噪后的二值图像之后,可以确定超声波图像中属于羊水暗区的像素,由这些像素组成羊水暗区,根据这些像素的坐标位置可以确定超声波图像中的羊水暗区。在本发明实施例中,由取值为1的像素组成羊水暗区。After the denoised binary image is obtained, the pixels belonging to the dark region of the amniotic fluid in the ultrasonic image can be determined, and the dark water regions of the amniotic fluid are composed of the pixels, and the dark region of the amniotic fluid in the ultrasonic image can be determined according to the coordinate positions of the pixels. In the embodiment of the present invention, the amniotic fluid dark area is composed of pixels having a value of 1.
选取不同的滑动窗口尺度得到的羊水暗区通常存在一定差异,为了减少滑动窗口尺度不同带来的误差,可以参照步骤201至步骤211,确定其他尺度的滑动窗口对应的超声波图像中的羊水暗区,比如,可以确定第二尺度的滑动窗口对应的第二超声波图像中的羊水暗区、第三尺度的滑动窗口对应的超声波图像中的第三羊水暗区,之后,可以综合多个尺度的滑动窗口对应的超声波图像中的羊水暗区确定最终的超声波图像中的羊水暗区。请参阅图3,本发明识别超声波图像中的羊水暗区另一个实施例包括:The dark areas of amniotic fluid obtained by selecting different sliding window scales usually have some differences. In order to reduce the error caused by different sliding window scales, refer to steps 201 to 211 to determine the dark areas of amniotic fluid in the ultrasonic images corresponding to the sliding windows of other scales. For example, the dark region of the amniotic fluid in the second ultrasonic image corresponding to the sliding window of the second scale and the third amniotic dark region in the ultrasonic image corresponding to the sliding window of the third scale may be determined, and then multiple scale slidings may be integrated. The dark area of the amniotic fluid in the ultrasound image corresponding to the window determines the dark area of the amniotic fluid in the final ultrasound image. Referring to FIG. 3, another embodiment of the amniotic fluid dark area in the ultrasonic image of the present invention includes:
301、分别将目标尺度设置为第一尺度、第二尺度和第三尺度,将超声波图像转换为第一尺度、第二尺度和第三尺度下的二值图像;301, respectively, setting a target scale to a first scale, a second scale, and a third scale, and converting the ultrasonic image into a binary image at the first scale, the second scale, and the third scale;
可以分别将目标尺度设置为第一尺度、第二尺度和第三尺度,并分别将超声波图像转换为第一尺度、第二尺度和第三尺度下的二值图像。具体的,可以将目标尺度设置为第一尺度,执行步骤201至209,得到第一尺度下的二值图像;将目标尺度设置为第二尺度,执行步骤201至步骤209,得到第二尺度下的二值图像;将目标尺度设置为第三尺度,执行步骤201至步骤209,得到第三尺度下的二值图像。这三个过程可以并行进行,也可以串行进行,此处不对三个过程间的时序进行具体限定。The target scale may be set to the first scale, the second scale, and the third scale, respectively, and the ultrasonic images are respectively converted into binary images at the first scale, the second scale, and the third scale. Specifically, the target scale may be set to the first scale, and steps 201 to 209 are performed to obtain the binary image at the first scale; the target scale is set to the second scale, and steps 201 to 209 are performed to obtain the second scale. The binary image is set to the third scale, and steps 201 to 209 are performed to obtain the binary image at the third scale. These three processes can be performed in parallel or serially. The timing between the three processes is not specifically defined here.
302、利用第一尺度、第二尺度和第三尺度下的二值图像确定超声波图像中各个像素的取值,生成合成二值图像;302. Determine, by using a binary image at the first scale, the second scale, and the third scale, a value of each pixel in the ultrasonic image to generate a composite binary image;
可以利用第一尺度、第二尺度和第三尺度下的二值图像确定超声波图像中各个像素的取值,生成合成二值图像,合成二值图像为综合考虑不同尺度下的二值图像后得到的:超声波图像中的任意一个像素在各个尺度下的二值图像中均对应于一个取值,为了方便描述,将像素在某个尺度下的二值图像中对应的取值称作该像素的一个备选取值,选择该像素在各个尺度下的备选取值中出现频率更高的备选取值作为该像素在合成二值图像中的取值。The binary image at the first scale, the second scale and the third scale can be used to determine the value of each pixel in the ultrasonic image to generate a composite binary image, and the composite binary image is obtained by comprehensively considering the binary image at different scales. Any pixel in the ultrasonic image corresponds to a value in the binary image at each scale. For convenience of description, the corresponding value in the binary image of the pixel at a certain scale is called the pixel. An alternative value is selected, and the candidate value of the pixel having a higher frequency appears in the candidate value of each scale as the value of the pixel in the synthesized binary image.
具体的,作为举例,可以采用投票机制生成合成二值图像,被投票方为超声波图像中的各个像素,投票方为第一羊水暗区、第二羊水暗区和第三羊水暗 区。遍历超声波图像中的各个像素,为各个像素进行投票,第一羊水暗区为当前像素投票时,若当前像素属于第一羊水暗区,则为当前像素增加一票,否则,不增加当前像素的票数;第二羊水暗区为当前像素投票时,若当前像素属于第二羊水暗区,则为当前像素增加一票,否则,不增加当前像素的票数;第三羊水暗区为当前像素投票时,若当前像素属于第三羊水暗区,则为当前像素增加一票,否则,不增加当前像素的票数。累加第一羊水暗区、第二羊水暗区和第三羊水暗区对当前像素的投票结果,作为当前像素的总票数。可以预设像素属于羊水暗区的票数阈值,比如,可以设置为2票,那么,超声波图像中总票数大于或等于2的像素可以被判定属于羊水暗区,并被标记为羊水暗区。若投票方大于3个,那么票数阈值也相应增加,至少应大于投票方个数的中值。Specifically, as an example, a composite binary image may be generated by using a voting mechanism, and the voter is each pixel in the ultrasonic image, and the voting party is the first amniocentetics dark zone, the second amniotic fluid dark zone, and the third amniotic fluid dark zone. Traverse each pixel in the ultrasonic image to vote for each pixel. When the first amniocentetic dark area votes for the current pixel, if the current pixel belongs to the first amniocentetic dark area, a ticket is added for the current pixel, otherwise, the current pixel is not added. Number of votes; when the second amniotic fluid dark area is the current pixel vote, if the current pixel belongs to the second amniotic fluid dark area, then one ticket is added for the current pixel; otherwise, the current pixel number is not increased; the third amniotic fluid dark area is the current pixel voting time. If the current pixel belongs to the third amniotic dark area, a ticket is added for the current pixel; otherwise, the number of votes of the current pixel is not increased. Accumulate the voting result of the first amniotic fluid dark zone, the second amniotic fluid dark zone and the third amniotic fluid dark zone to the current pixel as the total number of votes of the current pixel. The threshold of the number of votes belonging to the dark area of the amniotic fluid can be preset. For example, it can be set to 2 votes. Then, the pixels with the total number of votes in the ultrasonic image greater than or equal to 2 can be determined to belong to the dark area of the amniotic fluid and marked as the dark area of the amniotic fluid. If the number of voters is greater than three, then the number of votes will increase accordingly, at least greater than the median of the number of voters.
303、对合成二值图像进行噪声平滑处理,得到去噪后的合成二值图像;303. Perform noise smoothing processing on the synthesized binary image to obtain a synthesized binary image after denoising;
304、根据去噪后的合成二值图像确定超声波图像中的羊水暗区。304. Determine a dark region of amniotic fluid in the ultrasonic image according to the synthesized binary image after denoising.
步骤303至步骤304与图2对应的实施例中的步骤210至步骤211相同,此处不再赘述。 Steps 303 to 304 are the same as steps 210 to 211 in the embodiment corresponding to FIG. 2, and details are not described herein again.
图1对应的实施例中,在识别超声波图像中的羊水暗区之后,可以测量羊水池的最大垂直深度,由于超声波图像由尺寸相同的、按照行、列分布的像素组成,因此代表羊水池的最大垂直深度的目标线段可以认为是由某一列像素中部分连续的像素组成,因此,羊水池的最大垂直深度可以根据目标线段对应的像素数目来计算得到。下面提供一种可选的测量羊水池的最大垂直深度的方法,请参阅图4,本发明测量羊水池的最大垂直深度的方法一个实施例包括:In the corresponding embodiment of FIG. 1, after identifying the dark region of the amniotic fluid in the ultrasonic image, the maximum vertical depth of the sheep pool can be measured. Since the ultrasonic image is composed of pixels of the same size and arranged in rows and columns, it represents the pool of sheep. The target line segment of the maximum vertical depth can be considered to be composed of a part of consecutive pixels in a certain column of pixels. Therefore, the maximum vertical depth of the sheep pool can be calculated according to the number of pixels corresponding to the target line segment. An optional method of measuring the maximum vertical depth of a sheep pond is provided below. Referring to Figure 4, one embodiment of the method of measuring the maximum vertical depth of a sheep pond of the present invention includes:
401、将横坐标相同且纵坐标连续的目标像素分为一组,目标像素为超声波图像中被标记为羊水暗区的像素;401. The target pixels with the same abscissa and continuous ordinate are grouped into one group, and the target pixel is a pixel marked as a dark region of the amniotic fluid in the ultrasonic image;
由于超声波图像是由尺寸相同、按照行、列分布的像素组成,因此可以用像素所在的列的序号代表该像素的横坐标,用像素所在的行的序号代表该像素的纵坐标。识别出超声波图像中的羊水暗区之后,可以对超声波图像中被标记为羊水暗区的像素进行统计,为了方便描述,将超声波图像中被标记为羊水暗区的像素称作目标像素。可以将横坐标相同且纵坐标连续的目标像素分为一组,也就是将超声波图像中处于同一列的连续分布的目标像素分为一组。Since the ultrasonic image is composed of pixels of the same size and distributed in rows and columns, the number of the column in which the pixel is located can represent the abscissa of the pixel, and the number of the row in which the pixel is located represents the ordinate of the pixel. After the dark region of the amniotic fluid in the ultrasonic image is identified, the pixels marked as the dark region of the amniotic fluid in the ultrasonic image can be counted. For convenience of description, the pixel marked as the dark region of the amniotic fluid in the ultrasonic image is referred to as the target pixel. The target pixels having the same abscissa and continuous ordinates may be grouped into one group, that is, the target pixels of the continuous distribution in the same column in the ultrasonic image are grouped.
402、计算各组的像素数目,选择像素数目最大的组作为目标组;402. Calculate the number of pixels in each group, and select a group with the largest number of pixels as the target group;
对目标像素进行分组之后,可以计算各组中目标像素的像素数目,并从中选择像素数目组大的组作为目标组。After grouping the target pixels, the number of pixels of the target pixel in each group can be calculated, and a group having a large number of pixels is selected as the target group.
403、根据目标组中的像素数目计算羊水池的最大垂直深度,并确定最大垂直深度对应的目标线段。403. Calculate a maximum vertical depth of the sheep pool according to the number of pixels in the target group, and determine a target line segment corresponding to the maximum vertical depth.
目标组中的目标像素组成的目标线段对应于羊水池的最大垂直深度,可以根据目标组中的像素数目计算羊水池的最大垂直深度。超声波图像的尺寸与被摄实体的尺寸之间存在确定的比例关系,而组成超声波图像的所有像素的尺寸是相同的,且所有像素在超声波图像中均匀分布,因此,可以根据像素数目计算对应像素在超声波图像中所占的尺寸,进而可以计算出对应像素在被摄实体上对应的尺寸。The target line segment composed of the target pixels in the target group corresponds to the maximum vertical depth of the sheep pool, and the maximum vertical depth of the sheep pool can be calculated according to the number of pixels in the target group. There is a certain proportional relationship between the size of the ultrasonic image and the size of the object to be photographed, and the sizes of all the pixels constituting the ultrasonic image are the same, and all the pixels are evenly distributed in the ultrasonic image, and therefore, the corresponding pixel can be calculated according to the number of pixels. The size occupied by the ultrasonic image can further calculate the corresponding size of the corresponding pixel on the subject.
确定目标线段是为了在显示给医生的超声波图像中突出显示目标线段,以方便医生确定最大垂直深度在超声波图像中对应的线段,并根据经验判断目标线段选取的是否合理,在实际使用中,若无需对目标线段进行突出显示,也可以不用确定目标线段。The target line segment is determined to highlight the target line segment in the ultrasound image displayed to the doctor, so that the doctor can determine the maximum vertical depth corresponding to the line segment in the ultrasonic image, and judge whether the target line segment is selected according to experience, in actual use, if There is no need to highlight the target line segment or determine the target line segment.
为了便于理解与实施,下面提供一种更为具体的测量羊水池的最大垂直深度的方法:For ease of understanding and implementation, a more specific method of measuring the maximum vertical depth of a sheep pool is provided below:
识别超声波图像中的羊水暗区后,可以将超声波图像转化为二值图像,即超声波图像中的任意一个像素点只能从两个值中进行选择,一个值代表羊水暗区,另一个值代表非羊水暗区,比如可以用“1”代表羊水暗区,用“0”代表非羊水暗区,那么超声波图像中的任意一个像素点的值不是“0”便是“1”。如图5所示,为二值图像的一个示意图,大方框代表整个二值图像,大方框内的每一个小方框代表一个像素,左上角的像素坐标为(1,1),右下角的像素坐标为(8,8),被深色色填充的像素取值为“0”,属于非羊水暗区,被白色填充的像素取值为“1”,属于羊水暗区,羊水暗区为一个连通的区域,其内部包括部分非羊水暗区。After identifying the dark region of the amniotic fluid in the ultrasound image, the ultrasound image can be converted into a binary image, that is, any pixel in the ultrasound image can only be selected from two values, one value represents the dark region of the amniotic fluid, and the other value represents For non-amniotic dark areas, for example, "1" can be used to represent the dark area of amniotic fluid, and "0" is used to represent the dark area of non-amniotic water. If the value of any pixel in the ultrasonic image is not "0", it is "1". As shown in FIG. 5, it is a schematic diagram of a binary image, the large square represents the entire binary image, and each small square in the large square represents one pixel, and the pixel coordinates of the upper left corner are (1, 1), and the lower right corner is The pixel coordinates are (8,8), and the pixels filled with dark colors have a value of "0", which belongs to the non-amniotic dark area. The pixels filled with white have a value of "1", belonging to the dark area of amniotic fluid, and the dark area of amniotic fluid is A connected area that includes some non-amniotic dark areas.
可以采用投票的思路,投票项为羊水暗区的横坐标,在本发明实施例中,投票项分别为2、3、4、5、6、7,然后逐行遍历图5中整个羊水暗区及其内部的所有像素(即图5中虚线内部的所有像素),根据像素是否属于羊水暗区来对该像素的横坐标对应的投票项进行投票,并在预先设置的3行6列的数组中记 录投票数据。数组中的6列分别对应6个投票项,数组中的行a记录连续的当前票数,也就是说,当前像素属于羊水暗区时,将行a中当前像素的横坐标对应的计数增加一票,若当前像素属于非羊水暗区时,将行a中当前像素的横坐标对应的计数清零;数组中的行b记录最大连续票数,也就是说,在行a中的某一项,比如投票项2,对应的计数被清零前,行b的投票项2对应的计数与行a的投票项2的计数保持相同,当行a的投票项2对应的计数被清零时,行b的投票项2对应的计数不变,直至行a的投票项2对应的计数超过行b的投票项2对应的计数,此时,行b的投票项2对应的计数重新保持与行a的投票项2对应的计数相同;数组中的行c记录行b与行a的计数保持相同(不包括均为0的情况)的过程中最后一次计数增加对应的像素的纵坐标。The voting idea may be adopted, and the voting item is the abscissa of the dark region of the amniotic fluid. In the embodiment of the present invention, the voting items are 2, 3, 4, 5, 6, and 7, respectively, and then the entire amniotic dark area in FIG. 5 is traversed line by line. And all the pixels inside it (that is, all the pixels inside the dotted line in Fig. 5), according to whether the pixel belongs to the amniotic fluid dark area to vote on the voting item corresponding to the abscissa of the pixel, and in an array of 3 rows and 6 columns set in advance Record the voting data. The 6 columns in the array correspond to 6 voting items respectively, and the row a in the array records consecutive current votes, that is, when the current pixel belongs to the amniotic dark area, the count corresponding to the abscissa of the current pixel in row a is increased by one vote. If the current pixel belongs to a non-amniotic dark area, the count corresponding to the abscissa of the current pixel in row a is cleared; the row b in the array records the maximum number of consecutive votes, that is, an item in line a, such as In vote 2, before the corresponding count is cleared, the count corresponding to vote 2 of line b remains the same as the count of vote 2 of line a, and when the count corresponding to vote 2 of line a is cleared, line b The count corresponding to the voting item 2 is unchanged until the count corresponding to the voting item 2 of the row a exceeds the count corresponding to the voting item 2 of the row b. At this time, the count corresponding to the voting item 2 of the row b is re-held with the voting item of the row a. 2 The corresponding count is the same; the row c in the array records that the row b and the row a remain the same (excluding the case where all are 0), and the last count increases the ordinate of the corresponding pixel.
遍历完图5中虚线内部的第一行像素后,数组记录的数据如表1:After traversing the first row of pixels inside the dotted line in Figure 5, the data recorded by the array is as shown in Table 1:
表1Table 1
投票项 Voting item 22 33 44 55 66 77
aa 11 11 11 11 11 00
b b 11 11 11 11 11 00
c c 22 22 22 22 22 00
遍历完图5中虚线内部的第二行像素后,数组记录的数据如表2:After traversing the second row of pixels inside the dotted line in Figure 5, the data recorded by the array is as shown in Table 2:
表2Table 2
投票项 Voting item 22 33 44 55 66 77
aa 22 00 00 00 22 11
b b 22 11 11 11 22 11
c c 33 22 22 22 22 33
依此类推,遍历完图5中虚线内部的第二行像素后,数组记录的数据如表3:And so on, after traversing the second row of pixels inside the dotted line in Figure 5, the data recorded by the array is as shown in Table 3:
表3table 3
投票项 Voting item 22 33 44 55 66 77
aa 66 44 33 33 66 44
b b 66 44 33 33 66 44
c c 77 77 77 77 77 66
遍历结束后,行b的最大计数结果用于计算羊水池的最大垂直深度,以行b的最大计数结果作为目标线段长度、以最大计数结果项的横坐标作为目标线段的下端点的横坐标、以最大计数结果项的横坐标在行c中对应的纵坐标作为目标线段的下端点的纵坐标,可以在超声波图像中确定目标线段,其中,目标线段为超声波图像或二值图像中代表羊水池的最大垂直深度的线段。以图5的二值图像为例,行b的最大计数结果为6,最大计数结果项的横坐标为2和6,取其一即可,比如,可以取较小的横坐标2,横坐标2在行c中对应的纵坐标为7,由于目标线段的长度对应于6个像素长度,因此目标线段的下端点坐标为(2,7),上端点坐标为(2,2)。After the traversal, the maximum count result of row b is used to calculate the maximum vertical depth of the sheep pool, with the maximum count result of row b as the target segment length, the abscissa of the maximum count result item as the abscissa of the lower endpoint of the target segment, The target line segment can be determined in the ultrasonic image by using the corresponding ordinate of the horizontal coordinate in the row c as the ordinate of the lower end point of the target line segment, wherein the target line segment is an ultrasonic image or a binary image representing the sheep pool The line segment of the maximum vertical depth. Taking the binary image of FIG. 5 as an example, the maximum counting result of row b is 6, and the abscissa of the maximum counting result item is 2 and 6, and one of them can be taken. For example, a smaller abscissa 2 and an abscissa can be taken. 2 The corresponding ordinate in row c is 7, and since the length of the target segment corresponds to 6 pixels, the coordinates of the lower endpoint of the target segment are (2, 7) and the coordinates of the upper endpoint are (2, 2).
基于图1至图5对应的实施例,可以实现对超声波图像中羊水池的最大垂直深度的测量,在此基础上,可以得到羊水量的指标,比如DVP或AFI,下面分别对DVP和AFI的测量过程进行说明。Based on the corresponding embodiments of FIG. 1 to FIG. 5, the maximum vertical depth of the sheep pool in the ultrasonic image can be measured. On this basis, the amniotic fluid index can be obtained, such as DVP or AFI, and the following are respectively for DVP and AFI. The measurement process is described.
一、DVP的测量过程:First, the measurement process of DVP:
请参阅图6,本发明实施例中超声波图像处理方法另一个实施例包括:Referring to FIG. 6, another embodiment of the ultrasonic image processing method in the embodiment of the present invention includes:
601、获取羊水池的超声波图像;601. Obtain an ultrasonic image of the sheep pool;
首先可以获取待测量的超声波图像,由于本发明用于羊水测量,因此,超声波图像中包括羊水池。The ultrasonic image to be measured can be obtained first, and since the present invention is used for amniocentesis measurement, the ultrasonic image includes a sheep pool.
在早孕或中孕超声羊水检查中,由于胎儿较小、羊水较多,此时医生可以在孕妇的整个子宫的范围内、通过改变超声波探头在孕妇肚皮表面的探测位置,获取子宫中不同水平位置在垂直方向的截面对应的超声波预览图像,医生根据经验对比确定包括最深羊水池的超声波预览图像时,下达对当前超声波预览图像进行冻结的指令,此时超声波图像处理装置可以获取冻结的超声波图像,该超声波图像包括最深羊水池。In the early pregnancy or mid-pregnancy ultrasound amniocentesis, because the fetus is small, the amniotic fluid is more, at this time, the doctor can obtain the different horizontal positions in the uterus by changing the detection position of the ultrasonic probe on the pregnant woman's belly surface within the entire uterus of the pregnant woman. In the ultrasonic preview image corresponding to the cross section in the vertical direction, the doctor gives an instruction to freeze the current ultrasonic preview image when the ultrasonic preview image including the deepest sheep pool is determined according to the experience comparison, and the ultrasonic image processing apparatus can acquire the frozen ultrasonic image. The ultrasound image includes the deepest sheep pool.
需要说明的是,在实际使用中也可以获取两个或两个以上的超声波图像。比如,在医生对多个超声波预览图像中的羊水池的深度进行对比时,单凭视觉对比难以准确确定哪一幅超声波预览图像中的羊水池垂直深度最大,因此,医生可以下达对羊水池的深度较大的多个超声波预览图像进行冻结的指令,此时超声波图像处理装置可以获取冻结的多个超声波图像,之后可以串行或并行的对获取到的多个超声波图像进行处理。或者,也可以获取孕妇子宫的三维超声 波图像信息,相当于一次性对大量的超声波预览图像进行冻结,之后可以串行或并行的对获取到的大量超声波图像进行处理。It should be noted that two or more ultrasonic images can also be acquired in actual use. For example, when doctors compare the depths of the sheep pools in multiple ultrasound preview images, it is difficult to accurately determine which of the ultrasound preview images has the largest vertical depth of the sheep pool by visual contrast. Therefore, the doctor can give the sheep pool. The plurality of ultrasonic preview images having a large depth are frozen, and the ultrasonic image processing apparatus can acquire the frozen plurality of ultrasonic images, and then the plurality of acquired ultrasonic images can be processed in series or in parallel. Alternatively, it is also possible to obtain three-dimensional ultrasonic image information of the pregnant woman's uterus, which is equivalent to freezing a large number of ultrasonic preview images at a time, and then processing a large number of acquired ultrasonic images in series or in parallel.
602、识别超声波图像中羊水池对应的羊水暗区;602. Identify a dark area of amniotic fluid corresponding to the sheep pool in the ultrasonic image;
由于羊水暗区的灰度值较低,且为连通区域,因此在获取到超声波图像之后,可以根据灰度差异从超声波图像中识别出灰度值较低的连通区域,作为羊水暗区。Since the gray value of the dark region of the amniotic fluid is low and is a connected region, after the ultrasonic image is acquired, the connected region with a lower gray value can be identified from the ultrasonic image according to the grayscale difference as the dark region of the amniotic fluid.
对超声波图像中的羊水暗区进行识别的方法请参阅图2或图3对应的实施例方法,此处不再赘述。For the method of identifying the dark region of the amniotic fluid in the ultrasonic image, refer to the method of the embodiment corresponding to FIG. 2 or FIG. 3, and details are not described herein again.
603、测量羊水池的最大垂直深度作为本次测量的羊水深度DVP的测量结果,并确定目标线段;603. Measure the maximum vertical depth of the sheep pool as the measurement result of the amniotic fluid depth DVP measured this time, and determine the target line segment;
对羊水池的最大垂直深度的测量方法以及目标线段的确定方法请具体参阅图4或图5对应的实施例,此处不再赘述。For the method of measuring the maximum vertical depth of the sheep pool and the method for determining the target line segment, please refer to the corresponding embodiment of FIG. 4 or FIG. 5, and details are not described herein again.
若步骤601获取到的超声波图像为一个,那么本步骤只得到一个最大垂直深度的测量结果以及其对应的线段,此时直接将这一个测量结果作为本次测量的羊水深度DVP的测量结果,其对应的线段作为目标线段。If the ultrasonic image acquired in step 601 is one, then only one maximum vertical depth measurement result and its corresponding line segment are obtained in this step, and this measurement result is directly used as the measurement result of the amniotic fluid depth DVP measured this time. The corresponding line segment is used as the target line segment.
若步骤601获取到两个或两个以上的超声波图像,那么本步骤能够得到相应数目的最大垂直深度的测量结果以及其对应的相应数目的线段,比如,一共获取到三幅超声波图像,那么可以分别得到这三幅超声波图像的羊水池的最大垂直深度d1、d2、d3,以及与d1对应的线段l1、与d2对应的线段l2、与d3对应的线段l3。从d1、d2、d3中选择最大值(假设为d1)作为本次测量的羊水深度DVP,那么确定d1对应的线段l1作为目标线段。If step 601 acquires two or more ultrasound images, then this step can obtain a corresponding number of maximum vertical depth measurements and corresponding corresponding number of line segments, for example, a total of three ultrasound images are acquired, then The maximum vertical depths d1, d2, and d3 of the sheep pools of the three ultrasonic images are respectively obtained, and the line segments l1 corresponding to d1, the line segments l2 corresponding to d2, and the line segments l3 corresponding to d3. The maximum value (assumed to be d1) is selected from d1, d2, and d3 as the amniotic fluid depth DVP of this measurement, and then the line segment l1 corresponding to d1 is determined as the target line segment.
604、显示DVP的测量结果,并在超声波图像中标识目标线段;604. Display a measurement result of the DVP, and identify a target line segment in the ultrasonic image.
测量得到DVP并确定目标线段之后,可以向用户显示DVP结果,并在显示的超声波图像中突出显示目标线段,以方便医生确定最大垂直深度在超声波图像中对应的线段,并根据经验判断目标线段选取的是否合理。突出显示目标线段可以突出显示目标线段上的所有像素,或者,也可以突出显示目标线段的两个端点。After the DVP is measured and the target line segment is determined, the DVP result can be displayed to the user, and the target line segment is highlighted in the displayed ultrasonic image, so that the doctor can determine the corresponding vertical line depth in the ultrasonic image, and judge the target line segment according to experience. Is it reasonable? Highlighting a target segment highlights all pixels on the target segment, or you can highlight both endpoints of the target segment.
605、判断DVP的测量结果是否处于预设范围内,若是,则执行步骤606,若否,则执行步骤607;605, determining whether the measurement result of the DVP is within a preset range, and if so, executing step 606, if not, executing step 607;
得到DVP的测量结果后,可以判断DVP的测量结果是否处于预设范围内,若是,则执行步骤606,若否,则执行步骤607。临床上,DVP的预设范围通常设置为[2,8),当DVP≥8cm时,认为羊水量过多,当DVP<2cm时,认为羊水量过少。After the measurement result of the DVP is obtained, it can be determined whether the measurement result of the DVP is within a preset range. If yes, step 606 is performed, and if no, step 607 is performed. Clinically, the preset range of DVP is usually set to [2,8). When DVP≥8cm, the amount of amniotic fluid is considered to be too much. When DVP<2cm, the amount of amniotic fluid is considered to be too small.
考虑到并非所有地区及单位对DVP的判定标准均一致,因此可以在DVP测试系统中加入预设范围的设置选项,用户可以根据需要设置预设范围。Considering that not all regions and units have the same DVP criteria, a preset range setting option can be added to the DVP test system, and the user can set the preset range as needed.
在实际使用中,步骤605还可以在步骤604之前执行,或者也可以与步骤604同时执行,也就是说,只要在步骤603之后执行即可,此处不对时序进行唯一性限定。In actual use, step 605 may also be performed before step 604, or may be performed simultaneously with step 604, that is, as long as it is performed after step 603, the timing is not uniquely defined herein.
606、提示DVP测试结果正常;606. The DVP test result is normal;
若判定DVP处于预设范围内,则可以判定DVP检测结果无异常,此时可以提示DVP测试结果正常。If it is determined that the DVP is within the preset range, it can be determined that the DVP detection result is normal, and the DVP test result can be prompted to be normal.
607、提示DVP测试结果异常,并显示相应的诊疗提示。607. The DVP test result is abnormal, and the corresponding medical treatment prompt is displayed.
若判定DVP不处于预设范围内,则可以判定DVP检测结果有异常,此时可以提示DVP测试结果异常,并显示相应的诊疗提示。具体的,若DVP≥8cm,则可以提示羊水量过多,若DVP<2cm,则可以提示羊水量过少。羊水量的异常与胎儿发育正常与否关系密切,羊水过多可能与胎儿消化道梗阻、中枢神经系统异常、宫腔感染等原因相关,羊水过少则可能与胎儿生长受限、胎儿先天性泌尿系统畸形等相关。为了辅助医生根据测试结果做出正确的诊断,开展对可能导致羊水异常原因的疾病的筛查工作,在系统已判定羊水异常时,可以显示羊水异常相关的诊疗提示,比如,当提示羊水量过少时,可以提示“可能的原因包括:胎儿生长受限、胎儿先天性泌尿系统畸形等”;当提示羊水量过多时,可以提示“可能的原因包括:胎儿消化道梗阻、中枢神经系统异常、宫腔感染等”。If it is determined that the DVP is not within the preset range, it may be determined that the DVP detection result is abnormal, and the DVP test result may be prompted to be abnormal, and the corresponding medical treatment prompt is displayed. Specifically, if DVP ≥ 8cm, the amount of amniotic fluid can be indicated too much. If DVP < 2cm, the amount of amniotic fluid can be indicated to be too small. The abnormal amniotic fluid volume is closely related to the normal development of fetal development. The excessive amniotic fluid may be related to fetal digestive tract obstruction, central nervous system abnormality, intrauterine infection and other causes. The oligohydramnios may be associated with fetal growth restriction and fetal congenital urinary tract. System malformations and other related. In order to assist the doctor to make a correct diagnosis based on the test results, screening for diseases that may cause abnormal amniotic fluid, when the system has determined that the amniotic fluid is abnormal, it can display the diagnosis and treatment tips related to amniotic fluid abnormalities, for example, when the amniotic fluid is indicated When there are few, you can suggest "Possible causes include: fetal growth restriction, fetal congenital urinary system malformation, etc."; when the amount of amniotic fluid is too much, you may be prompted "probable causes include: fetal digestive tract obstruction, central nervous system abnormalities, palace Cavity infection, etc.".
二、AFI的测量过程:Second, the measurement process of AFI:
请参阅图7,本发明实施例中超声波图像处理方法另一个实施例包括:Referring to FIG. 7, another embodiment of the ultrasonic image processing method in the embodiment of the present invention includes:
701、获取羊水池四个象限的超声波图像;701. Obtain an ultrasonic image of four quadrants of the sheep pool;
在晚孕期超声检查过程中,或者在DVP<3cm,需使用AFI法复测羊水时,常将羊水池分左上、左下、右上、右下四个象限,分别获取羊水池四个象限的超声波图像,之后分别测量每个象限内羊水池的最大垂直深度,再将四个象限 的最大垂直深度相加即获得羊水指数AFI,并且将四个象限羊水池的最大垂直深度中的最大值作为DVP值,以此更全面地反映整个宫腔内羊水分布情况。在超声医生按照左上、左下、右上、右下四个象限分别冻结四个象限的超声波预览图像之后,超声波图像处理装置可以获取羊水池四个象限的超声波图像。During the ultrasound examination in the late pregnancy, or when the DVP<3cm, the AFI method is needed to retest the amniotic fluid, the sheep pool is divided into four quadrants: the upper left, the lower left, the upper right, and the lower right, respectively, to obtain ultrasonic images of the four quadrants of the sheep pool. Then, the maximum vertical depth of the sheep pool in each quadrant is measured separately, and then the maximum vertical depth of the four quadrants is added to obtain the amniotic fluid index AFI, and the maximum value among the maximum vertical depths of the four quadrants is used as the DVP value. In order to more fully reflect the distribution of amniotic fluid in the entire uterine cavity. After the ultrasound doctor freezes the ultrasound preview images of the four quadrants in the upper left, lower left, upper right, and lower right quadrants respectively, the ultrasonic image processing apparatus can acquire the ultrasonic images of the four quadrants of the sheep pool.
702、分别识别各个象限的超声波图像中的羊水暗区;702. Identify dark areas of amniotic fluid in the ultrasonic images of the respective quadrants;
由于羊水暗区的灰度值较低,且为连通区域,因此在获取到各个象限的超声波图像之后,对于每一个象限的超声波图像,可以根据灰度差异从该图像中识别出灰度值较低的连通区域,作为羊水暗区。Since the gray value of the dark region of the amniotic fluid is low and is a connected region, after acquiring the ultrasonic images of the respective quadrants, for each ultrasonic image of the quadrant, the gray value can be recognized from the image according to the grayscale difference. Low connected area, as a dark area of amniotic fluid.
对每一个象限的超声波图像中的羊水暗区进行识别的方法请参阅图2或图3对应的实施例方法,此处不再赘述。For the method of identifying the dark area of the amniotic fluid in the ultrasonic image of each quadrant, please refer to the method of the embodiment corresponding to FIG. 2 or FIG. 3, and details are not described herein again.
703、分别测量各个羊水池的最大垂直深度,并确定各个象限的超声波图像中的目标线段;703. Measure a maximum vertical depth of each sheep pool separately, and determine a target line segment in the ultrasonic image of each quadrant;
对于每一个象限的超声波图像中的羊水暗区,可以分别测量其最大垂直深度,并分别确定最大垂直深度对应的目标线段。For the amniotic fluid dark area in the ultrasound image of each quadrant, the maximum vertical depth can be measured separately, and the target line segments corresponding to the maximum vertical depth are respectively determined.
对羊水池的最大垂直深度的测量方法以及目标线段的确定方法请具体参阅图4或图5对应的实施例,此处不再赘述。For the method of measuring the maximum vertical depth of the sheep pool and the method for determining the target line segment, please refer to the corresponding embodiment of FIG. 4 or FIG. 5, and details are not described herein again.
704、对四个象限的超声波图像对应的最大垂直深度进行求和,得到AFI的测量结果;704: summing the maximum vertical depths corresponding to the ultrasonic images of the four quadrants, and obtaining the measurement result of the AFI;
得到四个象限的超声波图像对应的最大垂直深度之后,可以对四个象限的超声波图像对应的最大垂直深度进行求和,得到AFI的测量结果。After obtaining the maximum vertical depth corresponding to the ultrasonic image of the four quadrants, the maximum vertical depth corresponding to the ultrasonic images of the four quadrants can be summed to obtain the measurement result of the AFI.
705、选择四个象限的超声波图像对应的最大垂直深度中的最大值作为DVP的测量结果;705. Select a maximum value of a maximum vertical depth corresponding to the ultrasonic image of the four quadrants as a measurement result of the DVP;
得到四个象限的超声波图像对应的最大垂直深度之后,可以从中选择最大值作为DVP的测量结果。After obtaining the maximum vertical depth corresponding to the ultrasonic image of the four quadrants, the maximum value can be selected as the measurement result of the DVP.
706、显示AFI和DVP的测量结果,并在各个象限的超声波图像中突出显示对应的目标线段;706. Display measurement results of AFI and DVP, and highlight corresponding target line segments in the ultrasonic images of the respective quadrants;
测量得到AFI和DVP的测量结果之后,可以对测量结果进行显示,并在各个象限的超声波图像中突出显示各自的目标线段,以方便医生确定最大垂直深度在超声波图像中对应的线段,并根据经验判断目标线段选取的是否合理。突出 显示目标线段可以突出显示目标线段上的所有像素,或者,也可以突出显示目标线段的两个端点。After measuring the measurement results of AFI and DVP, the measurement results can be displayed, and the respective target line segments are highlighted in the ultrasonic images of each quadrant to facilitate the doctor to determine the maximum vertical depth corresponding to the line segment in the ultrasonic image, and according to experience Determine whether the selection of the target line segment is reasonable. Highlighting a target segment highlights all pixels on the target segment, or it can highlight both endpoints of the target segment.
707、判断AFI和DVP的测量结果是否处于预设范围内,若是,则执行步骤708,若否,则执行步骤709;707, determine whether the measurement result of AFI and DVP is within a preset range, and if so, step 708 is performed, and if not, step 709 is performed;
得到AFI和DVP的测量结果后,可以分别判断AFI和DVP的测量结果是否处于预设范围内,若是,则执行步骤708,若否,则执行步骤709。临床上,DVP的预设范围通常设置为[2,8),当DVP≥8cm时,认为羊水量过多,当DVP<2cm时,认为羊水量过少;AFI的预设范围通常设置为[6,20),当AFI≥20cm时,认为羊水量过多,当AFI<6cm时,认为羊水量过少。当AFI和DVP的测量结果均处于预设范围内时,则判定AFI和DVP的测量结果处于预设范围内,并执行步骤708;当AFI的测量结果不处于预设范围内、或DVP的测量结果不处于预设范围内时,则判定AFI和DVP的测量结果不处于预设范围内,并执行步骤709。After the measurement results of AFI and DVP are obtained, whether the measurement results of AFI and DVP are respectively determined to be within a preset range, if yes, step 708 is performed, and if not, step 709 is performed. Clinically, the preset range of DVP is usually set to [2,8). When DVP≥8cm, the amount of amniotic fluid is considered too much. When DVP<2cm, the amount of amniotic fluid is considered too small; the preset range of AFI is usually set to [ 6,20), when AFI ≥ 20cm, it is considered that the amount of amniotic fluid is too much. When AFI <6cm, the amount of amniotic fluid is considered to be too small. When the measurement results of AFI and DVP are both within the preset range, it is determined that the measurement results of AFI and DVP are within a preset range, and step 708 is performed; when the measurement result of AFI is not within the preset range, or the measurement of DVP When the result is not within the preset range, it is determined that the measurement results of AFI and DVP are not within the preset range, and step 709 is performed.
考虑到并非所有地区及单位对AFI和DVP的判定标准均一致,因此可以在AFI测试系统中加入预设范围的设置选项,用户可以根据需要设置AFI和DVP的预设范围。Considering that not all regions and units have the same criteria for AFI and DVP, a preset range setting option can be added to the AFI test system. Users can set the preset range of AFI and DVP as needed.
708、提示AFI测试结果正常;708. The AFI test result is normal;
若判定AFI和DVP的测量结果均处于预设范围内,则可以判定AFI的测量结果无异常,此时可以提示AFI测试结果正常。If it is determined that the measurement results of AFI and DVP are within the preset range, it can be determined that the AFI measurement result is normal, and the AFI test result can be prompted to be normal.
709、提示AFI测试结果异常,并显示相应的诊疗提示。709. The AFI test result is abnormal, and the corresponding medical prompt is displayed.
若判定AFI和DVP的测量结果不处于预设范围内,则可以判定AFI检测结果有异常,此时可以提示AFI测试结果异常,并显示相应的诊疗提示。具体的,若DVP≥8cm,或者AFI≥20cm,可以提示羊水量过多,若DVP<2cm,或者AFI<6cm,可以提示羊水量过少。羊水量的异常与胎儿发育正常与否关系密切,羊水过多可能与胎儿消化道梗阻、中枢神经系统异常、宫腔感染等原因相关,羊水过少则可能与胎儿生长受限、胎儿先天性泌尿系统畸形等相关。为了辅助医生根据测试结果做出正确的诊断,开展对可能导致羊水异常原因的疾病的筛查工作,在系统已判定羊水异常时,可以显示羊水异常相关的诊疗提示,比如,当提示羊水量过少时,可以提示“可能的原因包括:胎儿生长受限、胎儿先天 性泌尿系统畸形等”;当提示羊水量过多时,可以提示“可能的原因包括:胎儿消化道梗阻、中枢神经系统异常、宫腔感染等”。If it is determined that the measurement results of AFI and DVP are not within the preset range, it may be determined that the AFI detection result is abnormal, and the AFI test result may be abnormal at this time, and the corresponding medical treatment prompt is displayed. Specifically, if DVP ≥ 8cm, or AFI ≥ 20cm, you can indicate excessive amniotic fluid. If DVP < 2cm, or AFI <6cm, you can indicate that the amount of amniotic fluid is too small. The abnormal amniotic fluid volume is closely related to the normal development of fetal development. The excessive amniotic fluid may be related to fetal digestive tract obstruction, central nervous system abnormality, intrauterine infection and other causes. The oligohydramnios may be associated with fetal growth restriction and fetal congenital urinary tract. System malformations and other related. In order to assist the doctor to make a correct diagnosis based on the test results, screening for diseases that may cause abnormal amniotic fluid, when the system has determined that the amniotic fluid is abnormal, it can display the diagnosis and treatment tips related to amniotic fluid abnormalities, for example, when the amniotic fluid is indicated When there are few, you can suggest "Possible causes include: fetal growth restriction, fetal congenital urinary system malformation, etc."; when the amount of amniotic fluid is too much, you may be prompted "probable causes include: fetal digestive tract obstruction, central nervous system abnormalities, palace Cavity infection, etc.".
在实际使用中,在AFI的测量模式下,也可以不对DVP进行测量及显示。In actual use, in the AFI measurement mode, DVP can also be measured and displayed.
图6和图7对应的实施例能够极大的简化用户在对羊水量指标AFI和DVP进行测量的过程中的操作流程,显著提高医生的工作效率。The embodiment corresponding to FIG. 6 and FIG. 7 can greatly simplify the operation flow of the user in measuring the amniotic fluid index AFI and DVP, and significantly improve the working efficiency of the doctor.
上面对本发明实施例中的方法进行了描述,下面对本发明实施例中的装置进行描述。The method in the embodiment of the present invention has been described above, and the device in the embodiment of the present invention is described below.
请参阅图8,本发明实施例中超声波图像处理装置的一个实施例包括:Referring to FIG. 8, an embodiment of an ultrasonic image processing apparatus in an embodiment of the present invention includes:
获取模块801,用于获取羊水池的超声波图像;The obtaining module 801 is configured to acquire an ultrasonic image of the sheep pool;
识别模块802,用于识别超声波图像中羊水池对应的羊水暗区;The identification module 802 is configured to identify a dark area of the amniotic fluid corresponding to the sheep pool in the ultrasonic image;
测量模块803,用于根据羊水暗区的最大垂直深度测量羊水池的最大垂直深度。The measuring module 803 is configured to measure the maximum vertical depth of the sheep pool according to the maximum vertical depth of the dark region of the amniotic fluid.
优选的,识别模块802可以包括:Preferably, the identification module 802 can include:
遍历单元,用于采用目标尺度的滑动窗口遍历超声波图像,目标尺度包括第一尺度、第二尺度和第三尺度;a traversing unit for traversing the ultrasonic image by using a sliding window of a target scale, the target scale comprising a first scale, a second scale, and a third scale;
分割单元,用于根据当前滑动窗口区域的灰度值分布对当前滑动窗口区域进行图像分割,得到第一区域和第二区域,第一区域的灰度值小于第二区域的灰度值;a dividing unit, configured to perform image segmentation on the current sliding window region according to the gray value distribution of the current sliding window region, to obtain a first region and a second region, wherein the gray value of the first region is smaller than the gray value of the second region;
第一标记单元,用于将第一区域内的像素标记为羊水暗区,将第二区域内的像素标记为非羊水暗区;a first marking unit, configured to mark pixels in the first area as amniotic dark areas, and pixels in the second area as non-amphibious dark areas;
转换单元,用于根据像素的标记将超声波图像转换为目标尺度下的二值图像,分别得到第一尺度、第二尺度和第三尺度下的二值图像;a conversion unit, configured to convert the ultrasonic image into a binary image at a target scale according to the mark of the pixel, and obtain binary images at the first scale, the second scale, and the third scale, respectively;
第一确定单元,用于利用第一尺度、第二尺度和第三尺度下的二值图像确定超声波图像中各个像素的取值,生成合成二值图像;a first determining unit, configured to determine a value of each pixel in the ultrasonic image by using the binary image at the first scale, the second scale, and the third scale to generate a synthesized binary image;
平滑单元,用于对合成二值图像进行噪声平滑处理;a smoothing unit for performing noise smoothing on the synthesized binary image;
第二确定单元,用于根据去噪后的合成二值图像确定超声波图像中的羊水暗区。And a second determining unit, configured to determine a dark region of the amniotic fluid in the ultrasonic image according to the synthesized binary image after denoising.
优选的,识别模块802还可以包括:Preferably, the identification module 802 can further include:
第三确定单元,用于利用血流的多普勒信号确定彩色血流对应的像素;a third determining unit, configured to determine a pixel corresponding to the color blood flow by using a Doppler signal of the blood flow;
第二标记单元,用于将第三确定单元确定饿像素标记为非羊水暗区。And a second marking unit, configured to mark the third determining unit to identify the hungry pixel as a non-amniotic dark area.
优选的,测量模块803包括:Preferably, the measurement module 803 comprises:
分组单元,用于将横坐标相同且纵坐标连续的目标像素分为一组,目标像素为超声波图像中被标记为羊水暗区的像素;a grouping unit for dividing a target pixel having the same abscissa and a continuous ordinate into a group, wherein the target pixel is a pixel marked as a dark region of the amniotic fluid in the ultrasonic image;
第一计算单元,用于计算各组的像素数目,选择像素数目最大的组作为目标组;a first calculating unit, configured to calculate a number of pixels of each group, and select a group with the largest number of pixels as the target group;
第二计算单元,用于根据目标组的像素数目计算羊水池的最大垂直深度。And a second calculating unit, configured to calculate a maximum vertical depth of the sheep pool according to the number of pixels of the target group.
请参阅图9,本发明实施例中超声波图像处理装置的另一个实施例包括:Referring to FIG. 9, another embodiment of the ultrasonic image processing apparatus in the embodiment of the present invention includes:
获取模块901,用于获取羊水池的超声波图像;The obtaining module 901 is configured to acquire an ultrasonic image of the sheep pool;
识别模块902,用于识别超声波图像中羊水池对应的羊水暗区;The identification module 902 is configured to identify a dark area of the amniotic fluid corresponding to the sheep pool in the ultrasonic image;
测量模块903,用于根据羊水暗区的最大垂直深度测量羊水池的最大垂直深度;a measuring module 903, configured to measure a maximum vertical depth of the sheep pool according to a maximum vertical depth of the dark region of the amniotic fluid;
第一显示模块904,用于在DVP的测量模式下,将得到的羊水池的最大垂直深度作为DVP的测量结果进行显示;The first display module 904 is configured to display the maximum vertical depth of the obtained sheep pool as a measurement result of the DVP in the DVP measurement mode;
第一判断模块905,用于判断DVP的测量结果是否处于预设范围内;The first determining module 905 is configured to determine whether the measurement result of the DVP is within a preset range;
第一提示模块906,用于当第一判断模块判定DVP的测量结果处于预设范围内时,提示DVP的测试结果正常,当第一判断模块判定DVP的测量结果不处于预设范围内时,提示DVP的测试结果异常,并显示相应的诊疗提示。The first prompting module 906 is configured to: when the first determining module determines that the measurement result of the DVP is within the preset range, the test result of the DVP is normal, when the first determining module determines that the measurement result of the DVP is not within the preset range, The test result of DVP is abnormal, and the corresponding medical tips are displayed.
请参阅图10,本发明实施例中超声波图像处理装置的另一个实施例包括:Referring to FIG. 10, another embodiment of the ultrasonic image processing apparatus in the embodiment of the present invention includes:
获取模块1001,用于获取羊水池的超声波图像,获取模块包括获取子单元,用于分别获取羊水池的四个象限的超声波图像;The obtaining module 1001 is configured to acquire an ultrasonic image of the sheep pool, and the obtaining module includes an acquiring subunit for respectively acquiring ultrasonic images of four quadrants of the sheep pool;
识别模块1002,用于识别超声波图像中羊水池对应的羊水暗区;The identification module 1002 is configured to identify a dark region of the amniotic fluid corresponding to the sheep pool in the ultrasonic image;
测量模块1003,用于根据羊水暗区的最大垂直深度测量羊水池的最大垂直深度;a measuring module 1003, configured to measure a maximum vertical depth of the sheep pool according to a maximum vertical depth of the dark region of the amniotic fluid;
计算模块1004,用于在AFI的测量模式下,对羊水池的四个象限的最大垂直深度进行求和,得到AFI的测量结果;The calculating module 1004 is configured to sum the maximum vertical depths of the four quadrants of the sheep pool in the AFI measurement mode to obtain the AFI measurement result;
第二显示模块1005,用于对AFI的测量结果进行显示;The second display module 1005 is configured to display the measurement result of the AFI;
第二判断模块1006,用于判断AFI的测量结果是否处于预设范围内;The second determining module 1006 is configured to determine whether the measurement result of the AFI is within a preset range;
第二提示模块1007,用于当第二判断模块判定AFI的测量结果处于预设 范围内时,提示AFI的测量结果正常,当第二判断模块判定AFI的测量结果不处于预设范围内时,提示AFI的测量结果异常,并显示相应的诊疗提示。The second prompting module 1007 is configured to: when the second determining module determines that the measurement result of the AFI is within the preset range, prompting the measurement result of the AFI to be normal, and when the second determining module determines that the measurement result of the AFI is not within the preset range, The AFI measurement results are abnormal and the corresponding medical tips are displayed.
本发明实施例还提供了一种超声诊断装置11,如图11所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该超声诊断装置包括上位机11-1和超声波探头11-2,上位机11-1可以为平板电脑、台式电脑等具有信号处理能力的终端设备,上位机11-1与超声波探头11-2相连,能够根据超声波探头11-2的输出数据获取超声波图像。The embodiment of the present invention further provides an ultrasonic diagnostic apparatus 11 as shown in FIG. 11. For the convenience of description, only parts related to the embodiment of the present invention are shown. For details of the technical disclosure, please refer to the embodiment of the present invention. Method part. The ultrasonic diagnostic apparatus includes a host computer 11-1 and an ultrasonic probe 11-2. The host computer 11-1 can be a terminal device with signal processing capability such as a tablet computer or a desktop computer, and the host computer 11-1 is connected to the ultrasonic probe 11-2. The ultrasonic image can be acquired based on the output data of the ultrasonic probe 11-2.
参考图11,上位机11-1包括:电源1110、存储器1120、显示单元1130、处理器1140以及存储在存储器中并可在处理器上运行的计算机程序。所述处理器1140执行计算机程序时实现上述各个方法实施例中的步骤,例如图1所示的步骤101至103。或者,所述处理器执行所述计算机程序时实现上述各装置实施例中各模块或单元的功能。Referring to FIG. 11, the host computer 11-1 includes a power source 1110, a memory 1120, a display unit 1130, a processor 1140, and a computer program stored in the memory and operable on the processor. The processor 1140 implements the steps in the various method embodiments described above when executing a computer program, such as steps 101 through 103 shown in FIG. Alternatively, the processor implements the functions of the modules or units in the various apparatus embodiments described above when the computer program is executed.
示例性的,所述计算机程序可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器中,并由所述处理器执行,以完成本发明。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序在所述上位机11-1中的执行过程。例如,参照图8对应的实施例,所述计算机程序可以被分割成获取模块81、识别模块82以及测量模块83,各模块具体功能如下:Illustratively, the computer program can be partitioned into one or more modules/units that are stored in the memory and executed by the processor to perform the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing a particular function, the instruction segments being used to describe the execution of the computer program in the host computer 11-1. For example, referring to the corresponding embodiment of FIG. 8, the computer program may be divided into an obtaining module 81, an identifying module 82, and a measuring module 83. The specific functions of each module are as follows:
获取模块81,用于获取羊水池的超声波图像;The obtaining module 81 is configured to acquire an ultrasonic image of the sheep pool;
识别模块82,用于识别超声波图像中羊水池对应的羊水暗区;The identification module 82 is configured to identify a dark area of the amniotic fluid corresponding to the sheep pool in the ultrasonic image;
测量模块83,用于根据羊水暗区的最大垂直深度测量羊水池的最大垂直深度。The measuring module 83 is configured to measure the maximum vertical depth of the sheep pool according to the maximum vertical depth of the dark region of the amniotic fluid.
本领域技术人员可以理解,图11中示出的结构并不构成对超声诊断装置11的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,例如所述上位机11-1还可以包括输入输出设备、网络接入设备、总线等。It will be understood by those skilled in the art that the structure shown in FIG. 11 does not constitute a limitation to the ultrasonic diagnostic apparatus 11, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements, For example, the host computer 11-1 may further include an input/output device, a network access device, a bus, and the like.
所称处理器可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、 专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,所述处理器是所述上位机11-1的控制中心,利用各种接口和线路连接整个上位机11-1的各个部分。The so-called processor can be a central processing unit (CPU), or other general-purpose processor, digital signal processor (DSP), application specific integrated circuit (ASIC), ready-made Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like, and the processor is a control center of the upper computer 11-1, and connects the entire upper computer 11 by using various interfaces and lines. The various parts of 1.
所述存储器可用于存储所述计算机程序和/或模块,所述处理器通过运行或执行存储在所述存储器内的计算机程序和/或模块,以及调用存储在存储器内的数据,实现所述上位机11-1的各种功能。所述存储器可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如硬盘、内存、插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)、至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory can be used to store the computer program and/or module, the processor implementing the upper level by running or executing a computer program and/or module stored in the memory, and recalling data stored in the memory Various functions of the machine 11-1. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored. Data created based on the use of the mobile phone (such as audio data, phone book, etc.). In addition, the memory may include a high-speed random access memory, and may also include non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SMC), and a Secure Digital (SD) card. , Flash Card, at least one disk storage device, flash memory device, or other volatile solid-state storage device.
所述计算机装置集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。The computer-integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the present invention implements all or part of the processes in the foregoing embodiments, and may also be completed by a computer program to instruct related hardware. The computer program may be stored in a computer readable storage medium. The steps of the various method embodiments described above may be implemented when the program is executed by the processor. Wherein, the computer program comprises computer program code, which may be in the form of source code, object code form, executable file or some intermediate form. The computer readable medium may include any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM). , random access memory (RAM, Random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media. It should be noted that the content contained in the computer readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in a jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, computer readable media Does not include electrical carrier signals and telecommunication signals.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
所述的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments described, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of cells is only a logical function division. In actual implementation, there may be another division manner. For example, multiple units or components may be combined or integrated. Go to another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
以上,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that The technical solutions described in the examples are modified, or equivalent to some of the technical features, and the modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (11)

  1. 一种超声波图像处理方法,其特征在于,包括:An ultrasonic image processing method, comprising:
    获取羊水池的超声波图像;Obtain an ultrasound image of the sheep pool;
    识别所述超声波图像中羊水池对应的羊水暗区;Identifying a dark area of amniotic fluid corresponding to the sheep pool in the ultrasonic image;
    根据所述羊水暗区的最大垂直深度测量所述羊水池的最大垂直深度。The maximum vertical depth of the sheep pool is measured based on the maximum vertical depth of the amniotic fluid dark zone.
  2. 根据权利要求1所述的超声波图像处理方法,其特征在于,识别所述超声波图像中羊水池对应的羊水暗区包括:The ultrasonic image processing method according to claim 1, wherein the identification of the amniotic fluid dark area corresponding to the sheep pool in the ultrasonic image comprises:
    采用目标尺度的滑动窗口遍历所述超声波图像,所述目标尺度包括第一尺度、第二尺度和第三尺度;Traversing the ultrasound image using a sliding window of a target scale, the target scale comprising a first scale, a second scale, and a third scale;
    根据当前滑动窗口区域的灰度值分布对当前滑动窗口区域进行图像分割,得到第一区域和第二区域,所述第一区域的灰度值小于所述第二区域的灰度值;Performing image segmentation on the current sliding window region according to the gray value distribution of the current sliding window region, to obtain a first region and a second region, wherein the gray value of the first region is smaller than the gray value of the second region;
    将所述第一区域内的像素标记为羊水暗区,将所述第二区域内的像素标记为非羊水暗区;Marking pixels in the first area as amniotic dark areas, and marking pixels in the second area as non-amphibious dark areas;
    根据像素的标记将所述超声波图像转换为目标尺度下的二值图像,分别得到所述第一尺度、所述第二尺度和所述第三尺度下的二值图像;Converting the ultrasonic image into a binary image at a target scale according to a mark of the pixel, respectively obtaining binary images at the first scale, the second scale, and the third scale;
    利用所述第一尺度、所述第二尺度和所述第三尺度下的二值图像确定所述超声波图像中各个像素的取值,生成合成二值图像;Determining, by using the binary image of the first scale, the second scale, and the third scale, a value of each pixel in the ultrasonic image to generate a composite binary image;
    对所述合成二值图像进行噪声平滑处理;Performing noise smoothing processing on the synthesized binary image;
    根据去噪后的合成二值图像确定所述超声波图像中的羊水暗区。The amniotic fluid dark area in the ultrasonic image is determined according to the denoised synthetic binary image.
  3. 根据权利要求2所述的超声波图像处理方法,其特征在于,在对所述第一区域内的像素和所述第二区域内的像素进行标记之后,在将所述超声波图形转换为目标尺度下的二值图像之前,所述方法还包括:The ultrasonic image processing method according to claim 2, wherein after the pixels in the first area and the pixels in the second area are marked, the ultrasonic pattern is converted to a target scale Before the binary image, the method further includes:
    利用血流的多普勒信号确定彩色血流对应的像素,并将其标记为非羊水暗区。The Doppler signal of the blood flow is used to determine the pixel corresponding to the color blood flow, and is marked as a non-amniotic dark area.
  4. 根据权利要求1所述的超声波图像处理方法,其特征在于,根据所述羊水暗区的最大垂直深度测量所述羊水池的最大垂直深度包括:The ultrasonic image processing method according to claim 1, wherein measuring the maximum vertical depth of the sheep pool according to the maximum vertical depth of the amniotic fluid dark area comprises:
    将横坐标相同且纵坐标连续的目标像素分为一组,所述目标像素为所述超声波图像中被标记为羊水暗区的像素;Dividing target pixels having the same abscissa and continuous ordinates into a group, wherein the target pixels are pixels marked as amniotic dark areas in the ultrasonic image;
    计算各组的像素数目,选择像素数目最大的组作为目标组;Calculating the number of pixels in each group, and selecting the group with the largest number of pixels as the target group;
    根据所述目标组的像素数目计算所述羊水池的最大垂直深度。Calculating a maximum vertical depth of the sheep pool according to the number of pixels of the target group.
  5. 根据权利要求1至4中任一项所述的超声波图像处理方法,其特征在于,在羊水深度DVP的测量模式下,根据所述羊水暗区的最大垂直深度测量所述羊水池的最大垂直深度之后,所述方法还包括:The ultrasonic image processing method according to any one of claims 1 to 4, characterized in that, in the measurement mode of the amniotic fluid depth DVP, the maximum vertical depth of the sheep pool is measured according to the maximum vertical depth of the amniotic fluid dark area Thereafter, the method further includes:
    将得到的所述羊水池的最大垂直深度作为DVP的测量结果进行显示;The obtained maximum vertical depth of the sheep pool is displayed as a measurement result of DVP;
    判断所述DVP的测量结果是否处于预设范围内;Determining whether the measurement result of the DVP is within a preset range;
    若是,则提示所述DVP的测试结果正常;If yes, the test result of the DVP is normal;
    若否,则提示所述DVP的测试结果异常。If not, the test result of the DVP is abnormal.
  6. 根据权利要求1至4中任一项所述的超声波图像处理方法,其特征在于,在羊水指数AFI的测量模式下,获取羊水池的超声波图像包括:The ultrasonic image processing method according to any one of claims 1 to 4, characterized in that, in the measurement mode of the amniotic fluid index AFI, acquiring the ultrasonic image of the sheep pool comprises:
    分别获取所述羊水池的四个象限的超声波图像;Obtaining ultrasonic images of four quadrants of the sheep pool respectively;
    根据所述羊水暗区的最大垂直深度测量所述羊水池的最大垂直深度之后,所述方法还包括:After measuring the maximum vertical depth of the sheep pool according to the maximum vertical depth of the amniotic fluid dark area, the method further includes:
    对所述羊水池的四个象限的最大垂直深度进行求和,得到AFI的测量结果,并对其进行显示;The maximum vertical depths of the four quadrants of the sheep pool are summed to obtain the AFI measurement results and displayed;
    判断所述AFI的测量结果是否处于预设范围内;Determining whether the measurement result of the AFI is within a preset range;
    若是,则提示所述AFI的测量结果正常;If yes, it indicates that the measurement result of the AFI is normal;
    若否,则提示所述AFI的测量结果异常。If not, it indicates that the measurement result of the AFI is abnormal.
  7. 一种超声波图像处理装置,其特征在于,包括:An ultrasonic image processing apparatus, comprising:
    获取模块,用于获取羊水池的超声波图像;Obtaining a module for acquiring an ultrasonic image of a sheep pool;
    识别模块,用于识别所述超声波图像中羊水池对应的羊水暗区;An identification module, configured to identify a dark area of amniotic fluid corresponding to the sheep pool in the ultrasonic image;
    测量模块,用于根据所述羊水暗区的最大垂直深度测量所述羊水池的最大垂直深度。And a measuring module for measuring a maximum vertical depth of the sheep pool according to a maximum vertical depth of the amniotic fluid dark area.
  8. 根据权利要求7所述的超声波图像处理装置,其特征在于,所述装置还包括:The ultrasonic image processing apparatus according to claim 7, wherein the apparatus further comprises:
    第一显示模块,用于在DVP的测量模式下,将得到的所述羊水池的最大垂直深度作为DVP的测量结果进行显示;a first display module, configured to display, in a measurement mode of the DVP, a maximum vertical depth of the obtained sheep pool as a measurement result of the DVP;
    第一判断模块,用于判断所述DVP的测量结果是否处于预设范围内;a first determining module, configured to determine whether the measurement result of the DVP is within a preset range;
    第一提示模块,用于当所述第一判断模块判定所述DVP的测量结果处于预设范围内时,提示所述DVP的测试结果正常,当所述第一判断模块判定所述DVP的测量结果不处于预设范围内时,提示所述DVP的测试结果异常,并显示相应的诊疗提示。a first prompting module, configured to: when the first determining module determines that the measurement result of the DVP is within a preset range, prompting that the test result of the DVP is normal, when the first determining module determines the measurement of the DVP When the result is not within the preset range, the test result of the DVP is abnormal, and the corresponding medical treatment prompt is displayed.
  9. 根据权利要求7所述的超声波图像处理装置,其特征在于,所述获取模块包括:The ultrasonic image processing apparatus according to claim 7, wherein the acquisition module comprises:
    获取子单元,用于分别获取所述羊水池的四个象限的超声波图像;Obtaining a subunit for respectively acquiring ultrasonic images of four quadrants of the sheep pool;
    所述超声波图像处理装置还包括:The ultrasonic image processing apparatus further includes:
    计算模块,用于在AFI的测量模式下,对所述羊水池的四个象限的最大垂直深度进行求和,得到AFI的测量结果;a calculation module for summing the maximum vertical depths of the four quadrants of the sheep pool in the AFI measurement mode to obtain the AFI measurement result;
    第二显示模块,用于对所述AFI的测量结果进行显示;a second display module, configured to display the measurement result of the AFI;
    第二判断模块,用于判断所述AFI的测量结果是否处于预设范围内;a second determining module, configured to determine whether the measurement result of the AFI is within a preset range;
    第二提示模块,用于当所述第二判断模块判定所述AFI的测量结果处于预设范围内时,提示所述AFI的测量结果正常,当所述第二判断模块判定所述AFI的测量结果不处于预设范围内时,提示所述AFI的测量结果异常,并显示相应的诊疗提示。a second prompting module, configured to: when the second determining module determines that the measurement result of the AFI is within a preset range, prompting that the measurement result of the AFI is normal, and when the second determining module determines the measurement of the AFI When the result is not within the preset range, the measurement result of the AFI is abnormal, and the corresponding medical treatment prompt is displayed.
  10. 一种超声诊断装置,其特征在于,所述超声诊断装置包括上位机和超声波探头;An ultrasonic diagnostic apparatus, comprising: an upper computer and an ultrasonic probe;
    所述上位机包括处理器,所述处理器用于执行存储器中存储的计算机程序时实现如权利要求1-6中任意一项所述方法的步骤。The host computer includes a processor for performing the steps of the method of any of claims 1-6 when executing the computer program stored in the memory.
  11. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于:所述计算机程序被处理器执行时实现如权利要求1-6中任意一项所述方法的步骤。A computer readable storage medium having stored thereon a computer program, wherein the computer program is executed by a processor to perform the steps of the method of any of claims 1-6.
PCT/CN2018/108295 2017-09-30 2018-09-28 Ultrasound image processing method and device, ultrasonic diagnosis device, and storage medium WO2019062842A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710923233.2 2017-09-30
CN201710923233.2A CN107518920B (en) 2017-09-30 2017-09-30 Ultrasonic image processing method and apparatus, ultrasonic diagnostic apparatus, and storage medium

Publications (1)

Publication Number Publication Date
WO2019062842A1 true WO2019062842A1 (en) 2019-04-04

Family

ID=60683985

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/108295 WO2019062842A1 (en) 2017-09-30 2018-09-28 Ultrasound image processing method and device, ultrasonic diagnosis device, and storage medium

Country Status (2)

Country Link
CN (1) CN107518920B (en)
WO (1) WO2019062842A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112348763A (en) * 2020-11-09 2021-02-09 西安宇视信息科技有限公司 Image enhancement method, device, electronic equipment and medium
CN112348763B (en) * 2020-11-09 2024-05-14 西安宇视信息科技有限公司 Image enhancement method, device, electronic equipment and medium

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107518920B (en) * 2017-09-30 2020-02-18 深圳开立生物医疗科技股份有限公司 Ultrasonic image processing method and apparatus, ultrasonic diagnostic apparatus, and storage medium
TWI652048B (en) * 2018-02-26 2019-03-01 長庚大學 Ultrasound image uniformity detection method and system
CN117635545A (en) * 2018-12-14 2024-03-01 深圳迈瑞生物医疗电子股份有限公司 Amniotic fluid index measurement method, ultrasonic imaging equipment and storage medium
CN113017687A (en) * 2021-02-19 2021-06-25 上海长征医院 Automatic identification method for B-ultrasonic image of abdominal dropsy
CN113520465B (en) * 2021-07-29 2023-11-24 合肥合滨智能机器人有限公司 Automatic measuring method for maximum depth of amniotic fluid
CN114081537B (en) * 2021-11-12 2023-08-25 江西中医药大学 Skin tissue fluid positioning method and system based on ultrasonic detection

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7744534B2 (en) * 2002-06-07 2010-06-29 Verathon Inc. 3D ultrasound-based instrument for non-invasive measurement of amniotic fluid volume
JP4633182B2 (en) * 2009-07-24 2011-02-16 東芝医用システムエンジニアリング株式会社 Medical imaging apparatus and ultrasonic diagnostic apparatus
CN102274051A (en) * 2011-05-27 2011-12-14 深圳市理邦精密仪器股份有限公司 Method and system for automatically measuring bladder volume of ultrasonic image
CN103458798A (en) * 2011-04-14 2013-12-18 株式会社日立医疗器械 Ultrasound diagnostic apparatus and ultrasound image-rendering method
CN104546000A (en) * 2015-01-05 2015-04-29 深圳市大深生物医学工程转化研究院 Shape feature-based ultrasonic image bladder volume measuring method and device
CN105976394A (en) * 2016-05-31 2016-09-28 深圳市恩普电子技术有限公司 Cutting method capable of realizing self-adaptive adjustment of fetus three-dimensional ultrasonic data
US20170086783A1 (en) * 2015-09-30 2017-03-30 General Electric Company Detecting amniotic fluid position based on shear wave propagation
CN107518920A (en) * 2017-09-30 2017-12-29 深圳开立生物医疗科技股份有限公司 Ultrasonic image processing method and device, supersonic diagnostic appts and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6939301B2 (en) * 2001-03-16 2005-09-06 Yaakov Abdelhak Automatic volume measurements: an application for 3D ultrasound
CN103218819B (en) * 2013-04-20 2016-08-03 复旦大学 Ultrasonoscopy optimum homogeneous region automatically selecting method based on quadtree decomposition
CN106780451A (en) * 2016-12-07 2017-05-31 西安电子科技大学 X-ray, ultrasound, infrared image fusion breast lump image detecting method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7744534B2 (en) * 2002-06-07 2010-06-29 Verathon Inc. 3D ultrasound-based instrument for non-invasive measurement of amniotic fluid volume
JP4633182B2 (en) * 2009-07-24 2011-02-16 東芝医用システムエンジニアリング株式会社 Medical imaging apparatus and ultrasonic diagnostic apparatus
CN103458798A (en) * 2011-04-14 2013-12-18 株式会社日立医疗器械 Ultrasound diagnostic apparatus and ultrasound image-rendering method
CN102274051A (en) * 2011-05-27 2011-12-14 深圳市理邦精密仪器股份有限公司 Method and system for automatically measuring bladder volume of ultrasonic image
CN104546000A (en) * 2015-01-05 2015-04-29 深圳市大深生物医学工程转化研究院 Shape feature-based ultrasonic image bladder volume measuring method and device
US20170086783A1 (en) * 2015-09-30 2017-03-30 General Electric Company Detecting amniotic fluid position based on shear wave propagation
CN105976394A (en) * 2016-05-31 2016-09-28 深圳市恩普电子技术有限公司 Cutting method capable of realizing self-adaptive adjustment of fetus three-dimensional ultrasonic data
CN107518920A (en) * 2017-09-30 2017-12-29 深圳开立生物医疗科技股份有限公司 Ultrasonic image processing method and device, supersonic diagnostic appts and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112348763A (en) * 2020-11-09 2021-02-09 西安宇视信息科技有限公司 Image enhancement method, device, electronic equipment and medium
CN112348763B (en) * 2020-11-09 2024-05-14 西安宇视信息科技有限公司 Image enhancement method, device, electronic equipment and medium

Also Published As

Publication number Publication date
CN107518920A (en) 2017-12-29
CN107518920B (en) 2020-02-18

Similar Documents

Publication Publication Date Title
WO2019062842A1 (en) Ultrasound image processing method and device, ultrasonic diagnosis device, and storage medium
US11937973B2 (en) Systems and media for automatically diagnosing thyroid nodules
CN107392910B (en) Lung lobe segmentation method and device based on CT image
CN110448335B (en) Method and device for fully automatically measuring head circumference of fetus based on ultrasonic image
CN113066061B (en) MRA-based aneurysm detection method, system, terminal and medium
Bai et al. Automatic segmentation of cervical region in colposcopic images using K-means
US20140213901A1 (en) System &amp; Method for Delineation and Quantification of Fluid Accumulation in EFAST Trauma Ultrasound Images
US11241190B2 (en) Predicting response to therapy for adult and pediatric crohn&#39;s disease using radiomic features of mesenteric fat regions on baseline magnetic resonance enterography
CN106709920B (en) Blood vessel extraction method and device
CN110706236B (en) Three-dimensional reconstruction method and device of blood vessel image
CN110279433A (en) A kind of fetus head circumference automatic and accurate measurement method based on convolutional neural networks
CN116912255B (en) Follicular region segmentation method for ovarian tissue analysis
WO2024067527A1 (en) Hip joint angle measurement system and method
Wang et al. Automatic evaluation of endometrial receptivity in three-dimensional transvaginal ultrasound images based on 3D U-Net segmentation
CN116523802B (en) Enhancement optimization method for liver ultrasonic image
EP4167184A1 (en) Systems and methods for plaque identification, plaque composition analysis, and plaque stability detection
CN113409275B (en) Method for determining thickness of transparent layer behind fetal neck based on ultrasonic image and related device
Liu et al. Automatic measurement of endometrial thickness from transvaginal ultrasound images
Chakkarwar et al. Automated analysis of gestational sac in medical image processing
CN111481233B (en) Thickness measuring method for transparent layer of fetal cervical item
CN116763347A (en) Fetal head direction angle measuring method based on ultrasonic image and related device
CN114764855A (en) Intelligent cystoscope tumor segmentation method, device and equipment based on deep learning
CN114699106A (en) Ultrasonic image processing method and equipment
CN112654299A (en) Ultrasonic imaging method, ultrasonic imaging apparatus, storage medium, processor, and computer apparatus
RU137139U1 (en) DIAGNOSTIC DEVICE FOR A NEWLY FORMING AREA TYPE &#34;BREAST CELL&#34; ON MAMMOGRAMS

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18863751

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 16/09/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18863751

Country of ref document: EP

Kind code of ref document: A1