WO2021238680A1 - 一种dicomdir文件的生成方法及系统 - Google Patents
一种dicomdir文件的生成方法及系统 Download PDFInfo
- Publication number
- WO2021238680A1 WO2021238680A1 PCT/CN2021/093861 CN2021093861W WO2021238680A1 WO 2021238680 A1 WO2021238680 A1 WO 2021238680A1 CN 2021093861 W CN2021093861 W CN 2021093861W WO 2021238680 A1 WO2021238680 A1 WO 2021238680A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- dicom
- image
- dicomdir
- file
- text search
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 34
- 238000000605 extraction Methods 0.000 claims description 8
- 238000003860 storage Methods 0.000 claims description 8
- 238000004364 calculation method Methods 0.000 claims description 7
- 238000012545 processing Methods 0.000 claims description 7
- 230000010354 integration Effects 0.000 claims description 4
- 238000012986 modification Methods 0.000 claims description 4
- 230000004048 modification Effects 0.000 claims description 4
- 238000002604 ultrasonography Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 238000003745 diagnosis Methods 0.000 description 3
- 238000007726 management method Methods 0.000 description 3
- 238000009966 trimming Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000009826 distribution Methods 0.000 description 2
- 238000002583 angiography Methods 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 229940079593 drug Drugs 0.000 description 1
- 239000003814 drug Substances 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16H—HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- G16H30/00—ICT specially adapted for the handling or processing of medical images
- G16H30/20—ICT specially adapted for the handling or processing of medical images for handling medical images, e.g. DICOM, HL7 or PACS
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16H—HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- G16H30/00—ICT specially adapted for the handling or processing of medical images
- G16H30/40—ICT specially adapted for the handling or processing of medical images for processing medical images, e.g. editing
Definitions
- the invention belongs to the technical field of image processing, and specifically relates to a method and system for generating a DICOMDIR file.
- DICOM images usually saved on CD or DVD are managed by DICOMDIR files, and the DICOM images in CD or DVD can be browsed through the image browsing software that comes with the disk.
- Patent CN1567338A discloses a digital medical information burning method and system, which can realize the burning and saving of medical DICOM images or other medical information on CD or DVD media, without mentioning the generation and preservation of DICOMDIR.
- Patent WO 2015/008650 A1 discloses a DICOMDIR production and compression storage method, which realizes the storage and management method of DICOMDIR files on CD or DVD.
- the purpose of the present invention is to provide a method and system for generating DICOMDIR files, so as to realize the anonymization of patient information or examination information in image data.
- the present invention provides the following solutions:
- a method for generating a DICOMDIR file includes the following steps:
- the extraction of DICOM images or DICOM animations of all DICOM files in the folder where the DICOMDIR file needs to be generated includes:
- the horizontal projection of each text search area to determine the upper boundary and the lower boundary of the character line in each text search area specifically includes:
- the vertical projection of each of the text search areas to determine the left and right boundaries and the number of characters of each character in each of the text search areas specifically includes
- the text search area of the binary image is projected in the vertical direction, and the text search area is determined according to the average value of the vertical integral projection of the text character higher than the average vertical integral projection of the background, and the threshold range of the character width, height and spacing The left and right boundaries of each character and the number of characters.
- the generating a DICOMDIR file from all the cropped DICOM images in the specified file specifically includes:
- DICOMDIR creation function uses the DICOMDIR creation function to generate the number of DICOMDIR files from all the cropped DICOM images in the specified folder.
- a DICOMDIR file generation system includes:
- DICOM image or DICOM animation extraction module used to extract DICOM images or DICOM animations of all DICOM files in the folder where DICOMDIR files need to be generated
- the to-be-processed DICOM image acquisition module is used to acquire the DICOM image or the first DICOM image of the DICOM animation to obtain the to-be-processed DICOM image;
- the binarization processing module is used to perform binarization processing on the DICOM image to be processed to obtain a binary image
- the text search area determination module is used to define the upper left corner, the upper right corner, the lower left corner and the lower right corner of the binary image as 4 text search areas;
- the upper and lower boundary determination module is configured to perform horizontal projection on each of the text search areas to determine the upper and lower boundaries of the character line in each of the text search areas;
- the left and right boundary determination module is configured to perform vertical projection on each of the text search areas to determine the left and right boundaries of each character in each of the text search areas and the number of characters;
- the character search area determining module is used to determine the character search areas in the four text search areas according to the number of characters;
- the cropping area determination module is used to determine the coordinates of the cropping area according to the upper and lower boundaries of the character line of the text search area where the characters exist, and the left and right boundaries of each character;
- the cropping module is used to crop the DICOM image or each frame of the DICOM image of the DICOM animation according to the coordinates of the cropping area to obtain the cropped DICOM image, and save the cropped DICOM image to a designated file middle;
- the return module is used to return to the step of "obtain the first DICOM image of a DICOM image or DICOM animation, and get the DICOM image to be processed", and crop the next DICOM image or DICOM animation until the folder where the DICOMDIR file needs to be generated is cut. All DICOM images and DICOM animations;
- the DICOMDIR file generation module is used to generate DICOMDIR files from all the cropped DICOM images in the specified file.
- the generating system further includes:
- the DICOM TAG information extraction module is used to extract the DICOM TAG information of all DICOM files in the folder where the DICOMDIR file needs to be generated;
- the DICOM TAG information modification module is used to modify the DICOM TAG information according to the TAG information specified by the user to be anonymized in the setting file to obtain the modified DICOM TAG information;
- the modified DICOM TAG information storage module is used to write the modified DICOM TAG information into the DICOM file corresponding to the DICOM TAG information to obtain the DICOM file with the modified DICOM TAG information.
- the upper and lower boundary determining module specifically includes:
- the upper and lower boundary determination sub-module is used to project the text search area of the binary image in the horizontal direction, and determine the characters in the text search area according to the average value of the integral projection in the horizontal direction of the text character being higher than the average value of the background in the horizontal direction.
- the upper and lower boundaries of the row are used to project the text search area of the binary image in the horizontal direction, and determine the characters in the text search area according to the average value of the integral projection in the horizontal direction of the text character being higher than the average value of the background in the horizontal direction.
- the left and right boundary determination module specifically includes
- the left and right boundary determination sub-module is used to project the text search area of the binary image in the vertical direction, according to the vertical integration projection average value of the text characters higher than the background vertical integration projection average value, and the character width, height and spacing
- the threshold range determines the left and right boundaries of each character in the text search area and the number of characters.
- the DICOMDIR file generation module specifically includes:
- the size and size calculation sub-module is used to calculate the size and size of all the cropped DICOM images in the specified folder;
- the number calculation sub-module of DICOMDIR files to be generated is used to calculate the number of DICOMDIR files to be generated according to the sum of the size of all the cropped DICOM images in the specified folder;
- the DICOMDIR file generation sub-module is used to generate the number of DICOMDIR files from all the cropped DICOM images in the specified folder by using the DICOMDIR creation function.
- the present invention provides a method and system for generating a DICOMDIR file.
- the method of generating firstly obtains the DICOM image in the folder where the DICOMDIR file needs to be generated or the first DICOM image of the DICOM animation to obtain the DICOM image to be processed; Binarize the DICOM image to be processed to obtain a binary image; define the upper left corner, upper right corner, lower left corner, and lower right corner of the binary image as four text search areas; search for each text The area is horizontally projected to determine the upper boundary and the lower boundary of the character line in each text search area; each of the text search areas is projected vertically to determine the left boundary and the left boundary of each character in each text search area.
- the right margin and the number of characters; the four text search areas where characters exist in the text search area are determined according to the number of characters; the upper and lower borders of the character line in the text search area where characters exist and the left border of each character And the right boundary, determine the coordinates of the cropping area; then, crop the DICOM image or each frame of the DICOM animation according to the coordinates of the crop area to obtain the cropped DICOM image, and then crop the DICOM image. Save the DICOM image in the specified file; after all the DICOM images or DICOM animations in the folder where the DICOMDIR file needs to be generated are cropped, all the cropped DICOM images in the specified file will be generated into DICOMDIR files.
- the present invention first determines the text search area in the DICOM image, then uses horizontal projection and vertical projection to search for text characters, determines the coordinates of the cropped area, crops the DICOM image, and generates a DICOMDIR file from the cropped DICOM image , Realize the anonymization of patient information or examination information in the image data.
- the present invention not only removes the characters existing in the DICOM image data, but also modifies the DICOM TAG specified in the DICOM image file that needs to be anonymized, and realizes the anonymization process for generating the DICODIR file.
- Figure 1 is a flow chart of a method for generating DICOMDIR files provided by the present invention
- Figure 2 is a schematic diagram of a method for generating a DICOMDIR file provided by the present invention
- Fig. 3 is a schematic diagram of a cut rectangle provided by the present invention.
- the purpose of the present invention is to provide a method and system for generating DICOMDIR files, so as to realize the anonymization of patient information or examination information in image data.
- the present invention provides a method for generating a DICOMDIR file.
- the method includes the following steps:
- the DICOM TAG information of the DICOM image also contains the patient's information. Therefore, the DICOM TAG information of the DICOM image also needs to be anonymized.
- the present invention also provides a method for anonymizing DICOM TAG information related to patients and diagnosis in DICOM images, which specifically includes: extracting the DICOM TAG information of all DICOM files in the folder where the DICOMDIR file needs to be generated; according to the user in the setting file Specify DICOM TAG information such as patient information that needs to be anonymized, modify the DICOM TAG information to obtain the modified DICOM TAG information; write the modified DICOM TAG information into the DICOM file corresponding to the DICOM TAG information, Get the DICOM file with the modified DICOM TAG information.
- the DICOM TAG information that needs to be anonymized for setting includes patient information and examination information; DICOM files managed by DICOMDIR save subdirectories and other information to an XML or CSV file, and when the DICOMDIR file is created, the settings in the specified file are read
- the setting information of the file, the setting information includes the content that needs to be anonymized as specified by the user, such as patient name, patient ID, diagnosis doctor name, when generating DICOMDIR, DICOM image saving subdirectory information (subdirectory or No subdirectories, user settings).
- Step 101 Extract DICOM images or DICOM animations of all DICOM files in the folder where the DICOMDIR file needs to be generated.
- Step 102 Obtain the DICOM image or the first DICOM image of the DICOM animation to obtain the DICOM image to be processed.
- Steps 101 and 102 specifically include: specifying the folder where the DICOM images that need to generate DICOMDIR exist, reading all the DICOM image files existing in the folder, and reading the DICOM TAG information of all the images into the memory.
- Steps 101 and 102 specifically include: specifying the folder where the DICOM images that need to generate DICOMDIR exist, reading all the DICOM image files existing in the folder, and reading the DICOM TAG information of all the images into the memory.
- take DICOM image as the unit read the image data in each DICOM file to the memory, if it is an animated DICOM image, read the first frame image in the DICOM file to the memory.
- Step 103 Binarize the DICOM image to be processed to obtain a binary image.
- the Niblack local binarization method is used to binarize the to-be-processed DICOM image stored in the memory to obtain a frame of binary image.
- Step 104 Define the upper left corner, upper right corner, lower left corner, and lower right corner of the binary image as four text search areas.
- Patient information in the DICOM image data it is usually in the upper left corner, or upper right corner, or lower left corner, or lower right corner of the image.
- Step 105 Perform horizontal projection on each text search area to determine the upper boundary and the lower boundary of the character line in each text search area.
- performing horizontal projection on each of the text search areas to determine the upper and lower boundaries of the character lines in each of the text search areas specifically includes: performing horizontal projection on the text search area of the binary image, according to The average value of the integral projection in the horizontal direction of the text character is higher than the average value of the integral projection in the horizontal direction of the background, and the upper boundary and the lower boundary of the character line of the text search area are determined.
- Step 106 Perform vertical projection on each of the text search areas to determine the left and right borders and the number of characters of each character in each of the text search areas.
- step 106 vertical projection is performed on each of the text search areas to determine the left and right borders and the number of characters of each character in each of the text search areas, which specifically includes: the text search area of the binary image Perform vertical projection, and determine the left and right boundaries of each character in the text search area based on the average value of the vertical integral projection of the text characters higher than that of the background, and the threshold range of the character width, height and spacing And the number of characters.
- Step 105 and step 106 specifically include: for the obtained binary image, according to the characteristics of the text area within a certain range, before the projection process, delete the area that is too small or the area that is too large, and only keep the area within the text area.
- the binary image of each text search area is first projected in the horizontal direction, and the upper and lower boundaries of the character line are located and saved in the memory; then the binary image of the text search area is projected in the vertical direction. Locate the left and right boundaries of each character and save them to the memory.
- the width, height, and aspect ratio of the text are within a certain threshold range.
- Step 107 Determine, according to the number of characters, four text search areas in which characters exist in the text search areas.
- Step 108 Determine the coordinates of the cropping area according to the upper and lower borders of the character line of the text search area where the characters exist, and the left and right borders of each character.
- the maximum X and Y coordinates and the minimum X and Y coordinate ranges of each character area are calculated from the range of the entire image area
- the rectangular area in the middle of the image that does not include characters is calculated as a trimming rectangle and the coordinates of the rectangle are stored in the memory.
- the trimming rectangle range is shown in Figure 3, and there are text areas in the upper left corner and the upper right corner. If there are no text characters in each text search area, the rectangular coordinates of the cropping area (the dotted line in FIG. 3) are not saved.
- Step 109 Crop the DICOM image or each frame of the DICOM image of the DICOM animation according to the coordinates of the cropping area to obtain a cropped DICOM image, and save the cropped DICOM image to a designated file; Go back to the step "Obtain the DICOM image or the first DICOM image of the DICOM animation in the folder where the DICOMDIR file needs to be generated, and get the DICOM image to be processed", and crop the next DICOM image or DICOM animation until the DICOMDIR file needs to be generated. All DICOM images and DICOM animations in the folder.
- Step 110 Generate a DICOMDIR file from all the cropped DICOM images in the specified file.
- step 110 all the cropped DICOM images in the specified file are generated into a DICOMDIR file, which specifically includes: calculating the sum of the sizes of all cropped DICOM images in the specified folder; and according to all cropped DICOM images in the specified folder Calculate the number of DICOMDIR files that need to be generated by the sum of the size of the DICOM image; use the DICOMDIR creation function to generate the number of DICOMDIR files from all the cropped DICOM images in the specified folder.
- the DICOM file will be generated in the same directory as the DICOMDIR file according to the rules of DICOMDIR; if the file is set If the subdirectory where the DICOM file managed by DICOMDIR needs to be generated is specified in the file, the DICOM file will be generated and saved in the specified subdirectory according to the rules of DICOMDIR.
- the present invention also provides a DICOMDIR file generation system, which includes:
- DICOM image or DICOM animation extraction module used to extract DICOM images or DICOM animations of all DICOM files in the folder where DICOMDIR files need to be generated
- the to-be-processed DICOM image acquisition module is used to acquire the DICOM image or the first DICOM image of the DICOM animation to obtain the to-be-processed DICOM image;
- the binarization processing module is used to perform binarization processing on the DICOM image to be processed to obtain a binary image
- the text search area determination module is used to define the upper left corner, the upper right corner, the lower left corner and the lower right corner of the binary image as 4 text search areas;
- the upper and lower boundary determination module is used for horizontally projecting each of the text search areas to determine the upper and lower boundaries of the character line in each of the text search areas.
- the upper and lower boundary determining module specifically includes: the upper and lower boundary determining sub-module, which is used to project the text search area of the binary image in the horizontal direction, according to the horizontal direction integral projection average of the text characters higher than the horizontal direction integral projection average of the background Value to determine the upper boundary and lower boundary of the character line in the text search area.
- the left and right boundary determination module is used to vertically project each of the text search areas to determine the left and right boundaries and the number of characters of each character in each of the text search areas.
- the left and right boundary determination module specifically includes a left and right boundary determination sub-module for vertical projection of the text search area of the binary image, and the average value of the integral projection according to the vertical direction of the text character is higher than that of the background.
- the threshold range of character width, height and spacing determine the left and right borders and the number of characters of each character in the text search area.
- the character search area determining module is used to determine the character search areas in the four text search areas according to the number of characters;
- the cropping area determination module is used to determine the coordinates of the cropping area according to the upper and lower boundaries of the character line of the text search area where the characters exist, and the left and right boundaries of each character;
- the cropping module is used to crop the DICOM image or each frame of the DICOM image of the DICOM animation according to the coordinates of the cropping area to obtain the cropped DICOM image, and save the cropped DICOM image to a designated file middle;
- the return module is used to return to the step of "obtain the first DICOM image of a DICOM image or DICOM animation, and get the DICOM image to be processed", and crop the next DICOM image or DICOM animation until the folder where the DICOMDIR file needs to be generated is cut. All DICOM images and DICOM animations;
- the DICOMDIR file generation module is used to generate DICOMDIR files from all the cropped DICOM images in the specified file.
- the DICOMDIR file generating module specifically includes: a size and size calculation submodule, which is used to calculate the size and size of all cropped DICOM images in a specified folder; and a number calculation submodule for DICOMDIR files that need to be generated, It is used to calculate the number of DICOMDIR files that need to be generated according to the sum of the size of all the cropped DICOM images in the specified folder; the DICOMDIR file generation sub-module is used to use the DICOMDIR creation function to cut all the crops in the specified folder The subsequent DICOM image generates the number of DICOMDIR files.
- the generation system also includes: DICOM TAG information extraction module, used to extract DICOM TAG information of all DICOM files in the folder where DICOMDIR files need to be generated; DICOM TAG information modification module, used to modify the DICOM TAG information according to the needs specified by the user in the configuration file Anonymized TAG information, modify the DICOM TAG information to obtain the modified DICOM TAG information; the modified DICOM TAG information storage module is used to write the modified DICOM TAG information into the corresponding DICOM TAG information In the DICOM file, the DICOM file with the modified DICOM TAG information is obtained.
- DICOM TAG information extraction module used to extract DICOM TAG information of all DICOM files in the folder where DICOMDIR files need to be generated
- DICOM TAG information modification module used to modify the DICOM TAG information according to the needs specified by the user in the configuration file Anonymized TAG information, modify the DICOM TAG information to obtain the modified DICOM TAG information
- the modified DICOM TAG information storage module is used to write the modified DICOM TAG information
- the present invention also provides a specific embodiment.
- DICOMDIR is a variable length mini database file. With group (0002, xxxx) and group (0004, xxxx) as themes, it describes a 4-layer tree structure. It is composed of Patient, Study, Series and Image.
- the DICOM images saved in DICOM CD or DVD are managed by DICOMDIR files, and the attached DICOM image browsing software realizes the browsing of DICOM images managed by DICOMDIR.
- DICOM TAG information that needs to be anonymized, including patient information, examination information, DICOM image storage subdirectory information managed by DICOMDIR, etc.
- CSV Common-Separated Values
- the setting information in the setting file is read from the setting file that needs to be anonymized, such as patient name, patient ID, diagnosis doctor’s name, when generating DICOMDIR, DICOM image save subdirectory information (sub-directory information is possible) Directory, there can be no sub-directories, user settings).
- the patient name and ID information set in this example need to be anonymized.
- the patient name needs to be modified to the TEST1 character string
- the patient ID is modified to the 00000000 character string
- the storage medium is a 640 trillion CD.
- the DICOM files managed by the DICOMDIR file are saved in the subdirectory DCM.
- DICOM folder that needs to generate DICOMDIR files.
- the DSA image is a 16-bit grayscale image and the image resolution is 1024 ⁇ 768 pixels
- the ultrasonic image is a 24-bit color image
- its image resolution is 640 ⁇ 480 pixels.
- All DICOM images in this folder are images of the same patient, the patient's name is Anonymous, and the examination date is 2012.11.07.
- information such as the patient's name and gender is shown in the upper right corner of the image, and information such as the examination date and time is shown in the upper left corner of the image.
- the DICOM files in this folder are all animated DICOM images.
- the first frame of each DICOM file is read to the memory in frame units.
- the 16-bit DSA image is transformed into an 8-bit gray-scale image, 24-bit by gray scale conversion.
- the color image of the ultrasonic wave is transformed into an 8-bit gray-scale image through the conversion of color image to gray-scale image.
- the Niblack local binarization method is used to binarize the image data.
- the Niblack binarization method uses the mean value and variance in the neighborhood centered on the pixel to determine the binarized segmentation threshold of the pixel.
- a window with a size of kxk centered on the pixel (i, j), the mean value of the gray value of each pixel in this window is m, and the variance is s, then the threshold t of this point is t m+c*s, where c is the adjustment ⁇ Parameters.
- c is selected as -0.2
- k is selected as 5.
- the binary image of the first frame image of each DICOM file stored in the memory is obtained.
- each text search area with 4 corners as a rectangular area, with a width and height of 128X160 pixels, which can include the text area at the corners.
- the binary image of each text search area is first projected in the horizontal direction, and the upper and lower boundaries of the character line can be confirmed according to the feature that the average value of the integral projection in the horizontal direction of the characters is significantly higher than the average value of the horizontal integral projection in the background area.
- the upper and lower boundary coordinates of the possible character area and save it to the memory; then perform vertical projection on the binary image of the text search area, according to the vertical integral projection average value of the character is higher than the vertical integral projection average of the background area, the character width, For features whose height and spacing are within a certain range, the left and right boundary coordinates of each character are determined and stored in the memory.
- the maximum width and height of the text in the image is 20x12 pixels, and the average spacing is 5 pixels.
- the ultrasound image has a text area of the examination date in the upper left corner, a text area such as the patient's name in the upper right corner, the lower left ROI and the lower right ROI There is no text character area.
- the maximum X coordinate of the text in the upper left ROI area is 170, and the maximum Y coordinate is 48; the minimum X coordinate of the text in the upper right ROI area is 460, and the maximum Y coordinate is 64.
- the image size is 640x480 pixels.
- the X coordinate of the upper left corner of the cropped area is 170
- the Y coordinate is 64
- the X coordinate of the upper right corner is 460
- the Y coordinate is 64
- the X coordinate of the lower left corner is 170
- the Y coordinate is 480
- right The X coordinate of the lower corner is 460
- the Y coordinate is 480
- the width and height of the cropped area is 290x416 pixels.
- the patient name (0010, 0010) in the TAG information stored in the memory obtained in (2) is modified as the TEST1 character string
- the patient ID (0010, 0020) is the 00000000 character string.
- Read the image data of each frame in the DICOM file use the trimming rectangle obtained in (5) to trim the image of each frame and save it in the DICOM file, and modify the image width (0028, 0011) and height in the DICOM file at the same time (0028, 0010)
- the TAG value is the width and height of the cropped rectangular area; if there is no anonymization setting such as DICOM patient information in the setting file, no modification is made to the DICOM file.
- the present invention provides a method and system for generating a DICOMDIR file.
- the method of generating firstly obtains the DICOM image in the folder where the DICOMDIR file needs to be generated or the first DICOM image of the DICOM animation to obtain the DICOM image to be processed; Binarize the DICOM image to be processed to obtain a binary image; define the upper left corner, upper right corner, lower left corner, and lower right corner of the binary image as four text search areas; search for each text The area is horizontally projected to determine the upper boundary and the lower boundary of the character line in each text search area; the vertical projection is performed on each text search area to determine the left boundary and the left boundary of each character in each text search area The right margin and the number of characters; the four text search areas where characters exist in the text search area are determined according to the number of characters; the upper and lower borders of the character line in the text search area where characters exist and the left border of each character And the right boundary, determine the coordinates of the cropped area; then, crop the DICOM image or each frame of the DI
- the present invention first determines the text search area in the DICOM image, then uses horizontal projection and vertical projection to search for text characters, determines the coordinates of the cropping area, crops the DICOM image, and generates a DICOMDIR file from the cropped DICOM image , The characters of the DICOM image are removed, and the patient information or examination information existing in the image data is anonymized.
Landscapes
- Health & Medical Sciences (AREA)
- Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
- Radiology & Medical Imaging (AREA)
- Engineering & Computer Science (AREA)
- Epidemiology (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Primary Health Care (AREA)
- Public Health (AREA)
- Processing Or Creating Images (AREA)
- Image Analysis (AREA)
- Medical Treatment And Welfare Office Work (AREA)
- Measuring And Recording Apparatus For Diagnosis (AREA)
- Image Processing (AREA)
Abstract
Description
Claims (10)
- 一种DICOMDIR文件的生成方法,其特征在于,所述生成方法包括如下步骤:提取需要生成DICOMDIR文件的文件夹内的所有DICOM文件的DICOM图像或DICOM动画;获取DICOM图像或DICOM动画的第一帧DICOM图像,得到待处理DICOM图像;对所述待处理DICOM图像进行二值化处理,得到二值图像;将所述二值图像的左上角、右上角、左下角和右下角定义为4个文字搜索区域;对每个所述文字搜索区域进行水平投影确定每个所述文字搜索区域内字符行的上边界和下边界;对每个所述文字搜索区域进行垂直投影确定每个所述文字搜索区域内的每个字符的左边界和右边界及字符个数;根据字符个数确定4个所述文字搜索区域中存在字符的文字搜索区域;根据存在字符的文字搜索区域的字符行的上边界和下边界及每个字符的左边界和右边界,确定裁剪区域的坐标;根据所述裁剪区域的坐标对所述DICOM图像或对所述DICOM动画的每一帧DICOM图像进行裁剪,获得裁剪后的DICOM图像,并将裁剪后的DICOM图像保存至指定文件中;返回步骤“获取DICOM图像或DICOM动画的第一帧DICOM图像,得到待处理DICOM图像”,对下一个DICOM图像或DICOM动画进行裁剪,直到裁剪完需要生成DICOMDIR文件的文件夹内的所有DICOM图像和DICOM动画;将指定文件中所有的裁剪后的DICOM图像生成DICOMDIR文件。
- 根据权利要求1所述的DICOMDIR文件的生成方法,其特征在于,所述提取需要生成DICOMDIR文件的文件夹内的所有DICOM文件的DICOM图像或DICOM动画,之前还包括:提取需要生成DICOMDIR文件的文件夹内的所有DICOM文件中的DICOM TAG信息;根据设定文件中用户指定的需要匿名化的TAG信息,对所述DICOM TAG信息进行修改,获得修改后的DICOM TAG信息;将修改后的DICOM TAG信息写入所述DICOM TAG信息对应的DICOM文件中,得到DICOM TAG信息修改后的DICOM文件。
- 根据权利要求1所述的DICOMDIR文件的生成方法,其特征在于,所述对每个所述文字搜索区域进行水平投影确定每个所述文字搜索区域内字符行的上边界和下边界,具体包括:对二值图像的文字搜索区域进行水平方向投影,根据文字字符的水平方向积分投影平均值高于背景的水平方向积分投影平均值,确定所述文字搜索区域的字符行的上边界和下边界。
- 根据权利要求1所述的DICOMDIR文件的生成方法,其特征在于,所述对每个所述文字搜索区域进行垂直投影确定每个所述文字搜索区域内的每个字符的左边界和右边界及字符个数,具体包括对二值图像的文字搜索区域进行垂直方向投影,根据文字字符的垂直方向积分投影平均值高于背景的垂直方向积分投影平均值,及字符宽度、高度和间距的阈值范围,确定文字搜索区域中各个字符的左边界和右边界及字符个数。
- 根据权利要求1所述的DICOMDIR文件的生成方法,其特征在于,所述将指定文件中所有的裁剪后的DICOM图像生成DICOMDIR文件,具体包括:计算指定文件夹中所有的裁剪后的DICOM图像的尺寸大小的和;根据指定文件夹中所有的裁剪后的DICOM图像的尺寸大小的和,计算需要生成的DICOMDIR文件的个数;利用DICOMDIR创建函数将指定文件夹中所有的裁剪后的DICOM图像生成所述个数的DICOMDIR文件。
- 一种DICOMDIR文件的生成系统,其特征在于,所述生成系统包括:DICOM图像或DICOM动画提取模块,用于提取需要生成DICOMDIR文件的文件夹内的所有DICOM文件的DICOM图像或DICOM动画;待处理DICOM图像获取模块,用于获取DICOM图像或DICOM动画的第一帧DICOM图像,得到待处理DICOM图像;二值化处理模块,用于对所述待处理DICOM图像进行二值化处理,得到二值图像;文字搜索区域确定模块,用于将所述二值图像的左上角、右上角、左下角和右下角定义为4个文字搜索区域;上下边界确定模块,用于对每个所述文字搜索区域进行水平投影确定每个所述文字搜索区域内字符行的上边界和下边界;左右边界确定模块,用于对每个所述文字搜索区域进行垂直投影确定每个所述文字搜索区域内的每个字符的左边界和右边界及字符个数;存在字符的文字搜索区域确定模块,用于根据字符个数确定4个所述文字搜索区域中存在字符的文字搜索区域;裁剪区域确定模块,用于根据存在字符的文字搜索区域的字符行的上边界和下边界及每个字符的左边界和右边界,确定裁剪区域的坐标;裁剪模块,用于根据所述裁剪区域的坐标对所述DICOM图像或对所述DICOM动画的每一帧DICOM图像进行裁剪,获得裁剪后的DICOM图像,并将裁剪后的DICOM图像保存至指定文件中;返回模块,用于返回步骤“获取DICOM图像或DICOM动画的第一帧DICOM图像,得到待处理DICOM图像”,对下一个DICOM图像或DICOM动画进行裁剪,直到裁剪完需要生成DICOMDIR文件的文件夹内的所有DICOM图像和DICOM动画;DICOMDIR文件生成模块,用于将指定文件中所有的裁剪后的DICOM图像生成DICOMDIR文件。
- 根据权利要求6所述的DICOMDIR文件的生成系统,其特征在于,所述生成系统还包括:DICOM TAG信息提取模块,用于提取需要生成DICOMDIR文件的文件夹内的所有DICOM文件的DICOM TAG信息;DICOM TAG信息修改模块,用于根据设定文件中用户指定的需要匿名化的TAG信息,对所述DICOM TAG信息进行修改,获得修改后的DICOM TAG信息;修改后的DICOM TAG信息存储模块,用于将修改后的DICOM TAG信息写入所述DICOM TAG信息对应的DICOM文件中,得到DICOM TAG信息修改后的DICOM文件。
- 根据权利要求6所述的DICOMDIR文件的生成系统,其特征在于,所述上下边界确定模块,具体包括:上下边界确定子模块,用于对二值图像的文字搜索区域进行水平方向投影,根据文字字符的水平方向积分投影平均值高于背景的水平方向积分投影平均值,确定所述文字搜索区域的字符行的上边界和下边界。
- 根据权利要求6所述的DICOMDIR文件的生成系统,其特征在于,所述左右边界确定模块,具体包括左右边界确定子模块,用于对二值图像的文字搜索区域进行垂直方向投影,根据文字字符的垂直方向积分投影平均值高于背景的垂直方向积分投影平均值,及字符宽度、高度和间距的阈值范围,确定文字搜索区域中各个字符的左边界和右边界及字符个数。
- 根据权利要求6所述的DICOMDIR文件的生成系统,其特征在于,所述DICOMDIR文件生成模块,具体包括:尺寸大小的和计算子模块,用于计算指定文件夹中所有的裁剪后的DICOM图像的尺寸大小的和;需要生成的DICOMDIR文件的个数计算子模块,用于根据指定文件夹中所有的裁剪后的DICOM图像的尺寸大小的和,计算需要生成的DICOMDIR文件的个数;DICOMDIR文件生成子模块,用于利用DICOMDIR创建函数将指定文件夹中所有的裁剪后的DICOM图像生成所述个数的DICOMDIR文件。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2022573315A JP2023527090A (ja) | 2020-05-27 | 2021-05-14 | Dicomdirファイル作成方法及びdicomdirファイル作成システム |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010460454.2 | 2020-05-27 | ||
CN202010460454.2A CN111613305B (zh) | 2020-05-27 | 2020-05-27 | 一种dicomdir文件的生成方法及系统 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021238680A1 true WO2021238680A1 (zh) | 2021-12-02 |
Family
ID=72200562
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/093861 WO2021238680A1 (zh) | 2020-05-27 | 2021-05-14 | 一种dicomdir文件的生成方法及系统 |
Country Status (3)
Country | Link |
---|---|
JP (1) | JP2023527090A (zh) |
CN (1) | CN111613305B (zh) |
WO (1) | WO2021238680A1 (zh) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111613305B (zh) * | 2020-05-27 | 2024-04-30 | 周兴祥 | 一种dicomdir文件的生成方法及系统 |
CN112071403B (zh) * | 2020-09-09 | 2023-09-12 | 周兴祥 | 含有图标图像的dicomdir文件生成方法及系统 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101295332A (zh) * | 2008-04-30 | 2008-10-29 | 深圳市蓝韵实业有限公司 | 一种dicom文件病人信息匿名化处理方法 |
US20140063219A1 (en) * | 2012-08-28 | 2014-03-06 | General Electric Company | System and method including a portable user profile for medical imaging systems |
CN108986877A (zh) * | 2017-05-30 | 2018-12-11 | 西门子保健有限责任公司 | 确定匿名剂量报告图像 |
CN111145874A (zh) * | 2018-11-02 | 2020-05-12 | 北京赛迈特锐医疗科技有限公司 | 医学影像底层基础数据管理系统及其管理方法 |
CN111613305A (zh) * | 2020-05-27 | 2020-09-01 | 周兴祥 | 一种dicomdir文件的生成方法及系统 |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104036292A (zh) * | 2014-06-12 | 2014-09-10 | 西安华海盈泰医疗信息技术有限公司 | 一种医学影像数字胶片中文字区域提取方法及提取系统 |
CN105160343A (zh) * | 2015-08-12 | 2015-12-16 | 蓝网科技股份有限公司 | 应用于胶片按需打印系统的信息识别方法和装置 |
KR102000745B1 (ko) * | 2017-03-17 | 2019-07-16 | (주) 프로큐라티오 | 개인의료정보데이터 관리방법 및 시스템 |
-
2020
- 2020-05-27 CN CN202010460454.2A patent/CN111613305B/zh active Active
-
2021
- 2021-05-14 JP JP2022573315A patent/JP2023527090A/ja active Pending
- 2021-05-14 WO PCT/CN2021/093861 patent/WO2021238680A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101295332A (zh) * | 2008-04-30 | 2008-10-29 | 深圳市蓝韵实业有限公司 | 一种dicom文件病人信息匿名化处理方法 |
US20140063219A1 (en) * | 2012-08-28 | 2014-03-06 | General Electric Company | System and method including a portable user profile for medical imaging systems |
CN108986877A (zh) * | 2017-05-30 | 2018-12-11 | 西门子保健有限责任公司 | 确定匿名剂量报告图像 |
CN111145874A (zh) * | 2018-11-02 | 2020-05-12 | 北京赛迈特锐医疗科技有限公司 | 医学影像底层基础数据管理系统及其管理方法 |
CN111613305A (zh) * | 2020-05-27 | 2020-09-01 | 周兴祥 | 一种dicomdir文件的生成方法及系统 |
Also Published As
Publication number | Publication date |
---|---|
JP2023527090A (ja) | 2023-06-26 |
CN111613305B (zh) | 2024-04-30 |
CN111613305A (zh) | 2020-09-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11967074B2 (en) | Method and system for computer-aided triage | |
WO2021238680A1 (zh) | 一种dicomdir文件的生成方法及系统 | |
US8737702B2 (en) | Systems and methods for automated extraction of measurement information in medical videos | |
KR102251245B1 (ko) | 관심 영역별 추가 정보 제공 장치 및 방법 | |
JP6805736B2 (ja) | 類似症例画像検索プログラム、類似症例画像検索装置及び類似症例画像検索方法 | |
US10902602B1 (en) | Method and system for computer-aided triage of stroke | |
Josephine Selle et al. | Automated recognition of ROIs for breast thermograms of lateral view-a pilot study | |
CN114494230A (zh) | 乳腺病灶分割装置、模型训练方法及电子设备 | |
CN110738639B (zh) | 医学图像检测结果的展示方法、装置、设备及存储介质 | |
CN116825269A (zh) | 体检报告的处理方法、装置、电子设备和可读存储介质 | |
US11615895B2 (en) | Systems and methods for automatically managing image data | |
CN111161240A (zh) | 血管分类方法、计算机设备和可读存储介质 | |
US11978274B2 (en) | Document creation support apparatus, document creation support method, and document creation support program | |
CN112419339B (zh) | 医学图像分割模型训练方法及系统 | |
KR102659323B1 (ko) | 인공지능 학습용 의료영상 데이터 구축을 위한 마스킹 방법 및 시스템 | |
CN114972026A (zh) | 图像处理方法和存储介质 | |
Zhao et al. | Development of an approach to extracting coronary arteries and detecting stenosis in invasive coronary angiograms | |
Xiong et al. | CAS_NeXt: Towards Accurate and Topology-Preserving Coronary Artery Segmentation in Digital Substraction Angiography | |
Li et al. | A Web abdominal anatomical structure database system | |
WO2022239593A1 (ja) | 文書作成支援装置、文書作成支援方法、及び文書作成支援プログラム | |
JP7480997B2 (ja) | 画像処理装置、画像処理方法、およびプログラム | |
WO2022215530A1 (ja) | 医用画像装置、医用画像方法、及び医用画像プログラム | |
Azcarraga et al. | Identity concealment when uploading pictures of patients in a tele-medicine system | |
WO2022224848A1 (ja) | 文書作成支援装置、文書作成支援方法、及び文書作成支援プログラム | |
Mihova et al. | Applications of open source frameworks for advanced medical image processing. |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21813269 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 2022573315 Country of ref document: JP Kind code of ref document: A |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 21813269 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 12/05/2023) |