Image data processing method and device and computer equipment
By labeling and processing the target image data in the image DICOM file, the data DICOM file is generated, and the problem of loss in data transmission between different medical devices is solved, improving data integrity and the accuracy and privacy of patient information.
Patent Information
- Application Number
- CN202310987371.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-07
- Publication Date
- 2025-02-14
AI Technical Summary
When data transmission is performed between different medical devices, the revised patient information data in the image DICOM file is easily lost, resulting in a decrease in data integrity.
By obtaining the image data of the target object in the image DICOM file, marking the target image data, generating labeled image data, and processing labeled image data based on the DICOM protocol to generate data DICOM files to ensure the completeness of the data when transmitted between different devices sex.
This method effectively solves the problem of loss during data transmission, improves data integrity, and ensures the accuracy and privacy of patient information without modifying the original image DICOM file.
Smart Images

Figure CN119446433A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of medical data processing, and in particular to an image data processing method, device and computer equipment. Background Art
[0002] With the continuous development of the field of medical data processing technology, data communication between medical devices is becoming more and more standardized. The Digital Imaging and Communications in Medicine (DICOM) protocol is a universal standard for the exchange of medical imaging data and the management of medical data. It is mainly used for communication between information systems and devices. For example: the surgical robot system can obtain the patient's image DICOM file from the imaging device based on the DICOM protocol, and locally manage the image data in the image DICOM file. In related technologies, the patient information data in the image DICOM file may be filled in incorrectly or anonymized, resulting in inaccurate or unclear patient information data stored in the image DICOM file.
[0003] Therefore, when data is transmitted or shared between different medical devices, such as between a medical imaging device and a surgical robot system, correct data or corrected data needs to be transmitted or shared. However, in the process of transmitting data between different medical devices, there is a problem of corrected data being lost. Summary of the invention
[0004] Based on this, it is necessary to provide an image data processing method, device, computer equipment, computer-readable storage medium and computer program product that can mark the data in the image DICOM file and transmit the marked data between different medical devices to solve the problem of loss of corrected data in the traditional transmission process, thereby improving the data integrity during the transmission process.
[0005] In a first aspect, the present application provides an image data processing method. The method comprises:
[0006] Obtain image data of a target object in an image DICOM file; an image DICOM file is a DICOM file obtained from an imaging device;
[0007] Marking target image data in the image data to generate marked image data corresponding to the target object;
[0008] The marked image data corresponding to the target object is processed based on the DICOM protocol to generate a data DICOM file of the target object.
[0009] In one embodiment, the marked image data corresponding to the target object is processed based on the DICOM protocol to generate a data DICOM file of the target object, including:
[0010] Establishing a mapping relationship between the marked image data corresponding to the target object and the preset private tag; the preset private tag is a tag different from the preset public tag in the DICOM protocol;
[0011] The mapping relationship is processed based on the DICOM protocol to generate the data DICOM file of the target object.
[0012] In one embodiment, if the target object includes multiple tagged image data, establishing a mapping relationship between the tagged image data corresponding to the target object and the preset private tag includes:
[0013] Merging a plurality of labeled image data corresponding to the target object to generate merged labeled data corresponding to the target object;
[0014] A mapping relationship between the merged markup data corresponding to the target object and the preset private label is established.
[0015] In one embodiment, the method further comprises:
[0016] Add hidden attribute information to the data DICOM file to generate a data DICOM file with hidden attributes.
[0017] In one embodiment, the method further comprises:
[0018] Establish the correspondence between the image DICOM file and the data DICOM file of the target object;
[0019] According to the corresponding relationship, the image DICOM file and the data DICOM file of the target object are simultaneously transmitted to the target device through the DICOM protocol.
[0020] In one embodiment, marking target image data in the image data to generate marked image data corresponding to the target object includes:
[0021] The image data is stored in a preset database table to obtain a data table corresponding to the target object;
[0022] The target image data in the data table corresponding to the target object is marked to generate marked image data corresponding to the target object.
[0023] In one embodiment, the method further comprises:
[0024] If the preset database table includes multiple data tables corresponding to the target object, the multiple data tables corresponding to the target object are merged to generate a first target data table corresponding to the target object;
[0025] Accordingly, the target image data in the data table corresponding to the target object is marked to generate marked image data corresponding to the target object, including:
[0026] The target image data in the first target data table corresponding to the target object is marked to generate marked image data corresponding to the target object.
[0027] In one embodiment, the method further comprises:
[0028] In response to the data modification instruction, modify the data table corresponding to the target object to generate a second target data table corresponding to the target object;
[0029] Accordingly, the target image data in the data table corresponding to the target object is marked to generate marked image data corresponding to the target object, including:
[0030] The target image data in the second target data table corresponding to the target object is marked to generate marked image data corresponding to the target object.
[0031] In a second aspect, the present application also provides an image data processing device. The device comprises:
[0032] The acquisition module is used to acquire the image data of the target object in the image DICOM file; the image DICOM file is a DICOM file acquired from the imaging device;
[0033] A marking module, used to mark target image data in the image data and generate marked image data corresponding to the target object;
[0034] The generating module is used to process the marked image data corresponding to the target object based on the DICOM protocol to generate a data DICOM file of the target object.
[0035] In a third aspect, the present application further provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method for influencing data processing in the first aspect when executing the computer program.
[0036] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method for influencing data processing in the first aspect are implemented.
[0037] In a fifth aspect, the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the steps of the method for influencing data processing in the first aspect.
[0038] The above-mentioned image data processing method, device, computer device, storage medium and computer program product, the computer device obtains the image data of the target object in the image DICOM file; wherein the image DICOM file is a DICOM file obtained from the image device; then, the computer device marks the target image data in the image data to generate the marked image data corresponding to the target object; and processes the marked image data corresponding to the target object based on the DICOM protocol to generate the data DICOM file of the target object. That is to say, in the embodiment of the present application, the computer device can extract the abnormal image data in the image DICOM file, and mark the extracted abnormal image data, so as to obtain accurate marked image data; finally, the marked image data is stored in the form of a DICOM file to obtain the data DICOM file of the target object; since the marked image data is stored in the form of a DICOM file in the present embodiment, when data is transmitted, not only the image DICOM file of the target object can be transmitted to another computer device, but also the data DICOM file of the target object can be transmitted to another computer device, thereby ensuring that the marked image data in the computer device can be successfully transmitted to another computer device, solving the problem of data loss in the transmission process, and improving the integrity of the data in the transmission process. In addition, since in the embodiment of the present application a new data DICOM file is generated for the marked image data, the original image DICOM file is not modified; therefore, the modification operation of the image data in the original image DICOM file is avoided, that is, the tampering of the original image DICOM file can be avoided, the privacy of the patient is protected, and the security and reliability of the patient information data are improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 A schematic diagram of the file structure of an image DICOM file in one embodiment;
[0040] Figure 2 A schematic diagram of the structure of a database table in one embodiment;
[0041] Figure 3 A diagram showing an application environment of an image data processing method in an embodiment;
[0042] Figure 4 is a schematic flow chart of an image data processing method in one embodiment;
[0043] Figure 5 is a flowchart of an image data processing method in another embodiment;
[0044] Figure 6 is a flowchart of an image data processing method in another embodiment;
[0045] Figure 7 is a flowchart of an image data processing method in another embodiment;
[0046] Figure 8 A schematic diagram of a complete process of an image data processing method in one embodiment;
[0047] Fig. 9 is a structural block diagram of an image data processing device in one embodiment;
[0048] Fig.10 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0050] DICOM is a medical digital imaging and communication standard that can be used for data communication between hospital information systems and imaging equipment. Image DICOM files contain patient information such as the patient's name, date of birth, age, and gender.
[0051] For example, for a surgical robot system, the patient's image data, including patient information data, used by the surgical robot system is obtained from the image DICOM file scanned by the hospital's imaging department; the surgical robot system usually manages the image data in the imported image DICOM file locally. A DICOM file browsing tool is installed in the surgical robot system, through which the patient's image DICOM file can be opened to obtain the patient's image data, and the patient information data stored in the image data can be viewed. These patient information data are usually distinguished by public tags (TagID); refer to Figure 1 As shown, for example, the TagID of the patient's name can be represented by (0010, 0010).
[0052] Usually, the patient information stored in the original image data obtained by the surgical robot system may be filled in incorrectly or garbled, which will cause trouble when managing the image data. However, if the patient information in the original image data is modified, it will infringe on the patient's privacy.
[0053] Traditionally, surgical robot systems usually save some image data through a database. When the patient's image data is imported into the surgical robot system, the surgical robot system will extract some data from the DICOM file and save it to the system database. Usually, a patient's data contains multiple studies, a study contains multiple series, and a series contains one or more DICOM images.
[0054] In DICOM files, unique UIDs are set for studies, series, and images, such as study instance UID, series instance UID, and image instance UID. Based on these unique UID values, image data can be stored in multiple data tables according to the hierarchy, and patient information is also stored in some of the data tables. Figure 2 As shown, it shows a robot database table structure.
[0055] In view of the problem that the patient information mentioned above may be filled in incorrectly or garbled, the surgical robot system can directly obtain the patient information data from the above database, and update the content in the corresponding database when marking the patient information, that is, the patient information in the database table corresponding to the image data can be modified to achieve the purpose. This can avoid modifying the image data in the original image DICOM file, but when the modified patient data is exported from one surgical robot system and then imported into another surgical robot system, only the original image DICOM file can be transferred, and the calibrated patient information data in the database cannot be transferred; therefore, when it is transmitted to another surgical robot system, the modified patient information data will be lost.
[0056] In addition, there is another data marking method, that is, when marking patient information, in addition to modifying the image data stored in the database table, the patient information data in the original image DICOM file of the patient is also updated. This ensures that after the patient information data is modified, the modified patient information data can be exported and transmitted to other systems and can be used in other systems; however, since the original image DICOM file is modified, it infringes on the privacy of the patient and there are regulatory issues, which is an uncompliant marking method.
[0057] In view of the technical problems existing in the above traditional methods, an image data processing method is proposed in the embodiment of the present application, which can be used to optimize the identification of the target object information of the medical image data in the surgical robot system. The method can mark the target object information without modifying the original image data of the target object. The marked target object information can also be exported from one robot system and then imported into another surgical robot system for use, and the marked target object information can be retained. At the same time, the marked target object information can also be easily restored to the original image data without infringing the privacy of the target object.
[0058] The image data processing method provided in the embodiment of the present application can be applied to Figure 3 In the application environment shown, the computer device 102 can communicate with the medical imaging scanning device 104 by wired or wireless means, and the computer device 102 can obtain the image DICOM file of the target object from the medical imaging scanning device 104, and mark the target object information in the image DICOM file.
[0059] Among them, the computer device 102 may include a medical terminal device, a surgical robot system, or a server, etc.; the medical imaging scanning device 104 may include a computer tomography (CT) device, a digital radiography (DR) device, a magnetic resonance imaging (MRI) device, etc.
[0060] In one embodiment, Figure 4 As shown, a method for processing image data is provided, and the method is applied to Figure 1 The computer device in the example is used to illustrate, including the following steps:
[0061] Step 402: Obtain image data of the target object in the image DICOM file.
[0062] The image DICOM file is a DICOM file obtained from an imaging device, and the imaging device may be a medical imaging scanning device, which can perform a medical imaging scan on a part to be measured of a target object to obtain an image DICOM file of the target object.
[0063] Exemplarily, the computer device may receive an image DICOM file of a target object sent by an imaging device, and may also receive an image DICOM file of a target object sent by a server; wherein the server may store image DICOM files of different target objects.
[0064] After acquiring the image DICOM file of the target object, the computer device can extract the image data of the target object from the image DICOM file; optionally, the image data of the target object can include target object information (such as identity information of the target object), and can also include at least one of the inspection information, sequence information and image information of the target object. The target object information includes but is not limited to the identity information of the target object such as name, gender, age, date of birth, etc.
[0065] Exemplarily, the computer device may obtain the image data of the target object from the image DICOM file of the target object according to the label of each image data; the label of the image data may be the above-mentioned public label.
[0066] Step 404 , marking the target image data in the image data to generate marked image data corresponding to the target object.
[0067] The target image data may include all the data in the image data, target object information in the image data, and abnormal image data, etc. The abnormal image data may include data with errors, garbled characters, or unclear data, etc.
[0068] Exemplarily, the computer device can determine the target image data from the image data according to preset marking rules, and then mark the target image data to generate marked image data of the target object; optionally, marking the target image data can include marking operations such as creating, merging, and modifying. The marked image data is data that can be recognized and used by the computer device, and can also be data that can be known by a doctor or target object using the computer device.
[0069] Exemplarily, for all image DICOM files stored in a computer device, including multiple DICOM files of the same target object and multiple DICOM files of different target objects, the computer device can mark the image data in each image DICOM file, thereby achieving efficient management of the image data in each image DICOM file; the computer device can also only mark image DICOM files with abnormal data, thereby achieving efficient management of the image data in image DICOM files with abnormal data.
[0070] For image DICOM files without abnormal data, the computer device can directly obtain accurate image data from the image DICOM file for subsequent related processing; and for image DICOM files with abnormal data, the computer device can mark the image data in the image DICOM file to obtain marked image data, so that the computer device can perform subsequent related processing based on the marked image data. In this way, the computer device can obtain accurate image data and improve the efficiency of subsequent work.
[0071] Step 406: Process the marked image data corresponding to the target object based on the DICOM protocol to generate a data DICOM file of the target object.
[0072] DICOM files are the medium for transmitting medical imaging data. They can not only store imaging data, but also store some customized data of target objects. When DICOM files store imaging data, they can store each imaging data based on preset public tags; when DICOM files are used to store customized data of target objects, they can store customized data of target objects based on preset private tags.
[0073] Based on this, after the computer device marks the image data of the target object and obtains the marked image data, it can process the marked image data of the target object based on the preset private tag and DICOM protocol, thereby generating a data DICOM file of the target object. The data DICOM file is different from the image DICOM file of the target object, and has the same properties as the image DICOM file, and can be transmitted between different computer devices.
[0074] In the above-mentioned image data processing method, the computer device obtains the image data of the target object in the image DICOM file; wherein the image DICOM file is a DICOM file obtained from the image device; then, the computer device marks the target image data in the image data to generate the marked image data corresponding to the target object; and processes the marked image data corresponding to the target object based on the DICOM protocol to generate the data DICOM file of the target object. That is to say, in the embodiment of the present application, the computer device can extract the abnormal image data in the image DICOM file, and mark the extracted abnormal image data, so as to obtain accurate marked image data; finally, the marked image data is stored in the form of a DICOM file to obtain the data DICOM file of the target object; since the marked image data is stored in the form of a DICOM file in the present embodiment, when data is transmitted, not only the image DICOM file of the target object can be transmitted to another computer device, but also the data DICOM file of the target object can be transmitted to another computer device, thereby ensuring that the marked image data in the computer device can be successfully transmitted to another computer device, solving the problem of data loss in the transmission process, and improving the integrity of the data in the transmission process. In addition, since in the embodiment of the present application a new data DICOM file is generated for the marked image data, the original image DICOM file is not modified; therefore, the modification operation of the image data in the original image DICOM file is avoided, that is, the tampering of the original image DICOM file can be avoided, the privacy of the target object is protected, and the security and reliability of the target object data are improved.
[0075] Figure 5 FIG. 1 is a flow chart of an image data processing method in another embodiment. This embodiment relates to an optional implementation process in which a computer device processes the labeled image data corresponding to a target object based on the DICOM protocol to generate a data DICOM file of the target object. Based on the above embodiment, Figure 5 As shown, the above step 406 includes:
[0076] Step 502: Establish a mapping relationship between the marked image data corresponding to the target object and the preset private tag.
[0077] The preset private tag is a tag that is different from the preset public tag in the DICOM protocol. The preset private tag can be a tag customized by the target object.
[0078] Exemplarily, for the tagged image data corresponding to the target object, corresponding preset private tags can be set for different types of tagged image data according to the type of the tagged image data; then, a mapping relationship between each tagged image data and its corresponding preset private tag is established. That is, there can be a one-to-one association relationship between the preset private tag and the tagged image data. Of course, when one type of tagged image data includes multiple tagged image data, one preset private tag can also be associated with multiple tagged image data of the same type.
[0079] Exemplarily, the target object includes multiple tagged image data, which can be different types of data or the same type of data; for the multiple tagged image data, the computer device can merge the multiple tagged image data corresponding to the target object to generate merged tagged data corresponding to the target object; then, establish a mapping relationship between the merged tagged data corresponding to the target object and the preset private tag. That is to say, in this example, the tagged image data of a target object can be associated through a preset private tag, that is, all the tagged image data of the target object can be bound to a preset private tag at the same time; that is, through the preset private tag, all the tagged image data of the target object can be obtained at the same time, which can not only reduce the use of preset private tags and improve the efficiency of data management; but also obtain all the tag information of the target object at one time, improving the efficiency of obtaining the tag data.
[0080] Step 504: Process the mapping relationship based on the DICOM protocol to generate a data DICOM file of the target object.
[0081] Exemplarily, after establishing a mapping relationship between the marked image data of the target object and the preset private tag, the mapping relationship can be processed based on the DICOM protocol to store the mapping relationship in the file content format of the DICOM file, thereby generating a data DICOM file of the target object.
[0082] In this embodiment, the computer device establishes a mapping relationship between the marked image data corresponding to the target object and a preset private tag; the preset private tag is a tag that is different from the preset public tag in the DICOM protocol; then, based on the DICOM protocol, the mapping relationship is processed to generate a data DICOM file of the target object. That is, in this embodiment, based on the file content format of the DICOM file, a private tag with the same attributes as the public tag and different from the public tag is set, and through the private tag, the marked image data of the target object is stored in the form of a DICOM file to obtain a data DICOM file; thereby, the data DICOM file containing the marked image data of the target object can be transmitted and shared between different computer devices based on the DICOM protocol, thereby improving the data integrity during the transmission process.
[0083] In one embodiment, the computer device can also add hidden attribute information to the data DICOM file to generate a data DICOM file with hidden attributes. The data DICOM file with hidden attributes is hidden in the computer device, that is, the data DICOM file is invisible to the target object; for the doctor or the target object using the computer device, the doctor or the target object cannot see the data DICOM file on the display interface of the computer device; thereby, the privacy of the target object stored in the data DICOM file can be guaranteed, and the privacy and security of the target object information can be improved.
[0084] Figure 6 FIG. 1 is a flow chart of an image data processing method in another embodiment. This embodiment relates to an optional implementation process of sharing image DICOM files and data DICOM files. Based on the above embodiment, Figure 6 As shown, the above method also includes:
[0085] Step 602: Establish a correspondence between the image DICOM file and the data DICOM file of the target object.
[0086] Step 604: According to the corresponding relationship, the image DICOM file and the target object data DICOM file are simultaneously transmitted to the target device through the DICOM protocol.
[0087] That is to say, for the image DICOM file and data DICOM file of the target object, the image DICOM file and the data DICOM file can be bound to establish a corresponding relationship between the two; thereby, when implementing related operations on the image DICOM file of the target object, related operations on the data DICOM file can be performed simultaneously.
[0088] Exemplarily, when the image DICOM file of the target object is transmitted to the target device, the data DICOM file of the target object can also be transmitted to the target device based on the corresponding relationship; that is, the image DICOM file and the data DICOM file of the target object are transmitted to the target device at the same time.
[0089] Exemplarily, based on the corresponding relationship, when deleting the image DICOM file of the target object, the data DICOM file of the target object may also be deleted at the same time.
[0090] In this embodiment, a correspondence is established between the image DICOM file and the data DICOM file of the target object; according to the correspondence, the image DICOM file and the data DICOM file of the target object are simultaneously transmitted to the target device through the DICOM protocol. Thus, the image DICOM file of the target object and the marked image data after marking the target object can be simultaneously transmitted to the target device; data sharing of the marked image data is achieved, so that the image DICOM file can also be efficiently managed on the target device based on the marked image data; the target device does not need to perform the marking process of the target object, which reduces the repeated marking operations of the target device and improves the working efficiency of the target device.
[0091] Figure 7 FIG. 2 is a flow chart of an image data processing method in another embodiment. This embodiment involves an optional implementation process of marking target image data in image data to generate marked image data corresponding to the target object. Based on the above embodiment, Figure 7 As shown, the above step 404 includes:
[0092] Step 702, storing the image data into a preset database table to obtain a data table corresponding to the target object.
[0093] The form of the preset database table can refer to the above Figure 2 The database table structure shown in the figure can include the target object information table, examination table, sequence table and image table in the preset database table, and chain storage is performed through the hierarchical relationship of target object information-examination-sequence-image. The preset database table can store the image data of one or more target objects; for example, when a computer device imports an image DICOM file, the computer device can store the image data of the target object corresponding to the image DICOM file in the preset database table, that is, create the image data of the target object in the preset database table.
[0094] Exemplarily, the image data of the target object may include information data, inspection data, sequence data and image data of the target object; of course, the image data may also include only the information data of the target object, or include the information data and inspection data of the target object, or include the information data, inspection data and sequence data of the target object.
[0095] When the computer device obtains the image data of the target object in the image DICOM file, it can store the image data of the target object in a preset database table, thereby obtaining a data table corresponding to the target object, that is, obtaining an image data link corresponding to the target object.
[0096] Step 704 , marking the target image data in the data table corresponding to the target object, and generating marked image data corresponding to the target object.
[0097] The target image data may include abnormal image data including error information, garbled characters, duplication, etc. Based on this, the computer device may mark the abnormal image data in the data table corresponding to the target object to generate marked image data corresponding to the target object.
[0098] Exemplarily, in the preset database table, multiple data tables corresponding to the target object may be included; for example: when multiple image DICOM files corresponding to the target object are imported into the computer device, the computer device creates a data table corresponding to the image data of the target object in each image DICOM file for each image DICOM file; then, in the preset database table, multiple data tables of the target object will be stored accordingly. However, since the target object information is usually the same, at this time, multiple data tables of the target object can be merged and marked. Exemplarily, the computer device can merge multiple data tables corresponding to the target object to generate a first target data table corresponding to the target object; then, the target image data in the first target data table corresponding to the target object is marked to generate the marked image data corresponding to the target object. That is, in this example, the computer device can merge multiple data tables corresponding to the target object and mark the merged first target data table to obtain the marked image data corresponding to the target object; then, the marked image data corresponding to the target object can be stored in the data DICOM file corresponding to the target object.
[0099] Exemplarily, the computer device can also modify the data table corresponding to the target object in response to the data modification instruction to generate a second target data table corresponding to the target object; based on this, the computer device can mark the target image data in the second target data table corresponding to the target object to generate marked image data corresponding to the target object. That is, in this example, the computer device can modify the abnormal data in the data table corresponding to the target object based on the doctor's modification operation; and mark the modified second target data table to obtain the marked image data corresponding to the target object; and then, the marked image data corresponding to the target object can be stored in the data DICOM file corresponding to the target object.
[0100] Exemplarily, when the computer device modifies the data table corresponding to the target object based on the data modification instruction input by the doctor, the computer device can output the data content of the data table corresponding to the target object and display it on the display interface of the computer device; at this time, the doctor can modify the abnormal data in a targeted manner. Optionally, the doctor can also input the target object information from the display interface of the computer device, and the computer device makes an abnormal judgment on the target object information stored in the data table corresponding to the target object based on the target object information input by the doctor; and modifies the target object information judged to be abnormal; thereby obtaining a second target data table corresponding to the target object; and then marking the second target data table to obtain marked image data corresponding to the target object.
[0101] In this embodiment, the computer device obtains a data table corresponding to the target object by storing the image data in a preset database table; then, the target image data in the data table corresponding to the target object is marked to generate marked image data corresponding to the target object. That is, in this embodiment, the computer device extracts the image data from the image DICOM file and stores it in a preset database table; then, the target image data in the preset database table is marked, rather than directly marking the image data in the image DICOM file, thereby avoiding direct operations on the image DICOM file; and the security of operations on the privacy data of the target object can be improved.
[0102] In one embodiment, a complete embodiment of an image data processing method is provided. Figure 8 As shown, the method may include:
[0103] Step 801, obtaining image data of a target object in an image DICOM file; the image data may include target object information.
[0104] Step 802 , marking the target image data in the image data to generate marked image data corresponding to the target object.
[0105] Exemplarily, the target image data may include target object information, that is, marking the target object information in the image data. Among them, marking the target object information in the original image data may include creating new target object information, merging target object information, and editing target object information according to the scene. The following describes these three marking scenes respectively.
[0106] The first one: create new target object information.
[0107] When a computer device obtains an image DICOM file from the outside, it can import the image data of the target object in the image DICOM file into the newly created target object; that is, a database table is pre-set in the database of the computer device, and the image data of the target object is added to the database table. The newly created target object information may include the following steps:
[0108] a. Create new target object data in the target object information table (such as PatientTable), save the image data of the target object in the image DICOM file into the database table, or save the target object information entered in the display interface of the computer device into the database table.
[0109] b. Create a new target object inspection (defined as target object study) data with the target object UID (such as PatientUID) as the foreign key.
[0110] c. Create a new target object sequence (defined as target object series) data using the target object study's UID (such as StudyInstanceUID) as the foreign key.
[0111] d. Add a new DICOM image data of the target object (defined as target object image) with the UID of the target object series (such as SeriesInstanceUID) as the foreign key.
[0112] e. After merging the target object information and the StudyInstanceUID containing the examination, a mapping relationship is established with a preset private tag and saved in the data DICOM file of the target object.
[0113] f. Hide newly added target object information, examination and its sequence data in the computer device.
[0114] The second method: merge target object information.
[0115] Medical images are usually scanned in units. For DICOM files scanned by imaging equipment, there may be errors or garbled information in the DICOM files. When imported into a computer device, the target object information input by the computer device may be judged as two target objects, resulting in two target object data tables in the database; but in fact, the two target objects are the same target object. In this case, the data tables of the two target objects need to be merged.
[0116] Exemplarily, the computer device merges target objects A and B. Assuming A is the target, A may correspond to the target object information input in the computer device. Merging the target object information may include the following steps:
[0117] a. If the target object A currently does not have the target object's Study, Series, Image and data DICOM files, then execute the above-mentioned operation flow of creating new target object information a~d; if the target object B has the target object's Study, Series, Image and data DICOM files, they need to be deleted.
[0118] b. Save the target object information of target object A into a preset private tag of the data DICOM file.
[0119] c. Save the StudyInstanceUID of all examinations included in target objects A and B to the preset private tag of the data DICOM file. That is, after merging the target object information of target object A and the StudyInstanceUID of all examinations of target objects A and target objects B, establish a mapping relationship with the preset private tag, and generate the data DICOM file corresponding to target object A based on the mapping relationship.
[0120] d. Delete the data of target object B in the target object information table (PatientTable).
[0121] The third method: Edit the target object information.
[0122] It can be applied to the scenario where the imported image data is originally incorrectly marked; including the situation where the imported image data contains abnormal data, or the situation where abnormal data still exists after the imported image data is initially marked. Editing the target object information may include the following steps:
[0123] a. Modify the target object information of target object A in the computer device. If the target object Study, Series, Image and data DICOM files do not currently exist for target object A, execute the above-mentioned operation flow of creating new target object information a to d.
[0124] b. Save the target object information of target object A into a preset private tag of the data DICOM file.
[0125] c. Save the StudyInstanceUID of all examinations contained in the target object A to the preset private tag of the data DICOM file. That is, after merging the modified target object information corresponding to the target object A and the StudyInstanceUID of all examinations of the target object A, establish a mapping relationship with the preset private tag, and generate the data DICOM file corresponding to the target object A based on the mapping relationship.
[0126] Step 803: If the target object includes multiple labeled image data, the multiple labeled image data corresponding to the target object are merged to generate merged labeled data corresponding to the target object.
[0127] Step 804: Establish a mapping relationship between the merged mark data corresponding to the target object and the preset private tag.
[0128] Step 805: Process the mapping relationship based on the DICOM protocol to generate a data DICOM file of the target object.
[0129] Step 806: Add hidden attribute information to the data DICOM file to generate a data DICOM file with hidden attributes.
[0130] Step 807: Establish a correspondence between the image DICOM file and the data DICOM file of the target object.
[0131] Step 808: According to the corresponding relationship, the image DICOM file and the data DICOM file of the target object are simultaneously transmitted to the target device through the DICOM protocol.
[0132] Exemplarily, for a target device, when importing an image DICOM file of a target object exported from a computer device, the target device may first search whether there is a data DICOM file corresponding to the image DICOM file of the target object; if so, the data DICOM file is parsed to obtain the target object information and the examination information contained in the data DICOM file.
[0133] Next, in the case where the image data in the image DICOM file is stored in the database in advance according to the image DICOM file of the target object, if there are two target objects whose data are the same target object data, the value of the foreign key PatientUIDFK of the two target objects in StudyTable is updated, and their target object UIDs are changed to the same one, that is, they are all modified to the target object UID parsed from the data DICOM file of the target object, assuming it is defined as MergePatientUID; and at the same time, the PatientUIDs contained in the relevant StudyTable (including the original UIDs of the two target objects) are recorded.
[0134] Then, update PatientTable and delete all target object information in PatientUIDs except for the target object whose PatientUID is MergePatientUID, that is, delete the original target object information of the two target objects; finally, update the target object information of the target object whose Patient UID is MergePatientUID, that is, obtain the correct target object information from the data DICOM file and store it in PatientTable.
[0135] Through the above processing, the target device can restore the target object information previously marked by the computer device, and then perform subsequent operations based on the restored target object information. If the target device wants to restore the target object data of the original image DICOM file, it can delete the data DICOM file corresponding to the image DICOM file to restore the target object data of the original image DICOM file.
[0136] That is, in this embodiment, when the target object information of the original image data is marked, an additional data DICOM file specifically used to store the target object information is added, and the data DICOM file is distinguished from the original image DICOM file and stored in the database as an independent examination and sequence. In addition, the data DICOM file can also be hidden in the computer device, and the doctor or the target object cannot see the data DICOM file on the display interface of the computer device.
[0137] In addition, when marking the target object information of the original image data, the final marked target object information and all the examination UID data contained in the target object are stored in the private label (i.e., private tag) of the data DICOM file. The data DICOM file of the target object is bound to the image DICOM file, so that when the image DICOM file of the target object is deleted, the data DICOM file will also be deleted. When the image DICOM file is exported, the data DICOM file will also be exported.
[0138] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0139] Based on the same inventive concept, the embodiment of the present application also provides an image data processing device for implementing the image data processing method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more image data processing device embodiments provided below can refer to the limitations of the image data processing method above, and will not be repeated here.
[0140] In one embodiment, Fig. 9 As shown, an image data processing device is provided, including: an acquisition module 902, a marking module 904 and a generation module 906, wherein:
[0141] The acquisition module 902 is used to acquire the image data of the target object in the image DICOM file; the image DICOM file is a DICOM file acquired from an imaging device.
[0142] The marking module 904 is used to mark the target image data in the image data to generate marked image data corresponding to the target object.
[0143] The generating module 906 is used to process the marked image data corresponding to the target object based on the DICOM protocol to generate a data DICOM file of the target object.
[0144] In one embodiment, the generating module 906 includes:
[0145] An establishing unit, used to establish a mapping relationship between the marked image data corresponding to the target object and a preset private tag; the preset private tag is a tag different from the preset public tag in the DICOM protocol;
[0146] The generating unit is used to process the mapping relationship based on the DICOM protocol and generate a data DICOM file of the target object.
[0147] In one embodiment, if the target object includes multiple labeled image data, the establishment unit includes:
[0148] A merging subunit, used for merging a plurality of labeled image data corresponding to the target object to generate merged labeled data corresponding to the target object;
[0149] A subunit is established to establish a mapping relationship between the merged markup data corresponding to the target object and the preset private tag.
[0150] In one embodiment, the device further comprises:
[0151] Add a module to add hidden attribute information to the data DICOM file to generate a data DICOM file with hidden attributes.
[0152] In one embodiment, the device further comprises:
[0153] An establishing module for establishing a corresponding relationship between an image DICOM file and a data DICOM file of a target object;
[0154] The transmission module is used to transmit the image DICOM file and the data DICOM file of the target object to the target device simultaneously through the DICOM protocol according to the corresponding relationship.
[0155] In one embodiment, the marking module 904 includes:
[0156] A storage unit, used to store the image data into a preset database table to obtain a data table corresponding to the target object;
[0157] The marking unit is used to mark the target image data in the data table corresponding to the target object, and generate marked image data corresponding to the target object.
[0158] In one embodiment, the device further comprises:
[0159] A merging module, configured to merge the multiple data tables corresponding to the target object to generate a first target data table corresponding to the target object when the preset database table includes multiple data tables corresponding to the target object;
[0160] Correspondingly, the marking unit is used to mark the target image data in the first target data table corresponding to the target object, and generate marked image data corresponding to the target object.
[0161] In one embodiment, the device further comprises:
[0162] A modification module, configured to modify the data table corresponding to the target object in response to the data modification instruction, and generate a second target data table corresponding to the target object;
[0163] Correspondingly, the marking unit is used to mark the target image data in the second target data table corresponding to the target object, and generate marked image data corresponding to the target object.
[0164] Each module in the above-mentioned image data processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.
[0165] In one embodiment, a computer device is provided, which may be a medical terminal device, a surgical robot system, or a server, etc.; its internal structure diagram may be as follows: Fig.10 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, an image data processing method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0166] Those skilled in the art will understand that Fig.10The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0167] In one embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps of the method for influencing data processing in any of the above embodiments when executing the computer program.
[0168] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for influencing data processing in any of the above embodiments are implemented.
[0169] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the steps of the method for influencing data processing in any of the above embodiments.
[0170] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0171] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0172] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0173] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for processing image data, characterized in that: The method comprises: Acquire image data of a target object in an image DICOM file; the image DICOM file is a DICOM file acquired from an imaging device; Marking target image data in the image data to generate marked image data corresponding to the target object; The marked image data corresponding to the target object is processed based on the DICOM protocol to generate a data DICOM file of the target object.
2. The method according to claim 1, characterized in that The step of processing the marked image data corresponding to the target object based on the DICOM protocol to generate a data DICOM file of the target object includes: Establishing a mapping relationship between the marked image data corresponding to the target object and a preset private tag; the preset private tag is a tag different from the preset public tag in the DICOM protocol; The mapping relationship is processed based on the DICOM protocol to generate a data DICOM file of the target object.
3. The method according to claim 2, characterized in that If the target object includes multiple tagged image data, the step of establishing a mapping relationship between the tagged image data corresponding to the target object and the preset private tag includes: Merging the plurality of marked image data corresponding to the target object to generate merged marked data corresponding to the target object; A mapping relationship between the merged mark data corresponding to the target object and the preset private label is established.
4. The method according to claim 1, characterized in that: The method further comprises: Hidden attribute information is added to the data DICOM file to generate a data DICOM file with hidden attributes.
5. The method according to claim 1, characterized in that: The method further comprises: Establishing a correspondence between the image DICOM file and the data DICOM file of the target object; According to the corresponding relationship, the image DICOM file and the data DICOM file of the target object are simultaneously transmitted to the target device through the DICOM protocol.
6. The method according to any one of claims 1 to 5, characterized in that The step of marking the target image data in the image data to generate marked image data corresponding to the target object includes: The image data is stored in a preset database table to obtain a data table corresponding to the target object; The target image data in the data table corresponding to the target object is marked to generate marked image data corresponding to the target object.
7. The method according to claim 6, characterized in that The method further comprises: If the preset database table includes multiple data tables corresponding to the target object, the multiple data tables corresponding to the target object are merged to generate a first target data table corresponding to the target object; Correspondingly, marking the target image data in the data table corresponding to the target object to generate the marked image data corresponding to the target object includes: The target image data in the first target data table corresponding to the target object is marked to generate marked image data corresponding to the target object.
8. The method according to claim 6, characterized in that The method further comprises: In response to the data modification instruction, modify the data table corresponding to the target object to generate a second target data table corresponding to the target object; Correspondingly, marking the target image data in the data table corresponding to the target object to generate the marked image data corresponding to the target object includes: The target image data in the second target data table corresponding to the target object is marked to generate marked image data corresponding to the target object.
9. An image data processing device, characterized in that: The device comprises: An acquisition module is used to acquire image data of a target object in an image DICOM file; the image DICOM file is a DICOM file acquired from an imaging device; A marking module, used for marking target image data in the image data to generate marked image data corresponding to the target object; The generating module is used to process the marked image data corresponding to the target object based on the DICOM protocol to generate a data DICOM file of the target object.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.