CN114359114B - Mononuclear focus hue reduction method and device, electronic equipment and storage medium - Google Patents

Mononuclear focus hue reduction method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114359114B
CN114359114B CN202210255132.3A CN202210255132A CN114359114B CN 114359114 B CN114359114 B CN 114359114B CN 202210255132 A CN202210255132 A CN 202210255132A CN 114359114 B CN114359114 B CN 114359114B
Authority
CN
China
Prior art keywords
focus
region
hue
distance
ray
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202210255132.3A
Other languages
Chinese (zh)
Other versions
CN114359114A (en
Inventor
杨扬
张国旺
容若文
李小瑞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ningbo Dobi Medical Technology Co ltd
Original Assignee
Ningbo Dobi Medical Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ningbo Dobi Medical Technology Co ltd filed Critical Ningbo Dobi Medical Technology Co ltd
Priority to CN202210255132.3A priority Critical patent/CN114359114B/en
Publication of CN114359114A publication Critical patent/CN114359114A/en
Application granted granted Critical
Publication of CN114359114B publication Critical patent/CN114359114B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Studio Devices (AREA)
  • Character Input (AREA)

Abstract

The invention provides a mononuclear focus hue restoration method, a mononuclear focus hue restoration device, electronic equipment and a storage medium, which can perform hue restoration on a region overlapped with another mononuclear focus region in a target mononuclear focus region according to a focus diffusion rule, can deduce the relationship between a color restoration point positioned in the overlapped region and a target point positioned at the edge of the overlapped region based on a diffusion equation, and perform hue restoration on a color restoration point according to the relationship, thereby effectively restoring the mononuclear focus region on the premise of referring to a focus diffusion basic rule. The invention also provides a mononuclear focus hue reduction device, electronic equipment and a storage medium, and has the beneficial effects.

Description

Mononuclear focus hue reduction method and device, electronic equipment and storage medium
Technical Field
The invention relates to the field of medicine, in particular to a mononuclear focus hue restoration method, a mononuclear focus hue restoration device, electronic equipment and a storage medium.
Background
The lesion refers to a portion of the body where a lesion occurs, and the mononuclear lesion area is a lesion area containing a single lesion nucleus. In the process of generating the focal zone, the mononuclear lesion area is often adhered to other mononuclear lesion areas to form overlapping colors or discoloring, which affects observation of the mononuclear lesion and further affects medical diagnosis effect on the size and severity of the lesion. Therefore, the method has important significance for reducing the color of the mononuclear lesion and improving the diagnosis effectiveness of the lesion.
In the related art, the color reduction usually adopts a K-means method (K mean), a multi-scale Retinex algorithm (theory of retinal cerebral cortex), a color cast reduction method, a white balance method and the like, however, the application environment of the above methods is greatly different from that of a two-dimensional image of lesion diagnosis, and the effect does not meet the requirement of the lesion diagnosis.
Disclosure of Invention
The invention aims to provide a mononuclear focus hue restoration method, a mononuclear focus hue restoration device, electronic equipment and a storage medium, which can effectively restore the hue of a mononuclear focus region according to a focus diffusion rule so as to solve the problem that the hue value of a focus cannot be effectively restored by the conventional color restoration method.
In order to solve the above technical problems, the present invention provides a method for reducing the hue of a mononuclear lesion, comprising:
acquiring a near-infrared image of a binuclear focus;
determining a mononuclear lesion area comprising a lesion core area and a hue restoration area in the binuclear lesion near-infrared image, and generating a first ray and a second ray which take the core center of the lesion core area as a starting point and are tangent to the hue restoration area;
determining a first radian of a polar angle corresponding to the first ray and a second radian of a polar angle corresponding to the second ray in a preset polar coordinate system with the core center as an origin;
determining a first intersection point between the edge of the focal nucleus region and the first ray, and determining a first distance between the nucleus center and the first intersection point;
searching a corresponding target point for each hue restoration point in the hue restoration area on the second ray by using the first distance, the first radian and the second radian, and replacing the hue value of the hue restoration point with the hue value of the target point to complete the hue restoration of the hue restoration area.
Optionally, the determining, in the dual-core near-infrared image of the lesion, a single-core lesion region including a lesion core region and a hue restoration region, and generating a first ray and a second ray that start from a core center of the lesion core region and are tangent to the hue restoration region include:
extracting a focus region from the binuclear focus near-infrared image by using a preset hue value range, and extracting a first focus nucleus region and a second focus nucleus region in the focus region;
setting the gravity center of the first lesion nuclear area and the gravity center of the second lesion nuclear area as a first nuclear center and a second nuclear center respectively, and determining a connecting line between the first nuclear center and the second nuclear center;
determining a lesion segmentation line perpendicular to the connection line and second and third intersection points between the lesion segmentation line and an edge of the lesion area;
generating the first ray starting from the first kernel center and passing through the second intersection point, and generating the second ray starting from the first kernel center and passing through the third intersection point, and determining the first radian, the second radian and the first distance;
determining a fourth intersection point between the second ray and the first focus nuclear region, and respectively determining a second distance between the first nuclear center and the fourth intersection point and a third distance between the first nuclear center and the third intersection point;
generating a first diffusion boundary corresponding to the first lesion core region and passing through the second intersection point and the third intersection point by using the first distance, the second distance, the third distance, the first radian and the second radian as follows:
Figure 793331DEST_PATH_IMAGE001
wherein the content of the first and second substances,
Figure 329354DEST_PATH_IMAGE002
representing diffusion boundary points and diffusion boundary points on the first diffusion boundaryThe distance between the centers of the first cores,
Figure 298447DEST_PATH_IMAGE003
representing the radian of a target ray which takes the first nuclear center as a starting point and passes through the diffusion boundary point in a preset polar coordinate system which takes the first nuclear center as an origin point, wherein
Figure 250223DEST_PATH_IMAGE004
Represents the first distance, the
Figure 519530DEST_PATH_IMAGE005
Represents the second distance, the
Figure 662673DEST_PATH_IMAGE006
Represents the third distance, the
Figure 119062DEST_PATH_IMAGE007
Represents the first arc, the
Figure 77791DEST_PATH_IMAGE008
Representing the second arc;
generating a second diffusion boundary which corresponds to the second lesion core region and passes through the second intersection point and the third intersection point, and determining a fifth intersection point of the second diffusion boundary and the connecting line;
generating a boundary line which takes the fifth intersection point as a vertical foot and is perpendicular to the connecting line, and setting a region surrounded by the boundary line, the first ray, the second ray and the first diffusion boundary as a hue restoration region corresponding to the first lesion core region;
and segmenting the focus area by using the segmentation line to obtain an initial mononuclear focus area corresponding to the first focus core area, and completing the initial mononuclear focus area by using the hue restoration area to obtain a mononuclear focus area corresponding to the first focus core area.
Optionally, the extracting a lesion area in the binuclear lesion near-infrared image by using a preset hue value range, and extracting a first lesion core area and a second lesion core area in the lesion area, includes:
extracting the focus area from the binuclear focus near-infrared image by using a first preset hue value range;
extracting the first focus nucleus area and the second focus nucleus area in the focus area by using a second preset hue value range; the first predetermined hue value range includes and is greater than the second predetermined hue value range.
Optionally, the searching for a corresponding target point for each color restoration point in the color restoration region on the second ray by using the first distance, the first radian, and the second radian includes:
and extracting the hue restoration points in the hue restoration areas according to a preset sequence, and searching corresponding target points for the extracted hue restoration points on the second ray by using the first distance, the first radian and the second radian.
Optionally, the finding, for each hue restoration point in the hue restoration region, a corresponding target point on the second ray by using the first distance, the first radian, and the second radian includes:
generating a third ray which takes the core center as a starting point and passes through the hue complex origin, and determining a third radian of a polar angle corresponding to the third ray in a preset polar coordinate system which takes the core center as the origin;
determining a sixth intersection point between the edge of the focal nucleus region and the third ray, and determining a fourth distance between the nucleus center and the sixth intersection point;
determining a fifth distance between the hue restoration point and the kernel center, and determining the target point by using the first distance, the fourth distance, the fifth distance, the first radian, the second radian and the third radian according to the following modes:
Figure 670447DEST_PATH_IMAGE009
wherein, the
Figure 485956DEST_PATH_IMAGE006
Representing a distance between the target point on the second ray and the core center, the
Figure 695220DEST_PATH_IMAGE004
Represents the first distance, the
Figure 254378DEST_PATH_IMAGE010
Represents the fourth distance, the
Figure 967119DEST_PATH_IMAGE002
Represents the fifth distance, the
Figure 891212DEST_PATH_IMAGE007
Represents the first arc, the
Figure 322194DEST_PATH_IMAGE008
Represents the second arc, the
Figure 920928DEST_PATH_IMAGE003
Representing the third arc.
The invention also provides a mononuclear focus hue reduction device, which comprises:
the acquisition module is used for acquiring a near-infrared image of the binuclear focus;
the area and ray determining module is used for determining a mononuclear focus area containing a focus core area and a hue restoration area in the binuclear focus near-infrared image, and generating a first ray and a second ray which take the core center of the focus core area as a starting point and are tangent to the hue restoration area;
the radian determining module is used for determining a first radian of the polar angle corresponding to the first ray and a second radian of the polar angle corresponding to the second ray in a preset polar coordinate system with the core center as an origin;
an intersection and distance determination module for determining a first intersection between the edge of the focal nucleus region and the first ray, and determining a first distance between the nucleus center and the first intersection;
and the hue restoring module is used for searching a corresponding target point for each hue restoration point in the hue restoration area on the second ray by using the first distance, the first radian and the second radian, and replacing the hue value of the hue restoration point with the hue value of the target point to finish the hue restoration of the hue restoration area.
Optionally, the region and ray determining module includes:
the first region extraction submodule is used for extracting a focus region from the binuclear focus near-infrared image by utilizing a preset hue value range and extracting a first focus nucleus region and a second focus nucleus region in the focus region;
the first drawing submodule is used for setting the gravity center of the first focus nuclear area and the gravity center of the second focus nuclear area as a first nuclear center and a second nuclear center respectively and determining a connecting line between the first nuclear center and the second nuclear center;
a second rendering submodule for determining a lesion segmentation line perpendicular to the line and second and third intersections between the lesion segmentation line and an edge of the lesion area;
a third rendering submodule, configured to generate the first ray that starts from the first kernel center and passes through the second intersection point, generate the second ray that starts from the first kernel center and passes through the third intersection point, and determine the first radian, the second radian, and the first distance;
the distance calculation submodule is used for determining a fourth intersection point between the second ray and the first focal nucleus region, and respectively determining a second distance between the first nucleus center and the fourth intersection point and a third distance between the first nucleus center and the third intersection point;
a fourth rendering submodule, configured to generate, by using the first distance, the second distance, the third distance, the first radian, and the second radian, a first diffusion boundary that passes through the second intersection point and the third intersection point and corresponds to the first lesion nuclear region in the following manner:
Figure 19334DEST_PATH_IMAGE001
wherein, the first and the second end of the pipe are connected with each other,
Figure 911066DEST_PATH_IMAGE002
representing a distance between a diffusion boundary point on the first diffusion boundary and the first core center,
Figure 360502DEST_PATH_IMAGE003
representing the radian of a target ray which takes the first nuclear center as a starting point and passes through the diffusion boundary point in a preset polar coordinate system which takes the first nuclear center as an origin point, wherein
Figure 995883DEST_PATH_IMAGE004
Represents the first distance, the
Figure 417637DEST_PATH_IMAGE005
Represents the second distance, the
Figure 11429DEST_PATH_IMAGE006
Represents the third distance, the
Figure 384379DEST_PATH_IMAGE007
Represents the first arc, the
Figure 89030DEST_PATH_IMAGE008
Representing the second arc;
the fifth drawing submodule is used for generating a second diffusion boundary which corresponds to the second lesion nuclear area and passes through the second intersection point and the third intersection point, and determining a fifth intersection point of the second diffusion boundary and the connecting line;
a sixth drawing sub-module, configured to generate a boundary line that is perpendicular to the connecting line and that takes the fifth intersection point as a foot, and set a region surrounded by the boundary line, the first ray, the second ray, and the first diffusion boundary as a hue restoration region corresponding to the first lesion core region;
and the second region extraction submodule is used for segmenting the focus region by utilizing the segmentation line to obtain an initial mononuclear focus region corresponding to the first focus nucleus region, and completing the initial mononuclear focus region by utilizing the hue restoration region to obtain a mononuclear focus region corresponding to the first focus nucleus region.
Optionally, the first region extraction sub-module includes:
the focus region extraction unit is used for extracting the focus region from the binuclear focus near-infrared image by utilizing a first preset hue value range;
a lesion core region extraction unit configured to extract the first lesion core region and the second lesion core region in the lesion region using a second preset hue value range; the first predetermined hue value range includes and is greater than the second predetermined hue value range.
The present invention also provides an electronic device comprising:
a memory for storing a computer program;
a processor for implementing the steps of the mononuclear lesion hue restoration method as described above when the computer program is executed.
The present invention also provides a storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the mononuclear lesion hue restoration method as described above.
The invention provides a mononuclear focus hue reduction method, which comprises the following steps: acquiring a near-infrared image of a binuclear focus; determining a mononuclear lesion area comprising a lesion core area and a hue restoration area in the binuclear lesion near-infrared image, and generating a first ray and a second ray which take the core center of the lesion core area as a starting point and are tangent to the hue restoration area; determining a first radian of a polar angle corresponding to the first ray and a second radian of a polar angle corresponding to the second ray in a preset polar coordinate system with the core center as an origin; determining a first intersection point between the edge of the focal nucleus region and the first ray, and determining a first distance between the nucleus center and the first intersection point; searching a corresponding target point for each hue restoration point in the hue restoration area on the second ray by using the first distance, the first radian and the second radian, and replacing the hue value of the hue restoration point with the hue value of the target point to complete the hue restoration of the hue restoration area.
Therefore, when a binuclear focus near-infrared image is acquired, a mononuclear focus region comprising a focus core region and a color restoration region is extracted, and a first ray and a second ray which take the core center of the focus core region as a starting point and are tangent to the color restoration region are generated; then, the invention determines parameter information related to the first ray and the second ray, namely a first distance from the intersection point of the first ray and the edge of the lesion nuclear region to the nuclear center, and a first radian and a second radian of corresponding polar angles of the two rays in a preset polar coordinate system with the nuclear center as an origin; furthermore, the invention searches a target point corresponding to the first ray or the second ray by using the first distance, the first radian and the second radian as each hue restoration point in the hue restoration region, and replaces the hue value of the hue restoration point by using the hue value of the target point, which is because the diffusion of the focus basically accords with the diffusion equation, and further can be determined based on the diffusion equation, for the hue restoration point and the target point which theoretically have the same hue value, the distance between the hue restoration point and the target point relative to the core center forms an incidence relation with the first distance, the first radian and the second radian, so the parameter information is adopted to carry out hue restoration on the hue restoration region in the mononuclear focus region, the basic rule of the diffusion of the focus is met, and the mononuclear focus region can be effectively restored. The invention also provides a mononuclear focus hue reduction device, electronic equipment and a storage medium, and has the beneficial effects.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flowchart of a method for hue reduction of mononuclear lesions according to an embodiment of the present invention;
FIG. 2 is a schematic view of a lesion according to an embodiment of the present invention;
FIG. 3 is a schematic view of the hue reduction effect of a mononuclear lesion according to an embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating segmentation of a mononuclear lesion region according to an embodiment of the present invention;
fig. 5 is a block diagram illustrating a color reduction apparatus for mononuclear lesions according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to solve the problem that the color phase value of a focus image cannot be effectively reduced by the existing color reduction method, the invention provides a mononuclear focus color phase reduction method which can effectively reduce the color phase of a mononuclear focus area according to a focus diffusion rule so as to obtain a focus restoration image meeting the focus diagnosis requirement. Referring to fig. 1, fig. 1 is a flowchart of a mononuclear focus hue restoration method according to an embodiment of the present invention, where the method may include:
s101, acquiring a near-infrared image of the binuclear focus.
The binuclear focus near-infrared image is a color image obtained by performing near-infrared shooting on a focus region containing two focus nuclei (diffusion centers of focuses), and different Hue values (Hue) can be used for expressing the concentration of the focuses, so that medical personnel can analyze the diffusion conditions of the focuses according to the Hue value distribution in the image. It should be noted that, the embodiment of the present invention does not limit the specific acquisition parameters of the near-infrared image of the binuclear lesion, and can be set according to the actual application requirements. It should be noted that, although the embodiment of the present invention is described by using a dual-core lesion near-infrared image, this is only because the description of the present method based on a multi-core lesion near-infrared image including two or more lesion cores will make the text redundant, and in practical applications, the present method may also be used in a near-infrared image including two or more multi-core lesions.
S102, determining a mononuclear lesion area containing a lesion core area and a hue restoration area in the binuclear lesion near-infrared image, and generating a first ray and a second ray which take the core center of the lesion core area as a starting point and are tangent to the hue restoration area.
It should be noted that the mononuclear lesion region is a lesion region containing only a single lesion nucleus, wherein the lesion nucleus is a diffusion center of the lesion, i.e., a position with the highest concentration in the mononuclear lesion region. In the medical field, these mononuclear lesion areas often overlap with each other, which may cause a color overlap or discoloration, and may easily interfere with the analysis of the diffusion of a single lesion by medical personnel. Therefore, how to restore the hue value of the overlapped part of the mononuclear lesion area and other lesions has an important role in improving the analysis effect of medical personnel on the diffusion condition of the mononuclear lesion area.
In order to solve the above problems, in an embodiment of the present invention, a primary extraction is performed on a binuclear lesion near-infrared image to obtain a mononuclear lesion region including a lesion core region and a hue restoration region, where the hue restoration region is an overlapping portion of the mononuclear lesion region and other mononuclear lesion regions. Specifically, in a binuclear near-infrared image of a lesion, the hue value of a lesion region is usually larger than that of a normal region, so that the lesion region can be extracted by using a preset hue value range; in addition, since the hue value of the lesion increases as its concentration increases and the concentration of the nucleus region of the lesion is generally higher than other portions in the lesion region, the hue value of the nucleus region of the lesion is greater than other portions in the lesion region, and the nucleus region of the lesion may be extracted in the lesion region using another preset hue value range. It should be noted that, the embodiment of the present invention does not limit the preset hue value range used for extracting the lesion area and the lesion core area, and can be set according to the actual application requirements.
Further, because the diffusion of the focus basically conforms to a diffusion equation, namely, the diffusion speed from the focus nucleus to the periphery is basically uniform, after the focus nucleus region is obtained, the nucleus center of the focus nucleus region can be set as the circle center and a corresponding circular region can be drawn, so that the position of the mononuclear focus region and the overlapping region between the adjacent mononuclear focus regions can be preliminarily determined. For example, for a mononuclear lesion region, the center of gravity of the lesion core region may be taken as the core center, the closest distance between the core center and the edge of the lesion region may be determined, a circular region may be generated for the mononuclear lesion region with the core center as the center and the closest distance as the radius, and the approximate position of the mononuclear lesion region may be determined based on the circular region. Of course, in practical situations, there may be a difference in the diffusion speed of the lesion nuclei around the breast, for example, when the lesion is located in the breast area, the diffusion may be affected by the breast density, so that when the position of the mononuclear lesion area is determined, the correction may be performed according to the practical situation, please refer to the description in the following embodiments. It should be noted that the embodiment of the present invention does not limit how to determine the center of gravity of the lesion core area, for example, the coordinate values of each pixel point in the lesion core area may be averaged, and a point corresponding to the average value may be set as the core center of the lesion core area.
Further, please refer to the description in the following embodiments for specific applications and drawing manners of the first ray and the second ray drawn in the embodiments of the present invention.
S103, determining a first radian of the polar angle corresponding to the first ray and a second radian of the polar angle corresponding to the second ray in a preset polar coordinate system with the nuclear center as an origin.
In embodiments of the present invention, it is contemplated that the diffusion of a lesion generally follows the law of diffusion, and thus, the lesion may be hue restored according to the law. Specifically, the diffusion law refers to the mass and concentration of a diffusing substance flowing through a curved surface per unit area in the normal direction n within a unit time
Figure 630870DEST_PATH_IMAGE011
Directional derivative along normal direction n
Figure 395564DEST_PATH_IMAGE012
Proportional ratio, where x, y, z represent three directions in a three-dimensional coordinate system, and t represents time. The diffusion equation can be expressed as:
Figure 22854DEST_PATH_IMAGE013
(formula 1)
Wherein
Figure 265617DEST_PATH_IMAGE014
Indicating the diffusion coefficient, the negative sign appears because the substance always permeates from the side with a high concentration to the side with a low concentration. By transforming equation 1, we can get:
Figure 661963DEST_PATH_IMAGE015
(formula 2)
Wherein the left half of equation 2 is the rate of diffusion of the substance across the cross-section
Figure 535241DEST_PATH_IMAGE016
. Assuming a uniform cross-section, the linear velocity of the mass flow is:
Figure 649828DEST_PATH_IMAGE017
(formula 3)
Wherein A is a constant. Since the binuclear near-infrared image of the lesion is two-dimensional, the component on the z-axis is 0, and therefore the above equation can be transformed into:
Figure 197746DEST_PATH_IMAGE018
(formula 4)
Wherein
Figure 714178DEST_PATH_IMAGE019
Can express diffusion speed in x and y directions and has the unit of
Figure 555095DEST_PATH_IMAGE020
. From the conservation of mass equation, a variant of the diffusion equation can be obtained:
Figure 156977DEST_PATH_IMAGE021
(formula 5)
D here can be regarded as a constant coefficient. Similarly, the diffusion equation in one dimension can be derived:
Figure 741543DEST_PATH_IMAGE022
(formula 6)
In the case of the breast, the diffusion rate in the same direction in the breast of the tumor cells is also substantially uniform due to the substantially same density. Let a, B be two rays with focus diffusion center (nuclear center) as starting point, A, B are respectively positioned on ray a and ray B, the diffusion time and diffusion concentration corresponding to these two points are identical, in which the distance between A point and diffusion center is
Figure 112481DEST_PATH_IMAGE023
The distance from point B to the diffusion center is
Figure 505327DEST_PATH_IMAGE024
Then based on equation 6 one can get:
Figure 328926DEST_PATH_IMAGE025
(formula 7)
Figure 717182DEST_PATH_IMAGE026
(formula 8)
The two formulas are divided to obtain:
Figure 942627DEST_PATH_IMAGE027
(formula 9)
If the straight line a is known, i.e. C and
Figure 125347DEST_PATH_IMAGE023
given this, then:
Figure 701822DEST_PATH_IMAGE028
(formula 10)
On the basis, if the focus nuclear region is determined, the ratio of Db to Da can be solved by using the distance from the intersection point of the ray and the focus nuclear region edge to the diffusion center. Specifically, the distance from the intersection point of the ray a and the edge of the focal nucleus region to the diffusion center is set as
Figure 129654DEST_PATH_IMAGE029
The distance from the intersection point of the ray b and the edge of the focal nucleus region to the diffusion center is
Figure 6343DEST_PATH_IMAGE030
Then, one obtains:
Figure 625543DEST_PATH_IMAGE031
(formula 11)
Substituting equation 11 into equation 10 can result in:
Figure 423735DEST_PATH_IMAGE032
(formula 12)
Then the concentration at Δ xb is the concentration at Δ xa (the density of the lesion), i.e. the color degrees of the two are the same.
Further, since the density of the breast actually changes in the actual situation, that is, the density gradually increases from the root to the head, the diffusion coefficient D in the same direction does not change, and it is necessary to neutralize and reduce the diffusion coefficient change caused by density conversion. Specifically, referring to fig. 2, fig. 2 is a schematic view of a lesion according to an embodiment of the present invention, in which a point O is a core center, an upward arrow with the point O as an origin represents a polar axis in a preset polar coordinate system, c and d are two rays with the point O as an origin and tangent to a color restoration region, and radians corresponding to polar angles between the two rays and the polar axis are respectively shown as
Figure 357056DEST_PATH_IMAGE007
And
Figure 291514DEST_PATH_IMAGE008
the point C and the point D are respectively located on the ray C and the ray D and have the same concentration (that is, the hue value is the same), the point E is a point having the same concentration as the point C and the point D in the color restoration region, and the radian corresponding to the polar angle between the ray (hereinafter, simply referred to as the ray E) passing through the point E with the core center as the starting point and the polar axis is
Figure 81616DEST_PATH_IMAGE003
. Because the change of the normal breast density is generally linear, the change can imitate an arc line which is sent from the point C, passes through the point E and reaches the point D, the concentration of each point on the arc line is the same, the diffusion coefficients at the two ends of the arc line are the diffusion coefficient Dc corresponding to the point C and the diffusion coefficient Dd corresponding to the point D, and the diffusion coefficient on the arc lineIs linearly transformed with the change of radian. For example, for point E, the corresponding diffusion coefficient De is:
Figure 367103DEST_PATH_IMAGE033
(formula 13)
By transforming equation 11, we can obtain:
Figure 133809DEST_PATH_IMAGE034
(formula 14)
Substituting equation 14 into equation 13 yields:
Figure 188353DEST_PATH_IMAGE035
(formula 15)
According to
Figure 149355DEST_PATH_IMAGE036
When De is represented by Dd, we can obtain:
Figure 656560DEST_PATH_IMAGE037
(formula 16)
Can be calculated according to the formula 16
Figure 259580DEST_PATH_IMAGE002
So that the position of the color origin of replication is known. In other words, the method is adopted to carry out hue restoration on the focus, and can also carry out compensation and correction on the diffusion coefficient change problem caused by density transformation of the focus area, thereby further improving the accuracy of focus restoration.
Of course, in practical application, for convenience, the pushing-back mode can be adopted, namely, the mode of pushing backwards is used
Figure 434209DEST_PATH_IMAGE002
Computing
Figure 300534DEST_PATH_IMAGE006
Then the distance on the ray d from the center of the nucleus is
Figure 62079DEST_PATH_IMAGE006
The hue value of the target point of (2) is assigned to the hue origin. When all the points to be restored are color restored, the restoration of the focal zone is completed. Specifically, the following formula can be derived using the same method:
Figure 672052DEST_PATH_IMAGE009
(formula 17)
Wherein
Figure 701188DEST_PATH_IMAGE010
The distance from the intersection point of the ray e and the focal nucleus region to the nucleus center.
After the above derivation process is described in detail, specific steps involved in the embodiments of the present invention will be described below. Specifically, in steps S102 to S103, first, a first ray and a second ray that start from the core center and are tangent to the hue restoration region should be generated, and radians corresponding to polar angles of the two rays in a preset polar coordinate system with the core center as the origin, that is, a first radian corresponding to the first ray and a second radian corresponding to the second ray, should be determined. It should be noted that, the embodiment of the present invention is not limited to a specific polar coordinate system, and for example, the orientation of the polar axis and the positive direction of rotation can be set according to practical application requirements.
S104, determining a first intersection point between the edge of the focal nucleus region and the first ray, and determining a first distance between the nucleus center and the first intersection point.
Subsequently, in step S104, a first distance from a first intersection point of the first ray with an edge of the lesion core region to the core center needs to be determined. Of course, this step may also be performed using the second ray.
S105, searching a corresponding target point on a second ray by using the first distance, the first radian and the second radian as each hue restoration point in the hue restoration area, and replacing the hue value of the hue restoration point with the hue value of the target point to complete the hue restoration of the hue restoration area.
It can be understood that the hue restoration point is each pixel point in the color restoration region. In one possible case, finding a corresponding target point for each color restoration point in the color restoration area on the second ray by using the first distance, the first radian and the second radian may include:
step 11: generating a third ray which takes the core center as a starting point and passes through the hue complex origin, and determining a third radian of a polar angle corresponding to the third ray in a preset polar coordinate system which takes the core center as the origin;
step 12: determining a sixth intersection point between the edge of the focal nucleus region and the third ray, and determining a fourth distance between the nucleus center and the sixth intersection point;
step 13: determining a fifth distance between the hue restoration point and the kernel center, and determining a target point by using the first distance, the fourth distance, the fifth distance, the first radian, the second radian and the third radian according to the following modes:
Figure 738414DEST_PATH_IMAGE009
wherein the content of the first and second substances,
Figure 751369DEST_PATH_IMAGE006
representing the distance between the target point on the second ray and the center of the nucleus,
Figure 165033DEST_PATH_IMAGE004
the first distance is represented as a function of,
Figure 48675DEST_PATH_IMAGE010
it is indicated that the fourth distance is,
Figure 522382DEST_PATH_IMAGE002
a fifth distance is indicated which is the distance,
Figure 990010DEST_PATH_IMAGE007
represents the firstThe arc degree of the arc is that,
Figure 941786DEST_PATH_IMAGE008
which represents the second arc of the circle,
Figure 148776DEST_PATH_IMAGE003
representing a third radian.
Of course, if the step S104 is performed by using the second ray, the step of searching the target point, i.e., the steps 11 to 13, can also be performed on the first ray, and can be adjusted according to the actual requirement.
Further, in order to facilitate the observation of the color phase restoration process by the relevant personnel, the color phase restoration origin may also be selected according to a predetermined sequence, for example, according to the sequence from the inside to the outside of the lesion and from the first ray to the second ray, which may be set according to the actual application requirements.
In one possible case, finding a corresponding target point for each color restoration point in the color restoration area on the second ray by using the first distance, the first radian and the second radian may include:
step 21: and extracting a hue restoration origin in the hue restoration area according to a preset sequence, and searching a corresponding target point for the extracted hue restoration origin on a second ray by using the first distance, the first radian and the second radian.
Referring to fig. 3, fig. 3 is a schematic view of a hue restoration effect of a mononuclear lesion according to an embodiment of the present invention, wherein after the left half is restored, and before the right half is restored, it can be seen that the restored color can better represent the real color of the lesion, and the true color conforms to the diffusion rule of the lesion.
Based on the embodiment, when a binuclear focus near-infrared image is acquired, a mononuclear focus region including a focus core region and a color restoration region is extracted, and a first ray and a second ray which take the core center of the focus core region as a starting point and are tangent to the color restoration region are generated; then, the invention determines parameter information related to the first ray and the second ray, namely a first distance from the intersection point of the first ray and the edge of the lesion nuclear region to the nuclear center, and a first radian and a second radian of corresponding polar angles of the two rays in a preset polar coordinate system with the nuclear center as an origin; further, the invention searches a corresponding target point on the first ray or the second ray by using the first distance, the first radian and the second radian as each hue origin point in the hue restoration region, and replaces the hue value of the hue origin point by using the hue value of the target point, because the diffusion of the focus basically accords with the diffusion equation, and further can deduce based on the diffusion equation, for the hue origin point and the target point which theoretically have the same hue value, the distance between the hue origin point and the core center of the focus and the first distance, the first radian and the second radian form an incidence relation, so the hue restoration region in the mononuclear focus region is subjected to hue restoration by using the parameter information, accords with the basic rule of focus diffusion, and can effectively restore the mononuclear focus region.
Based on the above embodiment, the following describes the extraction process of the mononuclear lesion region and the generation process of the first ray and the second ray in detail. In one possible case, determining a mononuclear lesion region including a lesion core region and a hue restoration region in a binuclear lesion near-infrared image, and generating a first ray and a second ray starting from a core center of the lesion core region and tangent to the hue restoration region may include:
s201, extracting a focus region from the binuclear focus near-infrared image by using a preset hue value range, and extracting a first focus nucleus region and a second focus nucleus region in the focus region.
In one possible case, extracting a lesion area in the binuclear lesion near-infrared image using a preset hue value range, and extracting a first lesion core area and a second lesion core area in the lesion area may include:
step 31: extracting a focus area from the binuclear focus near-infrared image by using a first preset hue value range;
step 32: extracting a first focus nucleus area and a second focus nucleus area in the focus area by using a second preset hue value range; the first predetermined hue value range includes and is greater than the second predetermined hue value range.
It can be understood that, since the second predetermined hue value range is used to extract the lesion core area in the lesion area, and the hue value in the lesion core area is usually greater than other parts of the lesion area, the second predetermined hue value range should be smaller than the first predetermined hue value range and should occupy a larger part of the first predetermined hue value range. It should be noted that, the embodiment of the present invention does not limit the specific values of the first preset hue value range and the second preset hue value range, and can be set according to the actual application requirements.
S202, setting the gravity center of the first focus nuclear area and the gravity center of the second focus nuclear area as a first nuclear center and a second nuclear center respectively, and determining a connecting line between the first nuclear center and the second nuclear center.
Referring to fig. 4, fig. 4 is a schematic view illustrating segmentation of a mononuclear lesion region according to an embodiment of the present invention. Wherein O is 1 Denotes the first core center, O 2 Representing the second core center.
S203, determining a focus dividing line perpendicular to the connecting line and a second intersection point and a third intersection point between the focus dividing line and the edge of the focus area.
It should be noted that the embodiments of the present invention do not limit the specific determination method of the lesion segmentation line, and refer to the related art of the lesion region segmentation method. Referring also to fig. 4, a straight line 1 represents a lesion segmentation line, which intersects the edge of the lesion area at a second intersection point H and a third intersection point G.
S204, generating a first ray which takes the first kernel center as a starting point and passes through the second intersection point, generating a second ray which takes the first kernel center as a starting point and passes through the third intersection point, and determining a first radian, a second radian and a first distance.
Also refer to FIG. 4, wherein 1 The ray c connected with H is the first ray and O 1 The ray d connected with the ray G is a second ray, the arc 4 is the edge of part of the lesion nucleus area, and the intersection points I to O between the arc 4 and the ray c 1 Is a first distance
Figure 527805DEST_PATH_IMAGE004
. It should be noted that, the specific description contents of the first radian, the second radian, and the first distance determination manner are the same as those of step S102 and step S103, and are not repeated here.
S205, a fourth intersection point between the second ray and the first focus nuclear region is determined, and a second distance between the first nuclear center and the fourth intersection point and a third distance between the first nuclear center and the third intersection point are respectively determined.
Referring also to FIG. 4, the intersection of the ray d and the arc 4 is a fourth intersection J, which is parallel to O 1 Is the second distance therebetween as described above
Figure 984194DEST_PATH_IMAGE005
(ii) a In the embodiment of the present invention, points G and O 1 Is represented as the third distance between
Figure 5239DEST_PATH_IMAGE006
S206, generating a first diffusion boundary which corresponds to the first lesion nuclear region and passes through the second intersection point and the third intersection point by using the first distance, the second distance, the third distance, the first radian and the second radian according to the following modes:
Figure 863474DEST_PATH_IMAGE001
wherein the content of the first and second substances,
Figure 678983DEST_PATH_IMAGE002
representing the distance between a diffusion boundary point on the first diffusion boundary and the first core center,
Figure 622669DEST_PATH_IMAGE003
representing the radian of a target ray which takes the first nuclear center as a starting point and passes through the diffusion boundary point in a preset polar coordinate system which takes the first nuclear center as an origin,
Figure 119509DEST_PATH_IMAGE004
the first distance is represented as a function of,
Figure 333715DEST_PATH_IMAGE005
it is indicated that the second distance is,
Figure 320125DEST_PATH_IMAGE006
it is indicated that the third distance is,
Figure 751107DEST_PATH_IMAGE007
which represents the first arc of a circle,
Figure 848376DEST_PATH_IMAGE008
representing a second arc.
Also referring to fig. 4, arc 2 represents a first diffusion boundary. Since the determination of the diffusion edge of the mononuclear lesion area is processed according to the diffusion equation and the actual condition of the breast density in the embodiment of the present invention, the mononuclear lesion area can be more accurately determined and hue-restored.
And S207, generating a second diffusion boundary which corresponds to the second focal nucleus region and passes through the second intersection point and the third intersection point, and determining a fifth intersection point of the second diffusion boundary and the connecting line.
It should be noted that the generation process of the second diffusion boundary is the same as steps S203 to S206, and is not described herein again. Also referring to FIG. 4, wherein the arc 3 represents the second diffusion boundary mentioned above, which is connected to O 1 O 2 The intersection of the connecting lines with the fifth intersection point P. It is understood that the region enclosed by the first diffusion boundary and the second diffusion boundary is an overlapping region of two mononuclear lesion regions.
And S208, generating a boundary line which is perpendicular to the connecting line and takes the fifth intersection point as a vertical foot, and setting a region surrounded by the boundary line, the first ray, the second ray and the first diffusion boundary as a hue restoration region corresponding to the first lesion core region.
Referring also to fig. 4, line 4 represents the boundary line. It can be seen that, in addition to adding the overlap region to the hue restoration region, the present invention additionally expands a portion of the normal region to the hue restoration region, so as to ensure that there is enough redundancy space in the hue restoration region, thereby ensuring that the hue restoration transition is natural.
And S209, segmenting the focus region by utilizing the segmentation line to obtain an initial mononuclear focus region corresponding to the first focus nucleus region, and completing the initial mononuclear focus region by utilizing the hue restoration region to obtain a mononuclear focus region corresponding to the first focus nucleus region.
Based on the above embodiments, the present invention can also segment the mononuclear lesion region and determine the hue restoration region according to the diffusion equation and the actual condition of the breast density, so as to more accurately determine the position of the mononuclear lesion region, and at the same time, ensure that the hue restoration region includes enough redundant space, thereby ensuring that the hue restoration is excessively natural.
The embodiments of the present invention provide a mononuclear lesion hue restoration device, an electronic device and a storage medium, and the mononuclear lesion hue restoration device, the electronic device and the storage medium described below and the mononuclear lesion hue restoration method described above may be referred to in correspondence.
Referring to fig. 5, fig. 5 is a block diagram illustrating a color reduction apparatus for mononuclear lesions according to an embodiment of the present invention, the apparatus may include:
an acquisition module 501, configured to acquire a near-infrared image of a binuclear lesion;
a region and ray determining module 502, configured to determine a mononuclear lesion region including a lesion core region and a hue restoration region in a binuclear lesion near-infrared image, and generate a first ray and a second ray that use a core center of the lesion core region as a starting point and are tangent to the hue restoration region;
the radian determining module 503 is configured to determine a first radian of the polar angle corresponding to the first ray and a second radian of the polar angle corresponding to the second ray in a preset polar coordinate system using the core center as an origin;
an intersection and distance determination module 504, configured to determine a first intersection between an edge of the focal nuclei region and the first ray, and determine a first distance between the nuclei center and the first intersection;
the hue restoration module 505 is configured to search a corresponding target point for each hue restoration point in the hue restoration area on the second ray by using the first distance, the first radian and the second radian, and replace the hue value of the hue restoration point with the hue value of the target point to complete hue restoration of the hue restoration area.
Optionally, the area and ray determining module 502 includes:
the first region extraction submodule is used for extracting a focus region from the binuclear focus near-infrared image by using a preset hue value range, and extracting a first focus nucleus region and a second focus nucleus region in the focus region;
the first drawing submodule is used for setting the gravity center of the first focus nuclear area and the gravity center of the second focus nuclear area as a first nuclear center and a second nuclear center respectively and determining a connecting line between the first nuclear center and the second nuclear center;
the second drawing submodule is used for determining a focus parting line which is perpendicular to the connecting line and a second intersection point and a third intersection point between the focus parting line and the edge of the focus area;
the third drawing submodule is used for generating a first ray which takes the first kernel center as a starting point and passes through the second intersection point, generating a second ray which takes the first kernel center as a starting point and passes through the third intersection point, and determining the first radian, the second radian and the first distance;
the distance calculation submodule is used for determining a fourth intersection point between the second ray and the first focus nuclear region, and respectively determining a second distance between the first nuclear center and the fourth intersection point and a third distance between the first nuclear center and the third intersection point;
the fourth drawing submodule is used for generating a first diffusion boundary which corresponds to the first lesion nuclear region and passes through the second intersection point and the third intersection point according to the following mode by utilizing the first distance, the second distance, the third distance, the first radian and the second radian:
Figure 681203DEST_PATH_IMAGE038
wherein the content of the first and second substances,
Figure 838514DEST_PATH_IMAGE002
representing the distance between a diffusion boundary point on the first diffusion boundary and the first core center,
Figure 756792DEST_PATH_IMAGE003
representing the radian of a target ray which takes the first nuclear center as a starting point and passes through the diffusion boundary point in a preset polar coordinate system which takes the first nuclear center as an origin,
Figure 392173DEST_PATH_IMAGE004
the first distance is represented as a function of,
Figure 109199DEST_PATH_IMAGE005
it is indicated that the second distance is,
Figure 437413DEST_PATH_IMAGE006
it is indicated that the third distance is,
Figure 577407DEST_PATH_IMAGE007
which represents the first arc of a circle,
Figure 282058DEST_PATH_IMAGE008
represents a second arc;
the fifth drawing submodule is used for generating a second diffusion boundary which corresponds to the second focus nucleus region and passes through the second intersection point and the third intersection point, and determining a fifth intersection point of the second diffusion boundary and the connecting line;
the sixth drawing submodule is used for generating a boundary line which takes the fifth intersection point as a vertical foot and is vertical to the connecting line, and setting a region which is surrounded by the boundary line, the first ray, the second ray and the first diffusion boundary as a hue restoration region corresponding to the first focus nucleus region;
and the second region extraction submodule is used for segmenting the focus region by utilizing the segmentation line to obtain an initial mononuclear focus region corresponding to the first focus nucleus region, and completing the initial mononuclear focus region by utilizing the hue restoration region to obtain a mononuclear focus region corresponding to the first focus nucleus region.
Optionally, the first region extraction sub-module includes:
the focus region extraction unit is used for extracting a focus region from the binuclear focus near-infrared image by utilizing a first preset hue value range;
the focus nucleus region extraction unit is used for extracting a first focus nucleus region and a second focus nucleus region in the focus region by utilizing a second preset hue value range; the first predetermined hue value range includes and is greater than the second predetermined hue value range.
Optionally, the hue restoration module 505 is specifically configured to:
and extracting a hue restoration origin in the hue restoration area according to a preset sequence, and searching a corresponding target point for the extracted hue restoration origin on a second ray by using the first distance, the first radian and the second radian.
Optionally, the hue restoration module 505 may include:
the ray and radian determining submodule is used for generating a third ray which takes the core center as a starting point and passes through the hue complex origin, and determining a third radian of a polar angle corresponding to the third ray in a preset polar coordinate system which takes the core center as the origin;
the intersection point and distance determining submodule is used for determining a sixth intersection point between the edge of the focus nucleus area and the third ray and determining a fourth distance between the nucleus center and the sixth intersection point;
the hue restoration submodule is used for determining a fifth distance between the hue restoration point and the center of the kernel, and determining a target point by using the first distance, the fourth distance, the fifth distance, the first radian, the second radian and the third radian according to the following modes:
Figure 27160DEST_PATH_IMAGE009
wherein the content of the first and second substances,
Figure 526274DEST_PATH_IMAGE006
representing the distance between the target point on the second ray and the center of the nucleus,
Figure 153565DEST_PATH_IMAGE004
the first distance is represented as a function of,
Figure 130748DEST_PATH_IMAGE010
it is indicated that the fourth distance is,
Figure 294138DEST_PATH_IMAGE002
a fifth distance is indicated which is the distance,
Figure 964154DEST_PATH_IMAGE007
which represents the first arc of a circle,
Figure 344320DEST_PATH_IMAGE008
which is representative of a second arc of a circle,
Figure 859615DEST_PATH_IMAGE003
representing a third radian.
An embodiment of the present invention further provides an electronic device, including:
a memory for storing a computer program;
a processor for implementing the steps of the above-mentioned mononuclear lesion hue restoration method when executing the computer program.
Since the embodiment of the electronic device portion corresponds to the embodiment of the mononuclear focus hue restoration method portion, please refer to the description of the embodiment of the mononuclear focus hue restoration method portion for the embodiment of the electronic device portion, and no further description is given here.
The embodiment of the invention also provides a storage medium, wherein a computer program is stored on the storage medium, and when being executed by a processor, the computer program realizes the steps of the mononuclear lesion hue restoration method of any embodiment.
Since the embodiment of the storage medium portion corresponds to the embodiment of the mononuclear focus hue restoration method portion, please refer to the description of the embodiment of the mononuclear focus hue restoration method portion for the embodiment of the storage medium portion, and the description thereof is omitted here.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed in the embodiment corresponds to the method disclosed in the embodiment, so that the description is simple, and the relevant points can be referred to the description of the method part.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The methods, apparatuses, electronic devices and storage media for hue restoration of mononuclear lesions provided by the present invention are described in detail above. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, without departing from the principle of the present invention, it is possible to make various improvements and modifications to the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (9)

1. A mononuclear focus hue reduction method is characterized by comprising the following steps:
acquiring a near-infrared image of a binuclear focus;
determining a mononuclear lesion area comprising a lesion core area and a hue restoration area in the binuclear lesion near-infrared image, and generating a first ray and a second ray which take the core center of the lesion core area as a starting point and are tangent to the hue restoration area;
determining a first radian of a polar angle corresponding to the first ray and a second radian of a polar angle corresponding to the second ray in a preset polar coordinate system with the core center as an origin;
determining a first intersection point between the edge of the focal nucleus region and the first ray, and determining a first distance between the nucleus center and the first intersection point;
searching a corresponding target point for each hue restoration point in the hue restoration area on the second ray by using the first distance, the first radian and the second radian, and replacing the hue value of the hue restoration point with the hue value of the target point to complete hue restoration of the hue restoration area;
wherein the searching for a corresponding target point for each hue restoration point in the hue restoration region on the second ray by using the first distance, the first radian, and the second radian includes:
generating a third ray which takes the core center as a starting point and passes through the hue complex origin, and determining a third radian of a polar angle corresponding to the third ray in a preset polar coordinate system which takes the core center as the origin;
determining a sixth intersection point between the edge of the focal nucleus region and the third ray, and determining a fourth distance between the nucleus center and the sixth intersection point;
determining a fifth distance between the hue restoration point and the kernel center, and determining the target point by using the first distance, the fourth distance, the fifth distance, the first radian, the second radian and the third radian according to the following modes:
Figure DEST_PATH_IMAGE001
wherein, the
Figure 94036DEST_PATH_IMAGE002
Representing a distance between the target point on the second ray and the core center, the
Figure DEST_PATH_IMAGE003
Represents the first distance, the
Figure 542335DEST_PATH_IMAGE004
Represents the fourth distance, the
Figure DEST_PATH_IMAGE005
Represents the fifth distance, the
Figure 863683DEST_PATH_IMAGE006
Represents the first arc, the
Figure DEST_PATH_IMAGE007
Represents the second arc, the
Figure 291516DEST_PATH_IMAGE008
Representing the third radian.
2. The method for hue restoration of mononuclear lesions according to claim 1, wherein the determining a mononuclear lesion region including a lesion core region and a hue restoration region in the binuclear lesion near-infrared image and generating a first ray and a second ray that are tangent to the hue restoration region from a core center of the lesion core region comprises:
extracting a focus region from the binuclear focus near-infrared image by using a preset hue value range, and extracting a first focus nucleus region and a second focus nucleus region in the focus region;
setting the gravity center of the first lesion core area and the gravity center of the second lesion core area as a first core center and a second core center respectively, and determining a connecting line between the first core center and the second core center;
determining a lesion segmentation line perpendicular to the connection line and second and third intersection points between the lesion segmentation line and an edge of the lesion area;
generating the first ray starting from the first kernel center and passing through the second intersection point, and generating the second ray starting from the first kernel center and passing through the third intersection point, and determining the first radian, the second radian and the first distance;
determining a fourth intersection point between the second ray and the first focal nucleus region, and respectively determining a second distance between the first nucleus center and the fourth intersection point and a third distance between the first nucleus center and the third intersection point;
generating a first diffusion boundary corresponding to the first lesion core region and passing through the second intersection point and the third intersection point by using the first distance, the second distance, the third distance, the first radian and the second radian as follows:
Figure DEST_PATH_IMAGE009
wherein the content of the first and second substances,
Figure 184516DEST_PATH_IMAGE005
representing a distance between a diffusion boundary point on the first diffusion boundary and the first core center,
Figure 538137DEST_PATH_IMAGE008
representing the target ray which takes the first kernel center as a starting point and passes through the diffusion boundary pointA radian in a preset polar coordinate system with the first kernel center as an origin, wherein the radian is defined by
Figure 336329DEST_PATH_IMAGE003
Represents the first distance, the
Figure 800808DEST_PATH_IMAGE010
Represents the second distance, the
Figure 735266DEST_PATH_IMAGE002
Represents the third distance, the
Figure 994209DEST_PATH_IMAGE006
Represents the first arc, the
Figure 764850DEST_PATH_IMAGE007
Representing the second arc;
generating a second diffusion boundary which corresponds to the second lesion core region and passes through the second intersection point and the third intersection point, and determining a fifth intersection point of the second diffusion boundary and the connecting line;
generating a boundary line which takes the fifth intersection point as a foot and is vertical to the connecting line, and setting a region surrounded by the boundary line, the first ray, the second ray and the first diffusion boundary as a hue restoration region corresponding to the first focal nucleus region;
and segmenting the focus area by using the segmentation line to obtain an initial mononuclear focus area corresponding to the first focus core area, and completing the initial mononuclear focus area by using the hue restoration area to obtain a mononuclear focus area corresponding to the first focus core area.
3. The method for hue restoration of a mononuclear lesion according to claim 2, wherein the extracting a lesion region in the binuclear lesion near-infrared image by using a preset hue value range and extracting a first lesion nucleus region and a second lesion nucleus region in the lesion region comprises:
extracting the focus area from the binuclear focus near-infrared image by using a first preset hue value range;
extracting the first focus nucleus area and the second focus nucleus area in the focus area by using a second preset hue value range; the first predetermined hue value range includes and is greater than the second predetermined hue value range.
4. The mononuclear lesion hue restoration method according to claim 1, wherein the searching for a corresponding target point for each hue restoration point in the hue restoration region on the second ray by using the first distance, the first radian and the second radian comprises:
and extracting the hue restoration points in the hue restoration areas according to a preset sequence, and searching corresponding target points for the extracted hue restoration points on the second ray by using the first distance, the first radian and the second radian.
5. A mononuclear focus hue reduction device, comprising:
the acquisition module is used for acquiring a near-infrared image of the binuclear focus;
the area and ray determining module is used for determining a mononuclear focus area containing a focus core area and a hue restoration area in the binuclear focus near-infrared image and generating a first ray and a second ray which take the core center of the focus core area as a starting point and are tangent to the hue restoration area;
the radian determining module is used for determining a first radian of the polar angle corresponding to the first ray and a second radian of the polar angle corresponding to the second ray in a preset polar coordinate system with the core center as an origin;
an intersection and distance determination module for determining a first intersection between the edge of the focal nucleus region and the first ray, and determining a first distance between the nucleus center and the first intersection;
the hue restoration module is configured to search a corresponding target point for each hue restoration point in the hue restoration area on the second ray by using the first distance, the first radian and the second radian, and replace a hue value of the hue restoration point with a hue value of the target point to complete hue restoration of the hue restoration area;
wherein, the hue reduction module comprises:
the ray and radian determining submodule is used for generating a third ray which takes the core center as a starting point and passes through the hue complex origin, and determining a third radian of a polar angle corresponding to the third ray in a preset polar coordinate system which takes the core center as the origin;
an intersection and distance determination submodule for determining a sixth intersection between the edge of the focal nucleus region and the third ray, and determining a fourth distance between the nucleus center and the sixth intersection;
the hue restoration submodule is configured to determine a fifth distance between the hue restoration point and the kernel center, and determine the target point according to the first distance, the fourth distance, the fifth distance, the first radian, the second radian and the third radian in the following manner:
Figure 767442DEST_PATH_IMAGE001
wherein, the
Figure 618723DEST_PATH_IMAGE002
Representing a distance between the target point on the second ray and the core center, the
Figure 314146DEST_PATH_IMAGE003
Represents the first distance, the
Figure 572084DEST_PATH_IMAGE004
Represents the firstA distance of four, the
Figure 112786DEST_PATH_IMAGE005
Represents the fifth distance, the
Figure 21836DEST_PATH_IMAGE006
Represents the first arc, the
Figure 622582DEST_PATH_IMAGE007
Represents the second arc, the
Figure 882662DEST_PATH_IMAGE008
Representing the third radian.
6. The apparatus for hue restoration of mononuclear cell according to claim 5, wherein the region and ray determination module comprises:
the first region extraction submodule is used for extracting a focus region from the binuclear focus near-infrared image by using a preset hue value range, and extracting a first focus nucleus region and a second focus nucleus region in the focus region;
the first drawing submodule is used for setting the gravity center of the first focus nuclear area and the gravity center of the second focus nuclear area as a first nuclear center and a second nuclear center respectively and determining a connecting line between the first nuclear center and the second nuclear center;
a second rendering submodule for determining a lesion segmentation line perpendicular to the line and second and third intersections between the lesion segmentation line and an edge of the lesion area;
a third rendering submodule, configured to generate the first ray that starts from the first kernel center and passes through the second intersection point, generate the second ray that starts from the first kernel center and passes through the third intersection point, and determine the first radian, the second radian, and the first distance;
the distance calculation submodule is used for determining a fourth intersection point between the second ray and the first focus nuclear region, and respectively determining a second distance between the first nuclear center and the fourth intersection point and a third distance between the first nuclear center and the third intersection point;
a fourth rendering submodule, configured to generate a first diffusion boundary passing through the second intersection point and the third intersection point, corresponding to the first focal nucleus region, using the first distance, the second distance, the third distance, the first arc, and the second arc in the following manner:
Figure DEST_PATH_IMAGE011
wherein the content of the first and second substances,
Figure 492635DEST_PATH_IMAGE005
representing a distance between a diffusion boundary point on the first diffusion boundary and the first core center,
Figure 24502DEST_PATH_IMAGE008
representing the radian of a target ray which takes the first kernel center as a starting point and passes through the diffusion boundary point in a preset polar coordinate system which takes the first kernel center as an origin point, wherein
Figure 327308DEST_PATH_IMAGE003
Represents the first distance, the
Figure 543525DEST_PATH_IMAGE010
Represents the second distance, the
Figure 691610DEST_PATH_IMAGE002
Represents the third distance, the
Figure 309673DEST_PATH_IMAGE006
Represents the first arc, the
Figure 517800DEST_PATH_IMAGE007
Representing the second arc;
the fifth drawing submodule is used for generating a second diffusion boundary which corresponds to the second lesion nuclear area and passes through the second intersection point and the third intersection point, and determining a fifth intersection point of the second diffusion boundary and the connecting line;
a sixth drawing sub-module, configured to generate a boundary line that is perpendicular to the connecting line and that takes the fifth intersection point as a foot, and set a region surrounded by the boundary line, the first ray, the second ray, and the first diffusion boundary as a hue restoration region corresponding to the first lesion core region;
and the second region extraction submodule is used for segmenting the focus region by utilizing the segmentation line to obtain an initial mononuclear focus region corresponding to the first focus nucleus region, and completing the initial mononuclear focus region by utilizing the hue restoration region to obtain a mononuclear focus region corresponding to the first focus nucleus region.
7. The apparatus for color hue restoration of mononuclear lesions according to claim 6, wherein the first region extraction submodule comprises:
the focus region extraction unit is used for extracting the focus region from the binuclear focus near-infrared image by utilizing a first preset hue value range;
a focus nucleus region extraction unit, configured to extract the first focus nucleus region and the second focus nucleus region in the focus region by using a second preset hue value range; the first predetermined hue value range includes and is greater than the second predetermined hue value range.
8. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the mononuclear lesion hue reduction method according to any one of claims 1 to 4 when executing the computer program.
9. A storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the mononuclear lesion hue reduction method according to any one of claims 1 to 4.
CN202210255132.3A 2022-03-16 2022-03-16 Mononuclear focus hue reduction method and device, electronic equipment and storage medium Active CN114359114B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210255132.3A CN114359114B (en) 2022-03-16 2022-03-16 Mononuclear focus hue reduction method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210255132.3A CN114359114B (en) 2022-03-16 2022-03-16 Mononuclear focus hue reduction method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114359114A CN114359114A (en) 2022-04-15
CN114359114B true CN114359114B (en) 2022-08-23

Family

ID=81095171

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210255132.3A Active CN114359114B (en) 2022-03-16 2022-03-16 Mononuclear focus hue reduction method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114359114B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073997A (en) * 2011-01-12 2011-05-25 东华理工大学 Small-square document image perspective-recovery method
JP2013073306A (en) * 2011-09-27 2013-04-22 Fuji Heavy Ind Ltd Image processing device
JP2013168048A (en) * 2012-02-16 2013-08-29 Nippon Hoso Kyokai <Nhk> Image correction device and program thereof
CN105678793A (en) * 2016-02-26 2016-06-15 浙江大学 Image-fusion-based early diagnosis method and apparatus for kiwifruit canker
CN106412416A (en) * 2016-06-16 2017-02-15 深圳市金立通信设备有限公司 Image processing method, device and system
CN106530250A (en) * 2016-11-07 2017-03-22 湖南源信光电科技有限公司 Low illumination color image enhancement method based on improved Retinex
CN107705248A (en) * 2017-10-31 2018-02-16 广东欧珀移动通信有限公司 Image processing method, device, electronic equipment and computer-readable recording medium
CN108282647A (en) * 2018-01-31 2018-07-13 上海小蚁科技有限公司 Color correcting method and device, computer readable storage medium, terminal
CN110473245A (en) * 2019-07-25 2019-11-19 中山市奥珀金属制品有限公司 A kind of depth image document screening method and system
CN110612720A (en) * 2017-05-18 2019-12-24 索尼公司 Information processing apparatus, information processing method, and program
KR102166685B1 (en) * 2020-02-10 2020-10-19 (주)코코믹스 Animation video remastering method and apparatus
CN113393462A (en) * 2021-08-18 2021-09-14 浙江杜比医疗科技有限公司 Focal region segmentation method and device, electronic equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112288843B (en) * 2020-09-10 2023-08-01 深圳市智影医疗科技有限公司 Three-dimensional construction method and device for focus, terminal equipment and storage medium
CN114092475B (en) * 2022-01-19 2022-04-22 浙江太美医疗科技股份有限公司 Focal length determining method, image labeling method, device and computer equipment

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073997A (en) * 2011-01-12 2011-05-25 东华理工大学 Small-square document image perspective-recovery method
JP2013073306A (en) * 2011-09-27 2013-04-22 Fuji Heavy Ind Ltd Image processing device
JP2013168048A (en) * 2012-02-16 2013-08-29 Nippon Hoso Kyokai <Nhk> Image correction device and program thereof
CN105678793A (en) * 2016-02-26 2016-06-15 浙江大学 Image-fusion-based early diagnosis method and apparatus for kiwifruit canker
CN106412416A (en) * 2016-06-16 2017-02-15 深圳市金立通信设备有限公司 Image processing method, device and system
CN106530250A (en) * 2016-11-07 2017-03-22 湖南源信光电科技有限公司 Low illumination color image enhancement method based on improved Retinex
CN110612720A (en) * 2017-05-18 2019-12-24 索尼公司 Information processing apparatus, information processing method, and program
CN107705248A (en) * 2017-10-31 2018-02-16 广东欧珀移动通信有限公司 Image processing method, device, electronic equipment and computer-readable recording medium
CN108282647A (en) * 2018-01-31 2018-07-13 上海小蚁科技有限公司 Color correcting method and device, computer readable storage medium, terminal
CN110473245A (en) * 2019-07-25 2019-11-19 中山市奥珀金属制品有限公司 A kind of depth image document screening method and system
KR102166685B1 (en) * 2020-02-10 2020-10-19 (주)코코믹스 Animation video remastering method and apparatus
CN113393462A (en) * 2021-08-18 2021-09-14 浙江杜比医疗科技有限公司 Focal region segmentation method and device, electronic equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Yading Yuan等.Automatic Skin Lesion Segmentation Using Deep Fully Convolutional Networks With Jaccard Distance.《IEEE Transactions on Medical Imaging》.2017,第36卷(第9期),第1876-1886页. *
刘钦堂.基于Retinex算法的彩色图像增强研究.《中国优秀硕士学位论文全文数据库 信息科技辑》.2013,第2013年卷(第2期),I138-1897. *
李小霞等.一种新的低照度彩色图像增强算法.《计算机应用研究》.2011,第28卷(第9期),第3554-3555、3558页. *

Also Published As

Publication number Publication date
CN114359114A (en) 2022-04-15

Similar Documents

Publication Publication Date Title
CN110689548B (en) Medical image segmentation method, device, equipment and readable storage medium
CN106780590B (en) Method and system for acquiring depth map
Sheffer et al. Robust spherical parameterization of triangular meshes
Chan et al. Volumetric parametrization from a level set boundary representation with PHT-splines
Zhao et al. Sspu-net: Self-supervised point cloud upsampling via differentiable rendering
Feng et al. Geometric modeling of subcellular structures, organelles, and multiprotein complexes
CN109285223B (en) Image reconstruction quadrilateral mesh method and system based on voxel model
CN113129352A (en) Sparse light field reconstruction method and device
CN112101247A (en) Face pose estimation method, device, equipment and storage medium
Yoshizawa et al. Fast and faithful geometric algorithm for detecting crest lines on meshes
Xiao Research on visual image texture rendering for artistic aided design
CN114359114B (en) Mononuclear focus hue reduction method and device, electronic equipment and storage medium
CN110942433B (en) Repairing guide plate generation method based on skull CBCT image
Wang et al. A novel method for surface mesh smoothing: applications in biomedical modeling
Xiang et al. Single-image mesh reconstruction and pose estimation via generative normal map
CN113808006B (en) Method and device for reconstructing three-dimensional grid model based on two-dimensional image
CN112750156B (en) Light field imaging system, processing method and device
CN110717291B (en) Welding structure deformation simulation method, device, equipment and storage medium
Yang et al. Chef: convex hull of elliptic features for 3d blob detection
CN112435179A (en) Fuzzy pollen particle picture processing method and device and electronic equipment
KR101811135B1 (en) Apparatus and method for simplifying model through optimal level-of-detail decision
KR101765414B1 (en) Apparatus and method for simplifying model using shape complexity
CN117541733B (en) Chest lung reconstruction method, chest lung reconstruction device, electronic equipment and storage medium
Wang et al. Directionally weakened diffusion for image segmentation using active contours
Zhou et al. Algorithm for curved surface mesh generation based on delaunay refinement

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant