CN113971658B - Image processing method and device - Google Patents

Image processing method and device Download PDF

Info

Publication number
CN113971658B
CN113971658B CN202111055322.2A CN202111055322A CN113971658B CN 113971658 B CN113971658 B CN 113971658B CN 202111055322 A CN202111055322 A CN 202111055322A CN 113971658 B CN113971658 B CN 113971658B
Authority
CN
China
Prior art keywords
determining
image
central
areas
area
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
CN202111055322.2A
Other languages
Chinese (zh)
Other versions
CN113971658A (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.)
Zhejiang Yizhun Intelligent Technology Co.,Ltd.
Original Assignee
Beijing Yizhun Medical AI 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 Beijing Yizhun Medical AI Co Ltd filed Critical Beijing Yizhun Medical AI Co Ltd
Priority to CN202111055322.2A priority Critical patent/CN113971658B/en
Publication of CN113971658A publication Critical patent/CN113971658A/en
Application granted granted Critical
Publication of CN113971658B publication Critical patent/CN113971658B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0012Biomedical image inspection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10072Tomographic images
    • G06T2207/10081Computed x-ray tomography [CT]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10072Tomographic images
    • G06T2207/10104Positron emission tomography [PET]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10132Ultrasound image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30004Biomedical image processing
    • G06T2207/30008Bone

Abstract

The embodiment of the invention discloses an image processing method, which comprises the following steps: acquiring a designated image, wherein the designated image comprises a bending part; determining a plurality of first areas according to the bending parts in the appointed image; sequentially arranging the first areas along the designated direction according to the sequence of the plurality of first areas to obtain a second area; and filling the image in the first area into the second area according to the corresponding relation between the first area and the second area to obtain a straightened image corresponding to the bending part.

Description

Image processing method and device
Technical Field
The invention relates to the technical field of medical imaging, in particular to an image processing method and image processing equipment.
Background
In the medical field, a medical imaging device is often used to obtain a three-dimensional rib model of a human body, and a user can judge whether rib fracture exists or not by observing the three-dimensional rib model.
Disclosure of Invention
The embodiment of the invention provides an image processing method and equipment, which have the function of straightening an image of a bent part along a specified direction.
An embodiment of the present invention provides an image processing method, which includes: acquiring a designated image, wherein the designated image comprises a bending part; determining a plurality of first areas according to the bending parts in the appointed image; sequentially arranging the first areas along a specified direction according to the sequence of the first areas to obtain a second area; and filling the image in the first area into the second area according to the corresponding relation between the first area and the second area to obtain a straightened image corresponding to the bent part.
In an embodiment, before the acquiring the designated image, the method further includes: acquiring an original image; and determining the image of the horizontal position of the original image as a designated image.
In an embodiment, the determining a number of first regions according to the bending part in the designated image includes: acquiring a first central line of the bending part, wherein the central line comprises a plurality of central points; determining a plurality of normals with specified lengths by taking each central point as a center; and determining a plurality of first areas according to the end points of the normal and the central point.
In an embodiment, the determining the normals with a plurality of specified lengths by taking each central point as a center includes: selecting any one of the center points as a first center point; determining two center points closest to the first center point as a second center point and a third center point; determining a first angle according to the first center point and the second center point; determining a second angle according to the first center point and the third center point; determining a third angle according to the first angle and the second angle; determining a tangent of the first center point according to the third angle; and determining a first normal line with a specified length according to the first central point and the tangent line.
In an implementation manner, sequentially arranging a plurality of first regions along a specified direction according to an order of the first regions to obtain a second region includes: acquiring a second central line corresponding to the first central line, wherein the second central line is a straight line along the specified direction; acquiring two auxiliary lines parallel to a second central line, wherein the distance between the two auxiliary lines is equal to the length of the normal; and arranging the central points along the second central line according to the sequence of the plurality of first areas, and arranging the end points of the normal along the two auxiliary lines to obtain second areas corresponding to the plurality of first areas.
In an implementation manner, the filling the image in the first region into the second region according to the corresponding relationship between the first region and the second region, and obtaining the straightened image corresponding to the bending portion includes: acquiring a blank matrix with a specified size; disposing the second region in the blank matrix; determining an affine transformation matrix according to the corresponding relation between the second area and the plurality of first areas; and filling the original image corresponding to the first area into the blank matrix according to the affine transformation matrix to obtain a straightened image.
In an embodiment, the filling, according to the affine transformation matrix, the image corresponding to the first region in the bending portion into the blank matrix to obtain a straightened image includes: the original image comprises a plurality of pixel points, and a first pixel point corresponding to a first area in the original image is determined according to the first area; and filling the first pixel points into the position, corresponding to the second area, in the blank matrix according to an affine transformation matrix to obtain the straightened image.
In one embodiment, the method further comprises: the bending part at least comprises a rib part; the straightened rib part is included in the straightened image.
Another aspect of an embodiment of the present invention provides an image processing apparatus, including: the acquisition module is used for acquiring a specified image, and the specified image comprises a bending part; the determining module is used for determining a plurality of first areas according to the bending parts in the appointed image; the arrangement module is used for sequentially arranging the first areas along the specified direction according to the sequence of the first areas to obtain second areas; and the filling module is used for filling the image in the first area into the second area according to the corresponding relation between the first area and the second area to obtain a straightened image corresponding to the bending part.
In one embodiment, the apparatus further comprises: the acquisition module is used for acquiring an original image; and determining the image of the horizontal position of the original image as a designated image.
In one embodiment, the determining module comprises: the first obtaining submodule is used for obtaining a first central line of the bending part, and the central line comprises a plurality of central points; the first determining submodule is used for determining a plurality of normals with specified lengths by taking each central point as a center; the first determining submodule is further used for determining a plurality of first areas according to the end points of the normal and the central point.
In an implementation manner, the first determining submodule is further configured to select any one of the center points as a first center point; determining two center points that are closest to the first center point as a second center point and a third center point; determining a first angle according to the first center point and the second center point; determining a second angle according to the first center point and the third center point; determining a third angle according to the first angle and the second angle; determining a tangent of the first center point according to the third angle; and determining a first normal line with a specified length according to the first central point and the tangent line.
In one embodiment, the arrangement module comprises: the second obtaining submodule is used for obtaining a second central line corresponding to the first central line, and the second central line is a straight line along the specified direction; the second obtaining submodule is used for obtaining two auxiliary lines parallel to a second central line, and the distance between the two auxiliary lines is equal to the length of the normal; and the arrangement submodule is used for arranging the central points along the second central line according to the sequence of the plurality of first areas, arranging the end points of the normal along the two auxiliary lines and obtaining second areas corresponding to the plurality of first areas.
In one embodiment, the filling module comprises: the third acquisition submodule is used for acquiring a blank matrix with a specified size; a setting submodule for setting the second area in the blank matrix; the second determining submodule is used for determining an affine transformation matrix according to the corresponding relation between the second area and the plurality of first areas; and the filling submodule is used for filling the original image corresponding to the first area into the blank matrix according to the affine transformation matrix to obtain a straightened image.
In an implementation, the populating module, according to the affine transformation matrix, includes: the second determining submodule is also used for determining a first pixel point corresponding to the first area in the original image according to the first area, wherein the original image comprises a plurality of pixel points; and the filling submodule is further used for filling the first pixel point into a position, corresponding to the second area, in the blank matrix according to an affine transformation matrix to obtain the straightened image.
In one embodiment, the apparatus further comprises: the bending part at least comprises a rib part; the straightened rib part is included in the straightened image.
Another aspect of the embodiments of the present invention provides a computer-readable storage medium, which includes a set of computer-executable instructions, and when the instructions are executed, the storage medium is configured to perform any one of the image processing methods described above.
The embodiment of the invention provides an image processing method, which comprises the steps of after a plurality of first areas determined by bent parts in an image are specified, arranging the first areas along a specified direction according to the position sequence of the first areas of the plurality of areas so as to enable the first areas to be linearly arranged, and filling the image in the first area into the second area through the corresponding relation between the first areas and the second areas so as to obtain a straightened image with the straightened bent parts, so that the condition that part of a rib image is shielded due to the fact that ribs are staggered is avoided, the judgment efficiency of a user is improved, and the condition that the user has misjudgment due to shielding is reduced.
Drawings
The above and other objects, features and advantages of exemplary embodiments of the present invention will become readily apparent from the following detailed description, which proceeds with reference to the accompanying drawings. Several embodiments of the invention are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which:
in the drawings, like or corresponding reference characters designate like or corresponding parts.
FIG. 1 is a schematic diagram of an implementation flow of an image processing method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first area determining method according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a first area of an image processing method according to an embodiment of the invention;
FIG. 4 is a schematic diagram illustrating a first region arrangement flow of an image processing method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a process of obtaining a straightened image according to an embodiment of the present invention;
fig. 6 is a schematic diagram of an image apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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.
FIG. 1 is a schematic diagram of an implementation flow of an image processing method according to an embodiment of the present invention; please refer to fig. 1;
an embodiment of the present invention provides an image processing method, including: step 101, acquiring a designated image, wherein the designated image comprises a bending part; step 102, determining a plurality of first areas according to bending parts in a designated image; 103, sequentially arranging the first areas along a specified direction according to the sequence of the plurality of first areas to obtain second areas; and 104, filling the image in the first area into the second area according to the corresponding relation between the first area and the second area to obtain a straightened image corresponding to the bent part.
The embodiment of the invention provides an image processing method, which comprises the steps of after a plurality of first areas determined by bending parts in an image are specified, arranging the first areas along a specified direction according to the position sequence of the first areas of the plurality of areas so as to enable the first areas to be linearly arranged, filling the image in the first area into the second area through the corresponding relation between the first areas and the second areas so as to obtain a straightened image with the straightened bending parts, thereby avoiding the situation that part of rib images are shielded due to the interleaving among ribs, improving the judgment efficiency of a user, and reducing the situation that the user has misjudgment due to shielding.
In step 101, the designated image is obtained by determining the horizontal image of the original image as the designated image after the original image is acquired, so as to ensure that the morphology of the image in the sagittal and coronal positions does not change. The original image may be obtained by scanning the object to be detected through a medical imaging device, wherein the medical imaging device may adopt Computed Tomography (CT), Positron Emission Tomography (PET), ultrasonic scanning or other medical imaging devices; specifically, when the original image is a bone image, preferably, a CT device is used to image the bone; the horizontal position refers to a plane which is observed vertically downwards and is called a horizontal position, specifically, the original image may be a three-dimensional image of a rib position of a human body, the horizontal position image of the rib position is determined as a designated image, and the designated image is a two-dimensional image. The designated image includes a bending part, the bending part may refer to a part of a human skeleton having a bending shape, and when the original image is a rib image, the bending part may be a rib part.
In step 102, 103, determining a plurality of first regions according to the bending portion, specifically, the first regions may be in various shapes, specifically, may be in a triangle shape, a trapezoid shape, a rectangle shape, and the like; wherein each first region overlies an image of a portion of the bend region; the order of the plurality of first regions is a positional order of the plurality of first regions from a certain end, and specifically, since the first regions are determined according to the bent portion, the adjacent first regions have a connection relationship therebetween, and the positional order of the plurality of first regions can be determined according to the connection relationship of the first regions from any one end of the bent portion, wherein a set of the plurality of first regions includes the bent member. And sequentially arranging the first areas along the specified direction according to the position sequence, so that the first areas are sequentially arranged on a straight line in the specified direction, and obtaining a second area obtained by straightening a plurality of first areas.
In step 104, since the second area is obtained by arranging a plurality of first areas along the designated direction, the corresponding relationship between the second area and the first area at the existing position fills the image in the first area into the second area, specifically, fills the image corresponding to each first area into the position corresponding to the first area in the second area, specifically, the image corresponding to the first area may refer to the image corresponding to the first area in the designated image, or may refer to the image corresponding to the first area in the original image.
FIG. 2 is a flowchart illustrating a first area determining method according to an embodiment of the present invention; FIG. 3 is a diagram illustrating a first area of an image processing method according to an embodiment of the invention; please refer to fig. 2 and fig. 3;
in one embodiment, the step 102 of determining a number of first regions according to the bending portion in the designated image includes: step 201, obtaining a first central line of a bending part, wherein the central line comprises a plurality of central points; step 202, determining a plurality of normals with specified lengths by taking each central point as a center; step 203, determining a plurality of first areas according to the end points and the central point of the normal.
In step 201 and 203, acquiring a first central line of the bending portion, wherein the first central line is the central line of the rib when the bending portion represents the rib; specifically, a line segment in which any point is equidistant from the edge lines of the bones on both sides of the point is the center line of the bones. Specifically, the central line includes a plurality of central points, and the normal line passing through the central points is determined according to the central points, wherein the length of the normal line can be determined according to the length of the bending portion in the horizontal position, and specifically, when the bending portion is a rib, the length of the normal line can be preset to 50mm according to the size of the rib; wherein the centre point is also the centre point of the normal. Each normal line has two end points, and a first area is determined according to the end points and the central point of the normal line; providing a specific embodiment, taking any one central point, connecting three points of the normal line end point positioned on any side of the central point and the normal line end point adjacent to the normal line end point, and obtaining a triangular area as a first area.
According to one embodiment provided in fig. 3, a partial image of a rib site 10 is provided in fig. 3; the method comprises the following steps of (1) forming a first area by a central point 1, a normal line end point 2 and a normal line end point 3; the central point 1 is any point on the central line, the normal endpoint 2 is an endpoint on one side of the normal passing through the central line point 1, the normal endpoint 3 is a normal endpoint adjacent to the normal endpoint 2, and the three points are connected to obtain a first area.
Specifically, in step 202, among a plurality of normals with specified lengths, which are determined with each central point as a center, the method for acquiring the normals specifically includes: selecting any one central point as a first central point; determining two center points closest to the first center point as a second center point and a third center point; the first angle is determined according to the first center point and the second center point, specifically, a first line segment is obtained by connecting the first center point and the second center point, and then an angle between the first line segment and a first direction is determined as the first angle, where the first direction may be any direction, and preferably, the first direction may be a horizontal direction or a vertical direction. And determining a second angle according to the first central point and the third central point, specifically, obtaining a first line segment by connecting the first central point and the third central point, and then determining the angle between the second line segment and the first direction as the second angle. Determining a third angle according to the first angle and the second angle; specifically, an average value of the first angle and the second angle is calculated as a third angle; determining a tangent line of the first center point according to the third angle, specifically, determining a straight-line segment of the first center point, which has a third angle with the specified angle, as the tangent line of the first center point; and determining a first normal of a specified length according to the first central point and the tangent, wherein the first normal is a normal corresponding to the first central point. Specifically, the tangent line can be obtained by direct calculation according to the first angle and the second angle, and the calculation formula is as follows:
Figure BDA0003254379890000081
wherein k is used to represent the slope of the normal; ang1 refers to a first angle and ang2 refers to a second angle.
Fig. 4 is a schematic diagram illustrating a first region arrangement flow of an image processing method according to an embodiment of the present invention; please refer to fig. 4;
in an implementation manner, arranging the first regions in sequence along a specified direction according to the sequence of the plurality of first regions in step 103 to obtain a second region includes: step 301, acquiring a second center line corresponding to the first center line, wherein the second center line is a straight line along a specified direction; step 302, two auxiliary lines parallel to the second center line are obtained, and the distance between the two auxiliary lines is equal to the length of the normal line; step 303, according to the sequence of the plurality of first regions, arranging the center points along a second center line, and arranging the end points of the normal along two auxiliary lines to obtain second regions corresponding to the plurality of first regions.
In step 301 and 302, three parallel straight line segments are obtained, and the middle straight line segment is determined as a second center line; the second central line is used for arranging the central points on the first central line; specifically, the second center line is used for determining the arrangement of the center points of the first area; the second center line is oriented in a direction in which the bent portion needs to be straightened. Two straight line segments adjacent to the second central line are determined as auxiliary lines, the auxiliary lines are used for arranging the normal line end points, and the distance between the two auxiliary lines is consistent with the length of the normal line. Specifically, points corresponding to the center points in number may be set on the second center line, and points corresponding to the normal end points in number may be set on the straight line segments on both sides of the center line. So that the central point and the normal line end point can be better arranged; specifically, according to experiments, it is preferable that when three straight line segments are formed by connecting 33 equidistant points, the straightened rib part is ensured to be smooth.
In step 303, according to the sequence among the plurality of first regions, specifically, the center points for determining the first regions are arranged along a second center line, the normal line end points for determining the first regions are arranged in sequence along two straight line segments, and the region corresponding to each first region is determined according to the center point on the second center line and the normal line end points; and the set of the regions corresponding to all the first regions is the second region.
FIG. 5 is a schematic diagram of a process of obtaining a straightened image according to an embodiment of the present invention; please refer to fig. 5;
in an implementation manner, in step 104, filling the image in the first region into the second region according to the corresponding relationship between the first region and the second region, and obtaining a straightened image corresponding to the bending portion includes: step 401, acquiring a blank matrix with a specified size; step 402, arranging a second area in a blank matrix; step 403, determining an affine transformation matrix according to the corresponding relation between the second area and the plurality of first areas; and step 404, filling the original image corresponding to the first area into a blank matrix according to the affine transformation matrix to obtain a straightened image.
In step 401, a blank matrix of a specified size is obtained, wherein the size of the blank matrix can be determined according to the shape of the bending portion, when the bending portion is a rib, the unfolded length of the rib is usually not greater than 2000mm, the distance from the 1 st rib to the 12 th rib is usually not greater than 700mm, and the thickness of the rib is usually not greater than 100mm according to the general rib data, and a blank matrix (2000, 100, 700) sufficient for laying down the unfolded rib portion is defined according to the data.
In step 402-: the original image comprises a plurality of pixel points, and a first pixel point corresponding to the first area in the original image is determined according to the first area; and filling the first pixel points into the positions corresponding to the second area in the blank matrix according to the affine transformation matrix to obtain a straightened image. The straightened image is a three-dimensional image containing the straightened ribs.
Specifically, the affine transformation formula is as follows:
[x des ,y des ,1]=[x ori ,y ori ,1]·M
wherein [ x ] des ,y des ,1]Refers to the position coordinates of the pixel points in the original image, [ x ] ori ,y ori ,1]The position coordinate corresponding to the blank matrix is referred to, and M is an affine transformation matrix obtained through calculation.
FIG. 6 is a schematic diagram of an image device according to an embodiment of the present invention, please refer to FIG. 6;
another aspect of an embodiment of the present invention provides an image processing apparatus, including: an obtaining module 501, configured to obtain a designated image, where the designated image includes a bending portion; a determining module 502, configured to determine a number of first regions according to a bending portion in a designated image; the arrangement module 503 is configured to sequentially arrange the first areas along a specified direction according to the sequence of the plurality of first areas to obtain second areas; a filling module 504, configured to fill the image in the first region into the second region according to the corresponding relationship between the first region and the second region, so as to obtain a straightened image corresponding to the bent portion.
In one embodiment, the apparatus further comprises: the obtaining module 501 is further configured to obtain an original image; the image of the original image in the horizontal position is determined as the designated image.
In one embodiment, the determining module 502 includes: the first acquisition submodule 5021 is used for acquiring a first central line of a bent part, and the central line comprises a plurality of central points; the first determining sub-module 5022 is used for determining a plurality of normals with specified lengths by taking each central point as a center; the first determining submodule 5022 is further configured to determine a number of first regions according to the end points and the center point of the normal.
In an implementation manner, the first determining submodule 5022 is further configured to select any one central point as a first central point; determining two center points closest to the first center point as a second center point and a third center point; determining a first angle according to the first center point and the second center point; determining a second angle according to the first central point and the third central point; determining a third angle according to the first angle and the second angle; determining a tangent of the first center point according to the third angle; a first normal of a specified length is determined from the first center point and the tangent.
In one embodiment, the placement module 503 comprises: a second obtaining sub-module 5031, configured to obtain a second centerline corresponding to the first centerline, where the second centerline is a straight line along the specified direction; a second obtaining sub-module 5031 configured to obtain two auxiliary lines parallel to the second center line, where a distance between the two auxiliary lines is equal to the length of the normal line; the arrangement sub-module 5032 is configured to arrange the center points along the second center line according to the sequence of the plurality of first regions, and arrange the end points of the normal along the two auxiliary lines to obtain second regions corresponding to the plurality of first regions.
In one possible embodiment, the fill module 504 includes: a third obtaining submodule 5041, configured to obtain a blank matrix of a specified size; a setting sub-module 5042 for setting the second area in a blank matrix; the second determining submodule 5043 is configured to determine an affine transformation matrix according to correspondence between the second region and the plurality of first regions; and the filling sub-module 5044 is configured to fill the original image corresponding to the first area into the blank matrix according to the affine transformation matrix to obtain a straightened image.
In one implementation, the populating module 504, according to the affine transformation matrix, includes: the second determining submodule 5043 is further configured to determine, according to the first area, a first pixel point in the original image, which corresponds to the first area, where the original image includes a plurality of pixel points; and the filling submodule 5044 is further configured to fill the first pixel point into the position, corresponding to the second area, in the blank matrix according to the affine transformation matrix, so as to obtain a straightened image.
In one embodiment, the apparatus further comprises: the bending part at least comprises a rib part; the straightened rib position is included in the straightened image.
Another aspect of an embodiment of the present invention provides a computer-readable storage medium, which includes a set of computer-executable instructions, when executed, for performing any one of the image processing methods described above.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Moreover, various embodiments or examples and features of various embodiments or examples described in this specification can be combined and combined by one skilled in the art without being mutually inconsistent.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (6)

1. An image processing method, characterized in that the method comprises:
acquiring a designated image, wherein the designated image comprises a bending part; the bending part at least comprises a rib part;
determining a plurality of first areas according to the bending parts in the appointed image; the method comprises the steps of obtaining a first central line of the bending part, wherein the central line comprises a plurality of central points; determining a plurality of normals with specified lengths by taking each central point as a center; determining a plurality of first areas according to the end points of the normal and the central point; specifically, the first region is triangular; wherein, the determining the normals with a plurality of specified lengths by taking each central point as a center comprises: selecting any one of the center points as a first center point; determining two center points closest to the first center point as a second center point and a third center point; determining a first angle according to the first center point and the second center point; determining a second angle according to the first center point and the third center point; determining a third angle according to the first angle and the second angle; determining a tangent of the first center point according to the third angle; determining a first normal line with a specified length according to the first central point and the tangent line;
sequentially arranging the first areas along a specified direction according to the sequence of the plurality of first areas to obtain a second area; the method comprises the following steps: acquiring a second central line corresponding to the first central line, wherein the second central line is a straight line along the specified direction; acquiring two auxiliary lines parallel to a second central line, wherein the distance between the two auxiliary lines is equal to the length of the normal; according to the sequence of the plurality of first areas, the central points are arranged along the second central line, the end points of the normal lines are arranged along the two auxiliary lines, and second areas corresponding to the plurality of first areas are obtained;
and filling the image in the first region into the second region according to the corresponding relation between the first region and the second region to obtain a straightened image corresponding to the bent part, wherein the straightened image comprises a straightened rib part.
2. The method of claim 1, wherein prior to said obtaining a specified image, the method further comprises:
acquiring an original image;
and determining the image of the horizontal position of the original image as a designated image.
3. The method according to claim 2, wherein the filling the image in the first region into the second region according to the corresponding relationship between the first region and the second region to obtain the straightened image corresponding to the bending portion comprises:
acquiring a blank matrix with a specified size;
disposing the second region in the blank matrix;
determining an affine transformation matrix according to the corresponding relation between the second area and the plurality of first areas;
and filling the original image corresponding to the first area into the blank matrix according to the affine transformation matrix to obtain a straightened image.
4. The method according to claim 3, wherein the filling, according to the affine transformation matrix, the image corresponding to the first region in the curved portion into the blank matrix to obtain a straightened image comprises:
the original image comprises a plurality of pixel points, and first pixel points corresponding to a first area in the original image are determined according to the first area;
and filling the first pixel points into the position, corresponding to the second area, in the blank matrix according to an affine transformation matrix to obtain the straightened image.
5. An image processing apparatus, characterized in that the apparatus comprises:
the acquisition module is used for acquiring a specified image, and the specified image comprises a bending part; the bending part at least comprises a rib part;
the determining module is used for determining a plurality of first areas according to the bending parts in the appointed images; the method comprises the steps of obtaining a first central line of the bending part, wherein the central line comprises a plurality of central points; determining a plurality of normals with specified lengths by taking each central point as a center; determining a plurality of first areas according to the end points of the normal and the central point; specifically, the first area is triangular; wherein, the determining the normals with a plurality of specified lengths by taking each central point as a center comprises: selecting any one of the center points as a first center point; determining two center points that are closest to the first center point as a second center point and a third center point; determining a first angle according to the first center point and the second center point; determining a second angle according to the first center point and the third center point; determining a third angle according to the first angle and the second angle; determining a tangent of the first center point according to the third angle; determining a first normal line with a specified length according to the first central point and the tangent line;
the arrangement module is used for sequentially arranging the first areas along a specified direction according to the sequence of the plurality of first areas to obtain a second area; the method comprises the following steps: acquiring a second central line corresponding to the first central line, wherein the second central line is a straight line along the specified direction; acquiring two auxiliary lines parallel to a second central line, wherein the distance between the two auxiliary lines is equal to the length of the normal; according to the sequence of the plurality of first areas, the central points are arranged along the second central line, the end points of the normal are arranged along the two auxiliary lines, and second areas corresponding to the plurality of first areas are obtained;
and the filling module is used for filling the image in the first area into the second area according to the corresponding relation between the first area and the second area to obtain a straightened image corresponding to the bent part, wherein the straightened image comprises a straightened rib part.
6. The apparatus of claim 5, wherein the determining module comprises:
the acquisition submodule is used for acquiring a first central line of the bending part, and the central line comprises a plurality of central points;
the determining submodule is used for determining a plurality of normals with specified lengths by taking each central point as a center;
and the determining submodule is used for determining a plurality of first areas according to the end points of the normal and the central point.
CN202111055322.2A 2021-09-09 2021-09-09 Image processing method and device Active CN113971658B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111055322.2A CN113971658B (en) 2021-09-09 2021-09-09 Image processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111055322.2A CN113971658B (en) 2021-09-09 2021-09-09 Image processing method and device

Publications (2)

Publication Number Publication Date
CN113971658A CN113971658A (en) 2022-01-25
CN113971658B true CN113971658B (en) 2022-09-23

Family

ID=79586482

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111055322.2A Active CN113971658B (en) 2021-09-09 2021-09-09 Image processing method and device

Country Status (1)

Country Link
CN (1) CN113971658B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116363056B (en) * 2023-01-16 2023-09-05 北京医准智能科技有限公司 Chest CT fracture detection optimization method, device and equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4765376A (en) * 1987-04-28 1988-08-23 Northern Telecom Limited Lead straightening for leaded packaged electronic components
EP3073485A1 (en) * 2015-03-25 2016-09-28 Yamaha Corporation Support assembly and keyboard apparatus

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5241423B2 (en) * 2008-10-16 2013-07-17 株式会社キーエンス Image data reduction rate determination method in image processing, pattern model positioning method in image processing, pattern model creation method in image processing, image processing apparatus, image processing program, and computer-readable recording medium
CN111386557B (en) * 2017-09-28 2023-09-22 纳维斯国际有限公司 Flattened views for lumen navigation
CN115429325A (en) * 2018-12-28 2022-12-06 深圳迈瑞生物医疗电子股份有限公司 Ultrasonic imaging method and ultrasonic imaging equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4765376A (en) * 1987-04-28 1988-08-23 Northern Telecom Limited Lead straightening for leaded packaged electronic components
EP3073485A1 (en) * 2015-03-25 2016-09-28 Yamaha Corporation Support assembly and keyboard apparatus

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
体表定位切线位点片对肋骨骨折的诊断价值;陈国礼等;《医用放射技术杂志》;20021231;第10卷(第1期);51 *

Also Published As

Publication number Publication date
CN113971658A (en) 2022-01-25

Similar Documents

Publication Publication Date Title
US7773786B2 (en) Method and apparatus for three-dimensional interactive tools for semi-automatic segmentation and editing of image objects
US10154820B2 (en) Method and apparatus for navigating CT scan with a marker
US8939892B2 (en) Endoscopic image processing device, method and program
JPH07114652A (en) Device and method for moving picture display for three-dimensional image
CN113971658B (en) Image processing method and device
JP4717585B2 (en) Medical image determination apparatus, medical image determination method and program thereof
WO2005069227A1 (en) Mesh models with internal discrete elements
JP2015071032A (en) Image processor, and image processing method
CN108320314B (en) Image processing method and device based on CT transverse image and display system
CN107106128B (en) Ultrasound imaging apparatus and method for segmenting an anatomical target
CN104574520A (en) Modification of a hollow organ representation
US9836891B2 (en) Shape data generation method and apparatus
CN113643176A (en) Rib display method and device
US9792729B2 (en) System and method for context preserving maps of tubular structures
US20100215228A1 (en) Medical image displaying apparatus, medical image displaying method, and medical image displaying program
Wang et al. Colon unraveling based on electrical field: Recent progress and further work
EP2541501B1 (en) Shape data generation method and apparatus
CN113327283A (en) Automatic labeling method and system for image data target detection rectangular frame
WO2016054775A1 (en) Ultrasonic virtual endoscopic imaging system and method, and apparatus thereof
CN103027683A (en) Active catheter reconstruction for interventional magnetic resonance imaging
US20220060664A1 (en) Information processing apparatus, information processing method, and recording medium
JP2019114035A (en) Computer program, image processing device, image processing method and voxel data
CN114581292A (en) Three-dimensional labeling method and device for two-dimensional image
JP2019114033A (en) Computer program, image processing device, image processing method and data of three-dimensional voxel image
CN108536698A (en) Web data three-dimensional display method and device

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
CP03 Change of name, title or address

Address after: Room 3011, 2nd Floor, Building A, No. 1092 Jiangnan Road, Nanmingshan Street, Liandu District, Lishui City, Zhejiang Province, 323000

Patentee after: Zhejiang Yizhun Intelligent Technology Co.,Ltd.

Address before: No. 1202-1203, 12 / F, block a, Zhizhen building, No. 7, Zhichun Road, Haidian District, Beijing 100083

Patentee before: Beijing Yizhun Intelligent Technology Co.,Ltd.

CP03 Change of name, title or address