WO2022033598A1 - Breast x-ray radiography acquisition method and apparatus, and computer device and storage medium - Google Patents

Breast x-ray radiography acquisition method and apparatus, and computer device and storage medium Download PDF

Info

Publication number
WO2022033598A1
WO2022033598A1 PCT/CN2021/112733 CN2021112733W WO2022033598A1 WO 2022033598 A1 WO2022033598 A1 WO 2022033598A1 CN 2021112733 W CN2021112733 W CN 2021112733W WO 2022033598 A1 WO2022033598 A1 WO 2022033598A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
breast
pixel
gradient
grayscale
Prior art date
Application number
PCT/CN2021/112733
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
Priority claimed from CN202010817353.6A external-priority patent/CN111991016B/en
Priority claimed from CN202010880432.1A external-priority patent/CN111899260A/en
Priority claimed from CN202011630482.0A external-priority patent/CN114693907A/en
Application filed by 上海联影医疗科技股份有限公司 filed Critical 上海联影医疗科技股份有限公司
Publication of WO2022033598A1 publication Critical patent/WO2022033598A1/en

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B6/00Apparatus for radiation diagnosis, e.g. combined with radiation therapy equipment
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B8/00Diagnosis using ultrasonic, sonic or infrasonic waves
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • 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
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/136Segmentation; Edge detection involving thresholding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/149Segmentation; Edge detection involving deformable models, e.g. active contour models
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/30Determination of transform parameters for the alignment of images, i.e. image registration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/30Determination of transform parameters for the alignment of images, i.e. image registration
    • G06T7/33Determination of transform parameters for the alignment of images, i.e. image registration using feature-based methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/50Depth or shape recovery
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H30/00ICT specially adapted for the handling or processing of medical images
    • G16H30/40ICT specially adapted for the handling or processing of medical images for processing medical images, e.g. editing

Definitions

  • the present application relates to the technical field of medical images, and in particular, to a method, apparatus, computer equipment and storage medium for acquiring a mammogram.
  • a pre-exposure method is usually used to obtain a grayscale image of the breast region of the patient, and then the grayscale change trend of the breast region on the grayscale image is analyzed to obtain the second time.
  • the relevant acquisition parameters of data acquisition so that the X-ray machine can be set by the acquisition parameters to realize data acquisition and image reconstruction.
  • the above-mentioned techniques have the problem of long imaging time, resulting in excessive radiation dose received by the patient.
  • the doctor needs to judge the location of the lesion by viewing the X-ray image, but in the related art, the X-ray imaging device can only obtain the partial image of the breast, and the doctor can only judge the X-ray image based on experience.
  • the location of the lesions in the whole breast is less efficient and has larger errors.
  • X-ray imaging equipment in the related art can only obtain partial images of the breast, which leads to low efficiency and large errors in the process of judging the relative position of the lesion and the entire breast, and no effective solution has been proposed yet.
  • a method for acquiring a mammogram comprising:
  • Image acquisition parameters of the breast part are determined according to the type of the breast part and quantification parameters, and an X-ray image of the breast part is acquired according to the image acquisition parameters.
  • a second aspect provides a mammogram display method, the method comprising:
  • the outline of the breast is displayed on the X-ray image, or the X-ray information of the breast area of interest is displayed on the optical image.
  • a method for acquiring a mammogram comprising:
  • the optical image is registered with the X-ray image, and the breast contour is displayed on the X-ray image or the X-ray information of the breast part of interest is displayed on the optical image.
  • an area detection method comprising:
  • each gray pixel point is clustered, and the region where each gray pixel point belonging to the same category is located is used as a candidate region;
  • a gradient image corresponding to the medical image is generated according to each pixel grayscale, and a gradient edge in the gradient image is determined according to the pixel gradient of each gradient pixel point in the gradient image;
  • a target region is detected from each of the candidate regions according to the degree of coupling between the region boundary of each of the candidate regions and the gradient edge.
  • a computer device including a memory and a processor, the memory stores a computer program, and the processor implements the steps of the first, second, third and fourth aspects when executing the computer program.
  • a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps described in the first aspect, the second aspect, the third aspect and the fourth aspect are implemented.
  • the above-mentioned method, device, computer equipment and storage medium for obtaining mammograms are performed by performing a stress test on the breast part of the object to be detected, and the type of the breast part is determined according to the stress test result, and the breast part can be characterized by obtaining the optical image of the breast part.
  • the quantification parameters of the size are determined according to the type and quantification parameters of the breast part, and the image acquisition parameters used to acquire the medical image of the breast part are determined, and the X-ray image of the breast part is acquired according to the image acquisition parameters, and then the optical image is compared with the X-ray image. Registration is performed, and the breast contour is displayed on the X-ray image based on the registration results.
  • the corresponding medical image acquisition parameters can be determined by the type and quantification parameters of the breast part, when obtaining the medical image of the breast part, only the breast part needs to be exposed through the determined medical image acquisition parameters
  • the corresponding X-ray image can be obtained once. Compared with the traditional X-ray image that requires two imaging to obtain the X-ray image, the time for obtaining the X-ray image in the embodiment of the present disclosure is shorter, and the radiation dose received by the patient is correspondingly higher. so that the patient can be prevented from receiving excessive radiation doses.
  • the position information of the breast contour in the X-ray image can be directly obtained.
  • the embodiment of the present disclosure solves the problem.
  • X-ray imaging equipment can only obtain partial images of the breast, so that doctors can only judge the relative position of the lesion and the entire breast based on experience, which is inefficient and has large errors, which improves the diagnosis efficiency and position of doctors in the diagnosis process.
  • the accuracy of the labeling can only obtain partial images of the breast, so that doctors can only judge the relative position of the lesion and the entire breast based on experience, which is inefficient and has large errors, which improves the diagnosis efficiency and position of doctors in the diagnosis process. The accuracy of the labeling.
  • Fig. 1a is one of the application environment diagrams of the mammography image display method in one embodiment
  • Fig. 1b is the second application environment diagram of the mammography image display method in one embodiment
  • FIG. 2 is one of the schematic flow charts of a mammogram display method in one embodiment
  • FIG. 3 is a second schematic flowchart of a method for displaying a mammogram in one embodiment
  • FIG. 4 is a schematic flowchart of steps of determining the type of breast part according to the test result in one embodiment
  • FIG. 5 is a schematic flowchart of a step of obtaining quantitative parameters of a breast part in one embodiment
  • FIG. 6 is a schematic flowchart of a step of obtaining image acquisition parameters of a breast part in one embodiment
  • FIG. 7 is a schematic flowchart of steps of determining a breast contour in one embodiment
  • FIG. 8 is a schematic flowchart of a step of registering an optical image and an X-ray image in one embodiment
  • FIG. 9 is a schematic diagram of a detection area in one embodiment
  • FIG. 10 is a schematic flowchart of a step of detecting a target area in one embodiment
  • FIG. 11 is a schematic flowchart of a step of clustering each grayscale pixel point in one embodiment
  • FIG. 12 is a schematic flowchart of a step of detecting a target region from each candidate region in one embodiment
  • FIG. 13a is a schematic diagram of an optional example of a region detection method in one embodiment
  • 13b is a schematic diagram of an optional example of a region detection method in one embodiment
  • FIG. 14 is a structural block diagram of a mammography image acquisition apparatus in one embodiment
  • FIG. 15 is a structural block diagram of a mammography image display apparatus in one embodiment
  • 16 is a structural block diagram of a region detection apparatus in one embodiment
  • Figure 17 is a diagram of the internal structure of a computer device in one embodiment.
  • the breast X-ray image display method provided by the embodiments of the present application can be applied to the medical imaging system 10 shown in FIG.
  • the above-mentioned medical imaging device 11 may be a breast machine.
  • the breast machine 11 may include a frame 111 , a rotating support 112 , a medical imaging assembly 113 and a compression assembly 114 .
  • the rotating bracket 112 is rotatably connected to the gantry 111 ;
  • the medical imaging component 113 is installed on the rotating bracket 112 and can rotate with the rotating bracket 112 to obtain X-ray images of different angles;
  • the compression component 114 is installed on the gantry 111 , and the compression component 114 It is used to carry and compress a patient's breast to shape the breast into a relatively thin and uniform shape, thereby facilitating high-quality medical images.
  • the frame 111 is used to carry the rotating bracket 112, the medical imaging assembly 113 and the compression assembly 114.
  • the rotating bracket 112 can rotate relative to the frame 111 and drive the medical imaging assembly 113 installed on the rotating bracket 112 to rotate together, thereby enabling medical imaging
  • An angle is formed between the component 113 and the compression component 114, and the medical imaging component 113 can acquire images of the patient's breast at different angles, so that the physician can accurately determine the location of the lesion.
  • the medical imaging assembly 113 includes a radiation source 1131 , a beam limiter and a detector 1132 .
  • the radiation source 1131 and the detector 1132 are respectively disposed at two ends of the rotating bracket 112 , and a shooting area is formed between the radiation source 1131 and the detector 1132 .
  • the compression assembly 114 includes a compression plate 1141, a compression platform 1142, and a drive member.
  • the medical imaging device 11 is used for collecting medical images of the breast;
  • the radiation source 1131 may be an array X-ray source, or a conventional single emission source.
  • the array X-ray source may adopt a linear array X-ray source and/or an area array X-ray source. Any X-ray source or single emission source in the array X-ray source can be either a field emission X-ray source or a hot cathode X-ray source.
  • the beam limiter is usually arranged in front of the output window of the radiation source 1131 .
  • the detector 1132 detects (acquires) projection data of the X-rays emitted by the radiation source 1131 after passing through the breast part, which is located between the detector 1132 and the compression component 114, and transmits the projection data to the computer device 13 for processing, the detector 1132 can be a flat panel detector, and of course other types of detectors.
  • the optical imaging device 12 is used to acquire an optical image of the breast part of the object to be detected; for example, it may be an optical camera or the like.
  • the optical imaging device 12 may transmit the acquired optical images to the computer device 13 for processing.
  • the computer device 13 may be a server, which may be implemented by an independent server or a server cluster composed of multiple servers. Of course, it can also be a terminal, which can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, portable wearable devices, and the like.
  • execution subject of the following embodiments of the present application may be a computer device or a medical imaging system, and the computer device will be used as an example for description below.
  • a method for displaying a mammary X-ray image involves acquiring an optical image and an X-ray image of a breast part, and displaying the X-ray image on the X-ray image according to the registration result of the optical image and the X-ray image.
  • the specific process of showing breast contours As shown in Figure 2, the method includes the following steps:
  • the breast part here can be both breasts or one breast.
  • the description is mainly for one breast, and the other breast can be performed after the imaging of the breast is completed. Same operation.
  • the breast area can be placed between the compression plate and the detector.
  • the computer equipment can control the movement of the driving part by outputting electrical signals from the software.
  • the driving part applies pressure to the compression plate to drive the movement of the compression plate.
  • the compression plate can move up and down, or move left and right, or move back and forth.
  • the movement of the compression plate can change the thickness of the breast area between the compression plate and the detector.
  • the force of the compression plate during the movement of the compression plate can also be known, so that the force of the compression plate and the thickness change of the breast part can be analyzed to obtain the type of the breast part.
  • the types of breast parts here may include fat type, dense type, and of course other types, which can be set according to actual conditions.
  • an optical image of the breast part is acquired, and the optical image is identified and processed to obtain a quantitative parameter of the breast part; the quantitative parameter is used to characterize the size of the breast part in a compressed state.
  • the timing of acquiring the optical image of the breast part in this step may be after the stress test is performed, that is, after the execution of S201.
  • the stress test is completed here can be characterized by a predetermined period of time, for example, pressure is continuously applied to the breast region through the compression plate within the predetermined period of time, and when the preset period of time is reached, the stress test is considered to be completed.
  • the completion of the stress test can also be characterized by the compression thickness of the breast part. For example, when the breast part is continuously pressed by the compression plate, when the thickness of the breast part is compressed to a certain thickness, the stress test can be considered complete.
  • other characterization methods are also possible, in short, the results of whether the stress test is completed can be obtained.
  • the timing of acquiring the optical image of the breast part in this step can also be before S201, that is, the breast part can be compressed in advance, so that the breast part is in a compressed state, and when the breast part is compressed to a certain thickness, the breast part can be obtained in this Optical image under compression.
  • the breast will be compressed to a relatively thin thickness. At this time, the breast is thin and uniform, so that the overlapping soft tissue in the breast structure is easier to separate. In order to be able to obtain high-quality medical or optical images of the breast region.
  • an optical imaging device when the breast part is in a compressed state, an optical imaging device can be used to capture an image of the breast part to obtain an optical image of the breast part, and then the optical imaging device can transmit the optical image to the computer device, so that the computer device can An optical image of the breast area can be obtained.
  • the optical imaging device may include a camera, and the camera may be a 2D or 3D camera.
  • the computer equipment can identify the optical image through the image recognition algorithm, identify the breast part in it, and obtain the contour and shape of the breast part, and then analyze and calculate the contour and shape of the breast part to obtain the breast part.
  • the size, volume, area and other parameters of the breast are called quantitative parameters of the breast part.
  • the image recognition algorithm can be an algorithm based on geometric features, a template-based algorithm, a model-based algorithm, etc.; for example, a model-based algorithm can be a recognition algorithm based on a neural network model.
  • the model may be a neural network model, and before using the neural network model for identification, the neural network model may be trained.
  • the training process may include: acquiring a training image set, each training image in the training image set is an optical image of a breast part, and each training image includes labeling position information of the breast; after that, each training image in the training image set may be The image is used as the input of the initial neural network model, and the labeled position information of the breast corresponding to each training image is used as the reference output of the initial neural network model, and the initial neural network model is trained to obtain a trained neural network model.
  • the optical image of the breast part under test can be input into the neural network model to obtain the position information of the breast on the optical image of the test, then the contour and shape of the breast can be obtained. information.
  • the image acquisition parameters may be parameters set for components in the medical imaging system when collecting medical images, for example, may include setting parameters of a ray source, setting parameters of a beam limiter, and the like.
  • the image acquisition parameters of the breast part can be obtained by means of table look-up, calculation and the like. It may include setting parameters of the ray source, setting parameters of the beam limiter, etc., then the ray source can be set according to the setting parameters of the ray source, and the beam limiter can be set according to the setting parameters of the beam limiter.
  • the ray source and the beam limiter with the set parameters can be used to emit X-rays to the breast part, and the data can be collected by the detector, and the collected data can be collected by Image reconstruction, an X-ray image of the breast area can be obtained.
  • a stress test is performed on the breast part of the object to be detected, and the type of the breast part is determined according to the result of the stress test, and a quantitative parameter that can characterize the size of the breast part is obtained through the optical image of the breast part.
  • the quantification parameter determines the image acquisition parameters used to acquire the medical image of the breast part, and obtains the X-ray image of the breast part according to the image acquisition parameters, then, the optical image is registered with the X-ray image, and the X-ray image is registered according to the registration result.
  • the outline of the breast is shown on the image.
  • the corresponding medical image acquisition parameters can be determined according to the type and quantification parameters of the breast part, when a medical image of the breast part needs to be obtained, it is only necessary to use the determined medical image acquisition parameters for the breast part.
  • the corresponding X-ray image can be obtained with one exposure. Compared with the traditional X-ray image that requires two imaging to obtain the X-ray image, the time for obtaining the X-ray image in the embodiment of the present disclosure is shorter, and the radiation dose received by the patient is also reduced accordingly. less, so that the patient can be prevented from receiving excessive radiation doses.
  • the embodiment of the present disclosure may further include:
  • registration refers to matching images collected by different imaging methods in the same coordinate system, and the specific matching methods include geometric correction, projection transformation and unified scale.
  • the position information of the breast in the X-ray image can be determined through image registration.
  • the position information may be coordinate information of the breast contour in the X-ray image.
  • the imaging area of the X-ray image is small, and only the position of the breast lesion is captured, so the outline of the breast can be displayed in the X-ray image according to the position information.
  • the position information of the breast in the optical image can also be determined by image matching, and the outline of the breast can be displayed in the optical image according to the position information.
  • the position information may be coordinate information of the breast contour in the optical image.
  • the optical image and the X-ray image are registered, and the position information of the breast contour in the X-ray image can be directly obtained, and the relative position of the X-ray image in the whole breast is marked by the doctor according to the experience.
  • the embodiment solves the problem that when the doctor obtains the information of the breast part that needs to be irradiated through experience (such as the way of asking and touching the breast), after setting the beam limiter opening to an appropriate size, and only obtaining the partial image of the breast through the X-ray imaging device, the doctor only needs to The relative position of the lesion and the entire breast can be judged based on experience, which has low efficiency and large error, which improves the doctor's diagnostic efficiency and the accuracy of position labeling during the diagnosis process.
  • the foregoing S201 may include the following steps:
  • S2011 use the compression component to perform a pressure test on the breast part, and obtain the changing relationship between the compression force generated during the pressure test and the compression thickness of the breast part; the compression thickness of the breast part is the thickness of the breast part under the action of the compression force .
  • the thickness of the breast after being compressed under different compression forces can be obtained, which is recorded as the compression thickness.
  • the change trend of the compression thickness is recorded as the relationship between the compression force and the compression thickness.
  • the changing relationship between the pressing force and the pressing thickness can be represented by a curve.
  • the horizontal axis of the coordinate axis is the pressing thickness
  • the vertical axis is the pressing force.
  • the variation curvature can be compared with the preset curvature threshold; if the variation curvature is greater than the curvature threshold , the type of the breast part is determined to be fat; otherwise, the type of breast part is determined to be dense.
  • the curvature of any point on the curve can be calculated, and the calculated curvature of a point can be compared with the curvature threshold.
  • the curvature threshold is set, it can be considered that the compression force and compression thickness of the breast part change rapidly, then the type of the breast part can be considered to be fat type (here, the fat type can be understood as more fat in the breast part, and under the same compression force, its thickness is thinner).
  • the type of the breast part can be considered to be dense (the dense type in It can be understood here that there is less fat in the breast area, and the thickness is thicker under the same pressure).
  • classification types of fat type and dense type are just an example, of course, there may be more classification types, for example, classification can be performed according to how much the curvature is greater than the curvature threshold.
  • the variation relationship between the compression force and compression thickness on the breast part during the stress test is obtained, and the type of the breast part is obtained through the variation relationship.
  • the type of the breast part can be determined through the changing relationship between the compression force and the compression thickness, the determination method is relatively simple, and the obtained type result is relatively accurate.
  • the foregoing S202 may include the following steps:
  • S2022 perform mathematical operation processing on the positions of each point on the breast contour to obtain the volume of the breast part; or, perform mathematical operation processing on the positions of each point on the breast contour to obtain the projected area of the breast part on the compression device.
  • the image recognition algorithm in S202 above may be used for the recognition processing, which will not be repeated here.
  • optical images here are also acquired after the stress test is completed and the breast area is in a thin and uniform state.
  • the breast contour of the breast part can be identified, and the position information of each point on the breast contour can be obtained at the same time.
  • the length and width of the breast part can be calculated according to the bottommost edge in the horizontal direction of the breast contour, and the vertical direction is used as the height direction of the breast part to calculate the height of the breast part, and calculate the height of the breast part. Multiply the calculated length, width and height to get the volume of the breast part.
  • the projected area of the breast part on the compression assembly refers to the projected area of the breast part on the compression plate in the compression assembly.
  • the compression plate is generally perpendicular to the vertical direction of the human body, that is, the projected area here is the projected area of the breast in the horizontal direction.
  • the above volume can be used to calculate the middle length and width, Get the projected area.
  • the projected area here may be calculated when the breast part is in a compressed state and the breast part is in a thin and uniform state.
  • the position of each point on the breast contour is obtained by identifying the optical image, thereby calculating the volume of the breast part or the projected area of the breast part on the compression device.
  • the volume or projected area of the breast part is calculated based on the contour position of the breast part, so that the calculated volume or projected area of the breast part is more in line with the actual situation and more accurate.
  • the foregoing S203 may include the following steps:
  • Step 1 Determine the radiation field corresponding to the breast part according to the quantitative parameter.
  • Step 2 Determine the image acquisition parameters of the breast part according to the type of the breast part and the radiation field corresponding to the breast part.
  • the quantification parameters may include parameters such as size, volume, and area of the breast part. After obtaining the quantitative parameters, the size, volume, or area of the breast part can be directly used as the radiation field of the breast part, that is, the size of the radiation range of the breast part.
  • the radiation field of the breast can be used as the setting parameter of the beam limiter to set the beam limiter.
  • the image acquisition parameters of the breast part can also be obtained by means of table look-up, calculation and the like. It may include setting parameters of the ray source, setting parameters of the beam limiter, etc., then the ray source can be set according to the setting parameters of the ray source, and the beam limiter can be set according to the setting parameters of the beam limiter.
  • the radiation field of the breast part is obtained by quantifying parameters such as the size, area, and volume of the breast part, and the image acquisition parameters of the breast part are determined according to the type of the breast part and the radiation field.
  • the radiation field and image acquisition parameters of the breast can be obtained relatively simply and accurately, so that the object to be detected can be prevented from receiving unnecessary radiation as much as possible during the medical imaging process.
  • the above-mentioned image acquisition parameters include a first image acquisition parameter and a second image acquisition parameter; the embodiment of the present disclosure relates to a method for obtaining the image acquisition parameters of the breast part according to the type and quantification parameter of the breast part. implementation.
  • the foregoing S203 may include the following steps:
  • S2032 Determine the radiation field corresponding to the breast part as the first image acquisition parameter.
  • the projected area can be used as the size of the imaging area during X-ray imaging of the breast part, that is, when the breast part is imaged.
  • the radiation field is usually expressed according to the opening size of the beam limiter, so the projected area here is also the opening size of the beam limiter. For example, it can be 18*25cm, etc.
  • the actual compression thickness of the breast part under a preset condition is obtained; the preset condition is related to the tolerance of the object to be detected to the compression force. Then, according to the type of the breast part and the actual compression thickness, the second image acquisition parameters are determined.
  • the breast When actually performing X-ray image imaging on the breast of the object to be detected, taking into account the tolerance of the individual to be detected to the compression force, the breast can be obtained when the object to be detected is in a critical state of resistance to compression force.
  • the compression thickness of the part is determined, and the compression thickness at this time is regarded as the compression thickness when the X-ray imaging is actually performed, that is, the actual compression thickness.
  • a second mapping table corresponding to the type of the breast part and the actual compression thickness can be obtained in the preset mapping table Image acquisition parameters; wherein, the mapping table includes the types and compression thicknesses of multiple groups of parts, and the second image acquisition parameters corresponding to the types and compression thicknesses of each group of parts; the second image acquisition parameters are used to characterize the power of the ray source and beam limiter filtering.
  • a mapping table can be preset, which includes different types (ie, types of breast parts) and the corresponding relationship between different compression thicknesses, powers of radiation sources, and filtering methods of the beam limiter.
  • the power of the ray source can be expressed by current and voltage, for example, it can be expressed by KV and mas.
  • mapping table can be referred to as shown in Table 1 below:
  • the power of the ray source and the filtering method of the beam limiter corresponding to the actual compression thickness and the type of breast part can be obtained by looking up the table.
  • the radiation field of the breast is obtained by the volume of the breast or the projected area on the compression device, and the power of the radiation source and the filtering method of the beam limiter are obtained by the type of the breast and the actual compression thickness.
  • the radiation field of the breast is obtained through a specific volume or projected area, and the radiation field obtained in this way is relatively accurate, so that the object to be detected can be prevented from receiving unnecessary radiation as much as possible during the X-ray imaging process.
  • the power of the radiation source and the filtering method of the beam limiter are determined by the type of the breast part and the actual compression thickness, which can further refine the imaging parameters and further reduce the radiation dose of the object to be detected.
  • the process involving identifying and processing an optical image to obtain a breast contour may include: identifying and processing the optical image to obtain the pixel value of each pixel in the optical image;
  • a segmentation algorithm determines the breast contour.
  • the optical image is an optical image;
  • the image segmentation algorithm is the technology and process of dividing the captured image into several specific regions with unique properties, and extracting the target of interest, which is a key step from image processing to image analysis.
  • Image segmentation algorithms mainly include: threshold-based segmentation algorithms, region-based segmentation algorithms, edge-based segmentation algorithms, and segmentation algorithms based on specific theories, etc.
  • the embodiment of the present disclosure can segment the breast from other regions to obtain the breast contour. Further, the doctor can obtain the position information of the breast in the X-ray image more clearly according to the breast contour, which further improves the diagnosis efficiency. and location labeling accuracy.
  • the embodiments of the present disclosure may include the following steps:
  • a threshold-based segmentation algorithm is used to segment the optical image to obtain the breast contour, and the segmentation threshold in this embodiment can be obtained according to the grayscale feature of the optical image.
  • the gray value of each pixel is obtained through the pixel value of each pixel in the optical image, and the gray value is compared with the segmentation threshold.
  • the gray value is greater than the segmentation threshold. Values less than or equal to the segmentation threshold are classified into another category.
  • the X-ray image of the breast is assisted by a detector, and the detector converts the light signal and the electrical signal to make the image quality of the X-ray image clearer.
  • the surface of the detector is dark, such as black, while the color of human tissue is lighter, so after the optical image is acquired, the optical image can be segmented according to the color difference between the detector and the breast, so as to obtain Breast contour.
  • pixels with a grayscale value greater than a segmentation threshold are classified as a background area image, and pixels with a grayscale value less than or equal to the segmentation threshold are classified as a breast area image.
  • the embodiment of the present disclosure adopts the segmentation algorithm based on segmentation threshold to segment the optical image, the calculation method is simple, the amount of data to be calculated is small, and the calculation efficiency is high, which can effectively improve the segmentation efficiency of the optical image and further improve the diagnosis efficiency.
  • a process involving registering an optical image with an X-ray image may include: extracting a plurality of first features in the optical image and a plurality of second features in the X-ray image through a feature extraction algorithm, according to The first feature and the second feature register the optical image with the X-ray image.
  • the feature extraction algorithm is used to extract the image features in the optical image and the X-ray image.
  • the feature can be a point, line or area in the breast region image, the first feature in the optical image and the second feature in the X-ray image. corresponds to the same features in the breast region image.
  • the first feature belongs to the optical image
  • the second feature belongs to the X-ray image
  • the first feature and the second feature correspond to the same features of the breast region image, so through the correspondence between the first feature and the second feature, the The optical image is registered with the X-ray image.
  • the embodiment of the present disclosure extracts the first feature in the optical image and the second feature in the X-ray image based on the feature extraction algorithm, and realizes the matching between the optical image and the X-ray image through the correspondence between the first feature and the second feature The accuracy of the judgment of the position information of the breast in the X-ray image is improved.
  • a process of registering an optical image with an X-ray image is involved.
  • the embodiments of the present disclosure may include the following steps:
  • S401 perform feature matching on the first feature and the second feature through similarity measurement and cluster analysis.
  • the similarity measure is used to evaluate the similarity between the first feature and the second feature. The closer the first feature is to the second feature, the greater the similarity measure value between the first feature and the second feature, the more distant the first feature and the second feature are, and the smaller the similarity measure value.
  • the similarity measurement algorithm includes: a correlation coefficient algorithm, a similarity coefficient algorithm, a sample matching coefficient algorithm or a sample matching consistency degree algorithm, and the like.
  • Cluster analysis is used to classify data and is an unsupervised learning process.
  • the algorithms of cluster analysis include systematic clustering, decomposition, joining, dynamic clustering, ordered sample clustering, and overlapping clustering. class and fuzzy clustering, etc.
  • S402 Obtain a coordinate mapping function according to the coordinates of the first feature in the optical image and the coordinates of the second feature in the X-ray image.
  • the coordinate mapping function is obtained according to the correspondence between the coordinates of the first feature and the coordinates of the second feature.
  • the coordinate mapping function can realize the coordinate conversion between the pixels of the optical image and the X-ray image, and then realize the registration of the optical image and the X-ray image.
  • the embodiment of the present disclosure realizes the registration between the optical image and the X-ray image based on the coordinate transformation, and further improves the judgment accuracy of the position information of the breast in the X-ray image.
  • a process of displaying a breast contour on an X-ray image which may include: obtaining position information of the breast contour in the X-ray image according to the breast, its optical image and the X-ray image, and in the X-ray image
  • the outline of the breast is shown on the image.
  • the X-ray image and the optical image can be superimposed to the same coordinate system. Therefore, after the X-ray image and the optical image are registered, it is possible to more accurately obtain the image of the breast shooting area in the X-ray image.
  • the position information in the X-ray image can be used to display the breast contour on the X-ray image according to the position information.
  • the doctor can also make a more accurate determination of the position of the lesion.
  • the mammogram in the X-ray image may be superimposed on the optical image.
  • acquiring the coordinate mapping function also requires camera parameters, where the camera is used to acquire the optical image, and the camera parameters of the camera include camera intrinsic parameters and camera extrinsic parameters, specifically, the camera intrinsic parameters include the focal length of the camera and the image plane. The center point is offset, and the camera extrinsic parameters include the installation position information and pitch angle of the camera.
  • it involves the process of obtaining the position information of the breast contour in the X-ray image according to the breast, its optical image and the X-ray image, which may include: determining the position information of the breast in the optical image according to the optical image , where the position information may specifically be coordinate information; according to the position information of the breast in the optical image and the registered X-ray image, the position information of the breast in the X-ray image is obtained, and the registered X-ray image is obtained. Coordinate correspondence with the optical image can be achieved, and through the coordinate correspondence, the accuracy of the acquired position information of the breast in the X-ray image can be improved.
  • the area enclosed by the solid line frame is the detector area and the imaging area of the optical image
  • the dashed line is the breast contour obtained by the image segmentation algorithm.
  • the imaging area is divided into the background area image and the breast area image.
  • the rectangle enclosed by the dotted line is the compression plate area and the imaging area of the X-ray image. Due to the existence of the breast contour, the doctor can obtain the position information of the breast in the X-ray image in FIG. 9 , thereby improving the diagnostic efficiency and the accuracy of judging the location of the lesion.
  • the embodiments of the present disclosure may further include:
  • Step 1 Control the compression plate to compress the breast.
  • Step 2 controlling the optical image acquisition unit to collect the optical image of the breast in the compressed state, and determine the breast contour in the optical image
  • the optical image is an optical image including at least part of the breast contour.
  • the optical image acquisition unit may be a camera, and the completeness of the breast contour in the optical image is determined according to the detection range of the patient by the doctor. Therefore, the breast contour in the optical image may be a complete breast contour or only a partial breast contour.
  • Step 3 controlling the X-ray image acquisition unit to acquire the X-ray image of the breast in the compressed state, wherein the X-ray image acquisition unit may be an X-ray imager.
  • Step 4 register the optical image with the X-ray image, and display the outline of the breast on the X-ray image or display the X-ray information of the breast part of interest on the optical image.
  • the position of the breast contour in the X-ray image can be acquired, thereby displaying the breast contour in the X-ray image. It is also possible to acquire X-ray information of the breast part of interest, thereby displaying the X-ray information of the breast part of interest on the optical image.
  • the doctor can directly see the outline of the breast on the X-ray image, which solves the problem that the X-ray imaging device can only obtain the partial image of the breast, so that the doctor can only judge the lesion based on experience.
  • the relative position of the whole breast has low efficiency and large error, which improves the diagnosis efficiency and the accuracy of position labeling in the diagnosis process of doctors.
  • the low-gray areas may come from implants in the subject (eg Artificial joints, stents, pacemakers, plates, screws, etc.), fixation devices (such as external fixation devices) used to fix the subject during surgery, positioning devices used to locate lesions (such as positioning pins, clips, etc.) ), imaging devices in some medical devices (such as needle-holding devices in breast puncture images, etc.), etc.
  • the low-gray area can also be called a high-attenuation area;
  • the area through the body which may also be referred to as the direct exposure area.
  • the embodiment of the present disclosure may further include the following steps:
  • the medical image may be an image obtained after image acquisition of human tissue based on medical imaging technology, such as X-ray image, Computed Tomography (CT) image, Digital Radiography (DR) image, B-scan images, etc.
  • medical imaging technology such as X-ray image, Computed Tomography (CT) image, Digital Radiography (DR) image, B-scan images, etc.
  • the imaging object in the medical imaging process can include human tissue and other imaging objects except human tissue.
  • the attenuation degree of rays involved in X-ray imaging by human tissue and other imaging objects There are differences, the higher the attenuation degree, the lower the pixel gray level in the medical image; the lower the attenuation degree, the higher the pixel gray level in the medical image, so the imaging area of the remaining imaging objects in the medical image can be used as
  • the target area to be detected the target area can be a low-gray area (that is, a high-attenuation area) where the pixel grayscale is significantly lower than that of human tissue, or a high-gray area (that is, a direct exposure area) where the pixel grayscale is significantly higher than that of human tissue. , or a combination of the two, etc.
  • the medical image is a grayscale image
  • the grayscale pixel is the pixel in the medical image
  • the pixel grayscale is the pixel value (ie, grayscale value) of the grayscale pixel.
  • the grayscale pixels are clustered according to the pixel grayscale of each grayscale pixel, that is, the grayscale pixels that are relatively similar in pixel grayscale are classified into the same category, and the grayscale pixels that are relatively different in grayscale are classified into the same category.
  • Large gray-scale pixels are classified into different categories, and there are many ways to implement clustering, such as LBG clustering algorithm, k-means clustering algorithm, etc., which are not specifically limited here. After clustering each gray-scale pixel point, each gray-scale pixel point can be clustered into the corresponding category.
  • each gray pixel point belonging to the same candidate region is a gray pixel point belonging to the same category, and these gray pixel points have strong similarity in pixel gray level.
  • the number of candidate regions formed by gray-scale pixels belonging to the same category may be one, two or more, which is not specifically limited here.
  • each grayscale pixel is directly clustered, it may appear that grayscale pixels belonging to the same category cannot form a candidate area because they are scattered points, and there are holes in the formed candidate area. (that is, most of the grayscale pixels in a certain area belong to the same category and very few grayscale pixels do not belong to this category) and so on.
  • the following optional processing methods can be performed: noise reduction, smoothing, etc. are performed on the medical image before clustering to remove the medical image.
  • the noise in the image, or the region filling of the candidate regions obtained after clustering, etc. are not specifically limited here.
  • a gradient image corresponding to the medical image is generated according to the grayscale of each pixel, and a gradient edge in the gradient image is determined according to the pixel gradient of each gradient pixel point in the gradient image.
  • the gradient image is an image corresponding to the medical image generated by performing gradient operation on the pixel grayscale of each grayscale pixel in the medical image.
  • the gradient operation process can be understood as the gradient involved in the edge extraction process of the medical image.
  • the calculation process of information such as the calculation process of gradient information in the edge extraction process based on local variance, sobel, prewitt, canny, etc., exemplarily, take the calculation of the local variance in the medical image to generate the gradient image as an example, obtain the preset value.
  • a sliding window with a window size of W*H the sliding window is continuously moved, the variance of the pixel gray levels of all gray pixels in the sliding window after each movement is calculated in turn, and the variance is used as a certain value in the sliding window.
  • the pixel gradient (ie pixel value) of the gradient pixel point corresponding to the grayscale pixel point is the pixel point in the generated gradient image, that is, each gradient pixel point in the gradient image has the same pixel position as the pixel point.
  • the corresponding unique grayscale pixel points thereby generating a gradient image corresponding to the medical image.
  • the gradient edge is an edge composed of multiple gradient pixels in the gradient image.
  • the gradient pixels on the gradient edge can be called edge pixels, and the edge pixels can be gradient pixels with larger pixel gradients.
  • the meaning of the edge setting is that there is a strong grayscale difference in the pixel grayscales of the grayscale pixels on both sides at the area boundary of the target area of the medical image, and the area boundary is the boundary of the target area, which means that the The pixel gradient of the gradient pixel corresponding to the grayscale pixel is relatively large, that is, the gradient edge is likely to be the region boundary of the target region, then the candidate region where the region boundary similar to the gradient edge is located can be used as the target region.
  • the gradient image can be binarized to obtain a binary image, and the binary image
  • the edge formed by each binary pixel with the median pixel value of 1 is used as the gradient edge; for another example, taking the high attenuation area as an example, the edge pixels on the gradient edge corresponding to the high attenuation area are mostly gray with the smaller area. It corresponds to the grayscale pixels in the candidate area of the degree of The gray level area is selected from each candidate area.
  • the area attribute can represent the overall level of pixel gray level of each gray pixel point in the target area, which can reflect whether the target area is a direct exposure area or a high attenuation area. , and then filter out the edge pixels from the gradient pixels corresponding to the pixels of each region in the gray-scale category area, and then use the edge formed by each edge pixel as the gradient edge; etc., no specific limitation is made here. .
  • the coupling degree can be the similarity between the region boundary of the candidate region and the gradient edge. Similarity in pixel location.
  • the coupling degree can be calculated in various ways, such as obtaining the first number of each boundary pixel on the area boundary, and the second number of boundary pixels that can be the same as or similar to a certain edge pixel in pixel position, according to the first number of boundary pixels. The ratio of the numbers between the second number and the first number determines the degree of coupling. Further, the candidate region corresponding to the region boundary with higher coupling degree can be used as the target region.
  • the region may also be the target region, so it can also be judged whether the candidate region corresponding to the region boundary is the target region according to the coupling degree between the region boundary and the gradient edge, and the coupling degree between the region boundary and the target boundary; and so on, here Not specifically limited.
  • the reason for jointly selecting the target area according to the gradient edge and the area boundary, rather than directly selecting the target area according to the gradient edge, is that there is likely to be overlap between the imaging object with high attenuation and human tissue, which makes A highly attenuated imaging object has a breakpoint on the gradient edge corresponding to the high-attenuation region in the medical image, which means that the target region cannot be detected by filling the gradient edge with the breakpoint.
  • the above-mentioned embodiment can obtain a complete candidate region based on the clustering algorithm, and the region boundary and the gradient edge do not need to completely overlap, thus achieving the ability to detect the complete target region even when there is a breakpoint in the gradient edge. Effect.
  • each grayscale pixel is clustered according to the pixel grayscale of each grayscale pixel in the medical image, and the region where each grayscale pixel belonging to the same category is located is used as a candidate region;
  • the gradient image corresponding to the medical image is generated, and the gradient edge in the gradient image is determined according to the pixel gradient of each gradient pixel in the gradient image.
  • the target area is detected in .
  • the clustering of regions solves the problem of low detection accuracy of the target region due to uncertain grayscale differences between the target region and human tissue, image noise, and grayscale transitions within the target region.
  • the effect of accurate detection of the target area is achieved by comparing the complete area boundary of the candidate area thus obtained with the gradient edge that is more likely to be the area boundary of the target area.
  • it involves the process of determining the gradient edge in the gradient image according to the pixel gradient of each gradient pixel point in the gradient image, which may specifically include: according to the regional gray level of each candidate area, screening out the candidate areas from each candidate area with the The gray-scale category area corresponding to the regional attribute of the detected target area; the gradient edge in the gradient image is determined according to the pixel gradient of the gradient pixel points in the gradient image corresponding to the pixel points of each area in the gray-scale category area.
  • the target area can be a high-attenuation area or a direct exposure area
  • the high-attenuation area is mostly detected from those candidate areas with smaller area grayscales
  • the direct exposure area is mostly detected from those with larger area grayscales.
  • the gray level area corresponding to the area attribute of the target area to be detected can be selected from each candidate area first, that is, the gray level area is the same as the target area in the pixel gray area. Then, the gradient edge in the gradient image is determined according to the pixel gradient of the gradient pixel points in the gradient image corresponding to the pixel points of each area in the gray-scale category area, for example, considering the target area
  • the pixel gradient of the gradient pixels corresponding to the gray pixels on the region boundary is relatively large, so the edge formed by the gradient pixels with relatively large pixel gradients in the gray level region can be used as the gradient edge.
  • the gradient edge is determined on the pixel gradient corresponding to the gray-scale category area with similar regional attributes to the target area, thereby improving the determination speed and accuracy of the gradient edge;
  • the detection of the direct exposure area is realized on the gray-level candidate area, and the detection of the high-attenuation area is realized on the low-level gray-level candidate area, because both the high-level gray-level candidate area and the low-level gray level candidate area are self-adaptive and unaffected by the dose.
  • the above embodiments have better adaptability to different doses of medical images and different types of target areas, thereby achieving the effect of accurate detection of target areas.
  • the process may include: sorting each gradient pixel point based on the pixel gradient of each gradient pixel point in the gradient image, and screening each gradient pixel point according to the sorting position of each gradient pixel point in the sorting result, Generate a binary image corresponding to the gradient image, that is, keep the gradient pixels with large pixel gradients in the gradient image, and discard the gradient pixels with small pixel gradients in the gradient image, the sorting position can reflect a gradient pixel point is the relative size of the pixel gradient in all gradient pixels; the binary edge formed by each binary pixel in the binary image is used as the gradient edge of the gradient image, and the binary pixel is the pixel of the binary image, Since the pixel value of the binary pixel is 1 or 0, the binary edge
  • the gradient pixel points belonging to the gradient edge can be quickly and accurately screened out from each gradient pixel point, and then the gradient based on these gradient pixel points can be obtained. edge, to achieve the effect of accurate determination of gradient edge.
  • each candidate area can be obtained.
  • the regional grayscales of the candidate regions belonging to the same category are similar, and the regional grayscales of the candidate regions belonging to different categories can be obtained.
  • the difference is large.
  • N the number of preset categories
  • 1/2 the number of which is used as a low grayscale category
  • the other 1/2 is used as a high grayscale category
  • each candidate can be determined according to the value of the regional grayscale of each candidate area.
  • the category of the region is obtained, thereby obtaining a low grayscale candidate region belonging to the low grayscale category and a high grayscale candidate region belonging to the high grayscale category.
  • the low grayscale candidate area at this time is the grayscale category area described above.
  • sort these gradient pixels and extract a certain proportion of edge pixels according to the sorting result to generate a binary image corresponding to the gradient sub-image, which is the gradient sub-image in the gradient image.
  • the part of the image corresponding to the gray-scale category area, so that the target area is subsequently detected from the low-gray-level candidate area, and the detection speed and detection efficiency of the target area are improved.
  • the target area to be detected includes the direct exposure area, the corresponding steps can be performed with the high grayscale candidate area as the grayscale category area, which is similar to the execution process of the high attenuation area, and will not be repeated here.
  • it involves a process of clustering each grayscale pixel point according to the pixel grayscale of each grayscale pixel point in the medical image, which may include: sorting the pixel grayscale of each grayscale pixel point in the medical image Sort, and determine the gray-scale category split point in the gray-scale sorting result based on the preset number of categories; take the gray-scale category split point as the initial cluster center, based on the cluster center and the pixels of each gray pixel point Grayscale, cluster each grayscale pixel point.
  • the embodiment of the present disclosure may include the following steps:
  • S601 Sort the pixel gray levels of each gray level pixel point in the medical image, and determine the gray level category split point in the gray level sorting result based on a preset number of categories.
  • the gray class split point that can be used as the initial cluster center will have a certain impact on the clustering speed and clustering accuracy. Therefore, in order to improve the clustering As a result, the pixel grayscale of each grayscale pixel point in the medical image can be sorted first, and then the grayscale category splitting point can be determined in the grayscale sorting result based on the preset number of categories. Exemplarily, assuming that a medical image includes 900 grayscale pixels and the number of categories is 90, then the pixel grayscales ranked at the 10th, 20th, ..., 900th can be used as grayscale category splitting points.
  • the region boundary obtained by clustering is subsequently delineated by the gradient edge to detect the target region, then when the number of categories is very small, the region boundary is likely to be larger than the gradient edge. It means that the region boundary cannot be delineated based on the gradient edge, that is, the candidate region corresponding to the target region obtained by clustering can be the under-segmentation result of the target region, which facilitates the subsequent traversal of the region boundary of each candidate region to make it The gradient edge is gradually approached, so the number of classes can be a large number.
  • the gray level split point can be used as the initial cluster center, and each gray pixel point is clustered based on the cluster center and the pixel gray level of each gray pixel point. For example, for each gray pixel point, Compare the grayscale distance between the grayscale pixel point and each cluster center, and take the category of the cluster center corresponding to the smallest grayscale distance as the clustering result of the grayscale pixel point, that is, the grayscale pixel point It is classified into the category where the cluster center corresponding to the smallest grayscale distance is located, thereby realizing the effect of accurate clustering of each grayscale pixel point.
  • the following scheme can be used for clustering: for each grayscale pixel point, determine the pixel grayscale of the grayscale pixel point and the grayscale distance between each cluster center, and The grayscale pixels are clustered into the category of the cluster center corresponding to the minimum grayscale distance; the grayscale distortion is determined according to the minimum grayscale distance corresponding to each grayscale pixel, and whether the grayscale distortion is satisfied
  • the preset clustering end condition which may be whether the grayscale distortion is less than a preset threshold, and whether the absolute value of the difference between the grayscale distortion of this iteration and the grayscale distortion of the previous iteration is less than the relative Error threshold, etc.; if not, then for each category, re-determine the cluster center of the category according to the pixel gray level of each gray pixel point belonging to the category after clustering, and repeat the execution of determining the pixels of the gray pixel point The steps of the grayscale and the grayscale distance between each cluster center, until the grayscale distortion
  • a gradient image corresponding to the medical image is generated according to the grayscale of each pixel, and a gradient edge in the gradient image is determined according to the pixel gradient of each gradient pixel point in the gradient image.
  • S604 according to the coupling degree between the region boundary and the gradient edge of each candidate region, detect the target region from each candidate region.
  • the gray-scale category splitting point (ie, the initial cluster center) is determined in the sorting result of the pixel gray levels of each gray-scale pixel point by using a preset number of categories, and based on the cluster center and each The pixel gray level is used to cluster each gray level pixel point, thereby realizing the effect of adaptive gray level clustering for each gray level pixel point based on a relatively accurate initial cluster center.
  • the LBG algorithm is a relatively classic algorithm for image compression based on vector quantization, and uses Lloyd iteration to find an optimal solution, which can effectively divide the training vector set.
  • the steps to design vector quantization are as follows: Suppose the training vector set is,
  • the entire iterative algorithm stops, otherwise, according to the centroid condition, add the values in the corresponding dimensions of all vectors in each cell, and then divide by the number of all vectors in the cell, as the centroid of the cell, using
  • each grayscale pixel point can be used as a vector to perform training based on the LBG algorithm. Since the LBG algorithm is relatively dependent on the initial codebook, the pixel gray levels of each gray pixel point can be sorted here, and the gray level split points can be determined in the gray level sorting result based on the preset number of categories, and then the gray level can be sorted This grayscale class split point serves as the initial codebook for LBG iteration.
  • the process of detecting the target region from each candidate region according to the coupling degree between the region boundary and the gradient edge of each candidate region for the current region in each candidate region may specifically include: Obtain the first similarity of each current pixel in the current boundary of the current area and each edge pixel in the gradient edge at the pixel position, and each current pixel and each target pixel in the target boundary of the candidate area that has been detected as the target area.
  • the embodiment of the present disclosure may include the following steps:
  • a gradient image corresponding to the medical image is generated according to the grayscale of each pixel, and a gradient edge in the gradient image is determined according to the pixel gradient of each gradient pixel point in the gradient image.
  • the current area is the candidate area to be detected at the current moment
  • the current boundary is the area boundary of the current area
  • the current pixel point is the pixel point on the current boundary
  • the first similarity can indicate each current pixel point and each edge
  • the similarity of the pixel points in the pixel position which can be determined by the ratio between the first number of each current pixel point and the second number of the current pixel point that can be the same or similar to an edge pixel point in the pixel position Sure.
  • the current area since each time the current area is selected from each candidate area, it can be detected whether the current area is the target area, which means that after the current area is updated, there may be candidate areas that have been detected as the target area.
  • This candidate region is the previous current region.
  • the target boundary is the area boundary of the candidate area that has been detected as the target area
  • the target pixel point is the pixel point on the target boundary.
  • the second similarity can indicate the pixel position of each target pixel point and each edge pixel point. similarity.
  • S704 according to the first degree of similarity, or the first degree of similarity and the second degree of similarity, determine whether the current area is a target area to detect the target area.
  • the current area can be determined as the target area.
  • the first similarity is high, that is, the coupling degree between each current pixel and each edge pixel is high
  • the current area can be determined as the target area.
  • the first similarity may be 50% ;
  • the first similarity is not very high, it cannot be directly considered that the current area is not the target area at this time, because part of the current boundary of the current area may coincide with the gradient edge, and another part coincides with the target boundary.
  • the area can also be used as the target area. Exemplarily, as shown in FIG.
  • each current region can be detected by using the above steps, thereby realizing the effect of detecting the target region from each candidate region.
  • the detection process of the target area may be to determine the area detection order of each candidate area according to the area attribute of the target area to be detected, and select the area detection order from each candidate area according to the area detection order.
  • the current area is filtered out of the area.
  • the target area is determined to be a high-attenuation area according to the area attribute as an example.
  • the candidate area corresponding to the high-attenuation area is usually a low-gray candidate area.
  • the detection of the region starts; according to the coupling degree between the region boundary and the gradient edge of the current region, it is judged whether the current region is used as the target region, and the detection of the target region is realized according to the judgment result; the next region located in the current region in the region detection sequence is used as the current region. area, and repeat the step of judging whether to use the current area as the target area according to the coupling degree between the area boundary of the current area and the gradient edge, until the detected candidate area and/or gradient edge meet the preset judgment end condition, the judgment
  • the ending condition may include that the number of detected candidate regions is greater than a preset number threshold, gradient edges no longer exist, etc., which are not specifically limited here.
  • the first similarity of each current pixel point in the current boundary and each edge pixel point in the gradient edge in the pixel position, and each current pixel point and the target boundary of the candidate area that has been detected as the target area The second similarity of each target pixel in the pixel position determines whether the current area is the target area, thereby achieving the effect of accurate detection of the target area in different situations.
  • step by step traverse each category of the area grayscale from low to high in the LBG classification, take the currently undetected candidate area of the lowest category as the current area, and perform a calculation on the current area.
  • the current boundary is compared with the gradient edge. If the number of current pixels in the current boundary that are the same or similar to the edge pixels on the gradient edge at the pixel position reaches a certain proportion of the total number of current pixels, then the current boundary is considered to be the current boundary.
  • the area belongs to a part of the high attenuation area; if the above conditions are not met, it can be further judged whether a part of the current boundary is relatively close to the gradient edge, and the other part is the area boundary (ie the target boundary) that has been detected as a high attenuation area. If it is relatively close, the current area can also be judged as a high attenuation area. Further, set the edge pixels on the gradient edge that is close to the high attenuation area as 0, that is, set the edge pixels occupied by the target boundary as 0. Repeat the above steps until you reach the category where the gray level of the relatively large area in the LBG classification is located and/or the gradient edge no longer exists in the gradient image.
  • the reason for this setting is that the former should theoretically have completed the goal at this time.
  • the detection of the area but it has not been completed in the actual application, it may be that there is an error in the area detection process, and the loss should be stopped in time; the latter means that all the high attenuation areas have been detected, and the detection can be stopped at this time.
  • the detection process of the direct exposure area and the high attenuation area can be changed from low to high area detection order to high to low area detection order, changing the lowest category to the highest category, and traversing to the LBG classification.
  • the category where the gray level of the relatively large area is located in the LBG classification is changed to the category where the gray level of the relatively small area in the LBG classification is traversed, and the rest of the steps are the same, and will not be repeated here.
  • steps in the flowcharts of FIG. 2 to FIG. 13 are displayed in sequence according to the arrows, these steps are not necessarily executed in the sequence indicated by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and these steps may be performed in other orders. Moreover, at least a part of the steps in FIG. 2 to FIG. 13 may include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but may be executed at different times. The order of execution is also not necessarily sequential, but may be performed alternately or alternately with other steps or at least a portion of the steps or stages within the other steps.
  • a mammography image acquisition apparatus comprising:
  • a type determination module 801 configured to perform a stress test on the breast part of the object to be detected, and determine the type of the breast part according to the stress test result;
  • the quantification parameter determination module 802 is used for acquiring the optical image of the breast part, and performing identification processing on the optical image to obtain the quantification parameter of the breast part;
  • the acquisition parameter determination module 803 is configured to determine the image acquisition parameter of the breast part according to the type of the breast part and the quantification parameter, and acquire the X-ray image of the breast part according to the image acquisition parameter.
  • the device further includes:
  • the registration module 804 is configured to register the optical image with the X-ray image, and display the breast contour on the X-ray image or display mammography image information on the optical image according to the registration result.
  • the above-mentioned type determination module 801 includes:
  • the variation relationship determining unit is used to perform a pressure test on the breast part by using the compression component, and obtain the variation relationship between the compression force generated during the pressure test and the compression thickness of the breast part;
  • the type determination unit is used for determining the type of the breast part according to the changing relationship between the compression force and the compression thickness.
  • the above-mentioned changing relationship includes changing curvature;
  • the above-mentioned type determining unit includes:
  • the comparison subunit is used to compare the changing curvature with the preset curvature threshold
  • the determining subunit is used for determining that the type of the breast part is fat when the change curvature is greater than the curvature threshold value; when the changing curvature is not greater than the curvature threshold value, determining the type of the breast part is the dense type.
  • the above-mentioned acquisition parameter determination module 803 includes:
  • a first radiation field determining unit configured to determine the radiation field corresponding to the breast part according to the quantitative parameter
  • the acquisition parameter determination unit is used for determining the image acquisition parameters of the breast part according to the type of the breast part and the radiation field corresponding to the breast part.
  • the above-mentioned acquisition parameter determination module 803 includes:
  • the identification unit is used for identifying and processing the optical image to obtain the breast contour;
  • the breast contour includes the positions of a plurality of points;
  • the calculation unit is used to perform mathematical operation processing on the position of each point on the breast contour to obtain the volume of the breast part; or, perform mathematical operation processing on the position of each point on the breast contour to obtain the projected area of the breast part on the compression device.
  • the image acquisition parameters include a first image acquisition parameter and a second image acquisition parameter;
  • the acquisition parameter determination module 803 includes:
  • the second radiation field determining unit is configured to obtain the radiation field corresponding to the breast part according to the volume or projected area of the breast part;
  • a first acquisition parameter determination unit configured to determine the radiation field corresponding to the breast part as the first image acquisition parameter
  • the second acquisition parameter determination unit is configured to determine the second image acquisition parameter according to the type of the breast part.
  • the above-mentioned second acquisition parameter determination unit includes:
  • the compression thickness obtaining subunit is used to obtain the actual compression thickness of the breast part under preset conditions
  • the acquisition parameter determination subunit is used for determining the second image acquisition parameter according to the type of the breast part and the actual compression thickness.
  • the above acquisition parameter determination subunit is further configured to obtain the second image acquisition parameter corresponding to the type of the breast part and the actual compression thickness in a preset mapping table according to the type of the breast part and the actual compression thickness; wherein, The mapping table includes the types and compression thicknesses of multiple groups of parts, and the second image acquisition parameters corresponding to the types and compression thicknesses of each group of parts; the second image acquisition parameters are used to characterize the power of the radiation source and the filter of the beam limiter. over the way.
  • the above-mentioned identification unit is specifically configured to perform identification processing on the optical image to obtain the pixel value of each pixel in the optical image; and determine the breast contour through an image segmentation algorithm according to the pixel value of each pixel.
  • the above-mentioned identification unit is specifically used to obtain a segmentation threshold; according to the segmentation threshold and the pixel value of each pixel point, the optical image is segmented into a breast area image and a background area image; the outline of the breast area image is used as the breast area image. contour.
  • the above-mentioned registration module 804 is specifically configured to extract multiple first features in the optical image and multiple second features in the X-ray image through a feature extraction algorithm; according to the first features and the second features , to register the optical image with the X-ray image.
  • the above-mentioned registration module 804 is specifically configured to perform feature matching between the first feature and the second feature through similarity measurement and cluster analysis; according to the coordinates of the first feature in the optical image, the second feature The coordinates of the feature in the X-ray image are obtained, and the coordinate mapping function is obtained; according to the coordinate mapping function, the optical image and the X-ray image are registered.
  • the above-mentioned registration module 804 is specifically configured to obtain position information of the breast contour in the X-ray image according to the breast contour, the optical image and the registered X-ray image; and display the breast on the X-ray image. contour.
  • the above-mentioned registration module 804 is specifically configured to determine the position information of the breast in the optical image according to the outline of the breast and the optical image; according to the position information of the breast in the optical image and the registered X-ray image , to obtain the position information of the breast in the X-ray image.
  • the device further includes:
  • the candidate region determination module is used to cluster each grayscale pixel point according to the pixel grayscale of each grayscale pixel point in the X-ray image, and use the region where each grayscale pixel point belonging to the same category is located as a candidate region;
  • the gradient edge determination module is used to generate a gradient image corresponding to the X-ray image according to the gray level of each pixel, and determine the gradient edge in the gradient image according to the pixel gradient of each gradient pixel point in the gradient image;
  • the target area detection module is used to detect the target area from each candidate area according to the coupling degree between the area boundary and the gradient edge of each candidate area.
  • the above-mentioned candidate region determination module includes:
  • the gray-scale category split point determination unit is used to sort the pixel gray levels of each gray-scale pixel point in the X-ray image, and determine the gray-scale category split point in the gray-scale sorting result based on the preset number of categories;
  • the gray-scale pixel point clustering unit is used to use the gray-scale category split point as the initial cluster center, and cluster each gray-scale pixel point based on the cluster center and the pixel gray level of each gray-scale pixel point.
  • the gray-scale pixel point clustering unit is specifically configured to, for each gray-scale pixel point, determine the pixel gray-scale of the gray-scale pixel point and the gray-scale distance between each cluster center, and calculate the gray-scale pixel point Pixels are clustered into the category of the cluster center corresponding to the minimum grayscale distance; grayscale distortion is determined according to the minimum grayscale distance corresponding to each grayscale pixel point, and whether the grayscale distortion meets the preset value is determined.
  • Clustering end condition if not, then for each category, re-determine the cluster center of the category according to the pixel grayscale of each grayscale pixel point belonging to the category after clustering; repeat the execution to determine the pixel of the grayscale pixel point The steps of the grayscale and the grayscale distance between each cluster center, until the grayscale distortion satisfies the clustering end condition, the clustering ends.
  • a mammography image display device comprising:
  • an acquisition module 805 configured to acquire an optical image of the breast and an X-ray image of the breast part of interest; wherein, the optical image is a visible light image;
  • a contour calculation module 806, configured to determine the breast contour according to the optical image
  • a registration module 807 configured to register the optical image with the X-ray image
  • the position calculation module 808 is used for displaying the outline of the breast on the X-ray image, or displaying the X-ray information of the part of interest of the breast on the optical image.
  • the contour calculation module identifies the breast contour in the optical image, and then the registration module registers the optical image and the X-ray image, and the position calculation module can obtain the position information of the breast contour in the X-ray image, so as to The breast contour is displayed in the X-ray image, and the relative position of the X-ray image in the whole breast is marked with respect to the doctor's experience.
  • the method in this embodiment solves the problem that the X-ray imaging device can only obtain a partial image of the breast, so that the doctor can only judge the relative position of the lesion and the entire breast according to experience, the efficiency is low and the error is large, which improves the doctor's ability to diagnose Diagnostic efficiency in the process and accuracy of location annotation.
  • an area detection device is provided, and the device includes:
  • the candidate area determination module 809 is used to cluster each grayscale pixel point according to the pixel grayscale of each grayscale pixel point in the medical image, and take the area where each grayscale pixel point belonging to the same category is located as a candidate area;
  • the gradient edge determination module 810 is used to generate a gradient image corresponding to the medical image according to the gray level of each pixel, and determine the gradient edge in the gradient image according to the pixel gradient of each gradient pixel point in the gradient image;
  • the target area detection module 811 is configured to detect the target area from each candidate area according to the coupling degree between the area boundary and the gradient edge of each candidate area.
  • the candidate region determination module includes:
  • the gray-scale category split point determination unit is used to sort the pixel gray levels of each gray-scale pixel point in the medical image, and determine the gray-scale category split point in the gray-scale sorting result based on the preset number of categories;
  • the gray-scale pixel point clustering unit is used to use the gray-scale category split point as the initial cluster center, and cluster each gray-scale pixel point based on the cluster center and the pixel gray level of each gray-scale pixel point.
  • the optional gray-scale pixel clustering unit can be used for:
  • each grayscale pixel point determines the pixel grayscale of the grayscale pixel point and the grayscale distance between each cluster center, and cluster the grayscale pixel points to the cluster center corresponding to the smallest grayscale distance. in the category;
  • the above-mentioned gradient edge determination module includes:
  • the grayscale category area screening unit is used to screen out the grayscale category area corresponding to the regional attribute of the target area to be detected from each candidate area according to the regional grayscale of each candidate area;
  • the first gradient edge determination unit is configured to determine the gradient edge in the gradient image according to the pixel gradient of the gradient pixel points in the gradient image corresponding to the pixel points of each region in the gray-scale category area.
  • the above-mentioned gradient edge determination module includes:
  • the binary image generation unit is used to sort each gradient pixel point based on the pixel gradient of each gradient pixel point in the gradient image, and filter each gradient pixel point according to the sorting position of each gradient pixel point in the sorting result , generate a binary image corresponding to the gradient image;
  • the second gradient edge determination unit is configured to use the binary edge formed by each binary pixel in the binary image as the gradient edge of the gradient image.
  • the above-mentioned target region detection module includes:
  • the similarity obtaining unit is used to obtain the first similarity at the pixel position of each current pixel in the current boundary of the current area and each edge pixel in the gradient edge, as well as each current pixel and the candidate area that has been detected as the target area
  • the first target area detection unit is configured to determine whether the current area is the target area according to the first similarity, or the first similarity and the second similarity, so as to detect the target area.
  • the above-mentioned target area detection module includes:
  • the current area screening unit is used to determine the area detection order of each candidate area according to the area attribute of the target area, and screen out the current area from each candidate area according to the area detection order;
  • the second target area detection unit is used to judge whether the current area is used as the target area according to the coupling degree between the area boundary of the current area and the gradient edge, and to detect the target area according to the judgment result;
  • the iterative execution unit is used for taking the next area located in the current area in the area detection sequence as the current area, and repeating the steps of judging whether to use the current area as the target area according to the coupling degree between the area boundary and the gradient edge of the current area, Until the detected candidate region and/or the gradient edge satisfies the preset judgment end condition.
  • Each module in the above apparatus may be implemented in whole or in part by software, hardware and combinations thereof.
  • the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
  • a computer device is provided, and the computer device may be a terminal, and its internal structure diagram may be as shown in FIG. 17 .
  • the computer equipment includes a processor, memory, a communication interface, a display screen, and an input device connected by a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium, an internal memory.
  • the nonvolatile storage medium stores an operating system and a computer program.
  • the internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium.
  • the communication interface of the computer equipment is used for wired or wireless communication with external terminals, and the wireless communication can be realized by WIFI, operator network, NFC (Near Field Communication) or other technologies.
  • the computer program when executed by a processor, implements a mammography image display method.
  • the display screen of the computer equipment may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment may be a touch layer covered on the display screen, or a button, a trackball or a touchpad set on the shell of the computer equipment , or an external keyboard, trackpad, or mouse.
  • FIG. 17 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. Include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.
  • a computer device including a memory and a processor, where a computer program is stored in the memory, and the processor implements the steps in the above method when executing the computer program.
  • a computer-readable storage medium is provided on which a computer program is stored, and when the computer program is executed by a processor, implements the steps in the above method.
  • Non-volatile memory may include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, or optical memory, and the like.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • the RAM may be in various forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM).

Abstract

The present application relates to a breast X-ray radiography acquisition method and apparatus, and a computer device and a storage medium. The method comprises: performing a pressure test on a breast part of an object to be subjected to detection, and determining the type of the breast part according to a pressure test result; acquiring an optical image of the breast part, and performing identification processing on the optical image to obtain a quantization parameter of the breast part; and determining an image collection parameter of the breast part according to the type and the quantization parameter of the breast part, and acquiring X-ray radiography of the breast part according to the image collection parameter. By means of the method, a patient can be prevented from receiving a dose of radiation that is too high, and the problem of a relatively low efficiency and a relatively great error caused by a doctor only being able to empirically determine the position of a lesion relative to a whole breast is solved.

Description

乳房X射线图像获取方法、装置、计算机设备和存储介质Mammographic image acquisition method, apparatus, computer equipment and storage medium
相关申请Related applications
本申请要求2020年08月14日申请的,申请号为202010817353.6,名称为“图像采集参数获取方法、装置、设备、系统和存储介质”和2020年8月27日申请的,申请号为202010880432.1,名称为“乳房X射线图像显示方法、装置和存储介质”的中国专利申请的优先权,以及2020年12月31日申请的,申请号为202011630482.0,名称为“一种区域检测方法、装置、设备及存储介质”。在此将其全文引入作为参考。This application requires the application on August 14, 2020, the application number is 202010817353.6, and the title is "Image acquisition parameter acquisition method, device, equipment, system and storage medium" and August 27, 2020 The application number is 202010880432.1, The priority of the Chinese patent application titled "Mammary X-ray Image Display Method, Device and Storage Medium", and the application number 202011630482.0 filed on December 31, 2020, titled "A method, device, device for area detection" and storage media". It is hereby incorporated by reference in its entirety.
技术领域technical field
本申请涉及医学图像技术领域,特别是涉及一种乳房X射线图像获取方法、装置、计算机设备和存储介质。The present application relates to the technical field of medical images, and in particular, to a method, apparatus, computer equipment and storage medium for acquiring a mammogram.
背景技术Background technique
乳房疾病是一种严重威胁女性健康的重要疾病,近年来,随着医疗成像技术的发展,乳房疾病的检测诊断准确率也在逐渐提高,通常情况下,对乳房疾病的检测和诊断过程需要通过X射线图像(X-ray Radiography,简称XR)实现。Breast disease is an important disease that seriously threatens women's health. In recent years, with the development of medical imaging technology, the detection and diagnosis accuracy of breast disease is gradually improving. X-ray image (X-ray Radiography, XR for short) realization.
现有技术中在采集患者的X射线数据时,通常是采用预曝光的方式得到患者乳腺区域的灰度图像,然后通过该灰度图像上乳腺区域的灰度变化趋势进行分析,获得第二次数据采集的相关采集参数,这样就可以利用采集参数设置X射线机,实现数据采集和图像重建。然而,上述技术存在成像时间长,导致患者接受的辐射剂量过多的问题。In the prior art, when collecting X-ray data of a patient, a pre-exposure method is usually used to obtain a grayscale image of the breast region of the patient, and then the grayscale change trend of the breast region on the grayscale image is analyzed to obtain the second time. The relevant acquisition parameters of data acquisition, so that the X-ray machine can be set by the acquisition parameters to realize data acquisition and image reconstruction. However, the above-mentioned techniques have the problem of long imaging time, resulting in excessive radiation dose received by the patient.
进一步地,在得到X射线图像之后,医生需要通过查看X射线图像来判断病灶的位置,但是在相关技术中,X射线图像设备仅能获取乳房的局部图像,医生只能根据经验判断X射线图像中的病灶在整个乳房中的位置,效率较低且误差较大。目前针对相关技术中X射线图像设备仅能获取乳房的局部图像,导致医生在判断病灶与整个乳房的相对位置的过程中,效率较低且误差较大的问题,尚未提出有效的解决方案。Further, after obtaining the X-ray image, the doctor needs to judge the location of the lesion by viewing the X-ray image, but in the related art, the X-ray imaging device can only obtain the partial image of the breast, and the doctor can only judge the X-ray image based on experience. The location of the lesions in the whole breast is less efficient and has larger errors. At present, X-ray imaging equipment in the related art can only obtain partial images of the breast, which leads to low efficiency and large errors in the process of judging the relative position of the lesion and the entire breast, and no effective solution has been proposed yet.
发明内容SUMMARY OF THE INVENTION
基于此,有必要针对上述技术问题,提供一种乳房X射线图像获取方法、装置、计算机设备和存储介质,能够避免患者接收过多的辐射剂量,解决医生在判断病灶与整个乳房的相对位置的过程中,效率较低且误差较大的问题。Based on this, it is necessary to provide a mammographic X-ray image acquisition method, device, computer equipment and storage medium in view of the above technical problems, which can prevent the patient from receiving excessive radiation dose and solve the problem of doctors in judging the relative position of the lesion and the entire breast. In the process, the efficiency is low and the error is large.
第一方面,提供了一种乳房X射线图像获取方法,该方法包括:In a first aspect, a method for acquiring a mammogram is provided, the method comprising:
对待检测对象的乳房部位进行压力测试,并根据压力测试结果确定乳房部位的类型;Carry out a stress test on the breast part of the object to be tested, and determine the type of breast part according to the stress test results;
获取乳房部位的光学图像,并对光学图像进行识别处理得到乳房部位的量化参数;Obtain the optical image of the breast part, and identify and process the optical image to obtain the quantitative parameters of the breast part;
根据乳房部位的类型和量化参数确定乳房部位的图像采集参数,并根据图像采集参数获取乳房部位的X射线图像。Image acquisition parameters of the breast part are determined according to the type of the breast part and quantification parameters, and an X-ray image of the breast part is acquired according to the image acquisition parameters.
第二方面,提供一种乳房X射线图像显示方法,该方法包括:A second aspect provides a mammogram display method, the method comprising:
获取乳房的光学图像以及乳房感兴趣部位的X射线图像;Obtain optical images of the breast as well as X-ray images of the breast area of interest;
根据光学图像,确定乳房轮廓;According to the optical image, determine the breast contour;
将光学图像与X射线图像进行配准;register the optical image with the X-ray image;
在X射线图像上显示乳房轮廓,或者在光学图像上显示乳房感兴趣部位的X射线信息。The outline of the breast is displayed on the X-ray image, or the X-ray information of the breast area of interest is displayed on the optical image.
第三方面,提供一种乳房X射线图像采集方法,该方法包括:In a third aspect, a method for acquiring a mammogram is provided, the method comprising:
控制压迫板压迫乳房;Control the compression plate to compress the breast;
控制光学图像采集单元采集压迫状态下乳房的光学图像,并确定所述光学图像中的乳房轮廓;Controlling the optical image acquisition unit to acquire an optical image of the breast in the compressed state, and determining the outline of the breast in the optical image;
控制X射线图像采集单元采集压迫状态下乳房的X射线图像;Controlling the X-ray image acquisition unit to acquire the X-ray image of the breast under compression;
将所述光学图像与所述X射线图像进行配准,并在所述X射线图像上显示所述乳房轮廓或者在所述光学图像上显示乳房感兴趣部位的X射线信息。The optical image is registered with the X-ray image, and the breast contour is displayed on the X-ray image or the X-ray information of the breast part of interest is displayed on the optical image.
第四方面,提供了一种区域检测方法,该方法包括:In a fourth aspect, an area detection method is provided, the method comprising:
根据医学图像中各灰度像素点的像素灰度对各所述灰度像素点进行聚类,并将隶属于同一类别的各所述灰度像素点所在的区域作为候选区域;According to the pixel gray level of each gray pixel point in the medical image, each gray pixel point is clustered, and the region where each gray pixel point belonging to the same category is located is used as a candidate region;
根据各所述像素灰度生成与所述医学图像对应的梯度图像,并根据所述梯度图像中各梯度像素点的像素梯度确定所述梯度图像内的梯度边缘;A gradient image corresponding to the medical image is generated according to each pixel grayscale, and a gradient edge in the gradient image is determined according to the pixel gradient of each gradient pixel point in the gradient image;
根据每个所述候选区域的区域边界和所述梯度边缘间的耦合度,从各所述候选区域中检测出目标区域。A target region is detected from each of the candidate regions according to the degree of coupling between the region boundary of each of the candidate regions and the gradient edge.
第五方面,提供了一种计算机设备,包括存储器和处理器,存储器存储有计算机程序,处理器执行计算机程序时实现第一方面、第二方面、第三方面和第四方面所述的步骤。In a fifth aspect, a computer device is provided, including a memory and a processor, the memory stores a computer program, and the processor implements the steps of the first, second, third and fourth aspects when executing the computer program.
第六方面,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现第一方面、第二方面、第三方面和第四方面所述的步骤。In a sixth aspect, a computer-readable storage medium is provided on which a computer program is stored, and when the computer program is executed by a processor, the steps described in the first aspect, the second aspect, the third aspect and the fourth aspect are implemented.
上述乳房X射线图像获取方法、装置、计算机设备和存储介质,通过对待检测对象的乳房部位进行压力测试,并根据压力测试结果确定乳房部位的类型,同时通过乳房部位的光学图像得到可以表征乳房部位大小的量化参数,根据乳房部位的类型和量化参数确定用于采集乳房部位的医学图像的图像采集参数,并根据图像采集参数获取乳房部位的X射线图像,然后,将光学图像与X射线图像进行配准,并根据配准结果在X射线图像上显示乳房轮廓。在 本公开实施例中,由于可以通过乳房部位的类型和量化参数确定其对应的医学图像采集参数,这样在得到乳房部位的医学图像时,只需要通过该确定的医学图像采集参数对乳房部位曝光一次就可以得到其对应的射线图像,相比传统的需要两次成像才能得到乳房部位的X射线图像,本公开实施例得到X射线图像的时间更短,相应地患者所接受的辐射剂量也更少,从而可以避免患者接收过多的辐射剂量。并且,将光学图像和X射线图像进行配准,可以直接获取乳房轮廓在该X射线图像中的位置信息,相对于医生根据经验标注X射线图像在整个乳房中的相对位置,本公开实施例解决了X射线图像设备仅能获取乳房的局部图像,导致医生仅能根据经验判断病灶与整个乳房的相对位置,效率较低且误差较大的问题,提高了医生在诊断过程中的诊断效率和位置标注的准确度。The above-mentioned method, device, computer equipment and storage medium for obtaining mammograms are performed by performing a stress test on the breast part of the object to be detected, and the type of the breast part is determined according to the stress test result, and the breast part can be characterized by obtaining the optical image of the breast part. The quantification parameters of the size are determined according to the type and quantification parameters of the breast part, and the image acquisition parameters used to acquire the medical image of the breast part are determined, and the X-ray image of the breast part is acquired according to the image acquisition parameters, and then the optical image is compared with the X-ray image. Registration is performed, and the breast contour is displayed on the X-ray image based on the registration results. In the embodiment of the present disclosure, since the corresponding medical image acquisition parameters can be determined by the type and quantification parameters of the breast part, when obtaining the medical image of the breast part, only the breast part needs to be exposed through the determined medical image acquisition parameters The corresponding X-ray image can be obtained once. Compared with the traditional X-ray image that requires two imaging to obtain the X-ray image, the time for obtaining the X-ray image in the embodiment of the present disclosure is shorter, and the radiation dose received by the patient is correspondingly higher. so that the patient can be prevented from receiving excessive radiation doses. In addition, by registering the optical image and the X-ray image, the position information of the breast contour in the X-ray image can be directly obtained. Compared with the doctor's experience marking the relative position of the X-ray image in the entire breast, the embodiment of the present disclosure solves the problem. X-ray imaging equipment can only obtain partial images of the breast, so that doctors can only judge the relative position of the lesion and the entire breast based on experience, which is inefficient and has large errors, which improves the diagnosis efficiency and position of doctors in the diagnosis process. The accuracy of the labeling.
附图说明Description of drawings
图1a为一个实施例中乳房X射线图像显示方法的应用环境图之一;Fig. 1a is one of the application environment diagrams of the mammography image display method in one embodiment;
图1b为一个实施例中乳房X射线图像显示方法的应用环境图之二;Fig. 1b is the second application environment diagram of the mammography image display method in one embodiment;
图2为一个实施例中乳房X射线图像显示方法的流程示意图之一;FIG. 2 is one of the schematic flow charts of a mammogram display method in one embodiment;
图3为一个实施例中乳房X射线图像显示方法的流程示意图之二;3 is a second schematic flowchart of a method for displaying a mammogram in one embodiment;
图4为一个实施例中根据测试结果确定乳房部位的类型步骤的流程示意图;4 is a schematic flowchart of steps of determining the type of breast part according to the test result in one embodiment;
图5为一个实施例中得到乳房部位的量化参数步骤的流程示意图;FIG. 5 is a schematic flowchart of a step of obtaining quantitative parameters of a breast part in one embodiment;
图6为一个实施例中得到乳房部位的图像采集参数步骤的流程示意图;FIG. 6 is a schematic flowchart of a step of obtaining image acquisition parameters of a breast part in one embodiment;
图7为一个实施例中确定乳房轮廓步骤的流程示意图;7 is a schematic flowchart of steps of determining a breast contour in one embodiment;
图8为一个实施例中将光学图像与X射线图像进行配准步骤的流程示意图;8 is a schematic flowchart of a step of registering an optical image and an X-ray image in one embodiment;
图9为一个实施例中探测区域的示意图;9 is a schematic diagram of a detection area in one embodiment;
图10为一个实施例中检测出目标区域步骤的流程示意图;10 is a schematic flowchart of a step of detecting a target area in one embodiment;
图11为一个实施例中对各灰度像素点进行聚类步骤的流程示意图;11 is a schematic flowchart of a step of clustering each grayscale pixel point in one embodiment;
图12为一个实施例中从各候选区域中检测出目标区域步骤的流程示意图;12 is a schematic flowchart of a step of detecting a target region from each candidate region in one embodiment;
图13a为一个实施例中的一种区域检测方法中可选示例的示意图;13a is a schematic diagram of an optional example of a region detection method in one embodiment;
图13b为一个实施例中一种区域检测方法中可选示例的示意图;13b is a schematic diagram of an optional example of a region detection method in one embodiment;
图14为一个实施例中乳房X射线图像获取装置的结构框图;FIG. 14 is a structural block diagram of a mammography image acquisition apparatus in one embodiment;
图15为一个实施例中乳房X射线图像显示装置的结构框图;FIG. 15 is a structural block diagram of a mammography image display apparatus in one embodiment;
图16为一个实施例中区域检测装置的结构框图;16 is a structural block diagram of a region detection apparatus in one embodiment;
图17为一个实施例中计算机设备的内部结构图。Figure 17 is a diagram of the internal structure of a computer device in one embodiment.
具体实施方式detailed description
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申 请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.
本申请实施例提供的乳房X射线图像显示方法,可以应用于图1a所示的医学成像系统10,该医学成像系统10包括医学成像设备11、光学成像设备12和计算机设备13。The breast X-ray image display method provided by the embodiments of the present application can be applied to the medical imaging system 10 shown in FIG.
上述医学成像设备11可以为乳腺机。如图1b所示,乳腺机11可以包括机架111、转动支架112、医学成像组件113以及压迫组件114。转动支架112可转动地连接于机架111;医学成像组件113安装于转动支架112且能够跟随转动支架112转动,以获取不同角度的X射线图像;压迫组件114安装于机架111,压迫组件114用于承载和压迫患者的乳房,以使得乳房形变为相对薄和均匀的形状,进而便于获得高质量的医学图像。机架111用于承载转动支架112、医学成像组件113以及压迫组件114,转动支架112能够相对于机架111转动,并带动安装在转动支架112上的医学成像组件113一同转动,从而使得医学成像组件113与压迫组件114之间形成夹角,医学成像组件113能够获取患者乳房在不同角度下的图像,便于医师准确地判断病灶的位置。医学成像组件113包括射线源1131、限束器以及探测器1132,射线源1131与探测器1132分别设置于转动支架112的两端,且射线源1131与探测器1132之间形成拍摄区域。压迫组件114包括压迫板1141、压迫平台1142和驱动部件。The above-mentioned medical imaging device 11 may be a breast machine. As shown in FIG. 1 b , the breast machine 11 may include a frame 111 , a rotating support 112 , a medical imaging assembly 113 and a compression assembly 114 . The rotating bracket 112 is rotatably connected to the gantry 111 ; the medical imaging component 113 is installed on the rotating bracket 112 and can rotate with the rotating bracket 112 to obtain X-ray images of different angles; the compression component 114 is installed on the gantry 111 , and the compression component 114 It is used to carry and compress a patient's breast to shape the breast into a relatively thin and uniform shape, thereby facilitating high-quality medical images. The frame 111 is used to carry the rotating bracket 112, the medical imaging assembly 113 and the compression assembly 114. The rotating bracket 112 can rotate relative to the frame 111 and drive the medical imaging assembly 113 installed on the rotating bracket 112 to rotate together, thereby enabling medical imaging An angle is formed between the component 113 and the compression component 114, and the medical imaging component 113 can acquire images of the patient's breast at different angles, so that the physician can accurately determine the location of the lesion. The medical imaging assembly 113 includes a radiation source 1131 , a beam limiter and a detector 1132 . The radiation source 1131 and the detector 1132 are respectively disposed at two ends of the rotating bracket 112 , and a shooting area is formed between the radiation source 1131 and the detector 1132 . The compression assembly 114 includes a compression plate 1141, a compression platform 1142, and a drive member.
医学成像设备11,用于采集乳房部位的医学图像;射线源1131可以是阵列X射线源,也可以采用常规的单发射源。阵列X射线源可以采用线阵X射线源和/或面阵X射线源。阵列X射线源中的任意一个X射线源或者单发射源既可以是场致发射X射线源,也可以是热阴极X射线源。限束器通常设置于射线源1131输出窗的前方。探测器1132探测(获取)射线源1131发射的X射线经过乳房部位后的投影数据,乳房部位位于探测器1132和压迫组件114之间,并将投影数据传输给计算机设备13进行处理,该探测器1132可以是平板探测器,当然也可以是其他类型的探测器。The medical imaging device 11 is used for collecting medical images of the breast; the radiation source 1131 may be an array X-ray source, or a conventional single emission source. The array X-ray source may adopt a linear array X-ray source and/or an area array X-ray source. Any X-ray source or single emission source in the array X-ray source can be either a field emission X-ray source or a hot cathode X-ray source. The beam limiter is usually arranged in front of the output window of the radiation source 1131 . The detector 1132 detects (acquires) projection data of the X-rays emitted by the radiation source 1131 after passing through the breast part, which is located between the detector 1132 and the compression component 114, and transmits the projection data to the computer device 13 for processing, the detector 1132 can be a flat panel detector, and of course other types of detectors.
光学成像设备12,用于采集待检测对象的乳房部位的光学图像;例如可以是光学相机等。光学成像设备12可以将采集的光学图像传输给计算机设备13进行处理。The optical imaging device 12 is used to acquire an optical image of the breast part of the object to be detected; for example, it may be an optical camera or the like. The optical imaging device 12 may transmit the acquired optical images to the computer device 13 for processing.
计算机设备13可以是服务器,可以用独立的服务器或者是多个服务器组成的服务器集群来实现。当然也可以是终端,可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备等。The computer device 13 may be a server, which may be implemented by an independent server or a server cluster composed of multiple servers. Of course, it can also be a terminal, which can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, portable wearable devices, and the like.
需要说明的是,本申请以下实施例的执行主体可以是计算机设备,也可以是医学成像系统,以下就以计算机设备为例进行说明。It should be noted that the execution subject of the following embodiments of the present application may be a computer device or a medical imaging system, and the computer device will be used as an example for description below.
在一个实施例中,提供了一种乳房X射线图像显示方法,本实施例涉及的是获取乳房部位的光学图像和X射线图像,根据光学图像与X射线图像的配准结果在X射线图像上显示乳房轮廓的具体过程。如图2所示,该方法包括以下步骤:In one embodiment, a method for displaying a mammary X-ray image is provided. This embodiment involves acquiring an optical image and an X-ray image of a breast part, and displaying the X-ray image on the X-ray image according to the registration result of the optical image and the X-ray image. The specific process of showing breast contours. As shown in Figure 2, the method includes the following steps:
S201,对待检测对象的乳房部位进行压力测试,并根据压力测试结果确定乳房部位的类 型。S201, perform a stress test on the breast part of the object to be detected, and determine the type of the breast part according to the stress test result.
其中,这里的乳房部位可以是两侧乳房,也可以是单侧乳房,本实施例在进行压力测试时,主要针对单侧乳房进行说明,另一侧乳房可以在该侧乳房成像完成之后再进行同样的操作。Wherein, the breast part here can be both breasts or one breast. When performing the stress test in this embodiment, the description is mainly for one breast, and the other breast can be performed after the imaging of the breast is completed. Same operation.
在压力测试过程中,乳房部位可以放置在压迫板和探测器中间。计算机设备可以通过软件输出电信号等方式来控制驱动部件运动,驱动部件给压迫板施加压力,以驱动压迫板运动,压迫板可以是上下运动,或者左右运动,或者前后运动,总之通过驱动部件驱动压迫板运动,可以使位于压迫板与探测器中间的乳房部位的厚度发生变化。同时也可以获知在压迫板运动过程中压迫板的受力情况,这样就可以对压迫板的受力情况以及乳房部位的厚度变化情况进行分析,得到乳房部位的类型。可选的,这里乳房部位的类型可以包括脂肪型、致密型,当然还可以包括其他类型,这些均可以根据实际情况设定。During a stress test, the breast area can be placed between the compression plate and the detector. The computer equipment can control the movement of the driving part by outputting electrical signals from the software. The driving part applies pressure to the compression plate to drive the movement of the compression plate. The compression plate can move up and down, or move left and right, or move back and forth. The movement of the compression plate can change the thickness of the breast area between the compression plate and the detector. At the same time, the force of the compression plate during the movement of the compression plate can also be known, so that the force of the compression plate and the thickness change of the breast part can be analyzed to obtain the type of the breast part. Optionally, the types of breast parts here may include fat type, dense type, and of course other types, which can be set according to actual conditions.
S202,获取乳房部位的光学图像,并对光学图像进行识别处理得到乳房部位的量化参数;该量化参数用于表征乳房部位在压迫状态下的大小。S202 , an optical image of the breast part is acquired, and the optical image is identified and processed to obtain a quantitative parameter of the breast part; the quantitative parameter is used to characterize the size of the breast part in a compressed state.
其中,本步骤获取乳房部位的光学图像的时机可以是在执行完压力测试后,即在执行完S201之后。这里的压力测试是否完成可以通过预定时长来表征,例如在预定时长内通过压迫板不断对乳房部位施加压力,在预设时长到达时,就认为压力测试完成。或者,压力测试是否完成还可以用乳房部位的压迫厚度来表征,例如在通过压迫板不断对乳房部位施加压力时,当乳房部位的厚度被压迫到特定厚度时,就可以认为压力测试完成。当然还可以是其他表征方式,总之可以获得压力测试是否完成的结果。Wherein, the timing of acquiring the optical image of the breast part in this step may be after the stress test is performed, that is, after the execution of S201. Whether the stress test is completed here can be characterized by a predetermined period of time, for example, pressure is continuously applied to the breast region through the compression plate within the predetermined period of time, and when the preset period of time is reached, the stress test is considered to be completed. Alternatively, the completion of the stress test can also be characterized by the compression thickness of the breast part. For example, when the breast part is continuously pressed by the compression plate, when the thickness of the breast part is compressed to a certain thickness, the stress test can be considered complete. Of course, other characterization methods are also possible, in short, the results of whether the stress test is completed can be obtained.
当然,本步骤获取乳房部位的光学图像的时机也可以是在S201之前,即可以预先对乳房部位进行压迫,使乳房部位处于压迫状态,并将乳房部位压迫至一定厚度时,获取乳房部位在该压迫状态下的光学图像。Of course, the timing of acquiring the optical image of the breast part in this step can also be before S201, that is, the breast part can be compressed in advance, so that the breast part is in a compressed state, and when the breast part is compressed to a certain thickness, the breast part can be obtained in this Optical image under compression.
总之,不论是在上述的压力测试完成后还是在压力测试之前,乳房部位都会被压迫到一个比较薄的厚度,此时乳房部位薄而均匀,从而使得乳房部位结构中的重叠软组织比较容易分离,以便能够得到高质量的乳房部位医学图像或光学图像。In a word, whether after the above stress test is completed or before the stress test, the breast will be compressed to a relatively thin thickness. At this time, the breast is thin and uniform, so that the overlapping soft tissue in the breast structure is easier to separate. In order to be able to obtain high-quality medical or optical images of the breast region.
具体的,在乳房部位处于压迫状态时,可以采用光学成像设备对该乳房部位进行图像拍摄,得到该乳房部位的光学图像,然后光学成像设备可以将该光学图像传输给计算机设备,这样计算机设备就可以获得乳房部位的光学图像。其中,光学成像设备可以包括摄像头,该摄像头可以为2D或者3D摄像头。Specifically, when the breast part is in a compressed state, an optical imaging device can be used to capture an image of the breast part to obtain an optical image of the breast part, and then the optical imaging device can transmit the optical image to the computer device, so that the computer device can An optical image of the breast area can be obtained. Wherein, the optical imaging device may include a camera, and the camera may be a 2D or 3D camera.
之后,计算机设备可以通过图像识别算法对光学图像进行识别,识别出其中的乳房部位,得到乳房部位的轮廓、形态等,进而通过对乳房部位的轮廓和形态进行分析和计算,就可以得到乳房部位的大小、体积、面积等参数,称为乳房部位的量化参数。After that, the computer equipment can identify the optical image through the image recognition algorithm, identify the breast part in it, and obtain the contour and shape of the breast part, and then analyze and calculate the contour and shape of the breast part to obtain the breast part. The size, volume, area and other parameters of the breast are called quantitative parameters of the breast part.
其中,图像识别算法可以是基于几何特征的算法、基于模板的算法和基于模型的算法等 等;例如基于模型的算法,可以是基于神经网络模型的识别算法。Wherein, the image recognition algorithm can be an algorithm based on geometric features, a template-based algorithm, a model-based algorithm, etc.; for example, a model-based algorithm can be a recognition algorithm based on a neural network model.
以基于模型的算法为例,该模型可以是神经网络模型,那么在使用该神经网络模型进行识别之前,可以对神经网络模型进行训练。Taking a model-based algorithm as an example, the model may be a neural network model, and before using the neural network model for identification, the neural network model may be trained.
训练过程可以包括:获取训练图像集,该训练图像集中的每个训练图像均是乳房部位的光学图像,每个训练图像上均包括乳房的标注位置信息;之后,可以将训练图像集中的各个训练图像作为初始神经网络模型的输入,将每个训练图像对应的乳房的标注位置信息作为初始神经网络模型的参考输出,对该初始神经网络模型进行训练,得到训练好的神经网络模型。The training process may include: acquiring a training image set, each training image in the training image set is an optical image of a breast part, and each training image includes labeling position information of the breast; after that, each training image in the training image set may be The image is used as the input of the initial neural network model, and the labeled position information of the breast corresponding to each training image is used as the reference output of the initial neural network model, and the initial neural network model is trained to obtain a trained neural network model.
在神经网络模型训练好之后,就可以将测试的乳房部位的光学图像输入至该神经网络模型中,得到该测试的光学图像上的乳房的位置信息,那么就可以得到其中乳房的轮廓、形态等信息。After the neural network model is trained, the optical image of the breast part under test can be input into the neural network model to obtain the position information of the breast on the optical image of the test, then the contour and shape of the breast can be obtained. information.
S203,根据乳房部位的类型和量化参数,确定乳房部位的图像采集参数,并根据图像采集参数获取乳房部位的X射线图像。S203, according to the type of the breast part and the quantification parameter, determine the image acquisition parameter of the breast part, and acquire the X-ray image of the breast part according to the image acquisition parameter.
其中,图像采集参数可以是采集医学图像时所需给医学成像系统中的部件设置的参数,例如可以包括射线源的设置参数、限束器的设置参数等。The image acquisition parameters may be parameters set for components in the medical imaging system when collecting medical images, for example, may include setting parameters of a ray source, setting parameters of a beam limiter, and the like.
在上述得到乳房部位的类型和相关量化参数之后,可以通过查表、计算等方式得到乳房部位的图像采集参数。其中可以包括射线源的设置参数、限束器的设置参数等,那么就可以按照射线源的设置参数对射线源进行设置,按照限束器的设置参数对限束器进行设置。After obtaining the type of the breast part and the relevant quantitative parameters, the image acquisition parameters of the breast part can be obtained by means of table look-up, calculation and the like. It may include setting parameters of the ray source, setting parameters of the beam limiter, etc., then the ray source can be set according to the setting parameters of the ray source, and the beam limiter can be set according to the setting parameters of the beam limiter.
在射线源和限束器等设置好参数之后,就可以采用设置好参数的射线源和限束器等去对乳房部位发射X射线,并通过探测器进行数据采集,以及通过对采集的数据进行图像重建,就可以得到乳房部位的X射线图像。After the parameters of the ray source and the beam limiter are set, the ray source and the beam limiter with the set parameters can be used to emit X-rays to the breast part, and the data can be collected by the detector, and the collected data can be collected by Image reconstruction, an X-ray image of the breast area can be obtained.
上述实施例中,通过对待检测对象的乳房部位进行压力测试,并根据压力测试结果确定乳房部位的类型,同时通过乳房部位的光学图像得到可以表征乳房部位大小的量化参数,根据乳房部位的类型和量化参数确定用于采集乳房部位的医学图像的图像采集参数,并根据图像采集参数获取乳房部位的X射线图像,然后,将光学图像与X射线图像进行配准,并根据配准结果在X射线图像上显示乳房轮廓。在本公开实施例中,由于可以通过乳房部位的类型和量化参数确定其对应的医学图像采集参数,这样在需要得到乳房部位的医学图像时,只需要通过该确定的医学图像采集参数对乳房部位曝光一次就可以得到其对应的射线图像,相比传统的需要两次成像才能得到乳房部位的X射线图像,本公开实施例得到X射线图像的时间更短,相应地患者所接受的辐射剂量也更少,从而可以避免患者接收过多的辐射剂量。In the above embodiment, a stress test is performed on the breast part of the object to be detected, and the type of the breast part is determined according to the result of the stress test, and a quantitative parameter that can characterize the size of the breast part is obtained through the optical image of the breast part. The quantification parameter determines the image acquisition parameters used to acquire the medical image of the breast part, and obtains the X-ray image of the breast part according to the image acquisition parameters, then, the optical image is registered with the X-ray image, and the X-ray image is registered according to the registration result. The outline of the breast is shown on the image. In the embodiment of the present disclosure, since the corresponding medical image acquisition parameters can be determined according to the type and quantification parameters of the breast part, when a medical image of the breast part needs to be obtained, it is only necessary to use the determined medical image acquisition parameters for the breast part. The corresponding X-ray image can be obtained with one exposure. Compared with the traditional X-ray image that requires two imaging to obtain the X-ray image, the time for obtaining the X-ray image in the embodiment of the present disclosure is shorter, and the radiation dose received by the patient is also reduced accordingly. less, so that the patient can be prevented from receiving excessive radiation doses.
在一个实施例中,如图3所示,在上述实施例的基础上,本公开实施例还可以包括:In one embodiment, as shown in FIG. 3 , on the basis of the foregoing embodiment, the embodiment of the present disclosure may further include:
S204,将光学图像与X射线图像进行配准,并根据配准结果在X射线图像上显示乳房轮廓或者在光学图像上显示乳房X射线图像信息。S204 , register the optical image with the X-ray image, and display the breast contour on the X-ray image or display mammography image information on the optical image according to the registration result.
其中,配准是指将通过不同成像手段采集到的图像在同一坐标系下进行匹配,具体的匹配方式包括几何纠正、投影变换与统一比例尺等。Among them, registration refers to matching images collected by different imaging methods in the same coordinate system, and the specific matching methods include geometric correction, projection transformation and unified scale.
在获取到光学图像和X射线图像之后,可以通过图像配准确定乳房在X射线图像中的位置信息。可选地,该位置信息可以为乳房轮廓在X射线图像中的坐标信息。在一种例子中,X射线图像的成像面积较小,仅针对乳房的病灶位置进行拍摄,因此可以根据位置信息在X射线图像中显示乳房轮廓。After the optical image and the X-ray image are acquired, the position information of the breast in the X-ray image can be determined through image registration. Optionally, the position information may be coordinate information of the breast contour in the X-ray image. In one example, the imaging area of the X-ray image is small, and only the position of the breast lesion is captured, so the outline of the breast can be displayed in the X-ray image according to the position information.
在获取到光学图像和X射线图像之后,也可以通过图像配准确定乳房在光学图像中的位置信息,根据位置信息在光学图像中显示乳房轮廓。可选地,该位置信息可以为乳房轮廓在光学图像中的坐标信息。After the optical image and the X-ray image are acquired, the position information of the breast in the optical image can also be determined by image matching, and the outline of the breast can be displayed in the optical image according to the position information. Optionally, the position information may be coordinate information of the breast contour in the optical image.
上述实施例中,将光学图像和X射线图像进行配准,可以直接获取乳房轮廓在该X射线图像中的位置信息,相对于医生根据经验标注X射线图像在整个乳房中的相对位置,本公开实施例解决了医生通过经验(比如询问并触摸乳房的方式)获得需要照射的乳房部位信息后将限束器开口设置到合适大小后通过X射线图像设备仅获取乳房的局部图像时,导致医生仅能根据经验判断病灶与整个乳房的相对位置,效率较低且误差较大的问题,提高了医生在诊断过程中的诊断效率和位置标注的准确度。In the above embodiment, the optical image and the X-ray image are registered, and the position information of the breast contour in the X-ray image can be directly obtained, and the relative position of the X-ray image in the whole breast is marked by the doctor according to the experience. The embodiment solves the problem that when the doctor obtains the information of the breast part that needs to be irradiated through experience (such as the way of asking and touching the breast), after setting the beam limiter opening to an appropriate size, and only obtaining the partial image of the breast through the X-ray imaging device, the doctor only needs to The relative position of the lesion and the entire breast can be judged based on experience, which has low efficiency and large error, which improves the doctor's diagnostic efficiency and the accuracy of position labeling during the diagnosis process.
在一个实施例中,涉及的是对乳房部位进行压力测试,并根据测试结果确定乳房部位的类型的具体过程。在上述实施例的基础上,如图4所示,上述S201可以包括以下步骤:In one embodiment, a specific process of stress testing a breast area and determining the type of breast area based on the test results is involved. On the basis of the foregoing embodiment, as shown in FIG. 4 , the foregoing S201 may include the following steps:
S2011,利用压迫组件对乳房部位进行压力测试,得到压力测试过程中产生的压迫力和乳房部位的压迫厚度之间的变化关系;该乳房部位的压迫厚度为乳房部位在受到压迫力作用时的厚度。S2011, use the compression component to perform a pressure test on the breast part, and obtain the changing relationship between the compression force generated during the pressure test and the compression thickness of the breast part; the compression thickness of the breast part is the thickness of the breast part under the action of the compression force .
在对乳房部位进行压力测试过程中,压迫板压迫乳房部位时,会产生一个压迫力,采用不同的压迫力去压迫乳房部位,乳房部位的厚度也会发生变化。During the stress test on the breast part, when the compression plate presses the breast part, a pressure force will be generated. When different pressure forces are used to press the breast part, the thickness of the breast part will also change.
可以理解地,在压力测试过程中,采用不同的压力去压迫乳房部位,就可以得到在不同的压迫力下,乳房部位被压迫后的厚度,记为压迫厚度,即就可以得到不同压迫力下的压迫厚度的变化趋势,记为压迫力和压迫厚度之间的变化关系。It is understandable that during the stress test, by using different pressures to compress the breast, the thickness of the breast after being compressed under different compression forces can be obtained, which is recorded as the compression thickness. The change trend of the compression thickness is recorded as the relationship between the compression force and the compression thickness.
当然,可以将上述压迫力和压迫厚度的变化关系用曲线进行表示,例如坐标轴的横轴为压迫厚度,纵轴为压迫力,通过将不同的压迫力对应的压迫厚度填充到该坐标轴下的相应位置处,并对填充的各个点进行连线,或者线性拟合,或者曲线拟合,就可以得到压迫力和压迫厚度之间的变化曲线。Of course, the changing relationship between the pressing force and the pressing thickness can be represented by a curve. For example, the horizontal axis of the coordinate axis is the pressing thickness, and the vertical axis is the pressing force. By filling the pressing thickness corresponding to different pressing forces under the coordinate axis The corresponding position of the compressive force and the compressed thickness can be obtained by connecting lines, or linear fitting, or curve fitting to each point of the filling.
S2012,根据压迫力与压迫厚度之间的变化关系,确定乳房部位的类型。S2012, determining the type of the breast part according to the changing relationship between the compression force and the compression thickness.
在得到压迫力和压迫厚度之间的变化曲线之后,即变化关系之后,可选地,上述变化关系包括变化曲率,那么可以将变化曲率和预设的曲率阈值进行对比;若变化曲率大于曲率阈 值,则确定乳房部位的类型为脂肪型;否则,确定乳房部位的类型为致密型。After obtaining the variation curve between the compression force and compression thickness, that is, after the variation relationship, optionally, the variation relationship includes the variation curvature, then the variation curvature can be compared with the preset curvature threshold; if the variation curvature is greater than the curvature threshold , the type of the breast part is determined to be fat; otherwise, the type of breast part is determined to be dense.
也就是说,在得到该乳房部位的压迫力和压迫厚度之间的变化曲线之后,可以计算曲线上任意一点的曲率,并将计算的一个点的曲率和曲率阈值进行对比,当计算的曲率大于曲率阈值时,可以认为该乳房部位的压迫力和压迫厚度变化较快,那么可以认为该乳房部位的类型为脂肪型(脂肪型在这里可以理解为乳房部位的脂肪比较多,同样压迫力下,其厚度更薄)。That is to say, after obtaining the change curve between the compression force and compression thickness of the breast part, the curvature of any point on the curve can be calculated, and the calculated curvature of a point can be compared with the curvature threshold. When the calculated curvature is greater than When the curvature threshold is set, it can be considered that the compression force and compression thickness of the breast part change rapidly, then the type of the breast part can be considered to be fat type (here, the fat type can be understood as more fat in the breast part, and under the same compression force, its thickness is thinner).
当然,也会有计算的曲率不大于曲率阈值,即小于等于曲率阈值,那么可以认为该乳房部位的压迫力和压迫厚度变化较慢,那么可以认为该乳房部位的类型为致密型(致密型在这里可以理解为乳房部位的脂肪比较少,同样压迫力下,其厚度更厚)。Of course, if the calculated curvature is not greater than the curvature threshold, that is, less than or equal to the curvature threshold, it can be considered that the compression force and compression thickness of the breast part change slowly, then the type of the breast part can be considered to be dense (the dense type in It can be understood here that there is less fat in the breast area, and the thickness is thicker under the same pressure).
需要说明的是,这里的脂肪型和致密型的分类类型只是一个示例,当然还可以有更多的分类类型,例如可以以曲率大于曲率阈值的多少来进行分类。It should be noted that the classification types of fat type and dense type here are just an example, of course, there may be more classification types, for example, classification can be performed according to how much the curvature is greater than the curvature threshold.
上述实施例中,获得压力测试过程中,乳房部位受到的压迫力和压迫厚度之间的变化关系,并通过该变化关系得到乳房部位的类型。通过本公开实施例,可以通过压迫力和压迫厚度之间的变化关系确定乳房部位的类型,该确定方式较为简单,得到的类型结果也比较准确。In the above embodiment, the variation relationship between the compression force and compression thickness on the breast part during the stress test is obtained, and the type of the breast part is obtained through the variation relationship. Through the embodiment of the present disclosure, the type of the breast part can be determined through the changing relationship between the compression force and the compression thickness, the determination method is relatively simple, and the obtained type result is relatively accurate.
在一个实施例中,涉及的是对光学图像进行识别,得到乳房部位的量化参数的具体过程。在上述实施例的基础上,如图5所示,上述S202可以包括以下步骤:In one embodiment, it involves a specific process of identifying optical images to obtain quantitative parameters of the breast region. On the basis of the foregoing embodiment, as shown in FIG. 5 , the foregoing S202 may include the following steps:
S2021,对光学图像进行识别处理得到乳房轮廓;乳房轮廓包括多个点的位置。S2021, performing identification processing on the optical image to obtain a breast contour; the breast contour includes the positions of multiple points.
S2022,对乳房轮廓上各个点的位置进行数学运算处理,得到乳房部位的体积;或者,对乳房轮廓上各个点的位置进行数学运算处理,得到乳房部位在压迫装置上的投影面积。S2022, perform mathematical operation processing on the positions of each point on the breast contour to obtain the volume of the breast part; or, perform mathematical operation processing on the positions of each point on the breast contour to obtain the projected area of the breast part on the compression device.
在本公开实施例中,识别处理可以采用如上S202的图像识别算法,在此不在赘述。In this embodiment of the present disclosure, the image recognition algorithm in S202 above may be used for the recognition processing, which will not be repeated here.
需要说明的是,这里的光学图像也是在压力测试完成之后,乳房部位处于薄而均匀的状态时采集得到的。It should be noted that the optical images here are also acquired after the stress test is completed and the breast area is in a thin and uniform state.
具体的,通过采用图像识别算法对获得的光学图像进行识别,就可以识别出乳房部位的乳房轮廓,同时可以得到乳房轮廓上各个点的位置信息。Specifically, by using an image recognition algorithm to recognize the obtained optical image, the breast contour of the breast part can be identified, and the position information of each point on the breast contour can be obtained at the same time.
在得到乳房轮廓上各个点的位置信息之后,可以根据乳房轮廓的水平方向上的最底边计算乳房部位的长宽,将竖直方向作为乳房部位的高度方向,计算乳房部位的高度,并将计算的长、宽、高做乘积,得到乳房部位的体积。After the position information of each point on the breast contour is obtained, the length and width of the breast part can be calculated according to the bottommost edge in the horizontal direction of the breast contour, and the vertical direction is used as the height direction of the breast part to calculate the height of the breast part, and calculate the height of the breast part. Multiply the calculated length, width and height to get the volume of the breast part.
另外,乳房部位在压迫组件上的投影面积指的是乳房部位在压迫组件中的压迫板上的投影面积。通常乳房部位在被压迫过程中,压迫板一般是与人体竖直方向垂直的,也就是说,这里的投影面积是乳房部位在水平方向上的投影面积。In addition, the projected area of the breast part on the compression assembly refers to the projected area of the breast part on the compression plate in the compression assembly. Usually, when the breast is compressed, the compression plate is generally perpendicular to the vertical direction of the human body, that is, the projected area here is the projected area of the breast in the horizontal direction.
那么在上述得到乳房部位的体积之后,由于乳房部位的体积是通过上述计算的长、宽、高得到的,那么在这里计算水平方向上的投影面积时,可以利用上述体积计算中长和宽,得到投影面积。Then, after obtaining the volume of the breast part above, since the volume of the breast part is obtained by calculating the length, width and height above, then when calculating the projected area in the horizontal direction, the above volume can be used to calculate the middle length and width, Get the projected area.
需要说明的是,这里的投影面积可以是在乳房部位处于压迫状态,且处于乳房部位处于薄而均匀的状态时计算的。It should be noted that the projected area here may be calculated when the breast part is in a compressed state and the breast part is in a thin and uniform state.
上述实施例中,通过对光学图像进行识别得到的乳房轮廓上各个点的位置,从而计算得到乳房部位的体积或者乳房部位在压迫装置上的投影面积。在本公开实施例中,通过乳房部位的轮廓位置计算其体积或投影面积,这样计算的乳房部位的体积或投影面积更符合实际情况,也更加准确。In the above embodiment, the position of each point on the breast contour is obtained by identifying the optical image, thereby calculating the volume of the breast part or the projected area of the breast part on the compression device. In the embodiment of the present disclosure, the volume or projected area of the breast part is calculated based on the contour position of the breast part, so that the calculated volume or projected area of the breast part is more in line with the actual situation and more accurate.
在一个实施例中,涉及的是根据乳房部位的类型和量化参数得到乳房部位的图像采集参数的一种可实施方式。在上述实施例的基础上,上述S203可以包括以下步骤:In one embodiment, a possible implementation of obtaining image acquisition parameters of a breast part based on the type and quantification parameters of the breast part is involved. On the basis of the foregoing embodiment, the foregoing S203 may include the following steps:
步骤一,根据量化参数,确定乳房部位对应的辐射野。Step 1: Determine the radiation field corresponding to the breast part according to the quantitative parameter.
步骤二,根据乳房部位的类型和乳房部位对应的辐射野,确定乳房部位的图像采集参数。Step 2: Determine the image acquisition parameters of the breast part according to the type of the breast part and the radiation field corresponding to the breast part.
其中,量化参数可以包括乳房部位的大小、体积、面积等参数。在得到量化参数之后,可以直接将乳房部位的大小,或者体积,或者面积等直接作为乳房部位的辐射野,即乳房部位受辐射的范围大小。The quantification parameters may include parameters such as size, volume, and area of the breast part. After obtaining the quantitative parameters, the size, volume, or area of the breast part can be directly used as the radiation field of the breast part, that is, the size of the radiation range of the breast part.
之后,可以将乳房部位的辐射野作为限束器的设置参数,对限束器进行设置。同时也可以以通过查表、计算等方式得到乳房部位的图像采集参数。其中可以包括射线源的设置参数、限束器的设置参数等,那么就可以按照射线源的设置参数对射线源进行设置,按照限束器的设置参数对限束器进行设置。After that, the radiation field of the breast can be used as the setting parameter of the beam limiter to set the beam limiter. At the same time, the image acquisition parameters of the breast part can also be obtained by means of table look-up, calculation and the like. It may include setting parameters of the ray source, setting parameters of the beam limiter, etc., then the ray source can be set according to the setting parameters of the ray source, and the beam limiter can be set according to the setting parameters of the beam limiter.
上述实施例中,通过量化参数中乳房部位的大小、面积、体积等参数得到乳房部位的辐射野,并根据乳房部位的类型和辐射野确定乳房部位的图像采集参数。通过本公开实施例,可以较为简单准确地得到乳房部位的辐射野以及图像采集参数,从而在医学成像过程中可以尽可能避免待检测对象接受不必要的辐射。In the above embodiment, the radiation field of the breast part is obtained by quantifying parameters such as the size, area, and volume of the breast part, and the image acquisition parameters of the breast part are determined according to the type of the breast part and the radiation field. Through the embodiments of the present disclosure, the radiation field and image acquisition parameters of the breast can be obtained relatively simply and accurately, so that the object to be detected can be prevented from receiving unnecessary radiation as much as possible during the medical imaging process.
在一个实施例中,上述图像采集参数包括第一图像采集参数和第二图像采集参数;本公开实施例涉及的是根据乳房部位的类型和量化参数,得到乳房部位的图像采集参数的一种可实施方式。在上述实施例的基础上,如图6所示,上述S203可以包括以下步骤:In one embodiment, the above-mentioned image acquisition parameters include a first image acquisition parameter and a second image acquisition parameter; the embodiment of the present disclosure relates to a method for obtaining the image acquisition parameters of the breast part according to the type and quantification parameter of the breast part. implementation. On the basis of the foregoing embodiment, as shown in FIG. 6 , the foregoing S203 may include the following steps:
S2031,根据乳房部位的体积或投影面积,得到乳房部位对应的辐射野。S2031, according to the volume or projected area of the breast part, obtain the radiation field corresponding to the breast part.
S2032,将乳房部位对应的辐射野确定为第一图像采集参数。S2032: Determine the radiation field corresponding to the breast part as the first image acquisition parameter.
在得到乳房部位的体积或者乳房部位在压迫板上的投影面积之后,以投影面积为例,就可以将该投影面积作为对乳房部位进行X射线图像成像时的成像面积大小,即在对乳房部位进行X射线图像成像时,乳房部位所接受X射线的辐射野。而辐射野通常是依据限束器的开口大小来表现的,那么这里的投影面积也就是限束器的开口大小。示例地,可以是18*25cm等。After obtaining the volume of the breast part or the projected area of the breast part on the compression plate, taking the projected area as an example, the projected area can be used as the size of the imaging area during X-ray imaging of the breast part, that is, when the breast part is imaged. The radiation field of the X-rays received by the breast during X-ray imaging. The radiation field is usually expressed according to the opening size of the beam limiter, so the projected area here is also the opening size of the beam limiter. For example, it can be 18*25cm, etc.
S2033,根据乳房部位的类型,确定第二图像采集参数。S2033, according to the type of the breast part, determine the second image acquisition parameter.
先获取乳房部位在预设条件下的实际压迫厚度;该预设条件与待检测对象对压迫力的承受程度相关。然后,根据乳房部位的类型和实际压迫厚度,确定第二图像采集参数。First, the actual compression thickness of the breast part under a preset condition is obtained; the preset condition is related to the tolerance of the object to be detected to the compression force. Then, according to the type of the breast part and the actual compression thickness, the second image acquisition parameters are determined.
在实际对待检测对象的乳房部位进行X射线图像成像时,考虑到待检测对象个体对压迫力的耐受程度,可以将待检测对象在处于对压迫力耐受的临界状态时,获取此时乳房部位的压迫厚度,并将此时的压迫厚度作为实际进行X射线成像时的压迫厚度,即实际压迫厚度。When actually performing X-ray image imaging on the breast of the object to be detected, taking into account the tolerance of the individual to be detected to the compression force, the breast can be obtained when the object to be detected is in a critical state of resistance to compression force. The compression thickness of the part is determined, and the compression thickness at this time is regarded as the compression thickness when the X-ray imaging is actually performed, that is, the actual compression thickness.
在得到乳房部位的实际压迫厚度以及乳房部位的类型之后,可选的,可以根据乳房部位的类型和实际压迫厚度,在预设的映射表中得到乳房部位的类型和实际压迫厚度对应的第二图像采集参数;其中,映射表中包括多组部位的类型和压迫厚度,以及每组部位的类型和压迫厚度所对应的第二图像采集参数;该第二图像采集参数用于表征射线源的功率和限束器的滤过方式。After the actual compression thickness of the breast part and the type of the breast part are obtained, optionally, according to the type of the breast part and the actual compression thickness, a second mapping table corresponding to the type of the breast part and the actual compression thickness can be obtained in the preset mapping table Image acquisition parameters; wherein, the mapping table includes the types and compression thicknesses of multiple groups of parts, and the second image acquisition parameters corresponding to the types and compression thicknesses of each group of parts; the second image acquisition parameters are used to characterize the power of the ray source and beam limiter filtering.
也就是说,可以预先设置一个映射表,其中包括不同的类型(即乳房部位的类型)以及不同的压迫厚度和射线源的功率以及限束器的滤过方式之间的对应关系。其中,射线源的功率可以采用电流和电压表示,例如可以采用KV、mas表示。That is to say, a mapping table can be preset, which includes different types (ie, types of breast parts) and the corresponding relationship between different compression thicknesses, powers of radiation sources, and filtering methods of the beam limiter. Wherein, the power of the ray source can be expressed by current and voltage, for example, it can be expressed by KV and mas.
示例地,该映射表可以参见如下表1所示:For example, the mapping table can be referred to as shown in Table 1 below:
Figure PCTCN2021112733-appb-000001
Figure PCTCN2021112733-appb-000001
那么在上述得到实际压迫厚度以及乳房部位的类型之后,通过查表的方式,就可以得到该实际压迫厚度以及乳房部位的类型所对应的射线源的功率、限束器的滤过方式。Then, after the actual compression thickness and the type of breast part are obtained above, the power of the ray source and the filtering method of the beam limiter corresponding to the actual compression thickness and the type of breast part can be obtained by looking up the table.
之后,就可以用查表得到的射线源的功率参数,去设置射线源的电压和电流,同样可以用查表得到的滤过方式去设置限束器的滤过。设置好射线源和限束器之后,就可以采用设置好参数的射线源和限束器等去对乳房部位发射X射线,并进行数据采集,以及通过对采集的数据进行图像重建,就可以得到乳房部位的X射线图像。After that, you can use the power parameters of the ray source obtained by looking up the table to set the voltage and current of the ray source, and you can also use the filtering method obtained by looking up the table to set the filtering of the beam limiter. After setting the ray source and the beam limiter, you can use the ray source and the beam limiter with the set parameters to emit X-rays to the breast, and perform data acquisition, and by reconstructing the collected data, you can get X-ray image of the breast area.
上述实施例中,通过乳房部位的体积或在压迫装置上的投影面积,得到乳房部位的辐射野,同时通过乳房部位的类型和实际压迫厚度,得到射线源的功率和限束器的滤过方式。在本公开实施例中,通过具体的体积或投影面积得到乳房部位的辐射野,这样得到的辐射野比 较准确,从而在X射线成像过程中可以尽可能避免待检测对象接受不必要的辐射。另外,通过乳房部位的类型和实际压迫厚度确定射线源的功率和限束器的滤过方式,可以进一步细化成像参数,进一步减少对待检测对象的辐射剂量。In the above embodiment, the radiation field of the breast is obtained by the volume of the breast or the projected area on the compression device, and the power of the radiation source and the filtering method of the beam limiter are obtained by the type of the breast and the actual compression thickness. . In the embodiment of the present disclosure, the radiation field of the breast is obtained through a specific volume or projected area, and the radiation field obtained in this way is relatively accurate, so that the object to be detected can be prevented from receiving unnecessary radiation as much as possible during the X-ray imaging process. In addition, the power of the radiation source and the filtering method of the beam limiter are determined by the type of the breast part and the actual compression thickness, which can further refine the imaging parameters and further reduce the radiation dose of the object to be detected.
在一个实施例中,涉及对光学图像进行识别处理得到乳房轮廓的过程,可以包括:对光学图像进行识别处理,得到光学图像中各像素点的像素值;根据各像素点的像素值,通过图像分割算法确定该乳房轮廓。其中,光学图像为光学图像;图像分割算法为把拍摄得到的图像分成若干个特定的、具有独特性质的区域,并提取出感兴趣目标的技术和过程,是由图像处理到图像分析的关键步骤。图像分割算法主要包括:基于阈值的分割算法、基于区域的分割算法、基于边缘的分割算法以及基于特定理论的分割算法等等。本公开实施例基于图像分割算法,可以将乳房与其他区域进行分割,从而得到乳房轮廓,进一步地,医生根据该乳房轮廓可以更加清楚地获取乳房在X射线图像中的位置信息,进一步提高诊断效率和位置标注的准确率。In one embodiment, the process involving identifying and processing an optical image to obtain a breast contour may include: identifying and processing the optical image to obtain the pixel value of each pixel in the optical image; A segmentation algorithm determines the breast contour. Among them, the optical image is an optical image; the image segmentation algorithm is the technology and process of dividing the captured image into several specific regions with unique properties, and extracting the target of interest, which is a key step from image processing to image analysis. . Image segmentation algorithms mainly include: threshold-based segmentation algorithms, region-based segmentation algorithms, edge-based segmentation algorithms, and segmentation algorithms based on specific theories, etc. Based on the image segmentation algorithm, the embodiment of the present disclosure can segment the breast from other regions to obtain the breast contour. Further, the doctor can obtain the position information of the breast in the X-ray image more clearly according to the breast contour, which further improves the diagnosis efficiency. and location labeling accuracy.
在一个实施例中,涉及的是根据各像素点的像素值,通过图像分割算法确定乳房轮廓的过程。如图7所示,在上述实施例的基础上,本公开实施例可以包括如下步骤:In one embodiment, it involves the process of determining the breast contour through an image segmentation algorithm according to the pixel value of each pixel point. As shown in FIG. 7 , on the basis of the foregoing embodiments, the embodiments of the present disclosure may include the following steps:
S301,获取分割阈值。S301, obtaining a segmentation threshold.
采用基于阈值的分割算法对光学图像进行分割以获取乳房轮廓,本实施例中的分割阈值可以根据光学图像的灰度特征得到。A threshold-based segmentation algorithm is used to segment the optical image to obtain the breast contour, and the segmentation threshold in this embodiment can be obtained according to the grayscale feature of the optical image.
S302,根据该分割阈值以及各像素点的像素值,将光学图像分割为乳房区域图像与背景区域图像。S302, according to the segmentation threshold and the pixel value of each pixel point, segment the optical image into a breast region image and a background region image.
在得到分割阈值之后,通过光学图像中每一个像素的像素值得到每一个像素的灰度值,将该灰度值与分割阈值进行对比,灰度值大于分割阈值的归为一类,灰度值小于或者等于分割阈值的归为另一类。After the segmentation threshold is obtained, the gray value of each pixel is obtained through the pixel value of each pixel in the optical image, and the gray value is compared with the segmentation threshold. The gray value is greater than the segmentation threshold. Values less than or equal to the segmentation threshold are classified into another category.
具体地,通过探测器来辅助获取乳房的X射线图像,探测器通过光信号和电信号的转换,使得X射线图像的画质更清晰。通常情况下,探测器的表面为深色,例如黑色,而人体组织的颜色较浅,因此在获取到光学图像后,可以根据探测器与乳房之间的色差,对光学图像进行分割,从而得到乳房轮廓。本公开实施例的光学图像中,将灰度值大于分割阈值的像素分类为背景区域图像,将灰度值小于或者等于分割阈值的像素分类为乳房区域图像。Specifically, the X-ray image of the breast is assisted by a detector, and the detector converts the light signal and the electrical signal to make the image quality of the X-ray image clearer. Usually, the surface of the detector is dark, such as black, while the color of human tissue is lighter, so after the optical image is acquired, the optical image can be segmented according to the color difference between the detector and the breast, so as to obtain Breast contour. In the optical image of the embodiment of the present disclosure, pixels with a grayscale value greater than a segmentation threshold are classified as a background area image, and pixels with a grayscale value less than or equal to the segmentation threshold are classified as a breast area image.
S303,将该乳房区域图像的轮廓作为乳房轮廓。S303, taking the contour of the breast region image as a breast contour.
本公开实施例采用基于分割阈值的分割算法对光学图像进行分割,计算方法简单,需要计算的数据量少,计算效率较高,可以有效提高对光学图像的分割效率,进一步提高诊断效率。The embodiment of the present disclosure adopts the segmentation algorithm based on segmentation threshold to segment the optical image, the calculation method is simple, the amount of data to be calculated is small, and the calculation efficiency is high, which can effectively improve the segmentation efficiency of the optical image and further improve the diagnosis efficiency.
在一个实施例中,涉及将光学图像与X射线图像进行配准的过程,可以包括:通过特征提取算法提取光学图像中的多个第一特征和X射线图像中的多个第二特征,根据该第一特征以及第二特征,将该光学图像与该X射线图像进行配准。其中,特征提取算法用于提取光学图像和X射线图像中的图像特征,该特征可以为乳房区域图像中的点、线或者区域,光学图像中的第一特征与X射线图像中的第二特征对应于乳房区域图像中的相同特征。由于第一特征属于光学图像,第二特征属于X射线图像,而第一特征与第二特征对应于乳房区域图像的相同特征,因此可以通过第一特征与第二特征之间的对应关系,将光学图像与X射线图像进行配准。本公开实施例基于特征提取算法提取光学图像中的第一特征和X射线图像中的第二特征,通过第一特征与第二特征之间的对应关系实现光学图像与X射线图像之间的配准,提高了乳房在X射线图像中位置信息的判断准确度。In one embodiment, a process involving registering an optical image with an X-ray image may include: extracting a plurality of first features in the optical image and a plurality of second features in the X-ray image through a feature extraction algorithm, according to The first feature and the second feature register the optical image with the X-ray image. Among them, the feature extraction algorithm is used to extract the image features in the optical image and the X-ray image. The feature can be a point, line or area in the breast region image, the first feature in the optical image and the second feature in the X-ray image. corresponds to the same features in the breast region image. Since the first feature belongs to the optical image, the second feature belongs to the X-ray image, and the first feature and the second feature correspond to the same features of the breast region image, so through the correspondence between the first feature and the second feature, the The optical image is registered with the X-ray image. The embodiment of the present disclosure extracts the first feature in the optical image and the second feature in the X-ray image based on the feature extraction algorithm, and realizes the matching between the optical image and the X-ray image through the correspondence between the first feature and the second feature The accuracy of the judgment of the position information of the breast in the X-ray image is improved.
在一个实施例中,涉及的是将光学图像与X射线图像进行配准的过程。在上述实施例中的基础上,如图8所示,本公开实施例可以包括如下步骤:In one embodiment, a process of registering an optical image with an X-ray image is involved. On the basis of the foregoing embodiments, as shown in FIG. 8 , the embodiments of the present disclosure may include the following steps:
S401,通过相似性度量和聚类分析,将该第一特征与第二特征进行特征匹配。S401, perform feature matching on the first feature and the second feature through similarity measurement and cluster analysis.
其中,相似性度量用于评定第一特征与第二特征之间的相近程度。第一特征与第二特征越接近,第一特征与第二特征的相似性度量值越大,第一特征与第二特征越疏远,相似性度量值越小。The similarity measure is used to evaluate the similarity between the first feature and the second feature. The closer the first feature is to the second feature, the greater the similarity measure value between the first feature and the second feature, the more distant the first feature and the second feature are, and the smaller the similarity measure value.
可选地,相似性度量的算法包括:相关系数算法,相似系数算法,样本匹配系数算法或者样本匹配一致度算法等等。聚类分析用于将数据进行分类,是一种无监督学习的过程,聚类分析的算法包括系统聚类法、分解法、加入法、动态聚类法、有序样品聚类、有重叠聚类和模糊聚类等等。Optionally, the similarity measurement algorithm includes: a correlation coefficient algorithm, a similarity coefficient algorithm, a sample matching coefficient algorithm or a sample matching consistency degree algorithm, and the like. Cluster analysis is used to classify data and is an unsupervised learning process. The algorithms of cluster analysis include systematic clustering, decomposition, joining, dynamic clustering, ordered sample clustering, and overlapping clustering. class and fuzzy clustering, etc.
S402,根据第一特征在光学图像中的坐标、第二特征在X射线图像中的坐标,获取坐标映射函数。其中,坐标映射函数根据第一特征的坐标与第二特征的坐标之间的对应关系得到。S402: Obtain a coordinate mapping function according to the coordinates of the first feature in the optical image and the coordinates of the second feature in the X-ray image. The coordinate mapping function is obtained according to the correspondence between the coordinates of the first feature and the coordinates of the second feature.
S403,根据该坐标映射函数,将光学图像与X射线图像进行配准。S403, according to the coordinate mapping function, register the optical image and the X-ray image.
该坐标映射函数可以实现光学图像与X射线图像的像素之间的坐标转换,进而实现光学图像与X射线图像的配准。The coordinate mapping function can realize the coordinate conversion between the pixels of the optical image and the X-ray image, and then realize the registration of the optical image and the X-ray image.
本公开实施例基于坐标变换实现光学图像与X射线图像之间的配准,进一步提高了乳房在X射线图像中位置信息的判断准确度。The embodiment of the present disclosure realizes the registration between the optical image and the X-ray image based on the coordinate transformation, and further improves the judgment accuracy of the position information of the breast in the X-ray image.
在一个实施例中,涉及的是在X射线图像上显示乳房轮廓的过程,可以包括:根据乳房、其光学图像和X射线图像,获取乳房轮廓在该X射线图像中的位置信息,在X射线图像上显示乳房轮廓。通过对光学图像与X射线图像进行配准,可以将X射线图像与光学图像叠加至同一坐标系,因此在将X射线图像与光学图像进行配准后,可以更加准确地获取乳房拍摄区域在X射线图像中的位置信息,从而根据该位置信息在X射线图像上显示乳房轮廓,医生 在进行诊断的过程中,也可以对病灶的位置进行更加准确的判定。In one embodiment, it involves a process of displaying a breast contour on an X-ray image, which may include: obtaining position information of the breast contour in the X-ray image according to the breast, its optical image and the X-ray image, and in the X-ray image The outline of the breast is shown on the image. By registering the optical image and the X-ray image, the X-ray image and the optical image can be superimposed to the same coordinate system. Therefore, after the X-ray image and the optical image are registered, it is possible to more accurately obtain the image of the breast shooting area in the X-ray image. The position information in the X-ray image can be used to display the breast contour on the X-ray image according to the position information. During the diagnosis process, the doctor can also make a more accurate determination of the position of the lesion.
在另一个实施例中,在将X射线图像和光学图像配准后,可以将X射线图像中的乳房X射线图像叠加到光学图像上。In another embodiment, after the X-ray image and the optical image are registered, the mammogram in the X-ray image may be superimposed on the optical image.
在一个实施例中,获取坐标映射函数还需要相机参数,其中,该相机用于获取该光学图像,相机的相机参数包括相机内参和相机外参,具体地,相机内参包括相机的焦距和像平面中心点偏置,相机外参包括相机的安装位置信息和俯仰角。In one embodiment, acquiring the coordinate mapping function also requires camera parameters, where the camera is used to acquire the optical image, and the camera parameters of the camera include camera intrinsic parameters and camera extrinsic parameters, specifically, the camera intrinsic parameters include the focal length of the camera and the image plane. The center point is offset, and the camera extrinsic parameters include the installation position information and pitch angle of the camera.
在一个实施例中,涉及的是根据乳房、其光学图像和X射线图像,获取乳房轮廓在X射线图像中的位置信息的过程,可以包括:根据光学图像,确定乳房在光学图像中的位置信息,其中,该位置信息具体可以为坐标信息;根据乳房在该光学图像中的位置信息以及配准后的X射线图像,获取乳房在该X射线图像中的位置信息,配准后的X射线图像与光学图像之间可以实现坐标对应,通过坐标对应,可以提高获取到的乳房在X射线图像中的位置信息的准确度。In one embodiment, it involves the process of obtaining the position information of the breast contour in the X-ray image according to the breast, its optical image and the X-ray image, which may include: determining the position information of the breast in the optical image according to the optical image , where the position information may specifically be coordinate information; according to the position information of the breast in the optical image and the registered X-ray image, the position information of the breast in the X-ray image is obtained, and the registered X-ray image is obtained. Coordinate correspondence with the optical image can be achieved, and through the coordinate correspondence, the accuracy of the acquired position information of the breast in the X-ray image can be improved.
在一个实施例中,如图9所示,实线框围成的区域为探测器区域,同时为光学图像的成像区域,虚线为通过图像分割算法得到的乳房轮廓,该乳房轮廓将光学图像的成像区域分割为背景区域图像和乳房区域图像,在乳房区域图像中,点线围成的矩形为压迫板区域,同时为X射线图像的成像区域。由于乳房轮廓的存在,医生在图9中,可以获取到乳房在X射线图像中的位置信息,进而提高诊断效率和对病灶位置进行判断的准确度。In one embodiment, as shown in FIG. 9 , the area enclosed by the solid line frame is the detector area and the imaging area of the optical image, and the dashed line is the breast contour obtained by the image segmentation algorithm. The imaging area is divided into the background area image and the breast area image. In the breast area image, the rectangle enclosed by the dotted line is the compression plate area and the imaging area of the X-ray image. Due to the existence of the breast contour, the doctor can obtain the position information of the breast in the X-ray image in FIG. 9 , thereby improving the diagnostic efficiency and the accuracy of judging the location of the lesion.
一个实施例,本公开实施例还可以包括:In one embodiment, the embodiments of the present disclosure may further include:
步骤一,控制压迫板压迫乳房。Step 1: Control the compression plate to compress the breast.
步骤二,控制光学图像采集单元采集压迫状态下乳房的光学图像,并确定光学图像中的乳房轮廓;Step 2, controlling the optical image acquisition unit to collect the optical image of the breast in the compressed state, and determine the breast contour in the optical image;
其中,光学图像为光学图像,包括至少部分乳房轮廓。光学图像采集单元可以为摄像头,光学图像中乳房轮廓的完整程度根据医生对患者的检测范围确定,因此光学图像中的乳腺轮廓可以为完整的乳腺轮廓,也可以只有部分的乳腺轮廓。Wherein, the optical image is an optical image including at least part of the breast contour. The optical image acquisition unit may be a camera, and the completeness of the breast contour in the optical image is determined according to the detection range of the patient by the doctor. Therefore, the breast contour in the optical image may be a complete breast contour or only a partial breast contour.
步骤三,控制X射线图像采集单元采集压迫状态下乳房的X射线图像,其中,X射线图像采集单元可以为X射线成像仪。Step 3, controlling the X-ray image acquisition unit to acquire the X-ray image of the breast in the compressed state, wherein the X-ray image acquisition unit may be an X-ray imager.
步骤四,将光学图像与X射线图像进行配准,并在X射线图像上显示乳房轮廓或者在光学图像上显示乳房感兴趣部位的X射线信息。Step 4, register the optical image with the X-ray image, and display the outline of the breast on the X-ray image or display the X-ray information of the breast part of interest on the optical image.
具体地,通过将X射线图像与光学图像进行配准,可以获取乳房轮廓在X射线图像中的位置,从而在X射线图像中显示乳房轮廓。也可以获取乳房感兴趣部位的X射线信息,从而在光学图像上显示乳房感兴趣部位的X射线信息。Specifically, by registering the X-ray image with the optical image, the position of the breast contour in the X-ray image can be acquired, thereby displaying the breast contour in the X-ray image. It is also possible to acquire X-ray information of the breast part of interest, thereby displaying the X-ray information of the breast part of interest on the optical image.
上述实施例中,在医生对患者进行乳房检测的过程中,可以直接在X射线图像上看到乳 房轮廓,解决了X射线图像设备仅能获取乳房的局部图像,导致医生仅能根据经验判断病灶与整个乳房的相对位置,效率较低且误差较大的问题,提高了医生在诊断过程中的诊断效率和位置标注的准确度。In the above-mentioned embodiment, during the breast detection process of the patient, the doctor can directly see the outline of the breast on the X-ray image, which solves the problem that the X-ray imaging device can only obtain the partial image of the breast, so that the doctor can only judge the lesion based on experience. The relative position of the whole breast has low efficiency and large error, which improves the diagnosis efficiency and the accuracy of position labeling in the diagnosis process of doctors.
在X射线图像中经常会出现灰度值过低的低灰度区域和/或灰度值过高的高灰度区域;其中,低灰度区域可能来自受检者体内的植入物(如人工关节、支架、起搏器、钢板、螺钉等等)、手术过程中用于固定受检者的固定装置(如体外固定装置)、用于定位病灶的定位装置(如定位针、夹子等等)、某些医疗装置中的成像装置(如乳腺穿刺图像中的持针装置等等)等等,该低灰度区域也可以称为高衰减区域;高灰度区域可能来自X射线图像中未穿过身体的区域,其也可以称为直接曝光区域。Low-gray areas with too low gray values and/or high-gray areas with too high gray values often appear in X-ray images; the low-gray areas may come from implants in the subject (eg Artificial joints, stents, pacemakers, plates, screws, etc.), fixation devices (such as external fixation devices) used to fix the subject during surgery, positioning devices used to locate lesions (such as positioning pins, clips, etc.) ), imaging devices in some medical devices (such as needle-holding devices in breast puncture images, etc.), etc., the low-gray area can also be called a high-attenuation area; The area through the body, which may also be referred to as the direct exposure area.
通常情况下,X射线图像中的高衰减区域和直接曝光区域并非是医生需要关注的区域,而且它们会干扰正常人体组织的成像效果。具体的,通过从临床中反馈出来的问题和现象表明,如果X射线图像中存在高衰减区域和/或直接曝光区域,这会直接影响缺省窗宽窗位下的正常人体组织的显示效果,因此在上述根据图像采集参数获取乳房部位的X射线图像之后,如图10所示,本公开实施例还可以包括如下步骤:Typically, areas of high attenuation and direct exposure in X-ray images are not areas of concern for doctors, and they interfere with the imaging of normal human tissue. Specifically, the problems and phenomena fed back from the clinic show that if there are high attenuation areas and/or direct exposure areas in the X-ray image, this will directly affect the display effect of normal human tissue under the default window width and window level. Therefore, after obtaining the X-ray image of the breast part according to the image acquisition parameters, as shown in FIG. 10 , the embodiment of the present disclosure may further include the following steps:
S501,根据医学图像中各灰度像素点的像素灰度对各灰度像素点进行聚类,并将隶属于同一类别的各灰度像素点所在的区域作为候选区域。S501 , cluster each grayscale pixel point according to the pixel grayscale of each grayscale pixel point in the medical image, and use the region where each grayscale pixel point belonging to the same category is located as a candidate region.
其中,医学图像可以是基于医学成像技术对人体组织进行图像采集后得到的图像,比如X射线图像、电子计算机断层扫描(Computed Tomography,CT)图像、数字X线摄影(Digital Radiography,DR)图像、B超图像等等。The medical image may be an image obtained after image acquisition of human tissue based on medical imaging technology, such as X-ray image, Computed Tomography (CT) image, Digital Radiography (DR) image, B-scan images, etc.
针对医学成像过程中的成像对象,其可以包括人体组织和除人体组织之外的其余的成像对象,通常情况下,人体组织和其余的成像对象对X射线成像时所涉及到的射线的衰减程度存在差异性,衰减程度越高,医学图像中的像素灰度越低;衰减程度越低,医学图像中的像素灰度越高,因此可以将该其余的成像对象在医学图像中的成像区域作为待检测的目标区域,该目标区域可以是像素灰度明显低于人体组织的低灰度区域(即高衰减区域)、像素灰度明显高于人体组织的高灰度区域(即直接曝光区域)、或是二者的集合等等。For the imaging object in the medical imaging process, it can include human tissue and other imaging objects except human tissue. Usually, the attenuation degree of rays involved in X-ray imaging by human tissue and other imaging objects There are differences, the higher the attenuation degree, the lower the pixel gray level in the medical image; the lower the attenuation degree, the higher the pixel gray level in the medical image, so the imaging area of the remaining imaging objects in the medical image can be used as The target area to be detected, the target area can be a low-gray area (that is, a high-attenuation area) where the pixel grayscale is significantly lower than that of human tissue, or a high-gray area (that is, a direct exposure area) where the pixel grayscale is significantly higher than that of human tissue. , or a combination of the two, etc.
医学图像是灰度图像,灰度像素点是医学图像中的像素点,而像素灰度是灰度像素点的像素值(即灰度值)。根据各灰度像素点的像素灰度对各灰度像素点进行聚类,即将在像素灰度上比较相近的各灰度像素点归类到同一个类别,并且将在像素灰度上差异较大的各灰度像素点归类到不同类别中,聚类的实现方式有多种,比如LBG聚类算法、k-means聚类算法等,在此未做具体限定。在对各灰度像素点进行聚类之后,可以将每个灰度像素点分别聚类到相应的类别中,此时可以将隶属于同一类别的各灰度像素点所在的区域作为候选区域,换言之,隶属于同一候选区域中的各灰度像素点是隶属于同一类别的灰度像素点,这些灰度像素点在 像素灰度方面具有较强的相似性。需要说明的是,隶属于同一类别的各灰度像素点构成的候选区域的数量可以是一个、两个或是多个,在此未做具体限定。The medical image is a grayscale image, the grayscale pixel is the pixel in the medical image, and the pixel grayscale is the pixel value (ie, grayscale value) of the grayscale pixel. The grayscale pixels are clustered according to the pixel grayscale of each grayscale pixel, that is, the grayscale pixels that are relatively similar in pixel grayscale are classified into the same category, and the grayscale pixels that are relatively different in grayscale are classified into the same category. Large gray-scale pixels are classified into different categories, and there are many ways to implement clustering, such as LBG clustering algorithm, k-means clustering algorithm, etc., which are not specifically limited here. After clustering each gray-scale pixel point, each gray-scale pixel point can be clustered into the corresponding category. At this time, the region where each gray-scale pixel point belonging to the same category is located can be used as a candidate region. In other words, each gray pixel point belonging to the same candidate region is a gray pixel point belonging to the same category, and these gray pixel points have strong similarity in pixel gray level. It should be noted that the number of candidate regions formed by gray-scale pixels belonging to the same category may be one, two or more, which is not specifically limited here.
在此基础上,可选地,如果直接对各灰度像素点进行聚类,那么可能出现属于同一类别的灰度像素点因为是散点而无法构成一个候选区域、构成的候选区域中存在空洞(即某区域中大部分的灰度像素点隶属于同一类别并且极少数的灰度像素点并非属于该类别)等等情况。在此基础上,为了保证聚类后可以得到并且得到的候选区域是一个完整的区域,可以执行如下可选地处理方式:在聚类前对医学图像进行降噪、平滑等等处理以去除医学图像中的噪声、或者对聚类后得到的候选区域进行区域填洞等等处理,在此未做具体限定。On this basis, optionally, if each grayscale pixel is directly clustered, it may appear that grayscale pixels belonging to the same category cannot form a candidate area because they are scattered points, and there are holes in the formed candidate area. (that is, most of the grayscale pixels in a certain area belong to the same category and very few grayscale pixels do not belong to this category) and so on. On this basis, in order to ensure that the candidate region can be obtained after clustering and the obtained candidate region is a complete region, the following optional processing methods can be performed: noise reduction, smoothing, etc. are performed on the medical image before clustering to remove the medical image. The noise in the image, or the region filling of the candidate regions obtained after clustering, etc., are not specifically limited here.
S502,根据各像素灰度生成与医学图像对应的梯度图像,并根据梯度图像中各梯度像素点的像素梯度确定梯度图像内的梯度边缘。S502 , a gradient image corresponding to the medical image is generated according to the grayscale of each pixel, and a gradient edge in the gradient image is determined according to the pixel gradient of each gradient pixel point in the gradient image.
其中,梯度图像是对医学图像中各灰度像素点的像素灰度进行梯度运算后生成的与该医学图像对应的图像,该梯度运算过程可以理解为医学图像的边缘提取过程中涉及到的梯度信息的计算过程,比如基于局部方差、sobel、prewitt、canny等的边缘提取过程中的梯度信息的计算过程,示例性的,以计算医学图像中的局部方差生成梯度图像为例,获取预先设置的窗口大小为W*H的滑动窗口,不断移动该滑动窗口,依次计算每次移动后的滑动窗口内全部的灰度像素点的像素灰度的方差,并将该方差作为该滑动窗口内的某灰度像素点对应的梯度像素点的像素梯度(即像素值),该梯度像素点是生成的梯度图像中的像素点,即梯度图像中的每个梯度像素点均存在与其在像素位置上相对应的唯一的灰度像素点,由此生成了与医学图像对应的梯度图像。Among them, the gradient image is an image corresponding to the medical image generated by performing gradient operation on the pixel grayscale of each grayscale pixel in the medical image. The gradient operation process can be understood as the gradient involved in the edge extraction process of the medical image. The calculation process of information, such as the calculation process of gradient information in the edge extraction process based on local variance, sobel, prewitt, canny, etc., exemplarily, take the calculation of the local variance in the medical image to generate the gradient image as an example, obtain the preset value. A sliding window with a window size of W*H, the sliding window is continuously moved, the variance of the pixel gray levels of all gray pixels in the sliding window after each movement is calculated in turn, and the variance is used as a certain value in the sliding window. The pixel gradient (ie pixel value) of the gradient pixel point corresponding to the grayscale pixel point, the gradient pixel point is the pixel point in the generated gradient image, that is, each gradient pixel point in the gradient image has the same pixel position as the pixel point. The corresponding unique grayscale pixel points, thereby generating a gradient image corresponding to the medical image.
梯度边缘是由梯度图像中的多个梯度像素点构成的边缘,该梯度边缘上的梯度像素点可以称为边缘像素点,该边缘像素点可以是具有较大的像素梯度的梯度像素点,梯度边缘设置的意义在于,在医学图像的目标区域的区域边界处两侧的灰度像素点的像素灰度存在强烈的灰度差异,该区域边界是目标区域的边界,这意味着区域边界上的灰度像素点对应的梯度像素点的像素梯度比较大,即梯度边缘很可能是目标区域的区域边界,那么后续可以将与梯度边缘相似的区域边界所在的候选区域作为目标区域。The gradient edge is an edge composed of multiple gradient pixels in the gradient image. The gradient pixels on the gradient edge can be called edge pixels, and the edge pixels can be gradient pixels with larger pixel gradients. The meaning of the edge setting is that there is a strong grayscale difference in the pixel grayscales of the grayscale pixels on both sides at the area boundary of the target area of the medical image, and the area boundary is the boundary of the target area, which means that the The pixel gradient of the gradient pixel corresponding to the grayscale pixel is relatively large, that is, the gradient edge is likely to be the region boundary of the target region, then the candidate region where the region boundary similar to the gradient edge is located can be used as the target region.
在此基础上,根据梯度图像中各梯度像素点的像素梯度确定梯度图像内的梯度边缘的实现方式有多种,如可以对梯度图像进行二值化处理得到二值图像,并将二值图像中像素数值为1的各二值像素点构成的边缘作为梯度边缘;再如,以高衰减区域为例,与高衰减区域对应的梯度边缘上的边缘像素点多是与具有较小的区域灰度的候选区域中的灰度像素点相对应,该区域灰度可以表示出该候选区域内的各灰度像素点的像素灰度的整体水平,因此可以先根据待检测的目标区域的区域属性从各候选区域中筛选出灰度类别区域,该区域属性可以表示出目标区域内的各灰度像素点的像素灰度的整体水平,其可以反映出该目标区域是直接曝光区域还是高衰减区域,然后再从与灰度类别区域内的各区域像素点分别对应的梯度像素 点中筛选出边缘像素点,进而将各边缘像素点构成的边缘作为梯度边缘;等等,在此未做具体限定。On this basis, there are many ways to determine the gradient edge in the gradient image according to the pixel gradient of each gradient pixel in the gradient image. For example, the gradient image can be binarized to obtain a binary image, and the binary image The edge formed by each binary pixel with the median pixel value of 1 is used as the gradient edge; for another example, taking the high attenuation area as an example, the edge pixels on the gradient edge corresponding to the high attenuation area are mostly gray with the smaller area. It corresponds to the grayscale pixels in the candidate area of the degree of The gray level area is selected from each candidate area. The area attribute can represent the overall level of pixel gray level of each gray pixel point in the target area, which can reflect whether the target area is a direct exposure area or a high attenuation area. , and then filter out the edge pixels from the gradient pixels corresponding to the pixels of each region in the gray-scale category area, and then use the edge formed by each edge pixel as the gradient edge; etc., no specific limitation is made here. .
S503,根据每个候选区域的区域边界和梯度边缘间的耦合度,从各候选区域中检测出目标区域。S503, according to the coupling degree between the region boundary and the gradient edge of each candidate region, detect the target region from each candidate region.
其中,针对每个候选区域,耦合度可以是候选区域的区域边界和梯度边缘间的相似度,具体来说,其可以是区域边界上的各边界像素点和梯度边缘上的各边缘像素点在像素位置上的相似度。耦合度可以通过多种方式进行计算,如获取区域边界上各边界像素点的第一数量、以及可与某边缘像素点在像素位置上相同或是相近的边界像素点的第二数量,根据第二数量和第一数量间的数量比值确定耦合度。进一步,可以将具有较高耦合度的区域边界对应的候选区域作为目标区域。当然,除了考虑区域边界和梯度边缘间的耦合度之外,考虑到如果某个区域边界分别与梯度边缘和已检测为目标区域的候选区域的目标边界间均存在一定的耦合度,这样的候选区域也可能是目标区域,因此还可以根据区域边界和梯度边缘间的耦合度、及区域边界和目标边界间的耦合度共同判断该区域边界对应的候选区域是否为目标区域;等等,在此未做具体限定。Wherein, for each candidate region, the coupling degree can be the similarity between the region boundary of the candidate region and the gradient edge. Similarity in pixel location. The coupling degree can be calculated in various ways, such as obtaining the first number of each boundary pixel on the area boundary, and the second number of boundary pixels that can be the same as or similar to a certain edge pixel in pixel position, according to the first number of boundary pixels. The ratio of the numbers between the second number and the first number determines the degree of coupling. Further, the candidate region corresponding to the region boundary with higher coupling degree can be used as the target region. Of course, in addition to considering the coupling degree between the region boundary and the gradient edge, considering that if there is a certain degree of coupling between a region boundary and the gradient edge and the target boundary of the candidate region detected as the target region, such a candidate The region may also be the target region, so it can also be judged whether the candidate region corresponding to the region boundary is the target region according to the coupling degree between the region boundary and the gradient edge, and the coupling degree between the region boundary and the target boundary; and so on, here Not specifically limited.
需要说明的是,根据梯度边缘和区域边界共同圈选目标区域,而不是根据梯度边缘直接圈选目标区域的原因在于,由于高衰减的成像对象与人体组织间很可能存在重叠的情况,这使得高衰减的成像对象在医学图像中的高衰减区域对应的梯度边缘上存在断点,这意味着无法通过对该存在断点的梯度边缘进行区域填充的方式实现目标区域的检测。相应的,上述实施例可基于聚类算法得到完整的候选区域,并且区域边界和梯度边缘无需完全重合,由此达到了在梯度边缘中存在断点的情况下依然能够检测出完整的目标区域的效果。It should be noted that the reason for jointly selecting the target area according to the gradient edge and the area boundary, rather than directly selecting the target area according to the gradient edge, is that there is likely to be overlap between the imaging object with high attenuation and human tissue, which makes A highly attenuated imaging object has a breakpoint on the gradient edge corresponding to the high-attenuation region in the medical image, which means that the target region cannot be detected by filling the gradient edge with the breakpoint. Correspondingly, the above-mentioned embodiment can obtain a complete candidate region based on the clustering algorithm, and the region boundary and the gradient edge do not need to completely overlap, thus achieving the ability to detect the complete target region even when there is a breakpoint in the gradient edge. Effect.
上述实施例中,根据医学图像中各灰度像素点的像素灰度对各灰度像素点进行聚类,将隶属于同一类别的各灰度像素点所在的区域作为候选区域;根据各像素灰度生成与医学图像对应的梯度图像,并根据梯度图像中各梯度像素点的像素梯度确定梯度图像内的梯度边缘;根据每个候选区域的区域边界和梯度边缘间的耦合度,从各候选区域中检测出目标区域。通过本公开实施例,针对于区域的聚类解决了因目标区域与人体组织的灰度差异不定、图像噪声、目标区域内部的灰度过渡等原因导致的目标区域的检测精度较低的问题,通过将由此得到的候选区域的完整的区域边界与较大概率是目标区域的区域边界的梯度边缘进行比较的方式,实现了目标区域的准确检测的效果。In the above embodiment, each grayscale pixel is clustered according to the pixel grayscale of each grayscale pixel in the medical image, and the region where each grayscale pixel belonging to the same category is located is used as a candidate region; The gradient image corresponding to the medical image is generated, and the gradient edge in the gradient image is determined according to the pixel gradient of each gradient pixel in the gradient image. The target area is detected in . Through the embodiments of the present disclosure, the clustering of regions solves the problem of low detection accuracy of the target region due to uncertain grayscale differences between the target region and human tissue, image noise, and grayscale transitions within the target region. The effect of accurate detection of the target area is achieved by comparing the complete area boundary of the candidate area thus obtained with the gradient edge that is more likely to be the area boundary of the target area.
在一个实施例中,涉及根据梯度图像中各梯度像素点的像素梯度确定梯度图像内的梯度边缘的过程,具体可以包括:根据各候选区域的区域灰度,从各候选区域中筛选出与待检测的目标区域的区域属性对应的灰度类别区域;根据梯度图像中与灰度类别区域内各区域像素点分别对应的梯度像素点的像素梯度,确定梯度图像内的梯度边缘。其中,考虑到目标区域 可以是高衰减区域或是直接曝光区域,高衰减区域多是从那些具有较小的区域灰度的候选区域中检测出来的,而直接曝光区域多是从那些具有较大的区域灰度的候选区域中检测出来的,因此可以先从各候选区域中筛选出与待检测的目标区域的区域属性对应的灰度类别区域,即灰度类别区域是与目标区域在像素灰度的整体水平上面较为相似的候选区域;进而,根据梯度图像中与灰度类别区域内各区域像素点分别对应的梯度像素点的像素梯度确定梯度图像内的梯度边缘,比如考虑到目标区域的区域边界上的灰度像素点对应的梯度像素点的像素梯度比较大,因此可以将灰度类别区域内像素梯度比较大的各梯度像素点构成的边缘作为梯度边缘,上述实施例中,通过在与目标区域的区域属性相似的灰度类别区域所对应的像素梯度上确定梯度边缘,由此提高了梯度边缘的确定速度和确定精度;而且,这样的梯度边缘的确定方式意味着后续可以在高灰度候选区域上实现直接曝光区域的检测,并且在低灰度候选区域上实现高衰减区域的检测,由于高灰度候选区域和低灰度候选区域均是自适应的不受剂量影响的聚类结果,上述实施例对不同剂量的医学图像、不同类型的目标区域均具有较好的适应性,由此实现了目标区域的准确检测的效果。In one embodiment, it involves the process of determining the gradient edge in the gradient image according to the pixel gradient of each gradient pixel point in the gradient image, which may specifically include: according to the regional gray level of each candidate area, screening out the candidate areas from each candidate area with the The gray-scale category area corresponding to the regional attribute of the detected target area; the gradient edge in the gradient image is determined according to the pixel gradient of the gradient pixel points in the gradient image corresponding to the pixel points of each area in the gray-scale category area. Among them, considering that the target area can be a high-attenuation area or a direct exposure area, the high-attenuation area is mostly detected from those candidate areas with smaller area grayscales, while the direct exposure area is mostly detected from those with larger area grayscales. Therefore, the gray level area corresponding to the area attribute of the target area to be detected can be selected from each candidate area first, that is, the gray level area is the same as the target area in the pixel gray area. Then, the gradient edge in the gradient image is determined according to the pixel gradient of the gradient pixel points in the gradient image corresponding to the pixel points of each area in the gray-scale category area, for example, considering the target area The pixel gradient of the gradient pixels corresponding to the gray pixels on the region boundary is relatively large, so the edge formed by the gradient pixels with relatively large pixel gradients in the gray level region can be used as the gradient edge. The gradient edge is determined on the pixel gradient corresponding to the gray-scale category area with similar regional attributes to the target area, thereby improving the determination speed and accuracy of the gradient edge; The detection of the direct exposure area is realized on the gray-level candidate area, and the detection of the high-attenuation area is realized on the low-level gray-level candidate area, because both the high-level gray-level candidate area and the low-level gray level candidate area are self-adaptive and unaffected by the dose. As a result, the above embodiments have better adaptability to different doses of medical images and different types of target areas, thereby achieving the effect of accurate detection of target areas.
在一个实施例中,考虑到目标区域的区域边界上的灰度像素点对应的梯度像素点的像素梯度通常比较大,上述根据梯度图像中各梯度像素点的像素梯度确定梯度图像内的梯度边缘的过程,具体可以包括:以梯度图像中各梯度像素点的像素梯度为依据,对各梯度像素点进行排序,并根据各梯度像素点在排序结果中的排序位置对各梯度像素点进行筛选,生成与梯度图像对应的二值图像,即保留梯度图像中的像素梯度较大的梯度像素点,并舍弃梯度图像中的像素梯度较小的梯度像素点,该排序位置可以体现出某梯度像素点的像素梯度在全部的梯度像素点中的相对大小;将该二值图像内各二值像素点构成的二值边缘作为梯度图像的梯度边缘,该二值像素点是二值图像的像素点,由于二值像素点的像素值是1或是0,因此可以将该像素值为1的各二值像素点构成的二值边缘作为梯度边缘。上述实施例中,通过以像素梯度为依据对各梯度像素点进行排序,可以从各梯度像素点中快速且准确筛选出隶属于梯度边缘的梯度像素点,进而得到基于这些梯度像素点构成的梯度边缘,实现了梯度边缘的准确确定的效果。In one embodiment, considering that the pixel gradient of the gradient pixel points corresponding to the gray-scale pixels on the region boundary of the target area is usually relatively large, the above-mentioned determination of the gradient edge in the gradient image according to the pixel gradient of each gradient pixel point in the gradient image Specifically, the process may include: sorting each gradient pixel point based on the pixel gradient of each gradient pixel point in the gradient image, and screening each gradient pixel point according to the sorting position of each gradient pixel point in the sorting result, Generate a binary image corresponding to the gradient image, that is, keep the gradient pixels with large pixel gradients in the gradient image, and discard the gradient pixels with small pixel gradients in the gradient image, the sorting position can reflect a gradient pixel point is the relative size of the pixel gradient in all gradient pixels; the binary edge formed by each binary pixel in the binary image is used as the gradient edge of the gradient image, and the binary pixel is the pixel of the binary image, Since the pixel value of the binary pixel is 1 or 0, the binary edge formed by each binary pixel with the pixel value of 1 can be regarded as a gradient edge. In the above embodiment, by sorting each gradient pixel point based on the pixel gradient, the gradient pixel points belonging to the gradient edge can be quickly and accurately screened out from each gradient pixel point, and then the gradient based on these gradient pixel points can be obtained. edge, to achieve the effect of accurate determination of gradient edge.
为了更好地理解上述梯度边缘确定的具体实现过程,下面结合具体示例对其进行示例性的说明。通常情况下,在对各灰度像素点进行聚类后,可以得到每个候选区域的区域灰度,属于同一类别的候选区域的区域灰度相近,并且隶属于不同类别的候选区域的区域灰度的差异较大。假设预设的类别的数目是N,将其中的1/2作为低灰度类别,且将另外1/2作为高灰度类别,那么根据各候选区域的区域灰度的数值大小可以确定各候选区域所在的类别,由此得到了属于低灰度类别的低灰度候选区域和属于高灰度类别的高灰度候选区域。当待检测的目标区域是高衰减区域时,此时的低灰度候选区域即为上文所述的灰度类别区域,以梯度图像中与灰度类别区域内的各区域像素点分别对应的梯度像素点的像素梯度为依据,对这些梯 度像素点进行排序,并根据排序结果从中提取出一定比例的边缘像素点以生成与梯度子图像对应的二值图像,该梯度子图像是梯度图像中的与灰度类别区域相对应的那部分图像,这样后续是从低灰度候选区域中检测目标区域,提高目标区域的检测速度和检测效率。当然,当待检测的目标区域包括直接曝光区域时,可以将高灰度候选区域作为灰度类别区域来执行相应步骤,这与高衰减区域的执行过程类似,在此不再赘述。In order to better understand the specific implementation process of the above gradient edge determination, an exemplary description is given below with reference to specific examples. Under normal circumstances, after clustering each grayscale pixel point, the regional grayscale of each candidate area can be obtained. The regional grayscales of the candidate regions belonging to the same category are similar, and the regional grayscales of the candidate regions belonging to different categories can be obtained. The difference is large. Assuming that the number of preset categories is N, 1/2 of which is used as a low grayscale category, and the other 1/2 is used as a high grayscale category, then each candidate can be determined according to the value of the regional grayscale of each candidate area. The category of the region is obtained, thereby obtaining a low grayscale candidate region belonging to the low grayscale category and a high grayscale candidate region belonging to the high grayscale category. When the target area to be detected is a high attenuation area, the low grayscale candidate area at this time is the grayscale category area described above. Based on the pixel gradient of the gradient pixels, sort these gradient pixels, and extract a certain proportion of edge pixels according to the sorting result to generate a binary image corresponding to the gradient sub-image, which is the gradient sub-image in the gradient image. The part of the image corresponding to the gray-scale category area, so that the target area is subsequently detected from the low-gray-level candidate area, and the detection speed and detection efficiency of the target area are improved. Certainly, when the target area to be detected includes the direct exposure area, the corresponding steps can be performed with the high grayscale candidate area as the grayscale category area, which is similar to the execution process of the high attenuation area, and will not be repeated here.
在一个实施例中,涉及的是根据医学图像中各灰度像素点的像素灰度对各灰度像素点进行聚类的过程,可以包括:对医学图像中各灰度像素点的像素灰度进行排序,并基于预先设置的类别数目在灰度排序结果中确定灰度类别拆分点;将灰度类别拆分点作为初始的聚类中心,基于聚类中心和各灰度像素点的像素灰度,对各灰度像素点进行聚类。在上述实施例的基础上,如图11所示,本公开实施例可以包括如下步骤:In one embodiment, it involves a process of clustering each grayscale pixel point according to the pixel grayscale of each grayscale pixel point in the medical image, which may include: sorting the pixel grayscale of each grayscale pixel point in the medical image Sort, and determine the gray-scale category split point in the gray-scale sorting result based on the preset number of categories; take the gray-scale category split point as the initial cluster center, based on the cluster center and the pixels of each gray pixel point Grayscale, cluster each grayscale pixel point. On the basis of the foregoing embodiment, as shown in FIG. 11 , the embodiment of the present disclosure may include the following steps:
S601,对医学图像中各灰度像素点的像素灰度进行排序,并基于预先设置的类别数目在灰度排序结果中确定灰度类别拆分点。S601: Sort the pixel gray levels of each gray level pixel point in the medical image, and determine the gray level category split point in the gray level sorting result based on a preset number of categories.
其中,在对各灰度像素点进行聚类的过程中,可以作为初始的聚类中心的灰度类别拆分点对于聚类速度和聚类精度都会带来一定影响,因此,为了提高聚类效果,可以先对医学图像中各灰度像素点的像素灰度进行排序,然后基于预先设置的类别数目在灰度排序结果中确定灰度类别拆分点。示例性的,假设某医学图像中包括900个灰度像素点,类别数目是90个,那么可以将排序在第10、20、、…、900个的像素灰度作为灰度类别拆分点。在实际应用中,可选地,由于后续是通过梯度边缘对聚类得到的区域边界进行圈定以检测出目标区域,那么在类别数目非常少的情况下,区域边界很有可能大于梯度边缘,这意味着基于梯度边缘是无法对区域边界进行圈定的,即聚类得到的与目标区域对应的候选区域可以是目标区域的欠分割结果,这便于后续对各候选区域的区域边界进行遍历以使其逐渐接近梯度边缘,因此该类别数目可以是一个较大数值。Among them, in the process of clustering each gray pixel point, the gray class split point that can be used as the initial cluster center will have a certain impact on the clustering speed and clustering accuracy. Therefore, in order to improve the clustering As a result, the pixel grayscale of each grayscale pixel point in the medical image can be sorted first, and then the grayscale category splitting point can be determined in the grayscale sorting result based on the preset number of categories. Exemplarily, assuming that a medical image includes 900 grayscale pixels and the number of categories is 90, then the pixel grayscales ranked at the 10th, 20th, ..., 900th can be used as grayscale category splitting points. In practical applications, optionally, since the region boundary obtained by clustering is subsequently delineated by the gradient edge to detect the target region, then when the number of categories is very small, the region boundary is likely to be larger than the gradient edge. It means that the region boundary cannot be delineated based on the gradient edge, that is, the candidate region corresponding to the target region obtained by clustering can be the under-segmentation result of the target region, which facilitates the subsequent traversal of the region boundary of each candidate region to make it The gradient edge is gradually approached, so the number of classes can be a large number.
S602,将灰度类别拆分点作为初始的聚类中心,基于聚类中心和各灰度像素点的像素灰度,对各灰度像素点进行聚类,并将隶属于同一类别的各灰度像素点所在的区域作为候选区域。S602, using the gray-scale category split point as the initial clustering center, clustering each gray-scale pixel point based on the clustering center and the pixel gray level of each gray-scale pixel point, and classifying each gray-scale pixel belonging to the same category The region where the pixel points are located is used as a candidate region.
其中,灰度类别拆分点可以作为初始的聚类中心,基于聚类中心和各灰度像素点的像素灰度,对各灰度像素点进行聚类,如针对每个灰度像素点,比较该灰度像素点和各聚类中心间的灰度距离,并将最小的灰度距离所对应的聚类中心所在的类别作为该灰度像素点的聚类结果,即将该灰度像素点归类到最小的灰度距离对应的聚类中心所在的类别中,由此实现了每个灰度像素点的准确聚类的效果。Among them, the gray level split point can be used as the initial cluster center, and each gray pixel point is clustered based on the cluster center and the pixel gray level of each gray pixel point. For example, for each gray pixel point, Compare the grayscale distance between the grayscale pixel point and each cluster center, and take the category of the cluster center corresponding to the smallest grayscale distance as the clustering result of the grayscale pixel point, that is, the grayscale pixel point It is classified into the category where the cluster center corresponding to the smallest grayscale distance is located, thereby realizing the effect of accurate clustering of each grayscale pixel point.
在此基础上,为了进一步提高聚类精度,可以具体采用如下方案进行聚类:针对每个灰度像素点,确定灰度像素点的像素灰度和各聚类中心间的灰度距离,并将灰度像素点聚类到 与最小的灰度距离对应的聚类中心所在的类别中;根据各灰度像素点分别对应的最小的灰度距离确定灰度失真,并判断灰度失真是否满足预先设置的聚类结束条件,该聚类结束条件可以是灰度失真是否小于预设阈值、本次迭代的灰度失真和上一次迭代的灰度失真之间的差值的绝对值是否小于相对误差阈值等;若否,则针对每个类别,根据聚类后的隶属于类别中的各灰度像素点的像素灰度重新确定类别的聚类中心,并重复执行确定灰度像素点的像素灰度和各聚类中心间的灰度距离的步骤,直至灰度失真满足聚类结束条件,聚类结束。On this basis, in order to further improve the clustering accuracy, the following scheme can be used for clustering: for each grayscale pixel point, determine the pixel grayscale of the grayscale pixel point and the grayscale distance between each cluster center, and The grayscale pixels are clustered into the category of the cluster center corresponding to the minimum grayscale distance; the grayscale distortion is determined according to the minimum grayscale distance corresponding to each grayscale pixel, and whether the grayscale distortion is satisfied The preset clustering end condition, which may be whether the grayscale distortion is less than a preset threshold, and whether the absolute value of the difference between the grayscale distortion of this iteration and the grayscale distortion of the previous iteration is less than the relative Error threshold, etc.; if not, then for each category, re-determine the cluster center of the category according to the pixel gray level of each gray pixel point belonging to the category after clustering, and repeat the execution of determining the pixels of the gray pixel point The steps of the grayscale and the grayscale distance between each cluster center, until the grayscale distortion satisfies the clustering end condition, the clustering ends.
S603,根据各像素灰度生成与医学图像对应的梯度图像,并根据梯度图像中各梯度像素点的像素梯度确定梯度图像内的梯度边缘。S603 , a gradient image corresponding to the medical image is generated according to the grayscale of each pixel, and a gradient edge in the gradient image is determined according to the pixel gradient of each gradient pixel point in the gradient image.
S604,根据每个候选区域的区域边界和梯度边缘间的耦合度,从各候选区域中检测出目标区域。S604, according to the coupling degree between the region boundary and the gradient edge of each candidate region, detect the target region from each candidate region.
本公开实施例中,通过预先设置的类别数目在各个灰度像素点的像素灰度的排序结果中确定灰度类别拆分点(即初始的聚类中心),并基于该聚类中心和各像素灰度对各灰度像素点进行聚类,由此实现了基于较为准确的初始的聚类中心对各灰度像素点进行自适应的灰度聚类的效果。In the embodiment of the present disclosure, the gray-scale category splitting point (ie, the initial cluster center) is determined in the sorting result of the pixel gray levels of each gray-scale pixel point by using a preset number of categories, and based on the cluster center and each The pixel gray level is used to cluster each gray level pixel point, thereby realizing the effect of adaptive gray level clustering for each gray level pixel point based on a relatively accurate initial cluster center.
为了更好地理解上述聚类的具体实现过程,下面以LBG算法为例对其进行示例性的说明。示例性的,LBG算法是比较经典的基于矢量量化方式进行图像压缩的算法,使用劳埃德迭代来寻求最优解,能够对训练矢量集进行有效划分。设计矢量量化的步骤如下:假设训练矢量集为,In order to better understand the specific implementation process of the above clustering, the following takes the LBG algorithm as an example to illustrate it exemplarily. Exemplarily, the LBG algorithm is a relatively classic algorithm for image compression based on vector quantization, and uses Lloyd iteration to find an optimal solution, which can effectively divide the training vector set. The steps to design vector quantization are as follows: Suppose the training vector set is,
1)设定初始码书,B 0={y 0 (0),y 1 (0),...y N-1 (0)},令迭代次数n=0,平均失真D 0→∞,以及相对误差阈值ε(0≤ε≤1); 1) Set the initial codebook, B 0 ={y 0 (0) ,y 1 (0) ,...y N-1 (0) }, let the number of iterations n=0, the average distortion D 0 →∞, and the relative error threshold ε (0≤ε≤1);
2)根据最近邻条件,将码书B n中的各个码字作为质心(即聚类中心),把训练矢量集划分为N个胞腔S n={S 0 n,S 1 n,...S N-1 n},S i n满足
Figure PCTCN2021112733-appb-000002
2) According to the nearest neighbor condition, take each codeword in the codebook B n as the centroid (ie, the cluster center), and divide the training vector set into N cells Sn = {S 0 n , S 1 n , . . . .S N-1 n }, S i n satisfies
Figure PCTCN2021112733-appb-000002
3)计算胞腔划分之后产生的平均失真(即灰度失真),每个胞腔的平均失真的定义如下述公式所示,其中min的计算过程是胞腔划分的过程,y j n是第j个胞腔的更新前的质心,D n是全部的x i与其划分后的胞腔的y j n之间的灰度距离的平均值; 3) Calculate the average distortion (that is, grayscale distortion) generated after cell division. The definition of the average distortion of each cell is shown in the following formula, where the calculation process of min is the process of cell division, and y j n is the first The centroids of the j cells before the update, D n is the average value of the grayscale distances between all xi and the y j n of the divided cells;
Figure PCTCN2021112733-appb-000003
Figure PCTCN2021112733-appb-000003
4)判断本次迭代的平均失真与上次迭代的平均失真的相对误差是否小于ε;4) Determine whether the relative error between the average distortion of this iteration and the average distortion of the previous iteration is less than ε;
Figure PCTCN2021112733-appb-000004
Figure PCTCN2021112733-appb-000004
5)若是则整个迭代算法停止,否则根据质心条件,将每个胞腔中全部矢量对应维度上的数值相加,然后除以胞腔中全部矢量的个数,作为该胞腔的质心,利用每个胞腔的重新确 定的质心(即码字)对码书进行更新,令迭代次数n=n+1,然后跳转到步骤2)。5) If so, the entire iterative algorithm stops, otherwise, according to the centroid condition, add the values in the corresponding dimensions of all vectors in each cell, and then divide by the number of all vectors in the cell, as the centroid of the cell, using The re-determined centroid (ie codeword) of each cell updates the codebook, let the number of iterations n=n+1, and then jump to step 2).
在此基础上,结合本公开实施例可能涉及到的应用场景,可以将每个灰度像素点作为一个矢量,进行基于LBG算法的训练。由于LBG算法对初始码书比较依赖,此处可以对各灰度像素点的像素灰度进行排序,并基于预先设置的类别数目在灰度排序结果中确定灰度类别拆分点,进而可将该灰度类别拆分点作为初始码书以进行LBG迭代。On this basis, in combination with the application scenarios that may be involved in the embodiments of the present disclosure, each grayscale pixel point can be used as a vector to perform training based on the LBG algorithm. Since the LBG algorithm is relatively dependent on the initial codebook, the pixel gray levels of each gray pixel point can be sorted here, and the gray level split points can be determined in the gray level sorting result based on the preset number of categories, and then the gray level can be sorted This grayscale class split point serves as the initial codebook for LBG iteration.
在一个实施例中,涉及的是针对各候选区域中的当前区域,根据每个候选区域的区域边界和梯度边缘间的耦合度,从各候选区域中检测出目标区域的过程,具体可以包括:获取当前区域的当前边界中各当前像素点和梯度边缘中各边缘像素点在像素位置上的第一相似度、以及各当前像素点和已检测为目标区域的候选区域的目标边界中各目标像素点在像素位置上的第二相似度;根据第一相似度、或是第一相似度和第二相似度,判断当前区域是否为目标区域以实现目标区域的检测。其中,与上述各实施例相同或相应的术语的解释在此不再赘述。在上述实施例的基础上,如图12所示,本公开实施例可以包括如下步骤:In one embodiment, the process of detecting the target region from each candidate region according to the coupling degree between the region boundary and the gradient edge of each candidate region for the current region in each candidate region may specifically include: Obtain the first similarity of each current pixel in the current boundary of the current area and each edge pixel in the gradient edge at the pixel position, and each current pixel and each target pixel in the target boundary of the candidate area that has been detected as the target area. The second similarity degree of the point on the pixel position; according to the first similarity degree, or the first similarity degree and the second similarity degree, it is judged whether the current area is the target area to realize the detection of the target area. Wherein, the explanations of terms that are the same as or corresponding to the above embodiments are not repeated here. On the basis of the foregoing embodiment, as shown in FIG. 12 , the embodiment of the present disclosure may include the following steps:
S701,根据医学图像中各灰度像素点的像素灰度对各灰度像素点进行聚类,并将隶属于同一类别的各灰度像素点所在的区域作为候选区域。S701 , cluster each grayscale pixel point according to the pixel grayscale of each grayscale pixel point in the medical image, and use the region where each grayscale pixel point belonging to the same category is located as a candidate region.
S702,根据各像素灰度生成与医学图像对应的梯度图像,并根据梯度图像中各梯度像素点的像素梯度确定梯度图像内的梯度边缘。S702 , a gradient image corresponding to the medical image is generated according to the grayscale of each pixel, and a gradient edge in the gradient image is determined according to the pixel gradient of each gradient pixel point in the gradient image.
S703,针对各候选区域中的当前区域,获取当前区域的当前边界中各当前像素点和梯度边缘中各边缘像素点在像素位置上的第一相似度、以及各当前像素点和已检测为目标区域的候选区域的目标边界中各目标像素点在像素位置上的第二相似度。S703, for the current area in each candidate area, obtain the first similarity on the pixel position of each current pixel point in the current boundary of the current area and each edge pixel point in the gradient edge, and each current pixel point and the detected target The second similarity at the pixel position of each target pixel in the target boundary of the candidate region of the region.
其中,当前区域是在当前时刻对其进行检测的候选区域,当前边界是当前区域的区域边界,当前像素点是当前边界上的像素点,第一相似度可以表示出各当前像素点和各边缘像素点在像素位置上的相似度,其可以通过各当前像素点的第一数量、以及可与某边缘像素点在像素位置上相同或是相近的当前像素点的第二数量之间的数量比值确定。相应的,由于每次从各候选区域中筛选出当前区域之后,可以对该当前区域是否为目标区域进行检测,这意味着在当前区域进行更新后,可能存在已检测为目标区域的候选区域,该候选区域是先前的当前区域。目标边界是已检测为目标区域的候选区域的区域边界,目标像素点是目标边界上的像素点,类似的,第二相似度可以表示出各目标像素点和各边缘像素点在像素位置上的相似度。Among them, the current area is the candidate area to be detected at the current moment, the current boundary is the area boundary of the current area, the current pixel point is the pixel point on the current boundary, and the first similarity can indicate each current pixel point and each edge The similarity of the pixel points in the pixel position, which can be determined by the ratio between the first number of each current pixel point and the second number of the current pixel point that can be the same or similar to an edge pixel point in the pixel position Sure. Correspondingly, since each time the current area is selected from each candidate area, it can be detected whether the current area is the target area, which means that after the current area is updated, there may be candidate areas that have been detected as the target area. This candidate region is the previous current region. The target boundary is the area boundary of the candidate area that has been detected as the target area, and the target pixel point is the pixel point on the target boundary. Similarly, the second similarity can indicate the pixel position of each target pixel point and each edge pixel point. similarity.
S704,根据第一相似度、或是第一相似度和第二相似度,判断当前区域是否为目标区域以实现目标区域的检测。S704, according to the first degree of similarity, or the first degree of similarity and the second degree of similarity, determine whether the current area is a target area to detect the target area.
其中,若第一相似度较高,即各当前像素点和各边缘像素点的耦合度较高,则可以将当前区域判断为目标区域,示例性的,如图13a所示,如果第一相似度通过各当前像素点的第 一数量、以及可与某边缘像素点在像素位置上相同或是相近的当前像素点的第二数量之间的数量比值确定,则第一相似度可以为50%;当然,如果第一相似度不是很高,此时不能直接认为当前区域不是目标区域,因为当前区域的当前边界可能一部分与梯度边缘相重合、并且另一部分与目标边界相重合,此时的当前区域也可以作为目标区域,示例性的,如图13b所示,若第二相似度的表示方式和第一相似度相同,则第一相似度和第二相似度均为25%。即可以根据第一相似度、或第一相似度和第二相似度判断当前区域是否为目标区域。需要说明的是,每个当前区域都可以采用上述步骤进行检测,由此实现了从各候选区域中检测出目标区域的效果。Wherein, if the first similarity is high, that is, the coupling degree between each current pixel and each edge pixel is high, the current area can be determined as the target area. Exemplarily, as shown in FIG. 13a, if the first similarity The degree is determined by the number ratio between the first number of each current pixel point and the second number of current pixel points that can be the same or similar to an edge pixel in pixel position, then the first similarity may be 50% ; Of course, if the first similarity is not very high, it cannot be directly considered that the current area is not the target area at this time, because part of the current boundary of the current area may coincide with the gradient edge, and another part coincides with the target boundary. The area can also be used as the target area. Exemplarily, as shown in FIG. 13b, if the second similarity degree is expressed in the same manner as the first similarity degree, the first similarity degree and the second similarity degree are both 25%. That is, whether the current area is the target area can be determined according to the first similarity, or the first similarity and the second similarity. It should be noted that, each current region can be detected by using the above steps, thereby realizing the effect of detecting the target region from each candidate region.
在实际应用中,可选地,在上述实施例的基础上,目标区域的检测过程可以是根据待检测的目标区域的区域属性确定各候选区域的区域检测顺序,并根据区域检测顺序从各候选区域中筛选出当前区域,示例性的,以根据区域属性确定目标区域是高衰减区域为例,高衰减区域对应的候选区域通常是低灰度候选区域,因此可以从区域灰度较低的候选区域开始检测;根据当前区域的区域边界和梯度边缘间的耦合度判断是否将当前区域作为目标区域,根据判断结果实现目标区域的检测;将在区域检测顺序中位于当前区域的下一区域作为当前区域,并重复执行根据当前区域的区域边界和梯度边缘间的耦合度判断是否将当前区域作为目标区域的步骤,直至已检测的候选区域和/或梯度边缘满足预先设置的判断结束条件,该判断结束条件可以包括已检测的候选区域的数量大于预设数量阈值、梯度边缘不再存在等等,在此未做具体限定。In practical applications, optionally, on the basis of the above-mentioned embodiment, the detection process of the target area may be to determine the area detection order of each candidate area according to the area attribute of the target area to be detected, and select the area detection order from each candidate area according to the area detection order. The current area is filtered out of the area. As an example, the target area is determined to be a high-attenuation area according to the area attribute as an example. The candidate area corresponding to the high-attenuation area is usually a low-gray candidate area. The detection of the region starts; according to the coupling degree between the region boundary and the gradient edge of the current region, it is judged whether the current region is used as the target region, and the detection of the target region is realized according to the judgment result; the next region located in the current region in the region detection sequence is used as the current region. area, and repeat the step of judging whether to use the current area as the target area according to the coupling degree between the area boundary of the current area and the gradient edge, until the detected candidate area and/or gradient edge meet the preset judgment end condition, the judgment The ending condition may include that the number of detected candidate regions is greater than a preset number threshold, gradient edges no longer exist, etc., which are not specifically limited here.
本公开实施例中,通过当前边界中各当前像素点和梯度边缘中各边缘像素点在像素位置上的第一相似度、及各当前像素点和已检测为目标区域的候选区域的目标边界中各目标像素点在像素位置上的第二相似度,判断当前区域是否为目标区域,由此实现了不同情况下的目标区域的准确检测的效果。In the embodiment of the present disclosure, the first similarity of each current pixel point in the current boundary and each edge pixel point in the gradient edge in the pixel position, and each current pixel point and the target boundary of the candidate area that has been detected as the target area The second similarity of each target pixel in the pixel position determines whether the current area is the target area, thereby achieving the effect of accurate detection of the target area in different situations.
在此基础上,为了更好地理解上述目标区域检测的具体实现过程,下面结合具体示例对其进行示例性的说明。示例性的,以目标区域是高衰减区域为例,逐步遍历LBG分类中区域灰度从低到高的每一类别,将当前未检测的最低类别的候选区域作为当前区域,并对当前区域的当前边界与梯度边缘进行比较,若当前边界中在像素位置上与梯度边缘上的各边缘像素点相同或相近的当前像素点的数量达到全部的当前像素点的数量的一定比例,则认为该当前区域隶属于高衰减区域中的一部分;若未满足上述条件,还可以进一步判断该当前边界的一部分是否与梯度边缘比较接近、且另一部分与已经检测为高衰减区域的区域边界(即目标边界)比较接近,若是也可以将该当前区域判断为高衰减区域。进一步,将与已判断为高衰减区域的相近的梯度边缘上的边缘像素点赋为0,即将被目标边界占据的边缘像素点设置为0。重复遍历上述各步骤,直到遍历到LBG分类中相对较大的区域灰度所在的类别和/或梯度图像中不再存在梯度边缘,这样设置的原因在于,前者此时在理论上应该已完成目标区域的检 测,但是在实际应用中还未完成,可能是区域检测过程出现了错误,应该及时止损;后者意味着全部的高衰减区域已全部检测出来,此时可以停止检测。On this basis, in order to better understand the specific implementation process of the above-mentioned target area detection, an exemplary description is given below with reference to specific examples. Exemplarily, taking the target area as a high-attenuation area as an example, step by step traverse each category of the area grayscale from low to high in the LBG classification, take the currently undetected candidate area of the lowest category as the current area, and perform a calculation on the current area. The current boundary is compared with the gradient edge. If the number of current pixels in the current boundary that are the same or similar to the edge pixels on the gradient edge at the pixel position reaches a certain proportion of the total number of current pixels, then the current boundary is considered to be the current boundary. The area belongs to a part of the high attenuation area; if the above conditions are not met, it can be further judged whether a part of the current boundary is relatively close to the gradient edge, and the other part is the area boundary (ie the target boundary) that has been detected as a high attenuation area. If it is relatively close, the current area can also be judged as a high attenuation area. Further, set the edge pixels on the gradient edge that is close to the high attenuation area as 0, that is, set the edge pixels occupied by the target boundary as 0. Repeat the above steps until you reach the category where the gray level of the relatively large area in the LBG classification is located and/or the gradient edge no longer exists in the gradient image. The reason for this setting is that the former should theoretically have completed the goal at this time. The detection of the area, but it has not been completed in the actual application, it may be that there is an error in the area detection process, and the loss should be stopped in time; the latter means that all the high attenuation areas have been detected, and the detection can be stopped at this time.
相应的,直接曝光区域的检测过程与高衰减区域,可以将从低到高的区域检测顺序更改为从高到低的区域检测顺序,将最低类别更改为最高类别,并将直至遍历到LBG分类中相对较大的区域灰度所在的类别更改为直至遍历到LBG分类中相对较小的区域灰度所在的类别,其余步骤相同,在此不再赘述。Correspondingly, the detection process of the direct exposure area and the high attenuation area can be changed from low to high area detection order to high to low area detection order, changing the lowest category to the highest category, and traversing to the LBG classification. The category where the gray level of the relatively large area is located in the LBG classification is changed to the category where the gray level of the relatively small area in the LBG classification is traversed, and the rest of the steps are the same, and will not be repeated here.
需要说明的是,在实际应用中,无需预先确定X射线图像中是否存在高衰减区域或是直接曝光区域,只需在检测目标是高衰减区域时,基于与高衰减区域相关的检测步骤进行检测,并且在检测目标是直接曝光区域时,基于与直接曝光区域相关的检测步骤进行检测。也就是说,上述实施例可以从X射线图像中提取出高衰减区域、直接曝光区域、或是高衰减区域和直接曝光区域。It should be noted that, in practical applications, it is not necessary to pre-determine whether there is a high attenuation area or a direct exposure area in the X-ray image. It is only necessary to detect based on the detection steps related to the high attenuation area when the detection target is a high attenuation area. , and when the detection target is the direct exposure area, the detection is performed based on the detection steps related to the direct exposure area. That is, the above-mentioned embodiments can extract high attenuation regions, directly exposed regions, or both high attenuation regions and directly exposed regions from the X-ray image.
应该理解的是,虽然图2至图13的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2至图13中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the steps in the flowcharts of FIG. 2 to FIG. 13 are displayed in sequence according to the arrows, these steps are not necessarily executed in the sequence indicated by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and these steps may be performed in other orders. Moreover, at least a part of the steps in FIG. 2 to FIG. 13 may include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but may be executed at different times. The order of execution is also not necessarily sequential, but may be performed alternately or alternately with other steps or at least a portion of the steps or stages within the other steps.
在一个实施例中,如图14所示,提供了一种乳房X射线图像获取装置,该装置包括:In one embodiment, as shown in FIG. 14, a mammography image acquisition apparatus is provided, the apparatus comprising:
类型确定模块801,用于对待检测对象的乳房部位进行压力测试,并根据压力测试结果确定乳房部位的类型;a type determination module 801, configured to perform a stress test on the breast part of the object to be detected, and determine the type of the breast part according to the stress test result;
量化参数确定模块802,用于获取乳房部位的光学图像,并对光学图像进行识别处理得到乳房部位的量化参数;The quantification parameter determination module 802 is used for acquiring the optical image of the breast part, and performing identification processing on the optical image to obtain the quantification parameter of the breast part;
采集参数确定模块803,用于根据乳房部位的类型和量化参数确定乳房部位的图像采集参数,并根据图像采集参数获取乳房部位的X射线图像。The acquisition parameter determination module 803 is configured to determine the image acquisition parameter of the breast part according to the type of the breast part and the quantification parameter, and acquire the X-ray image of the breast part according to the image acquisition parameter.
在其中一个实施例中,该装置还包括:In one embodiment, the device further includes:
配准模块804,用于将光学图像与X射线图像进行配准,并根据配准结果在X射线图像上显示乳房轮廓或者在光学图像上显示乳房X射线图像信息。The registration module 804 is configured to register the optical image with the X-ray image, and display the breast contour on the X-ray image or display mammography image information on the optical image according to the registration result.
在其中一个实施例中,上述类型确定模块801包括:In one embodiment, the above-mentioned type determination module 801 includes:
变化关系确定单元,用于利用压迫组件对乳房部位进行压力测试,得到压力测试过程中产生的压迫力和乳房部位的压迫厚度之间的变化关系;The variation relationship determining unit is used to perform a pressure test on the breast part by using the compression component, and obtain the variation relationship between the compression force generated during the pressure test and the compression thickness of the breast part;
类型确定单元,用于根据压迫力与压迫厚度之间的变化关系,确定乳房部位的类型。The type determination unit is used for determining the type of the breast part according to the changing relationship between the compression force and the compression thickness.
可选地,上述变化关系包括变化曲率;上述类型确定单元包括:Optionally, the above-mentioned changing relationship includes changing curvature; the above-mentioned type determining unit includes:
对比子单元,用于将变化曲率和预设的曲率阈值进行对比;The comparison subunit is used to compare the changing curvature with the preset curvature threshold;
确定子单元,用于在变化曲率大于曲率阈值的情况下,确定乳房部位的类型为脂肪型;在变化曲率不大于曲率阈值的情况下,确定乳房部位的类型为致密型。The determining subunit is used for determining that the type of the breast part is fat when the change curvature is greater than the curvature threshold value; when the changing curvature is not greater than the curvature threshold value, determining the type of the breast part is the dense type.
在其中一个实施例中,上述采集参数确定模块803包括:In one embodiment, the above-mentioned acquisition parameter determination module 803 includes:
第一辐射野确定单元,用于根据量化参数,确定乳房部位对应的辐射野;a first radiation field determining unit, configured to determine the radiation field corresponding to the breast part according to the quantitative parameter;
采集参数确定单元,用于根据乳房部位的类型和乳房部位对应的辐射野,确定乳房部位的图像采集参数。The acquisition parameter determination unit is used for determining the image acquisition parameters of the breast part according to the type of the breast part and the radiation field corresponding to the breast part.
在其中一个实施例中,上述采集参数确定模块803包括:In one embodiment, the above-mentioned acquisition parameter determination module 803 includes:
识别单元,用于对光学图像进行识别处理得到乳房轮廓;乳房轮廓包括多个点的位置;The identification unit is used for identifying and processing the optical image to obtain the breast contour; the breast contour includes the positions of a plurality of points;
计算单元,用于对乳房轮廓上各个点的位置进行数学运算处理,得到乳房部位的体积;或者,对乳房轮廓上各个点的位置进行数学运算处理,得到乳房部位在压迫装置上的投影面积。The calculation unit is used to perform mathematical operation processing on the position of each point on the breast contour to obtain the volume of the breast part; or, perform mathematical operation processing on the position of each point on the breast contour to obtain the projected area of the breast part on the compression device.
在其中一个实施例中,图像采集参数包括第一图像采集参数和第二图像采集参数;上述采集参数确定模块803包括:In one embodiment, the image acquisition parameters include a first image acquisition parameter and a second image acquisition parameter; the acquisition parameter determination module 803 includes:
第二辐射野确定单元,用于根据乳房部位的体积或投影面积,得到乳房部位对应的辐射野;The second radiation field determining unit is configured to obtain the radiation field corresponding to the breast part according to the volume or projected area of the breast part;
第一采集参数确定单元,用于将乳房部位对应的辐射野确定为第一图像采集参数;a first acquisition parameter determination unit, configured to determine the radiation field corresponding to the breast part as the first image acquisition parameter;
第二采集参数确定单元,用于根据乳房部位的类型,确定第二图像采集参数。The second acquisition parameter determination unit is configured to determine the second image acquisition parameter according to the type of the breast part.
在其中一个实施例中,上述第二采集参数确定单元包括:In one of the embodiments, the above-mentioned second acquisition parameter determination unit includes:
压迫厚度获取子单元,用于获取乳房部位在预设条件下的实际压迫厚度;The compression thickness obtaining subunit is used to obtain the actual compression thickness of the breast part under preset conditions;
采集参数确定子单元,用于根据乳房部位的类型和实际压迫厚度,确定第二图像采集参数。The acquisition parameter determination subunit is used for determining the second image acquisition parameter according to the type of the breast part and the actual compression thickness.
可选地,上述采集参数确定子单元,还用于根据乳房部位的类型和实际压迫厚度,在预设的映射表中得到乳房部位的类型和实际压迫厚度对应的第二图像采集参数;其中,映射表中包括多组部位的类型和压迫厚度,以及每组部位的类型和压迫厚度所对应的第二图像采集参数;该第二图像采集参数用于表征射线源的功率和限束器的滤过方式。Optionally, the above acquisition parameter determination subunit is further configured to obtain the second image acquisition parameter corresponding to the type of the breast part and the actual compression thickness in a preset mapping table according to the type of the breast part and the actual compression thickness; wherein, The mapping table includes the types and compression thicknesses of multiple groups of parts, and the second image acquisition parameters corresponding to the types and compression thicknesses of each group of parts; the second image acquisition parameters are used to characterize the power of the radiation source and the filter of the beam limiter. over the way.
在其中一个实施例中,上述识别单元,具体用于对光学图像进行识别处理,得到光学图像中各像素点的像素值;根据各像素点的像素值,通过图像分割算法确定乳房轮廓。In one of the embodiments, the above-mentioned identification unit is specifically configured to perform identification processing on the optical image to obtain the pixel value of each pixel in the optical image; and determine the breast contour through an image segmentation algorithm according to the pixel value of each pixel.
在其中一个实施例中,上述识别单元,具体用于获取分割阈值;根据分割阈值以及各像素点的像素值,将光学图像分割为乳房区域图像与背景区域图像;将乳房区域图像的轮廓作为乳房轮廓。In one embodiment, the above-mentioned identification unit is specifically used to obtain a segmentation threshold; according to the segmentation threshold and the pixel value of each pixel point, the optical image is segmented into a breast area image and a background area image; the outline of the breast area image is used as the breast area image. contour.
在其中一个实施例中,上述配准模块804,具体用于通过特征提取算法提取光学图像中的多个第一特征和X射线图像中的多个第二特征;根据第一特征以及第二特征,将光学图像 与X射线图像进行配准。In one embodiment, the above-mentioned registration module 804 is specifically configured to extract multiple first features in the optical image and multiple second features in the X-ray image through a feature extraction algorithm; according to the first features and the second features , to register the optical image with the X-ray image.
在其中一个实施例中,上述配准模块804,具体用于通过相似性度量和聚类分析,将第一特征与第二特征进行特征匹配;根据第一特征在光学图像中的坐标、第二特征在X射线图像中的坐标,获取坐标映射函数;根据坐标映射函数,将光学图像与X射线图像进行配准。In one embodiment, the above-mentioned registration module 804 is specifically configured to perform feature matching between the first feature and the second feature through similarity measurement and cluster analysis; according to the coordinates of the first feature in the optical image, the second feature The coordinates of the feature in the X-ray image are obtained, and the coordinate mapping function is obtained; according to the coordinate mapping function, the optical image and the X-ray image are registered.
在其中一个实施例中,上述配准模块804,具体用于根据乳房轮廓、光学图像和配准后的X射线图像,获取乳房轮廓在X射线图像中的位置信息;在X射线图像上显示乳房轮廓。In one embodiment, the above-mentioned registration module 804 is specifically configured to obtain position information of the breast contour in the X-ray image according to the breast contour, the optical image and the registered X-ray image; and display the breast on the X-ray image. contour.
在其中一个实施例中,上述配准模块804,具体用于根据乳房轮廓以及光学图像,确定乳房在光学图像中的位置信息;根据乳房在光学图像中的位置信息以及配准后的X射线图像,获取乳房在X射线图像中的位置信息。In one embodiment, the above-mentioned registration module 804 is specifically configured to determine the position information of the breast in the optical image according to the outline of the breast and the optical image; according to the position information of the breast in the optical image and the registered X-ray image , to obtain the position information of the breast in the X-ray image.
在其中一个实施例中,该装置还包括:In one embodiment, the device further includes:
候选区域确定模块,用于根据X射线图像中各灰度像素点的像素灰度对各灰度像素点进行聚类,并将隶属于同一类别的各灰度像素点所在的区域作为候选区域;The candidate region determination module is used to cluster each grayscale pixel point according to the pixel grayscale of each grayscale pixel point in the X-ray image, and use the region where each grayscale pixel point belonging to the same category is located as a candidate region;
梯度边缘确定模块,用于根据各像素灰度生成与X射线图像对应的梯度图像,并根据梯度图像中各梯度像素点的像素梯度确定梯度图像内的梯度边缘;The gradient edge determination module is used to generate a gradient image corresponding to the X-ray image according to the gray level of each pixel, and determine the gradient edge in the gradient image according to the pixel gradient of each gradient pixel point in the gradient image;
目标区域检测模块,用于根据每个候选区域的区域边界和梯度边缘间的耦合度,从各候选区域中检测出目标区域。The target area detection module is used to detect the target area from each candidate area according to the coupling degree between the area boundary and the gradient edge of each candidate area.
在其中一个实施例中,上述候选区域确定模块包括:In one of the embodiments, the above-mentioned candidate region determination module includes:
灰度类别拆分点确定单元,用于对X射线图像中各灰度像素点的像素灰度进行排序,并基于预先设置的类别数目在灰度排序结果中确定灰度类别拆分点;The gray-scale category split point determination unit is used to sort the pixel gray levels of each gray-scale pixel point in the X-ray image, and determine the gray-scale category split point in the gray-scale sorting result based on the preset number of categories;
灰度像素点聚类单元,用于将灰度类别拆分点作为初始的聚类中心,基于聚类中心和各灰度像素点的像素灰度,对各灰度像素点进行聚类。The gray-scale pixel point clustering unit is used to use the gray-scale category split point as the initial cluster center, and cluster each gray-scale pixel point based on the cluster center and the pixel gray level of each gray-scale pixel point.
在其中一个实施例中,灰度像素点聚类单元,具体用于针对每个灰度像素点,确定灰度像素点的像素灰度和各聚类中心间的灰度距离,并将灰度像素点聚类到与最小的灰度距离对应的聚类中心所在的类别中;根据各灰度像素点分别对应的最小的灰度距离确定灰度失真,并判断灰度失真是否满足预先设置的聚类结束条件;若否,则针对每个类别,根据聚类后的隶属于类别中的各灰度像素点的像素灰度重新确定类别的聚类中心;重复执行确定灰度像素点的像素灰度和各聚类中心间的灰度距离的步骤,直至灰度失真满足聚类结束条件,聚类结束。In one embodiment, the gray-scale pixel point clustering unit is specifically configured to, for each gray-scale pixel point, determine the pixel gray-scale of the gray-scale pixel point and the gray-scale distance between each cluster center, and calculate the gray-scale pixel point Pixels are clustered into the category of the cluster center corresponding to the minimum grayscale distance; grayscale distortion is determined according to the minimum grayscale distance corresponding to each grayscale pixel point, and whether the grayscale distortion meets the preset value is determined. Clustering end condition; if not, then for each category, re-determine the cluster center of the category according to the pixel grayscale of each grayscale pixel point belonging to the category after clustering; repeat the execution to determine the pixel of the grayscale pixel point The steps of the grayscale and the grayscale distance between each cluster center, until the grayscale distortion satisfies the clustering end condition, the clustering ends.
在一个实施例中,如图15所示,提供了一种乳房X射线图像显示装置,该装置包括:In one embodiment, as shown in FIG. 15, there is provided a mammography image display device, the device comprising:
获取模块805,用于获取乳房的光学图像以及乳房感兴趣部位的X射线图像;其中,光学图像为可见光图像;an acquisition module 805, configured to acquire an optical image of the breast and an X-ray image of the breast part of interest; wherein, the optical image is a visible light image;
轮廓计算模块806,用于根据光学图像,确定乳房轮廓;a contour calculation module 806, configured to determine the breast contour according to the optical image;
配准模块807,用于将光学图像与X射线图像进行配准;a registration module 807, configured to register the optical image with the X-ray image;
位置计算模块808,用于在X射线图像上显示乳房轮廓,或者在光学图像上显示乳房感兴趣部位的X射线信息。The position calculation module 808 is used for displaying the outline of the breast on the X-ray image, or displaying the X-ray information of the part of interest of the breast on the optical image.
具体地,轮廓计算模块对光学图像中的乳房轮廓进行识别,然后配准模块将光学图像和X射线图像进行配准,位置计算模块可以获取乳房轮廓在该X射线图像中的位置信息,从而在X射线图像中显示乳房轮廓,相对于医生根据经验标注X射线图像在整个乳房中的相对位置。Specifically, the contour calculation module identifies the breast contour in the optical image, and then the registration module registers the optical image and the X-ray image, and the position calculation module can obtain the position information of the breast contour in the X-ray image, so as to The breast contour is displayed in the X-ray image, and the relative position of the X-ray image in the whole breast is marked with respect to the doctor's experience.
本实施例中的方法解决了X射线图像设备仅能获取乳房的局部图像,导致医生仅能根据经验判断病灶与整个乳房的相对位置,效率较低且误差较大的问题,提高了医生在诊断过程中的诊断效率和位置标注的准确度。The method in this embodiment solves the problem that the X-ray imaging device can only obtain a partial image of the breast, so that the doctor can only judge the relative position of the lesion and the entire breast according to experience, the efficiency is low and the error is large, which improves the doctor's ability to diagnose Diagnostic efficiency in the process and accuracy of location annotation.
在一个实施例中,如图16所示,提供了一种区域检测装置,该装置包括:In one embodiment, as shown in FIG. 16, an area detection device is provided, and the device includes:
候选区域确定模块809,用于根据医学图像中各灰度像素点的像素灰度对各灰度像素点进行聚类,将隶属于同一类别的各灰度像素点所在的区域作为候选区域;The candidate area determination module 809 is used to cluster each grayscale pixel point according to the pixel grayscale of each grayscale pixel point in the medical image, and take the area where each grayscale pixel point belonging to the same category is located as a candidate area;
梯度边缘确定模块810,用于根据各像素灰度生成与医学图像对应的梯度图像,并根据梯度图像中各梯度像素点的像素梯度确定梯度图像内的梯度边缘;The gradient edge determination module 810 is used to generate a gradient image corresponding to the medical image according to the gray level of each pixel, and determine the gradient edge in the gradient image according to the pixel gradient of each gradient pixel point in the gradient image;
目标区域检测模块811,用于根据每个候选区域的区域边界和梯度边缘间的耦合度,从各候选区域中检测出目标区域。The target area detection module 811 is configured to detect the target area from each candidate area according to the coupling degree between the area boundary and the gradient edge of each candidate area.
在其中一个实施例中,候选区域确定模块包括:In one of the embodiments, the candidate region determination module includes:
灰度类别拆分点确定单元,用于对医学图像中各灰度像素点的像素灰度进行排序,并基于预先设置的类别数目在灰度排序结果中确定灰度类别拆分点;The gray-scale category split point determination unit is used to sort the pixel gray levels of each gray-scale pixel point in the medical image, and determine the gray-scale category split point in the gray-scale sorting result based on the preset number of categories;
灰度像素点聚类单元,用于将灰度类别拆分点作为初始的聚类中心,基于聚类中心和各灰度像素点的像素灰度,对各灰度像素点进行聚类。The gray-scale pixel point clustering unit is used to use the gray-scale category split point as the initial cluster center, and cluster each gray-scale pixel point based on the cluster center and the pixel gray level of each gray-scale pixel point.
在此基础上,可选的,灰度像素点聚类单元,具体可以用于:On this basis, the optional gray-scale pixel clustering unit can be used for:
针对每个灰度像素点,确定灰度像素点的像素灰度和各聚类中心间的灰度距离,并将灰度像素点聚类到与最小的灰度距离对应的聚类中心所在的类别中;For each grayscale pixel point, determine the pixel grayscale of the grayscale pixel point and the grayscale distance between each cluster center, and cluster the grayscale pixel points to the cluster center corresponding to the smallest grayscale distance. in the category;
根据各灰度像素点分别对应的最小的灰度距离确定灰度失真,并判断灰度失真是否满足预先设置的聚类结束条件;Determine the grayscale distortion according to the minimum grayscale distance corresponding to each grayscale pixel, and judge whether the grayscale distortion satisfies the preset clustering end condition;
若否,则针对每个类别,根据聚类后的隶属于类别中的各灰度像素点的像素灰度重新确定类别的聚类中心;If not, for each category, re-determine the cluster center of the category according to the pixel grayscale of each grayscale pixel point belonging to the category after clustering;
重复执行确定灰度像素点的像素灰度和各聚类中心间的灰度距离的步骤,直至灰度失真满足聚类结束条件,聚类结束。The steps of determining the pixel grayscale of the grayscale pixel point and the grayscale distance between each cluster center are repeated until the grayscale distortion satisfies the clustering end condition, and the clustering ends.
在其中一个实施例中,上述梯度边缘确定模块包括:In one embodiment, the above-mentioned gradient edge determination module includes:
灰度类别区域筛选单元,用于根据各候选区域的区域灰度,从各候选区域中筛选出与待检测的目标区域的区域属性对应的灰度类别区域;The grayscale category area screening unit is used to screen out the grayscale category area corresponding to the regional attribute of the target area to be detected from each candidate area according to the regional grayscale of each candidate area;
第一梯度边缘确定单元,用于根据梯度图像中与灰度类别区域内各区域像素点分别对应的梯度像素点的像素梯度,确定梯度图像内的梯度边缘。The first gradient edge determination unit is configured to determine the gradient edge in the gradient image according to the pixel gradient of the gradient pixel points in the gradient image corresponding to the pixel points of each region in the gray-scale category area.
在其中一个实施例中,上述梯度边缘确定模块包括:In one embodiment, the above-mentioned gradient edge determination module includes:
二值图像生成单元,用于以梯度图像中各梯度像素点的像素梯度为依据,对各梯度像素点进行排序,并根据各梯度像素点在排序结果中的排序位置对各梯度像素点进行筛选,生成与梯度图像对应的二值图像;The binary image generation unit is used to sort each gradient pixel point based on the pixel gradient of each gradient pixel point in the gradient image, and filter each gradient pixel point according to the sorting position of each gradient pixel point in the sorting result , generate a binary image corresponding to the gradient image;
第二梯度边缘确定单元,用于将二值图像内各二值像素点构成的二值边缘作为梯度图像的梯度边缘。The second gradient edge determination unit is configured to use the binary edge formed by each binary pixel in the binary image as the gradient edge of the gradient image.
在其中一个实施例中,针对各候选区域中的当前区域,上述目标区域检测模块包括:In one embodiment, for the current region in each candidate region, the above-mentioned target region detection module includes:
相似度获取单元,用于获取当前区域的当前边界中各当前像素点和梯度边缘中各边缘像素点在像素位置上的第一相似度、以及各当前像素点和已检测为目标区域的候选区域的目标边界中各目标像素点在像素位置上的第二相似度;The similarity obtaining unit is used to obtain the first similarity at the pixel position of each current pixel in the current boundary of the current area and each edge pixel in the gradient edge, as well as each current pixel and the candidate area that has been detected as the target area The second similarity of each target pixel at the pixel position in the target boundary of ;
第一目标区域检测单元,用于根据第一相似度、或是第一相似度和第二相似度,判断当前区域是否为目标区域以实现目标区域的检测。The first target area detection unit is configured to determine whether the current area is the target area according to the first similarity, or the first similarity and the second similarity, so as to detect the target area.
在其中一个实施例中,上述目标区域检测模块包括:In one embodiment, the above-mentioned target area detection module includes:
当前区域筛选单元,用于根据目标区域的区域属性确定各候选区域的区域检测顺序,并根据区域检测顺序从各候选区域中筛选出当前区域;The current area screening unit is used to determine the area detection order of each candidate area according to the area attribute of the target area, and screen out the current area from each candidate area according to the area detection order;
第二目标区域检测单元,用于根据当前区域的区域边界和梯度边缘间的耦合度判断是否将当前区域作为目标区域,并根据判断结果实现目标区域的检测;The second target area detection unit is used to judge whether the current area is used as the target area according to the coupling degree between the area boundary of the current area and the gradient edge, and to detect the target area according to the judgment result;
迭代执行单元,用于将在区域检测顺序中位于当前区域的下一区域作为当前区域,并重复执行根据当前区域的区域边界和梯度边缘间的耦合度判断是否将当前区域作为目标区域的步骤,直至已检测的候选区域、和/或梯度边缘满足预先设置的判断结束条件。The iterative execution unit is used for taking the next area located in the current area in the area detection sequence as the current area, and repeating the steps of judging whether to use the current area as the target area according to the coupling degree between the area boundary and the gradient edge of the current area, Until the detected candidate region and/or the gradient edge satisfies the preset judgment end condition.
关于上述装置的具体限定可以参见上文中对于上述方法的限定,在此不再赘述。上述装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific limitation of the foregoing apparatus, reference may be made to the foregoing limitation of the foregoing method, which will not be repeated here. Each module in the above apparatus may be implemented in whole or in part by software, hardware and combinations thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
在一个实施例中,提供了一种计算机设备,该计算机设备可以是终端,其内部结构图可以如图17所示。该计算机设备包括通过系统总线连接的处理器、存储器、通信接口、显示屏和输入装置。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备 的通信接口用于与外部的终端进行有线或无线方式的通信,无线方式可通过WIFI、运营商网络、NFC(近场通信)或其他技术实现。该计算机程序被处理器执行时以实现一种乳房X射线图像显示方法。该计算机设备的显示屏可以是液晶显示屏或者电子墨水显示屏,该计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。In one embodiment, a computer device is provided, and the computer device may be a terminal, and its internal structure diagram may be as shown in FIG. 17 . The computer equipment includes a processor, memory, a communication interface, a display screen, and an input device connected by a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium, an internal memory. The nonvolatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium. The communication interface of the computer equipment is used for wired or wireless communication with external terminals, and the wireless communication can be realized by WIFI, operator network, NFC (Near Field Communication) or other technologies. The computer program, when executed by a processor, implements a mammography image display method. The display screen of the computer equipment may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment may be a touch layer covered on the display screen, or a button, a trackball or a touchpad set on the shell of the computer equipment , or an external keyboard, trackpad, or mouse.
本领域技术人员可以理解,图17中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 17 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. Include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.
在一个实施例中,提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现上述方法中的步骤。In one embodiment, a computer device is provided, including a memory and a processor, where a computer program is stored in the memory, and the processor implements the steps in the above method when executing the computer program.
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现上述方法中的步骤。In one embodiment, a computer-readable storage medium is provided on which a computer program is stored, and when the computer program is executed by a processor, implements the steps in the above method.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-Only Memory,ROM)、磁带、软盘、闪存或光存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic Random Access Memory,DRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium , when the computer program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other media used in the various embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, or optical memory, and the like. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, the RAM may be in various forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM).
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, all It is considered to be the range described in this specification.
以上实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above examples only represent several embodiments of the present application, and the descriptions thereof are relatively specific and detailed, but should not be construed as a limitation on the scope of the invention patent. It should be pointed out that for those skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the scope of protection of the patent of the present application shall be subject to the appended claims.

Claims (25)

  1. 一种乳房X射线图像获取方法,其特征在于,所述方法包括:A method for acquiring a mammogram, characterized in that the method comprises:
    对待检测对象的乳房部位进行压力测试,并根据压力测试结果确定所述乳房部位的类型;Perform a stress test on the breast part of the object to be tested, and determine the type of the breast part according to the stress test result;
    获取所述乳房部位的光学图像,并对所述光学图像进行识别处理得到所述乳房部位的量化参数;Obtaining an optical image of the breast part, and performing identification processing on the optical image to obtain a quantitative parameter of the breast part;
    根据所述乳房部位的类型和量化参数确定所述乳房部位的图像采集参数,并根据所述图像采集参数获取所述乳房部位的X射线图像。Image acquisition parameters of the breast part are determined according to the type of the breast part and quantification parameters, and an X-ray image of the breast part is acquired according to the image acquisition parameters.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:将所述光学图像与所述X射线图像进行配准,并根据配准结果在所述X射线图像上显示乳房轮廓或者在所述光学图像上显示乳房X射线图像信息。The method according to claim 1, wherein the method further comprises: registering the optical image with the X-ray image, and displaying a breast contour or a breast contour on the X-ray image according to the registration result. Mammographic image information is displayed on the optical image.
  3. 根据权利要求1所述的方法,其特征在于,所述对待检测对象的乳房部位进行压力测试,并根据压力测试结果确定所述乳房部位的类型,包括:The method according to claim 1, wherein, performing a stress test on the breast part of the object to be tested, and determining the type of the breast part according to the stress test result, comprising:
    利用压迫组件对所述乳房部位进行压力测试,得到压力测试过程中产生的压迫力和所述乳房部位的压迫厚度之间的变化关系;Use the compression component to perform a pressure test on the breast part, and obtain the changing relationship between the compression force generated during the pressure test and the compression thickness of the breast part;
    根据所述压迫力与所述压迫厚度之间的变化关系,确定所述乳房部位的类型。The type of the breast part is determined according to the changing relationship between the compression force and the compression thickness.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述根据所述乳房部位的类型和量化参数确定所述乳房部位的图像采集参数,包括:The method according to any one of claims 1-3, wherein the determining the image acquisition parameter of the breast part according to the type of the breast part and the quantification parameter comprises:
    根据所述量化参数,确定所述乳房部位对应的辐射野;determining the radiation field corresponding to the breast part according to the quantitative parameter;
    根据所述乳房部位的类型和所述乳房部位对应的辐射野,确定所述乳房部位的图像采集参数。Image acquisition parameters of the breast part are determined according to the type of the breast part and the radiation field corresponding to the breast part.
  5. 根据权利要求1-3任一项所述的方法,其特征在于,所述对所述光学图像进行识别处理得到所述乳房部位的量化参数,包括:The method according to any one of claims 1-3, wherein the identifying and processing the optical image to obtain the quantitative parameter of the breast part comprises:
    对所述光学图像进行识别处理得到所述乳房轮廓;所述乳房轮廓包括多个点的位置;Performing identification processing on the optical image to obtain the breast contour; the breast contour includes the positions of a plurality of points;
    对所述乳房轮廓上各个点的位置进行数学运算处理,得到所述乳房部位的体积;或者,Perform mathematical operation processing on the position of each point on the breast contour to obtain the volume of the breast part; or,
    对所述乳房轮廓上各个点的位置进行数学运算处理,得到所述乳房部位在所述压迫装置上的投影面积。Perform mathematical operation processing on the positions of each point on the breast contour to obtain the projected area of the breast part on the compression device.
  6. 根据权利要求5所述的方法,其特征在于,所述图像采集参数包括第一图像采集参数和第二图像采集参数;所述根据所述乳房部位的类型和量化参数,确定所述乳房部位的图像采集参数,包括:The method according to claim 5, wherein the image acquisition parameters include a first image acquisition parameter and a second image acquisition parameter; the determination of the breast part according to the type and quantification parameters of the breast part Image acquisition parameters, including:
    根据所述乳房部位的体积或投影面积,得到所述乳房部位对应的辐射野;According to the volume or projected area of the breast part, the radiation field corresponding to the breast part is obtained;
    将所述乳房部位对应的辐射野确定为所述第一图像采集参数;determining the radiation field corresponding to the breast part as the first image acquisition parameter;
    根据所述乳房部位的类型,确定所述第二图像采集参数。The second image acquisition parameters are determined based on the type of the breast part.
  7. 根据权利要求6所述的方法,其特征在于,所述根据所述乳房部位的类型,确定所述第二图像采集参数,包括:The method according to claim 6, wherein the determining the second image acquisition parameter according to the type of the breast part comprises:
    获取所述乳房部位在预设条件下的实际压迫厚度;obtaining the actual compression thickness of the breast part under preset conditions;
    根据所述乳房部位的类型和所述实际压迫厚度,确定所述第二图像采集参数。The second image acquisition parameter is determined according to the type of the breast part and the actual compression thickness.
  8. 根据权利要求5所述的方法,其特征在于,所述对所述光学图像进行识别处理得到所述乳房轮廓,包括:The method according to claim 5, wherein the identifying and processing the optical image to obtain the breast contour comprises:
    对所述光学图像进行识别处理,得到所述光学图像中各像素点的像素值;performing identification processing on the optical image to obtain the pixel value of each pixel in the optical image;
    根据所述各像素点的像素值,通过图像分割算法确定所述乳房轮廓。According to the pixel value of each pixel point, the breast contour is determined through an image segmentation algorithm.
  9. 根据权利要求8所述的方法,其特征在于,所述根据所述各像素点的像素值,通过图像分割算法确定所述乳房轮廓,包括:The method according to claim 8, wherein, determining the breast contour by an image segmentation algorithm according to the pixel value of each pixel point, comprising:
    获取分割阈值;Get segmentation threshold;
    根据所述分割阈值以及所述各像素点的像素值,将所述光学图像分割为乳房区域图像与背景区域图像;According to the segmentation threshold and the pixel value of each pixel point, the optical image is segmented into a breast area image and a background area image;
    将所述乳房区域图像的轮廓作为所述乳房轮廓。The outline of the breast region image is used as the breast outline.
  10. 根据权利要求2所述的方法,其特征在于,所述将所述光学图像与所述X射线图像进行配准,包括:The method of claim 2, wherein the registering the optical image with the X-ray image comprises:
    通过特征提取算法提取所述光学图像中的多个第一特征和所述X射线图像中的多个第二特征;Extracting a plurality of first features in the optical image and a plurality of second features in the X-ray image by a feature extraction algorithm;
    根据所述第一特征以及第二特征,将所述光学图像与所述X射线图像进行配准。The optical image is registered with the X-ray image based on the first feature and the second feature.
  11. 根据权利要求10所述的方法,其特征在于,所述根据所述第一特征以及第二特征,将所述光学图像与所述X射线图像进行配准,包括:The method according to claim 10, wherein the registering the optical image and the X-ray image according to the first feature and the second feature comprises:
    通过相似性度量和聚类分析,将所述第一特征与所述第二特征进行特征匹配;Perform feature matching on the first feature and the second feature through similarity measurement and cluster analysis;
    根据所述第一特征在所述光学图像中的坐标、所述第二特征在所述X射线图像中的坐标,获取坐标映射函数;obtaining a coordinate mapping function according to the coordinates of the first feature in the optical image and the coordinates of the second feature in the X-ray image;
    根据所述坐标映射函数,将所述光学图像与所述X射线图像进行配准。The optical image is registered with the X-ray image according to the coordinate mapping function.
  12. 根据权利要求1所述的方法,其特征在于,在所述根据所述图像采集参数获取所述乳房部位的X射线图像之后,所述方法还包括:The method according to claim 1, wherein after acquiring the X-ray image of the breast part according to the image acquisition parameter, the method further comprises:
    根据所述X射线图像中各灰度像素点的像素灰度对各所述灰度像素点进行聚类,并将隶属于同一类别的各所述灰度像素点所在的区域作为候选区域;Clustering each of the gray-scale pixel points according to the pixel gray level of each gray-scale pixel point in the X-ray image, and using the region where each of the gray-scale pixel points belonging to the same category is located as a candidate region;
    根据各所述像素灰度生成与所述X射线图像对应的梯度图像,并根据所述梯度图像中各梯度像素点的像素梯度确定所述梯度图像内的梯度边缘;A gradient image corresponding to the X-ray image is generated according to each pixel grayscale, and a gradient edge in the gradient image is determined according to the pixel gradient of each gradient pixel point in the gradient image;
    根据每个所述候选区域的区域边界和所述梯度边缘间的耦合度,从各所述候选区域中检测出目标区域;所述目标区域包括高衰减区域和/或直接曝光区域。According to the coupling degree between the area boundary of each candidate area and the gradient edge, a target area is detected from each of the candidate areas; the target area includes a high attenuation area and/or a direct exposure area.
  13. 一种乳房X射线图像显示方法,其特征在于,所述方法包括:A mammogram display method, characterized in that the method comprises:
    获取乳房的光学图像以及乳房感兴趣部位的X射线图像;Obtain optical images of the breast as well as X-ray images of the breast area of interest;
    根据所述光学图像,确定乳房轮廓;determining a breast contour from the optical image;
    将所述光学图像与所述X射线图像进行配准;registering the optical image with the X-ray image;
    在所述X射线图像上显示所述乳房轮廓,或者在所述光学图像上显示乳房感兴趣部位的X射线信息。The breast contour is displayed on the X-ray image, or the X-ray information of the breast region of interest is displayed on the optical image.
  14. 根据权利要求13所述的方法,其特征在于,所述根据所述光学图像,确定乳房轮廓包括:The method of claim 13, wherein the determining a breast contour according to the optical image comprises:
    根据所述光学图像,获取各像素点的像素值;obtaining the pixel value of each pixel point according to the optical image;
    根据各像素点的像素值,通过图像分割算法确定所述乳房轮廓。According to the pixel value of each pixel point, the breast contour is determined through an image segmentation algorithm.
  15. 根据权利要求14所述的方法,其特征在于,所述根据各像素点的像素值,通过图像分割算法确定所述乳房轮廓包括:The method according to claim 14, wherein the determining the breast contour through an image segmentation algorithm according to the pixel value of each pixel point comprises:
    获取分割阈值;Get segmentation threshold;
    根据所述分割阈值以及各像素点的像素值,将所述光学图像分割为乳房区域图像与背景区域图像;According to the segmentation threshold and the pixel value of each pixel point, the optical image is segmented into a breast area image and a background area image;
    将所述乳房区域图像的轮廓作为乳房轮廓。The contour of the breast region image is taken as the breast contour.
  16. 根据权利要求13所述的方法,其特征在于,所述将所述光学图像与所述X射线图像进行配准包括:The method of claim 13, wherein the registering the optical image with the X-ray image comprises:
    通过特征提取算法提取所述光学图像中的多个第一特征和所述X射线图像中的多个第二特征;Extracting a plurality of first features in the optical image and a plurality of second features in the X-ray image by a feature extraction algorithm;
    根据所述第一特征以及第二特征,将所述光学图像与所述X射线图像进行配准。The optical image is registered with the X-ray image based on the first feature and the second feature.
  17. 根据权利要求16所述的方法,其特征在于,所述根据所述第一特征以及第二特征,将所述光学图像与所述X射线图像进行配准包括:The method according to claim 16, wherein the registering the optical image and the X-ray image according to the first feature and the second feature comprises:
    通过相似性度量和聚类分析,将所述第一特征与所述第二特征进行特征匹配;Perform feature matching on the first feature and the second feature through similarity measurement and cluster analysis;
    根据所述第一特征在所述光学图像中的坐标、所述第二特征在所述X射线图像中的坐标,获取坐标映射函数;obtaining a coordinate mapping function according to the coordinates of the first feature in the optical image and the coordinates of the second feature in the X-ray image;
    根据所述坐标映射函数,将所述光学图像与所述X射线图像进行配准。The optical image is registered with the X-ray image according to the coordinate mapping function.
  18. 一种乳房X射线图像采集方法,其特征在于,所述方法包括:A breast X-ray image acquisition method, characterized in that the method comprises:
    控制压迫板压迫乳房;Control the compression plate to compress the breast;
    控制光学图像采集单元采集压迫状态下乳房的光学图像,并确定所述光学图像中的乳房轮廓;Controlling the optical image acquisition unit to acquire an optical image of the breast in the compressed state, and determining the outline of the breast in the optical image;
    控制X射线图像采集单元采集压迫状态下乳房的X射线图像;Controlling the X-ray image acquisition unit to acquire the X-ray image of the breast under compression;
    将所述光学图像与所述X射线图像进行配准,并在所述X射线图像上显示所述乳房轮廓 或者在所述光学图像上显示乳房感兴趣部位的X射线信息。The optical image is registered with the X-ray image, and the breast contour is displayed on the X-ray image or the X-ray information of the breast part of interest is displayed on the optical image.
  19. 一种区域检测方法,其特征在于,包括:A method for region detection, comprising:
    根据医学图像中各灰度像素点的像素灰度对各所述灰度像素点进行聚类,并将隶属于同一类别的各所述灰度像素点所在的区域作为候选区域;According to the pixel gray level of each gray pixel point in the medical image, each gray pixel point is clustered, and the region where each gray pixel point belonging to the same category is located is used as a candidate region;
    根据各所述像素灰度生成与所述医学图像对应的梯度图像,并根据所述梯度图像中各梯度像素点的像素梯度确定所述梯度图像内的梯度边缘;A gradient image corresponding to the medical image is generated according to each pixel grayscale, and a gradient edge in the gradient image is determined according to the pixel gradient of each gradient pixel point in the gradient image;
    根据每个所述候选区域的区域边界和所述梯度边缘间的耦合度,从各所述候选区域中检测出目标区域。A target region is detected from each of the candidate regions according to the degree of coupling between the region boundary of each of the candidate regions and the gradient edge.
  20. 根据权利要求19所述的方法,其特征在于,所述根据医学图像中各灰度像素点的像素灰度对各所述灰度像素点进行聚类,包括:The method according to claim 19, wherein the clustering each of the grayscale pixels according to the pixel grayscale of each grayscale pixel in the medical image comprises:
    对医学图像中各灰度像素点的像素灰度进行排序,并基于预先设置的类别数目在灰度排序结果中确定灰度类别拆分点;Sort the pixel gray level of each gray level pixel point in the medical image, and determine the gray level category split point in the gray level sorting result based on the preset number of categories;
    将所述灰度类别拆分点作为初始的聚类中心,基于所述聚类中心和各所述灰度像素点的像素灰度,对各所述灰度像素点进行聚类。The grayscale category split point is used as an initial cluster center, and each grayscale pixel point is clustered based on the cluster center and the pixel grayscale of each grayscale pixel point.
  21. 根据权利要求20所述的方法,其特征在于,所述基于所述聚类中心和各所述灰度像素点的像素灰度,对各所述灰度像素点进行聚类,包括:The method according to claim 20, wherein the clustering of each of the gray-scale pixel points based on the cluster center and the pixel gray level of each of the gray-scale pixel points comprises:
    针对每个所述灰度像素点,确定所述灰度像素点的像素灰度和各所述聚类中心间的灰度距离,并将所述灰度像素点聚类到与最小的所述灰度距离对应的所述聚类中心所在的类别中;For each grayscale pixel point, determine the pixel grayscale of the grayscale pixel point and the grayscale distance between each of the cluster centers, and cluster the grayscale pixel points to the smallest grayscale pixel. In the category where the cluster center corresponding to the grayscale distance is located;
    根据各所述灰度像素点分别对应的所述最小的所述灰度距离确定灰度失真,并判断所述灰度失真是否满足预先设置的聚类结束条件;Determine grayscale distortion according to the minimum grayscale distance corresponding to each of the grayscale pixels, and determine whether the grayscale distortion satisfies a preset clustering end condition;
    若否,则针对每个所述类别,根据聚类后的隶属于所述类别中的各所述灰度像素点的像素灰度重新确定所述类别的所述聚类中心;If not, for each of the categories, re-determine the cluster center of the category according to the pixel grayscale of each grayscale pixel point belonging to the category after clustering;
    重复执行所述确定所述灰度像素点的像素灰度和各所述聚类中心间的灰度距离的步骤,直至所述灰度失真满足所述聚类结束条件,聚类结束。The step of determining the pixel grayscale of the grayscale pixel point and the grayscale distance between each of the cluster centers is repeated until the grayscale distortion satisfies the clustering termination condition, and the clustering ends.
  22. 根据权利要求19所述的方法,其特征在于,所述根据所述梯度图像中各梯度像素点的像素梯度确定所述梯度图像内的梯度边缘,包括:The method according to claim 19, wherein the determining the gradient edge in the gradient image according to the pixel gradient of each gradient pixel in the gradient image comprises:
    根据各所述候选区域的区域灰度,从各所述候选区域中筛选出与待检测的目标区域的区域属性对应的灰度类别区域;According to the regional grayscale of each of the candidate regions, screen out a grayscale category region corresponding to the regional attribute of the target region to be detected from each of the candidate regions;
    根据所述梯度图像中与所述灰度类别区域内各区域像素点分别对应的梯度像素点的像素梯度,确定所述梯度图像内的梯度边缘。The gradient edge in the gradient image is determined according to the pixel gradients of the gradient pixel points in the gradient image corresponding to the pixel points of each region in the gray-scale category area.
  23. 根据权利要求19所述的方法,其特征在于,所述根据所述梯度图像中各梯度像素点的像素梯度确定所述梯度图像内的梯度边缘,包括:The method according to claim 19, wherein the determining the gradient edge in the gradient image according to the pixel gradient of each gradient pixel in the gradient image comprises:
    以所述梯度图像中各梯度像素点的像素梯度为依据,对各所述梯度像素点进行排序,并 根据各所述梯度像素点在排序结果中的排序位置对各所述梯度像素点进行筛选,生成与所述梯度图像对应的二值图像;Sorting the gradient pixel points based on the pixel gradient of each gradient pixel point in the gradient image, and screening each gradient pixel point according to the sorting position of each gradient pixel point in the sorting result , generating a binary image corresponding to the gradient image;
    将所述二值图像内各二值像素点构成的二值边缘作为所述梯度图像的梯度边缘。The binary edge formed by each binary pixel in the binary image is used as the gradient edge of the gradient image.
  24. 根据权利要求19所述的方法,其特征在于,针对各所述候选区域中的当前区域,所述根据每个所述候选区域的区域边界和所述梯度边缘间的耦合度,从各所述候选区域中检测出目标区域,包括:The method according to claim 19, wherein, for the current region in each of the candidate regions, according to the degree of coupling between the region boundary of each of the candidate regions and the gradient edge, from each of the candidate regions The target area is detected in the candidate area, including:
    获取所述当前区域的当前边界中各当前像素点和所述梯度边缘中各边缘像素点在像素位置上的第一相似度、以及各所述当前像素点和已检测为目标区域的所述候选区域的目标边界中各目标像素点在所述像素位置上的第二相似度;Obtain the first similarity in pixel positions of each current pixel in the current boundary of the current area and each edge pixel in the gradient edge, and each of the current pixels and the candidate detected as the target area the second similarity of each target pixel at the pixel position in the target boundary of the area;
    根据所述第一相似度、或是所述第一相似度和所述第二相似度,判断所述当前区域是否为所述目标区域以实现所述目标区域的检测。According to the first similarity, or the first similarity and the second similarity, it is determined whether the current area is the target area to detect the target area.
  25. 根据权利要求19所述的方法,其特征在于,所述根据每个所述候选区域的区域边界和所述梯度边缘间的耦合度,从各所述候选区域中检测出目标区域,包括:The method according to claim 19, wherein the detecting a target region from each candidate region according to the coupling degree between the region boundary of each candidate region and the gradient edge comprises:
    根据待检测的目标区域的区域属性确定各所述候选区域的区域检测顺序,并根据所述区域检测顺序从各所述候选区域中筛选出当前区域;Determine the region detection order of each of the candidate regions according to the region attribute of the target region to be detected, and filter out the current region from each of the candidate regions according to the region detection order;
    根据所述当前区域的区域边界和所述梯度边缘间的耦合度判断是否将所述当前区域作为所述目标区域,并根据判断结果实现所述目标区域的检测;Judging whether to use the current region as the target region according to the coupling degree between the region boundary of the current region and the gradient edge, and detecting the target region according to the judgment result;
    将在所述区域检测顺序中位于所述当前区域的下一区域作为所述当前区域,并重复执行所述根据所述当前区域的区域边界和所述梯度边缘间的耦合度判断是否将所述当前区域作为所述目标区域的步骤,直至已检测的所述候选区域、和/或所述梯度边缘满足预先设置的判断结束条件。Taking the next region located in the current region in the region detection sequence as the current region, and repeating the process of determining whether to use the The step of using the current area as the target area until the detected candidate area and/or the gradient edge satisfies a preset judgment end condition.
PCT/CN2021/112733 2020-08-14 2021-08-16 Breast x-ray radiography acquisition method and apparatus, and computer device and storage medium WO2022033598A1 (en)

Applications Claiming Priority (6)

Application Number Priority Date Filing Date Title
CN202010817353.6 2020-08-14
CN202010817353.6A CN111991016B (en) 2020-08-14 2020-08-14 Image acquisition parameter acquisition method, device, equipment, system and storage medium
CN202010880432.1A CN111899260A (en) 2020-08-27 2020-08-27 Breast X-ray image display method, device and storage medium
CN202010880432.1 2020-08-27
CN202011630482.0A CN114693907A (en) 2020-12-31 2020-12-31 Region detection method, device, equipment and storage medium
CN202011630482.0 2020-12-31

Publications (1)

Publication Number Publication Date
WO2022033598A1 true WO2022033598A1 (en) 2022-02-17

Family

ID=80247744

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/112733 WO2022033598A1 (en) 2020-08-14 2021-08-16 Breast x-ray radiography acquisition method and apparatus, and computer device and storage medium

Country Status (1)

Country Link
WO (1) WO2022033598A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116227238A (en) * 2023-05-08 2023-06-06 国网安徽省电力有限公司经济技术研究院 Operation monitoring management system of pumped storage power station

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080130978A1 (en) * 2006-12-05 2008-06-05 Fujifilm Corporation Method and apparatus for detection using cluster-modified graph cuts
US20090097615A1 (en) * 2007-10-16 2009-04-16 Daniel Fischer Device and method for processing and presentation of x-ray images
US20100310181A1 (en) * 2006-12-22 2010-12-09 Art Advanced Research Technologies Inc. Registration of optical images of turbid media
CN104066374A (en) * 2011-11-23 2014-09-24 皇家飞利浦有限公司 Method and device for imaging soft body tissue using X-ray projection and optical tomography
CN105682556A (en) * 2013-10-30 2016-06-15 皇家飞利浦有限公司 Optimization of x-ray imaging during mammographic examination
CN105726049A (en) * 2016-01-14 2016-07-06 深圳安科高技术股份有限公司 Digital mammary gland X-ray machine and automatic exposure image optimization method thereof
US20190333225A1 (en) * 2018-04-25 2019-10-31 Mim Software Inc. Image segmentation with active contour
CN111445983A (en) * 2020-03-31 2020-07-24 杭州依图医疗技术有限公司 Medical information processing method and system for breast scanning and storage medium
CN111899260A (en) * 2020-08-27 2020-11-06 上海联影医疗科技有限公司 Breast X-ray image display method, device and storage medium
CN111991016A (en) * 2020-08-14 2020-11-27 上海联影医疗科技股份有限公司 Image acquisition parameter acquisition method, device, equipment, system and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080130978A1 (en) * 2006-12-05 2008-06-05 Fujifilm Corporation Method and apparatus for detection using cluster-modified graph cuts
US20100310181A1 (en) * 2006-12-22 2010-12-09 Art Advanced Research Technologies Inc. Registration of optical images of turbid media
US20090097615A1 (en) * 2007-10-16 2009-04-16 Daniel Fischer Device and method for processing and presentation of x-ray images
CN104066374A (en) * 2011-11-23 2014-09-24 皇家飞利浦有限公司 Method and device for imaging soft body tissue using X-ray projection and optical tomography
CN105682556A (en) * 2013-10-30 2016-06-15 皇家飞利浦有限公司 Optimization of x-ray imaging during mammographic examination
CN105726049A (en) * 2016-01-14 2016-07-06 深圳安科高技术股份有限公司 Digital mammary gland X-ray machine and automatic exposure image optimization method thereof
US20190333225A1 (en) * 2018-04-25 2019-10-31 Mim Software Inc. Image segmentation with active contour
CN111445983A (en) * 2020-03-31 2020-07-24 杭州依图医疗技术有限公司 Medical information processing method and system for breast scanning and storage medium
CN111991016A (en) * 2020-08-14 2020-11-27 上海联影医疗科技股份有限公司 Image acquisition parameter acquisition method, device, equipment, system and storage medium
CN111899260A (en) * 2020-08-27 2020-11-06 上海联影医疗科技有限公司 Breast X-ray image display method, device and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116227238A (en) * 2023-05-08 2023-06-06 国网安徽省电力有限公司经济技术研究院 Operation monitoring management system of pumped storage power station

Similar Documents

Publication Publication Date Title
US20200160997A1 (en) Method for detection and diagnosis of lung and pancreatic cancers from imaging scans
CN108464840B (en) Automatic detection method and system for breast lumps
WO2018120942A1 (en) System and method for automatically detecting lesions in medical image by means of multi-model fusion
US7646902B2 (en) Computerized detection of breast cancer on digital tomosynthesis mammograms
Chen et al. Computer-aided diagnosis applied to US of solid breast nodules by using neural networks
US8340388B2 (en) Systems, computer-readable media, methods, and medical imaging apparatus for the automated detection of suspicious regions of interest in noise normalized X-ray medical imagery
US9262822B2 (en) Malignant mass detection and classification in radiographic images
WO2021179491A1 (en) Image processing method and apparatus, computer device and storage medium
CN111553892B (en) Lung nodule segmentation calculation method, device and system based on deep learning
US20110026791A1 (en) Systems, computer-readable media, and methods for classifying and displaying breast density
CN101103924A (en) Galactophore cancer computer auxiliary diagnosis method based on galactophore X-ray radiography and system thereof
US20100111392A1 (en) System and method for automatically classifying regions-of-interest
KR20150073628A (en) System and method for adapting diagnosis model of computer aided diagnosis
US20110064289A1 (en) Systems and Methods for Multilevel Nodule Attachment Classification in 3D CT Lung Images
Kaur et al. Computer-aided diagnosis of renal lesions in CT images: a comprehensive survey and future prospects
Kaliyugarasan et al. Pulmonary nodule classification in lung cancer from 3D thoracic CT scans using fastai and MONAI
WO2022033598A1 (en) Breast x-ray radiography acquisition method and apparatus, and computer device and storage medium
CN111128348A (en) Medical image processing method, device, storage medium and computer equipment
CN112529900B (en) Method, device, terminal and storage medium for matching ROI in mammary gland image
JP2023516651A (en) Class-wise loss function to deal with missing annotations in training data
Hussain et al. Deep learning in DXA image segmentation
Xu et al. Improved cascade R-CNN for medical images of pulmonary nodules detection combining dilated HRNet
Lee et al. Automatic left and right lung separation using free-formed surface fitting on volumetric CT
CN114742753A (en) Image evaluation method and device based on neural network
Salman et al. Breast Cancer Classification as Malignant or Benign based on Texture Features using Multilayer Perceptron

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: 21855648

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21855648

Country of ref document: EP

Kind code of ref document: A1