CN105045886B - DICOM image importing method - Google Patents

DICOM image importing method Download PDF

Info

Publication number
CN105045886B
CN105045886B CN201510438917.4A CN201510438917A CN105045886B CN 105045886 B CN105045886 B CN 105045886B CN 201510438917 A CN201510438917 A CN 201510438917A CN 105045886 B CN105045886 B CN 105045886B
Authority
CN
China
Prior art keywords
dicom image
dicom
image files
determining
axis
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
CN201510438917.4A
Other languages
Chinese (zh)
Other versions
CN105045886A (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.)
Qingdao Hisense Medical Equipment Co Ltd
Original Assignee
Qingdao Hisense Medical Equipment 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 Qingdao Hisense Medical Equipment Co Ltd filed Critical Qingdao Hisense Medical Equipment Co Ltd
Priority to CN201510438917.4A priority Critical patent/CN105045886B/en
Publication of CN105045886A publication Critical patent/CN105045886A/en
Application granted granted Critical
Publication of CN105045886B publication Critical patent/CN105045886B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/583Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Human Computer Interaction (AREA)
  • Apparatus For Radiation Diagnosis (AREA)

Abstract

The invention provides a DICOM image importing method, which at least solves the problem that the required image data cannot be quickly found in the three-dimensional reconstruction of medical images in the prior art. The method comprises the following steps: acquiring a group of DICOM image files, wherein each DICOM image file in the group of DICOM image files contains a patient identifier, image position information, acquisition time and serial numbers corresponding to the DICOM image file; classifying a group of DICOM image files according to patient identification, image position information, acquisition time and serial numbers to obtain a plurality of groups of DICOM image files which are sequentially arranged in the axial direction and have the same patient, the same thickness, the same section and the same period; generating a nested folder according to the patient type, the slice thickness, the section type and the staging type of the plurality of DICOM image files; and respectively importing the plurality of groups of DICOM image files into the nested folders according to the root directory path of the nested folders. The method is suitable for the field of three-dimensional reconstruction of images.

Description

DICOM image importing method
Technical Field
The invention relates to the field of image three-dimensional reconstruction, in particular to a method for importing a digital imaging and Communications in Medicine (DICOM) image.
Background
Three-dimensional reconstruction of medical images is a technique for converting a set of two-dimensional DICOM image sequences into three-dimensional images.
Three-dimensional reconstruction software typically requires that a set of DICOM images be of the same patient, of the same thickness, of the same slice, of the same stage, and arranged sequentially in the axial direction. For example, as shown in fig. 1, in the three-dimensional reconstruction of medical images, a patient 1 with a slice thickness of 0.6 and an axial plane may be required, and a set of DICOM images of an arterial phase are sequentially arranged in an axial direction. However, because there is no unified import standard in the current DICOM standard, DICOM images obtained from Computer Tomography (CT) equipment and medical image information systems (PACS) may be disordered, and if a set of DICOM images meeting the requirements is to be found, traversal in mass data may be required, which is time-consuming, labor-consuming, not beneficial to data access, and relatively disordered in management. Although DICOM images of the same patient, the same thickness, the same section and the same stage have the same serial number and can be searched through comparison according to the serial number, the characteristics of the slice thickness, the section type and the like cannot be known according to the serial number.
Therefore, it is an urgent technical problem to find a method for importing a DICOM image so as to quickly find required image data during three-dimensional reconstruction of a medical image.
Disclosure of Invention
The embodiment of the invention provides a method for importing a DICOM image, which is used for at least solving the problem that the required image data cannot be quickly found in the three-dimensional reconstruction of a medical image in the prior art.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
in a first aspect, a method for importing digital imaging and communications in medicine (DICOM) images is provided, the method comprising:
acquiring a group of DICOM image files, wherein each DICOM image file in the group of DICOM image files contains a patient identifier, image position information, acquisition time and serial numbers corresponding to the DICOM image file;
classifying the DICOM image files according to the patient identification, the image position information, the acquisition time and the serial number to obtain a plurality of DICOM image files which are sequentially arranged in the axial direction and have the same patient, the same thickness, the same section and the same period;
generating a nested folder according to the patient types, the slice thicknesses, the section types and the staging types of the plurality of groups of DICOM image files, wherein the nested folder comprises a patient identification root directory, a slice thickness root directory, a section type root directory and a staging type root directory;
and respectively importing the plurality of groups of DICOM image files into the nested folders according to the root directory path of the nested folders.
The DICOM image importing method provided by the embodiment of the invention can classify the group of DICOM image files according to the patient identification, the image position information, the acquisition time and the serial number to obtain a plurality of groups of DICOM image files which are arranged in sequence in the axial direction, have the same thickness, the same section and the same period of the same patient, namely obtain the DICOM image files required by the three-dimensional reconstruction of the medical image, and can generate corresponding nested folders according to the patient types, slice thicknesses, section types and staging types of the multiple DICOM image files, meanwhile, the plurality of DICOM image files can be respectively imported into the nested folders according to the root directory path of the nested folders, wherein the medical image three-dimensional reconstruction folder comprises a patient identification root directory, a slice thickness root directory, a section type root directory and a staging type root directory. Therefore, based on the DICOM image importing method provided by the embodiment of the invention, when the medical image is reconstructed in three dimensions, the required image data can be quickly found by directly searching the nested folder.
Drawings
FIG. 1 is a schematic diagram of a DICOM image classification file hierarchy in the prior art of three-dimensional reconstruction of medical images;
fig. 2 is a first flowchart illustrating a DICOM image importing method according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a DICOM image importing method according to an embodiment of the present invention;
FIG. 4 is an imaging coordinate axis provided by an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a DICOM image importing device according to an embodiment of the present invention.
Detailed Description
For clarity and conciseness of the following description of the various embodiments, a brief introduction to the relevant background is first given as follows:
DICOM is an international standard for medical images and related information that defines a medical image format that can be used for data exchange with quality that meets clinical needs.
DICOM image file content consists of three parts, including: header (Header), picture point Data (Pixel Data), and Information Entity (Information Entity) of parameter Information.
Wherein each DICOM image file must include a file header. The header begins with the file preamble, which consists of 128 bytes 00H, followed by the DICOM prefix, which is a 4-byte string "DICM" that can be used to determine whether a file is a DICOM image file. The header also includes other useful information such as the transmission format of the file, the application that generated the file, etc.
The pixel data, i.e. the image pixels, is used to describe the luminance value of each point of the image.
DICOM image files are composed of a number of information entities, which are subdivided into modules (modules). The minimum unit inside each module is called an Attribute (Attribute) or a data Element (Element). In the DICOM image file, the position of each data element is stored in a fixed position, so that the corresponding data element can be found according to the offset of the storage position as long as the first address of the image file stored in the memory is known. TAG (TAG) values in DICOM image files are also data elements one by one, i.e., each TAG value corresponds to one data element. For example, a TAG is the patient's name (then its value is the actual patient's name, say zhang san.
Typically, a DICOM image file contains 4 content layers: patient, exam, series, and image. Although the 4-level content is partially identical in many DICOM image files, they are identical in each DICOM image file, e.g., two CT images of the same patient, at least the patient information is identical.
The patient goes to a hospital for examination, the CT equipment stores the scanning result into a picture in accordance with the DICOM standard format, and uploads the picture to the server of the PACS system through the network, and a doctor accesses the server of the PACS system through the image terminal to read the picture. The DICOM standard specifies the format of the individual DICOM image files, which both CT devices and PACS systems are designed to comply with. However, the DICOM standard does not specify the naming and arrangement format of a set of DICOM image files (as compared to a single image or multiple images), so that each manufacturer can customize the naming and arrangement format of a set of DICOM image files.
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 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.
For the convenience of clearly describing the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, the words "first", "second", and the like are used to distinguish the same items or similar items with basically the same functions and actions, and those skilled in the art can understand that the words "first", "second", and the like do not limit the quantity and execution order.
The first embodiment,
An embodiment of the present invention provides a method for importing a DICOM image, as shown in fig. 2, including:
s201, obtaining a group of DICOM image files, wherein each DICOM image file in the group of DICOM image files contains a patient identifier, image position information, acquisition time and serial number corresponding to the DICOM image file.
S202, classifying the DICOM image files according to the patient identification, the image position information, the acquisition time and the serial number to obtain a plurality of groups of DICOM image files which are sequentially arranged in the axial direction and have the same patient, the same thickness, the same section and the same period.
S203, generating a nested folder according to the patient types, the slice thicknesses, the section types and the staging types of the plurality of groups of DICOM image files, wherein the nested folder comprises a patient identification root directory, a slice thickness root directory, a section type root directory and a staging type root directory.
And S204, respectively importing the plurality of groups of DICOM image files into the nested folders according to the root directory path of the nested folders.
Specifically, in step S201 of the embodiment of the present invention:
patient identification is typically information manually entered into the device prior to performing a CT scan; image location information, acquisition time, and serial number are typically information that is automatically generated by the device.
The patient identification can be information such as patient name or patient number; the image position information may specifically be information such as an image position coordinate or an image orientation, which is not specifically limited in this embodiment of the present invention.
The image position coordinates represent the spatial coordinates (x, y, z) of the first pixel in the upper left corner of the image, i.e., the coordinates of the first pixel of the DICOM image file transfer.
The image orientation consists of six data, the first three numbers represent cosine values of the included angles of the row vector (row increasing direction) and the x, y and z axes respectively, and the last three numbers represent cosine values of the included angles of the column vector (column increasing direction) and the x, y and z axes respectively. Since the CT image is a scanned image perpendicular to a certain axis, six data of the image orientation are all 0 or 1.
Specifically, in step S202 in the embodiment of the present invention:
as described in the background, a set of DICOM image files required for three-dimensional reconstruction of medical images, i.e., a set of DICOM image files of the same patient, the same thickness, the same section, the same period, and sequentially arranged in the axial direction. As shown in fig. 3, step S202 may specifically include:
s202a, classifying the group of DICOM image files according to the patient identification to obtain m first sets, wherein m is a positive integer.
S202b, classifying the DICOM image files in each first set according to the serial numbers for each first set in the m first sets, and respectively obtaining lsA second set.
Wherein lsAnd the number of DICOM image file sets obtained after the DICOM image files in the s-th set in the m first sets are classified is shown, and s is more than or equal to 1 and less than or equal to m.
S202c, for the lsAnd each second set in the second sets determines the section type and the slice thickness corresponding to the DICOM image file in each second set according to the image position information, wherein the section type comprises an axial plane, a coronal plane or a sagittal plane.
S202d, according to the aboveSlice thickness and type of the slice tosAnd classifying the second sets in a hierarchical mode to obtain f third sets, wherein f is a positive integer.
S202e, for each of the f third sets, determining a staging type corresponding to each of the third sets according to the acquisition time, wherein the staging type includes an arterial phase, a venous phase or a balanced phase.
In step S202a, in the embodiment of the present invention:
and grouping DICOM image files containing the same patient identification into the same first set. In this step, there are m different patient identifiers, thus resulting in m first sets.
In step S202b of the embodiment of the present invention:
because the DICOM images of the same patient, the same thickness, the same section and the same period have the same serial number, when the DICOM images are classified, after a group of DICOM image files are classified according to patient identification, the DICOM image files containing the same serial number can be classified according to the serial number, namely, the DICOM image files containing the same serial number are classified into the same second set, so that a group of DICOM images of the same patient, the same thickness, the same section and the same period can be obtained. In this step, for the s-th set of the m first sets, there is lsA different serial number, thus obtaining lsA second set.
In step S202c of the embodiment of the present invention:
generally speaking, the sagittal plane is a plane that the human body is cut layer by layer along the left-to-right direction (or right-to-left direction) of the two sides of the human body when the human body is lying, that is, the sagittal plane is a plurality of planes perpendicular to the X axis, and the axial direction of the sagittal plane is the X axis direction. The coronal plane is a plane obtained by cutting the human body horizontally from top to bottom when the human body is lying, i.e. the coronal plane is a plurality of planes perpendicular to the Y-axis, and the axial direction of the coronal plane is the Y-axis direction. When the human body lies, the axial plane (which may also be referred to as a cross section) is a plane that cuts the human body layer by layer along a direction from head to foot (or from foot to head), that is, the axial plane is a plurality of planes perpendicular to the Z axis, and the axial direction of the axial plane is the Z axis direction.
As shown in FIG. 4, the DICOM coordinate system is determined according to the direction of the patient, with the X-axis pointing forward to the left of the patient, the Y-axis pointing forward to the back of the patient, and the Z-axis pointing forward to the head of the patient. The axial direction is specifically the direction of a coordinate axis when the patient is scanned along the coordinate axis. For example, if the patient is scanned along the Z-axis direction, the axial direction is the Z-axis direction.
It should be noted that, when CT scanning is performed, the generated slice images are perpendicular to the axial direction, and have a sequential order along the axial direction, that is, are generated according to the axial direction order, but because the file naming modes are different, the order read into the memory is Windows according to the default order of file names (because the window system orders the file names in the memory according to the character strings in the ordering mode, even if the machine numbers the files according to the scanning sequential order, but the character strings are not paid attention to the magnitude of the values when ordering is performed), and are not necessarily arranged according to the axial direction, so that the finally obtained DICOM image files are not ordered according to the axial direction at all times.
In one possible implementation, the image position information includes image position coordinates.
The determining, according to the image position information, a section type corresponding to the DICOM image file in each second set may specifically include:
and decomposing the image position coordinates of the DICOM image files in each second set into X-axis, Y-axis and Z-axis data.
And determining the axial direction of the DICOM image files in each second set according to the X-axis data, the Y-axis data and the Z-axis data.
And if the axial direction is the Z-axis direction, determining that the section type corresponding to the DICOM image file in each second set is an axial plane.
And if the axial direction is the Y-axis direction, determining that the type of the section corresponding to the DICOM image file in each second set is a coronal plane.
And if the axial direction is the X-axis direction, determining that the section type corresponding to the DICOM image file in each second set is a sagittal plane.
In another possible implementation, the image position information includes an image orientation.
Determining a section type corresponding to the DICOM image file in each second set according to the image position information, wherein the determining comprises:
and if the cosine values of the line vectors and the column vectors in the image orientation to the Z axis are both 0, determining that the section type corresponding to the DICOM image file in each second set is an axial plane.
And if the cosine values of the row vectors and the column vectors in the image orientation to the Y axis are both 0, determining that the section type corresponding to the DICOM image file in each second set is a coronal plane.
And if the cosine values of the row vector and the column vector in the image orientation to the X axis are both 0, determining that the section type corresponding to the DICOM image file in each second set is a sagittal plane.
The slice thickness is a coordinate interval between two adjacent CT images arranged in the order of CT scanning, and is generally 0.6mm, 1.0mm, or 5.0 mm. When the image position information includes an image position coordinate, determining a slice thickness corresponding to the DICOM image file in each second set according to the image position information may specifically include:
and sequencing the DICOM image files in each second set according to the CT scanning sequence to obtain a sequenced second set.
And determining the distance between the image positions of two adjacent DICOM images in the sorted second set as the slice thickness corresponding to the DICOM image file in each second set according to the image position coordinates.
It should be noted that, since the second set is a group of DICOM image files with the same slice thickness, the slice thickness corresponding to the DICOM image files in the second set can be known only by acquiring the distance between the image positions of any two adjacent DICOM images.
Further, in a possible implementation manner, the sorting the DICOM image files in each second set according to the CT scan order may specifically include:
and decomposing the image position coordinates of each DICOM image file in each second set into X-axis, Y-axis and Z-axis data.
And determining the axial direction of the DICOM image files in each second set according to the X-axis data, the Y-axis data and the Z-axis data.
And sorting the DICOM image files in each second set according to the order of CT scanning according to the size of axis data of each DICOM image file in each second set in the axial direction.
Optionally, in a possible implementation manner, the sorting the DICOM image files in each second set according to the CT scan order may specifically include:
and sorting the DICOM image files in each second set according to the acquisition time according to the CT scanning order.
Optionally, in a possible implementation manner, each DICOM image file in the group of DICOM image files further includes an instance number, and the instance number is used for characterizing a scanning order of each DICOM image file.
The sorting the DICOM image files in each second set according to the CT scanning order may specifically include:
and sorting the DICOM image files in each second set according to the instance number in the CT scanning order.
Specifically, in the above embodiment, because the DICOM image files in the second sets are DICOM images with the same section type, the determining the axial direction of the DICOM image file in each second set according to the X-axis, Y-axis and Z-axis data may specifically include:
and if the X-axis data and the Y-axis data of at least two DICOM image files in the second set are the same and the Z-axis data are different, determining that the axial direction of the DICOM image files in each second set is the Z-axis direction.
And if the X-axis data and the Z-axis data of at least two DICOM image files in the second set are the same and the Y-axis data are different, determining that the axial direction of the DICOM image files in each second set is the Y-axis direction.
And if the Y-axis data and the Z-axis data of at least two DICOM image files in the second set are the same and the X-axis data are different, determining the axial direction of the DICOM image files in each second set as the X-axis direction.
Illustratively, for example, there are two CT images whose axial data are 12.3 (5.8 (and 12.3(10.0(6.3, it can be found that they are pictures belonging to an axial plane whose axial direction is the Z-axis direction, that is, an axial plane, and whose slice thickness is 6.3)) and 5.8 are 0.5 (unit omitted).
Note that slice thickness may be manually input to the apparatus before CT scanning, and when DICOM images are classified, the images may be classified according to the slice thickness, which is not particularly limited in the embodiment of the present invention. Of course, in order to ensure the accuracy of the DICOM image data in the three-dimensional reconstruction of the medical image, the slice thickness manually input is usually only used as the reference slice thickness.
In step S202d of the embodiment of the present invention:
the pair of the section l is determined according to the slice thickness and the section typesThe hierarchically classifying the second sets to obtain f third sets, which may specifically include:
according to the slice thickness, dividing the lsAnd classifying the second sets to obtain p fourth sets, wherein p is a positive integer.
For each fourth set in the p fourth sets, classifying the second set in each fourth set according to the section type to obtain pqA third set.
Wherein p isqRepresents the number of DICOM image file sets obtained after classifying the second set in the qth fourth set in the p fourth sets, wherein q is more than or equal to 1 and less than or equal to p,
Figure BDA0000766283290000091
that is, in the embodiment of the present invention, for the lsAnd the second set classifies DICOM image files with the same slice thickness into the same fourth set. In this step, there are p different slice thicknesses, thus resulting in p fourth sets.
And for the second set in the qth fourth set in the p fourth sets, classifying the DICOM image files of the same section type into the same third set. In this step, there is pqA different section type, thereby obtaining pqA third set.
In step S202e of the embodiment of the present invention:
the staging types generally include an arterial phase, a venous phase and a balance phase, which are medical terms of art, that are scanned in three time slices or three times with different emphasis, such as the arterial phase where emphasis is on arterial changes and the venous phase where emphasis is on venous changes. The general sequence is that the first scan is an arterial phase, the second scan is a venous phase, and the third scan is an equilibrium phase.
Correspondingly, the determining the staging type corresponding to each second set in each third set according to the acquisition time may specifically include:
and determining the staging type corresponding to the second set, in which the acquisition time corresponding to the DICOM image file in the second set in each third set is within the first time period, as the artery stage.
And determining the staging type corresponding to the second set, in which the acquisition time corresponding to the DICOM image file in the second set in each third set is within the second time period, as a venous phase.
And determining the staging type corresponding to the second set, in which the acquisition time corresponding to the DICOM image files in the second set in each third set is within the third time period, as an equilibrium period.
Wherein the first time period is earlier than the second time period, which is earlier than the third time period.
In the embodiment of the present invention, the DICOM images are classified according to the slice levelThe next hierarchy (i.e., the staging hierarchy) includes three stages, namely an arterial stage, a venous stage and a balance stage, each stage corresponds to one second set, and as can be seen from the determination method of the staging types, if the staging types are determined, each third set must include 3 second sets, and then the staging types are determined in each third set according to the sequence of the time periods. Wherein 3f ═ ls
It should be noted that, in consideration of that, when CT scanning is performed, CT images of different stages are scanned in stages, if the DICOM image files in the second set in each third set are DICOM image files sorted according to the CT scanning order, the acquisition time of the first DICOM image file in each second set in each third set may be directly compared, and then the stage type corresponding to each second set in each third set may be directly determined, which is not specifically limited in the embodiment of the present invention.
For example, assuming that the DICOM image files in the 3 second sets (set 2, set 3 and set 4, respectively) included in the third set (set 1) are DICOM image files sorted in the CT scan order, the acquisition time corresponding to the first DICOM image file in the set 2 is 10:10:00, the acquisition time corresponding to the first DICOM image file in the set 3 is 10:01:00, and the acquisition time corresponding to the first DICOM image file in the set 4 is 10:20:00, since 10:01:00 is earlier than 10:10:00 and 10:10:00 is earlier than 10:20:00, it can be determined that the type of the corresponding staging of the set 3 is determined as an artery; determining the staging type corresponding to the set 2 as a venous phase; the type of the staging corresponding to set 4 is determined as balance period.
Specifically, in step S203 in the embodiment of the present invention:
after classifying the obtained set of DICOM image files, a nested folder may be generated according to the patient type, slice thickness, slice type and staging type of the plurality of sets of DICOM image files, where the nested folder includes a patient identification root directory, a slice thickness root directory, a slice type root directory and a staging type root directory.
Illustratively, as shown in fig. 1, the folders may be created in a hierarchical classification from outside to inside, the outermost is divided into a plurality of folders according to patient identification, the image of the same patient is placed in one folder (or understood as a hierarchy, or directory), the first-level subfolder is divided into a plurality of folders such as 0.6mm, 1.0mm, etc. according to slice thickness, the second-level subfolder is divided into three folders of axial plane, coronal plane, and sagittal plane according to slice type, and the third-level subfolder is divided into three folders of arterial phase, venous phase, and equilibrium phase according to the class type.
Specifically, in step S204 in the embodiment of the present invention:
after the nested folders are generated, the plurality of sets of DICOM image files can be respectively imported into the nested folders according to the root directory paths of the nested folders.
For example, as shown in fig. 1, after the folders are generated, the groups of DICOM image files obtained by classification may be sequentially imported into the corresponding folders according to the patient identification root directory, the slice thickness root directory, the section type root directory and the staging type root directory. The images in each tertiary subfolder are sorted in the axial direction and renamed sequentially, that is, the images are read into the memory in the CT scanning direction (i.e. in the axial direction mentioned above, in general, during CT scanning, the patient lies down and moves slowly inwards, that is, a plurality of slices are made along the Z-axis direction in the lying direction of the patient, each slice is a CT image, the axial direction is perpendicular to each CT image, and the data of each CT image along the axial direction is changed and is called as an axial plane or a cross section.
Of course, in the embodiment of the present invention, folders at different levels may also be created in advance, and then after the group of DICOM image files is classified to obtain multiple groups of DICOM image files arranged in sequence in the axial direction in the same patient, the same thickness, the same section, the same period, and the like, each classification result is directly written into the corresponding folder at each level.
The DICOM image importing method provided by the embodiment of the invention can classify the group of DICOM image files according to the patient identification, the image position information, the acquisition time and the serial number to obtain a plurality of groups of DICOM image files which are arranged in sequence in the axial direction, have the same thickness, the same section and the same period of the same patient, namely obtain the DICOM image files required by the three-dimensional reconstruction of the medical image, and can generate corresponding nested folders according to the patient types, slice thicknesses, section types and staging types of the multiple DICOM image files, meanwhile, the plurality of DICOM image files can be respectively imported into the nested folders according to the root directory path of the nested folders, wherein the medical image three-dimensional reconstruction folder comprises a patient identification root directory, a slice thickness root directory, a section type root directory and a staging type root directory. Therefore, based on the DICOM image importing method provided by the embodiment of the invention, when the medical image is reconstructed in three dimensions, the required image data can be quickly found by directly searching the nested folder.
Example II,
As shown in fig. 5, the importing apparatus 50 of a DICOM image according to an embodiment of the present invention includes an obtaining unit 501, a classifying unit 502, a generating unit 503, and an importing unit 504.
The obtaining unit 501 is configured to obtain a set of DICOM image files, where each DICOM image file in the set of DICOM image files includes a patient identifier, image position information, acquisition time, and a serial number corresponding to the DICOM image file.
The classifying unit 502 is configured to classify the group of DICOM image files according to the patient identifier, the image position information, the acquisition time, and the serial number, so as to obtain a plurality of groups of DICOM image files which are sequentially arranged in the axial direction and have the same patient, the same thickness, the same section, and the same period.
The generating unit 503 is configured to generate a nested folder according to the patient type, the slice thickness, the slice type, and the staging type of the multiple sets of DICOM image files, where the nested folder includes a patient identification root directory, a slice thickness root directory, a slice type root directory, and a staging type root directory.
The importing unit 504 is configured to import the multiple sets of DICOM image files into the nested folders respectively according to root directory paths of the nested folders.
Specifically, the classification unit 502 is specifically configured to:
and classifying the group of DICOM image files according to the patient identification to obtain m first sets, wherein m is a positive integer.
For each first set in the m first sets, classifying DICOM image files in each first set according to the serial numbers to respectively obtain lsA second set, lsAnd the number of DICOM image file sets obtained after the DICOM image files in the s-th set in the m first sets are classified is shown, and s is more than or equal to 1 and less than or equal to m.
For the lsAnd each second set in the second sets determines the section type and the slice thickness corresponding to the DICOM image file in each second set according to the image position information, wherein the section type comprises an axial plane, a coronal plane or a sagittal plane.
According to the slice thickness and the section type, the section I is alignedsAnd classifying the second sets in a hierarchical mode to obtain f third sets, wherein f is a positive integer.
For each of the f third sets, determining a staging type corresponding to each of the second sets in each of the third sets according to the acquisition time, wherein the staging type includes an arterial phase, a venous phase or a balanced phase.
Further, the classification unit 502 is specifically configured to:
according to the slice thickness, dividing the lsAnd classifying the second sets to obtain p fourth sets, wherein p is a positive integer.
For each of the p fourth sets, according to the slice type,classifying the second set in each fourth set to obtain pqA third set, pqRepresents the number of DICOM image file sets obtained after classifying the second set in the qth fourth set in the p fourth sets, wherein q is more than or equal to 1 and less than or equal to p,
Figure BDA0000766283290000131
further, the classification unit 502 is specifically configured to:
and determining the staging type corresponding to the second set, in which the acquisition time corresponding to the DICOM image file in the second set in each third set is within the first time period, as the artery stage.
And determining the staging type corresponding to the second set, in which the acquisition time corresponding to the DICOM image file in the second set in each third set is within the second time period, as a venous phase.
And determining the staging type corresponding to the second set, in which the acquisition time corresponding to the DICOM image files in the second set in each third set is within the third time period, as an equilibrium period.
Wherein the first time period is earlier than the second time period, which is earlier than the third time period.
Further, the image position information includes image position coordinates.
The classification unit 502 is specifically configured to:
and decomposing the image position coordinates of the DICOM image files in each second set into X-axis, Y-axis and Z-axis data.
And determining the axial direction of the DICOM image files in each second set according to the X-axis data, the Y-axis data and the Z-axis data.
And if the axial direction is the Z-axis direction, determining that the section type corresponding to the DICOM image file in each second set is an axial plane.
And if the axial direction is the Y-axis direction, determining that the type of the section corresponding to the DICOM image file in each second set is a coronal plane.
And if the axial direction is the X-axis direction, determining that the section type corresponding to the DICOM image file in each second set is a sagittal plane.
Optionally, the image position information includes an image orientation.
The classification unit 502 is specifically configured to:
and if the cosine values of the line vectors and the column vectors in the image orientation to the Z axis are both 0, determining that the section type corresponding to the DICOM image file in each second set is an axial plane.
And if the cosine values of the row vectors and the column vectors in the image orientation to the Y axis are both 0, determining that the section type corresponding to the DICOM image file in each second set is a coronal plane.
And if the cosine values of the row vector and the column vector in the image orientation to the X axis are both 0, determining that the section type corresponding to the DICOM image file in each second set is a sagittal plane.
Further, the image position information includes image position coordinates.
The classification unit 502 is specifically configured to:
and sequencing the DICOM image files in each second set according to the CT scanning sequence of the computer tomography to obtain a sequenced second set.
And determining the distance between the image positions of two adjacent DICOM images in the sorted second set as the slice thickness corresponding to the DICOM image file in each second set according to the image position coordinates.
Further, the classification unit 502 is specifically configured to:
and decomposing the image position coordinates of each DICOM image file in each second set into X-axis, Y-axis and Z-axis data.
And determining the axial direction of the DICOM image files in each second set according to the X-axis data, the Y-axis data and the Z-axis data.
And sorting the DICOM image files in each second set according to the order of CT scanning according to the size of axis data of each DICOM image file in each second set in the axial direction.
Optionally, the classification unit 502 is specifically configured to:
and sorting the DICOM image files in each second set according to the acquisition time according to the CT scanning order.
Optionally, each DICOM image file in the group of DICOM image files further includes an instance number, and the instance number is used for characterizing a scanning order of each DICOM image file.
The classification unit 502 is specifically configured to:
and sorting the DICOM image files in each second set according to the instance number in the CT scanning order.
Further, the classification unit 502 is specifically configured to:
and if the X-axis data and the Y-axis data of at least two DICOM image files in each second set are the same and the Z-axis data are different, determining that the axial direction of the DICOM image files in each second set is the Z-axis direction.
And if the X-axis data and the Z-axis data of at least two DICOM image files in each second set are the same and the Y-axis data are different, determining that the axial direction of the DICOM image files in each second set is the Y-axis direction.
And if the Y-axis data and the Z-axis data of at least two DICOM image files in each second set are the same and the X-axis data are different, determining that the axial direction of the DICOM image files in each second set is the X-axis direction.
Specifically, the method for importing the DICOM image through the importing device 50 of the DICOM image provided by the embodiment of the present invention may refer to the description of the first embodiment, and the embodiment of the present invention is not described herein again.
The DICOM image importing device provided by the embodiment of the invention can classify the group of DICOM image files according to the patient identification, the image position information, the acquisition time and the serial number to obtain a plurality of groups of DICOM image files which are arranged in the same patient, the same thickness, the same section, the same period and in the axial direction, namely obtain the DICOM image files required by the three-dimensional reconstruction of the medical image, and can generate corresponding nested folders according to the patient types, slice thicknesses, section types and staging types of the multiple DICOM image files, meanwhile, the plurality of DICOM image files can be respectively imported into the nested folders according to the root directory path of the nested folders, wherein the medical image three-dimensional reconstruction folder comprises a patient identification root directory, a slice thickness root directory, a section type root directory and a staging type root directory. Therefore, based on the DICOM image importing device provided by the embodiment of the invention, when the medical image is reconstructed in a three-dimensional manner, the required image data can be quickly found by directly searching the nested folder.
It will be clear to those skilled in the art that, for convenience and simplicity of description, the above-described apparatus is only illustrated by the division of the above functional modules, and in practical applications, the above-described function distribution may be performed by different functional modules according to needs, that is, the internal structure of the apparatus is divided into different functional modules to perform all or part of the above-described functions. For the specific working processes of the system, the apparatus, and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: u disk, removable hard disk, ROM, RAM), magnetic disk or optical disk, etc.
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 all 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 (9)

1. A method for importing medical digital imaging and communication DICOM images, the method comprising:
acquiring a group of DICOM image files, wherein each DICOM image file in the group of DICOM image files contains a patient identifier, image position information, acquisition time and serial numbers corresponding to the DICOM image file;
classifying the DICOM image files according to the patient identification, the image position information, the acquisition time and the serial number to obtain a plurality of DICOM image files which are sequentially arranged in the axial direction and have the same patient, the same thickness, the same section and the same period;
generating a nested folder according to the patient types, the slice thicknesses, the section types and the staging types of the plurality of groups of DICOM image files, wherein the nested folder comprises a patient identification root directory, a slice thickness root directory, a section type root directory and a staging type root directory;
respectively importing the plurality of groups of DICOM image files into the nested folders according to the root directory path of the nested folders;
the classifying the group of DICOM image files according to the patient identification, the image position information, the acquisition time and the serial number to obtain a plurality of groups of DICOM image files which are sequentially arranged in the axial direction and have the same patient, the same thickness, the same section and the same period comprises the following steps:
classifying the group of DICOM image files according to the patient identification to obtain m first sets, wherein m is a positive integer;
for each first set in the m first sets, classifying DICOM image files in each first set according to the serial numbers to respectively obtain lsA second set, lsRepresenting the number of DICOM image file sets obtained after the DICOM image files in the s-th set in the m first sets are classified, wherein s is more than or equal to 1 and less than or equal to m;
for the lsEach second set in the second sets determines a section type and a slice thickness corresponding to the DICOM image file in each second set according to the image position information, wherein the section type comprises an axial plane, a coronal plane or a sagittal plane;
according to the slice thickness and the section type, the section I is alignedsThe second sets are classified in a hierarchical mode to obtain f third sets, wherein f is a positive integer;
for each third set in the f third sets, determining a staging type corresponding to each second set in each third set according to the acquisition time, wherein the staging type comprises an arterial phase, a venous phase or a balance phase;
the image position information includes image position coordinates;
determining the slice thickness corresponding to the DICOM image file in each second set according to the image position information, wherein the determining comprises:
sorting the DICOM image files in each second set according to the CT scanning sequence of the computer tomography to obtain sorted second sets;
and determining the distance between the image positions of two adjacent DICOM images in the sorted second set as the slice thickness corresponding to the DICOM image file in each second set according to the image position coordinates.
2. The method of claim 1, wherein said pair of said/, is based on said slice thickness and said slice typesThe second sets are classified hierarchically to obtain f third sets, and the method comprises the following steps:
according to the slice thickness, dividing the lsClassifying the second sets to obtain p fourth sets, wherein p is a positive integer;
for each fourth set in the p fourth sets, classifying the second set in each fourth set according to the section type to obtain pqA third set, pqRepresents the number of DICOM image file sets obtained after classifying the second set in the qth fourth set in the p fourth sets, wherein q is more than or equal to 1 and less than or equal to p,
Figure FDA0002164793250000021
3. the method according to claim 1 or 2, wherein the determining, according to the acquisition time, the staging type corresponding to each second set in each third set comprises:
determining the staging type corresponding to the second set, in which the acquisition time corresponding to the DICOM image files in the second set in each third set is within the first time period, as an artery period;
determining the staging type corresponding to the second set, in which the acquisition time corresponding to the DICOM image files in the second set in each third set is within a second time period, as a venous phase;
determining the staging type corresponding to the second set, in which the acquisition time corresponding to the DICOM image files in the second set in each third set is within a third time period, as a balance period;
wherein the first time period is earlier than the second time period, which is earlier than the third time period.
4. The method of claim 1, wherein the image position information comprises image position coordinates;
determining a section type corresponding to the DICOM image file in each second set according to the image position information, wherein the determining comprises:
decomposing the image position coordinates of the DICOM image files in each second set into X-axis, Y-axis and Z-axis data;
determining the axial direction of the DICOM image files in each second set according to the X-axis data, the Y-axis data and the Z-axis data;
if the axial direction is the Z-axis direction, determining that the section type corresponding to the DICOM image file in each second set is an axial plane;
if the axial direction is the Y-axis direction, determining that the type of a tangent plane corresponding to the DICOM image file in each second set is a coronal plane;
and if the axial direction is the X-axis direction, determining that the section type corresponding to the DICOM image file in each second set is a sagittal plane.
5. The method of claim 1 or 2, wherein the image position information comprises an image orientation;
determining a section type corresponding to the DICOM image file in each second set according to the image position information, wherein the determining comprises:
if the cosine values of the line vectors and the column vectors in the image orientation to the Z axis are both 0, determining the section type corresponding to the DICOM image file in each second set as an axial plane;
if the cosine values of the row vectors and the column vectors in the image orientation to the Y axis are both 0, determining that the section type corresponding to the DICOM image file in each second set is a coronal plane;
and if the cosine values of the row vector and the column vector in the image orientation to the X axis are both 0, determining that the section type corresponding to the DICOM image file in each second set is a sagittal plane.
6. The method of claim 1, wherein sorting the DICOM image files in each second set in the order of CT scan comprises:
decomposing the image position coordinates of each DICOM image file in each second set into X-axis, Y-axis and Z-axis data;
determining the axial direction of the DICOM image files in each second set according to the X-axis data, the Y-axis data and the Z-axis data;
and sorting the DICOM image files in each second set according to the order of CT scanning according to the size of axis data of each DICOM image file in each second set in the axial direction.
7. The method of claim 1, wherein sorting the DICOM image files in each second set in the order of CT scan comprises:
and sorting the DICOM image files in each second set according to the acquisition time according to the CT scanning order.
8. The method of claim 1, wherein each DICOM image file in the set of DICOM image files further contains an instance number, wherein the instance number is used for characterizing a scanning order of each DICOM image file;
the sorting the DICOM image files in each second set according to the CT scanning order includes:
and sorting the DICOM image files in each second set according to the instance number in the CT scanning order.
9. The method of claim 4 or 6, wherein determining the axial direction of the DICOM image files in each second set according to the X-axis, Y-axis and Z-axis data comprises:
if the X-axis data and the Y-axis data of at least two DICOM image files in each second set are the same and the Z-axis data are different, determining that the axial direction of the DICOM image files in each second set is the Z-axis direction;
if the X-axis data and the Z-axis data of at least two DICOM image files in each second set are the same and the Y-axis data are different, determining that the axial direction of the DICOM image files in each second set is the Y-axis direction;
and if the Y-axis data and the Z-axis data of at least two DICOM image files in each second set are the same and the X-axis data are different, determining that the axial direction of the DICOM image files in each second set is the X-axis direction.
CN201510438917.4A 2015-07-23 2015-07-23 DICOM image importing method Active CN105045886B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510438917.4A CN105045886B (en) 2015-07-23 2015-07-23 DICOM image importing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510438917.4A CN105045886B (en) 2015-07-23 2015-07-23 DICOM image importing method

Publications (2)

Publication Number Publication Date
CN105045886A CN105045886A (en) 2015-11-11
CN105045886B true CN105045886B (en) 2020-03-13

Family

ID=54452433

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510438917.4A Active CN105045886B (en) 2015-07-23 2015-07-23 DICOM image importing method

Country Status (1)

Country Link
CN (1) CN105045886B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2018131474A (en) * 2016-02-02 2020-03-03 Конинклейке Филипс Н.В. COGNITIVE RECONSTRUCTION OF PATIENT CARE EVENTS
CN106326416B (en) * 2016-08-24 2020-03-17 青岛海信医疗设备股份有限公司 DICOM image display method and device
CN106652017B (en) * 2016-09-18 2020-05-26 青岛海信医疗设备股份有限公司 Method and device for judging DICOM image file integrity in three-dimensional reconstruction
CN106897395B (en) * 2017-02-07 2020-01-31 青岛海信医疗设备股份有限公司 method and device for inquiring data information of DICOM image
US10275130B2 (en) * 2017-05-12 2019-04-30 General Electric Company Facilitating transitioning between viewing native 2D and reconstructed 3D medical images
CN107885835B (en) * 2017-11-09 2020-08-28 东软集团股份有限公司 Similar layer image searching method and device of tomography image
CN108847277A (en) * 2018-03-20 2018-11-20 青岛海信医疗设备股份有限公司 The processing method and server of medical image based on the network architecture
CN108806773B (en) * 2018-05-21 2021-07-27 上海熙业信息科技有限公司 Method for designing medical image cloud storage platform
CN108829815B (en) * 2018-06-12 2022-06-07 四川希氏异构医疗科技有限公司 Medical image screening method
CN110782973B (en) * 2019-10-29 2022-11-11 京东方科技集团股份有限公司 Medical image information grading storage method and device, computer equipment and medium
CN111814859B (en) * 2020-06-30 2021-09-14 南京航空航天大学 Three-dimensional space class correction method for XCT slice classification

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102096691A (en) * 2009-12-15 2011-06-15 Tdk株式会社 Multi-media server
CN103281954A (en) * 2011-12-27 2013-09-04 株式会社东芝 Medical image display device and medical image archiving system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120084350A1 (en) * 2010-10-05 2012-04-05 Liang Xie Adaptive distributed medical image viewing and manipulating systems
CN103425653A (en) * 2012-05-16 2013-12-04 深圳市蓝韵网络有限公司 Method and system for realizing DICOM (digital imaging and communication in medicine) image quadratic search
KR101536115B1 (en) * 2013-08-26 2015-07-14 재단법인대구경북과학기술원 Method for operating surgical navigational system and surgical navigational system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102096691A (en) * 2009-12-15 2011-06-15 Tdk株式会社 Multi-media server
CN103281954A (en) * 2011-12-27 2013-09-04 株式会社东芝 Medical image display device and medical image archiving system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
医学影像读取与处理教学平台软件开发;丁辉 等;《实验技术与管理》;20110331;第28卷(第3期);3-4 *

Also Published As

Publication number Publication date
CN105045886A (en) 2015-11-11

Similar Documents

Publication Publication Date Title
CN105045886B (en) DICOM image importing method
US10671255B2 (en) Facilitating transitioning between viewing native 2D and reconstructed 3D medical images
US20200334810A1 (en) Methods and systems for dynamically training and applying neural network analyses to medical images
Fonseca et al. The Cardiac Atlas Project—an imaging database for computational modeling and statistical atlases of the heart
Andriole et al. Optimizing analysis, visualization, and navigation of large image data sets: one 5000-section CT scan can ruin your whole day
Cao et al. Facetatlas: Multifaceted visualization for rich text corpora
US11194853B2 (en) Rapid cross-validated ground truth annotation of large image datasets for image analytics
US20140006926A1 (en) Systems and methods for natural language processing to provide smart links in radiology reports
JP2013527503A (en) Advanced multimedia structured report
CN1916924A (en) Method for increasing the flexibility of dicom tags management in application-specific integration
CN106326416B (en) DICOM image display method and device
US20210174938A1 (en) Three-dimensional medical image generation
Wang et al. Similarity-based visualization of large image collections
CN109949884A (en) The with no paper generation method of case of hospital information and device
CN106652017B (en) Method and device for judging DICOM image file integrity in three-dimensional reconstruction
US9728001B2 (en) Processing and rendering of large image files
Borgbjerg Web‐based imaging viewer for real‐color volumetric reconstruction of human visible project and DICOM datasets
de Ridder et al. A web-based medical multimedia visualisation interface for personal health records
CN110970102B (en) Patient object mapping techniques
Spanier et al. Medical case-based retrieval of patient records using the RadLex hierarchical lexicon
Wang et al. MULTI-NETVIS: visual analytics for multivariate network
Vista IV et al. Carotid Artery Plaque Identification and Display System (MRI-CAPIDS) Using Opensource Tools
US20240087740A1 (en) Augmenting files such as dicom objects containing medical imaging information with additional medical information about the subject of the medical imaging information
NL2009476C2 (en) Method and apparatus for authoring and accessing a relational data base comprising a volumetric data set of a part of a body.
Wu et al. The design and integration of retinal CAD-SR to diabetes patient ePR system

Legal Events

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