CN114637869A - Temporary storage and retrieval method for DICOM image cloud file - Google Patents
Temporary storage and retrieval method for DICOM image cloud file Download PDFInfo
- Publication number
- CN114637869A CN114637869A CN202210198463.8A CN202210198463A CN114637869A CN 114637869 A CN114637869 A CN 114637869A CN 202210198463 A CN202210198463 A CN 202210198463A CN 114637869 A CN114637869 A CN 114637869A
- Authority
- CN
- China
- Prior art keywords
- file
- image
- index information
- dicom image
- dicom
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 21
- 238000007689 inspection Methods 0.000 claims description 3
- 238000012544 monitoring process Methods 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 2
- 238000013499 data model Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000003745 diagnosis Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000009206 nuclear medicine Methods 0.000 description 1
- 230000007170 pathology Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000005855 radiation Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 238000002604 ultrasonography Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/51—Indexing; Data structures therefor; Storage structures
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Public Health (AREA)
- Data Mining & Analysis (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Primary Health Care (AREA)
- Radiology & Medical Imaging (AREA)
- Software Systems (AREA)
- Epidemiology (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
- Processing Or Creating Images (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a temporary storage and retrieval method of DICOM image cloud files, which solves the problems that the receiving speed of image data files is far faster than the uploading speed of image files and the difference of the speeds causes a large amount of local files to be detained in the prior art, and comprises the following steps: creating a temporary file storage directory, and setting original information and an image model of a file; acquiring index information of a file to be uploaded; writing index information of a file to be uploaded; writing index information of a file to be uploaded and uploading the file; the invention effectively manages a large amount of detained DICOM image data files, reduces the speed difference between the receiving speed of the data files and the uploading speed of the image files and accurately searches the DICOM image data files.
Description
Technical Field
The invention relates to the technical field of medical images, in particular to a temporary storage and retrieval method for DICOM image cloud files.
Background
The image storage and transmission system is specially designed for medical image examination image management and comprises an image storage, transmission, display and processing informatization system; the medical examination image storage format adopts DICOM3.0 standard, and the hospital-wide PACS system covers the image information of the whole hospital and links a plurality of image departments such as radiation, ultrasound, nuclear medicine, endoscope, pathology and the like to respond to the requirements of the image departments on medical image data; the image cloud uploads and files image data in a whole-hospital PACS of a single hospital or a plurality of hospitals to a cloud platform, cross-hospital and cross-region interconnection and intercommunication of medical image examination data are realized, doctors or patients can read reports and DICOM images through mobile equipment, and the image cloud has important significance for realizing remote image diagnosis, consultation service and medical image information sharing, realizing mutual recognition of examination and inspection results, improving medical service efficiency and reducing the time for the patients to run back and forth to the hospital.
For example, a "medical image collaboration method, apparatus, device, and computer storage medium" disclosed in chinese patent literature, whose publication No. CN 112863700 a includes an operation exhibition end responding to a medical image editing instruction, converting the medical image editing instruction into editing operation information for a standard medical image according to a correspondence between a currently displayed medical image and the standard medical image, and updating a current data model according to the editing operation information; sending the editing operation information to a synchronous display end; re-rendering the updated data model, adjusting the rendered standard medical image according to the size of the display window, and displaying the corresponding medical image; according to the technical scheme, the receiving speed of the image data file is far higher than the uploading speed of the image file, and the difference of the speeds causes a large amount of local files to be detained, so that huge challenges are brought to the storage and retrieval of the image data.
Disclosure of Invention
The invention aims to solve the problems that the receiving speed of an image data file is far faster than the uploading speed of the image file and the difference of the speeds causes a large amount of detained local files in the prior art, and provides a temporary storage and retrieval method of a DICOM image cloud file, which effectively manages a large amount of detained DICOM image data files, reduces the receiving speed of the data file and the uploading speed difference of the image file and accurately retrieves the DICOM image data file.
In order to achieve the purpose, the invention adopts the following technical scheme: a DICOM image cloud file temporary storage retrieval method comprises the following steps:
s1: creating a temporary file storage directory, and setting original information and an image model of a file;
s2: acquiring index information of a file to be uploaded;
s3: writing index information of a file to be uploaded;
s4: and writing index information of the file to be uploaded and uploading the file.
The invention obtains the information of the completely received DICOM image file; scanning a set DICOM image file receiving directory folder, and creating a scanned complete received DICOM image file index information list in a memory; creating an existing set and storing DICOM image file index information written into the system; and writing index information of the file to be uploaded and uploading the file.
Preferably, the step S2 specifically includes the following steps:
s21: scanning the set DICOM image file receiving directory folder, skipping if the received DICOM image file size is 0KB, and proceeding to step S22 if the received DICOM image file size is not 0 KB;
s22: and comparing the last writing time of the received DICOM image file with the current scanning time, and judging the receiving integrity of the DICOM image file.
The system specifically comprises a monitoring module, a read-write module, a timing return module, a scheduling module and an uploading module, and the DICOM image file information scanning, storage and indexing are realized through mutual cooperation among the modules.
Preferably, the image model comprises image gray levels and image intensity levels, expressed by a function f (x, y), i.e.:
f(x,y)=i(x,y)*r(x,y)
wherein f (x, y) represents an image model, i (x, y) represents an image incident component, r (x, y) represents an image reflection component, wherein 0 < i (x, y) <infinity, 0 < r (x, y) < 1, and the gray scale of the digital image has a value range of: l ismin<f<Lmax、Lmin=iminrmin、Lmax=imaxrmaxInterval [ L ]min,Lmax]Namely the gray level of the image;
in the formula, L represents a gradation of an image, f represents an image, i represents an image incidence value, and r represents an image reflection value.
Preferably, the original information of the file in step S1 includes a file header, a file identifier, a group length, and a meta information version.
Preferably, the step S1 specifically includes the following steps:
s11: referencing subordinate directory information;
s12: pointing to the file and recording the selected key value;
s13: a connection between peer directories is set.
Preferably, the directory information includes image information and inspection result information.
Preferably, the step S3 specifically includes the following steps:
s31: creating an existing set and storing DICOM image file index information written into the system;
s32: starting multithreading, copying a completely received DICOM image file into a temporary folder created by the system according to a randomly generated unique code as a file name, and deleting the file from an original folder;
s33: and writing the DICOM image file index information into the tail part of the existing set.
Preferably, the step S4 specifically includes the following steps:
s41: creating a take-away set, and storing the read and uploaded DICOM image file index information;
s42: starting multithreading to read DICOM image file index information from the header of the existing set;
s43: uploading the DICOM image file to an image cloud platform, removing the index information from the existing set, and writing the index information into a take-away set;
s44: and after the uploading is successful, removing the index information from the fetching set, and deleting the DICOM image file from the system.
Therefore, the invention has the following beneficial effects:
1. effectively managing a large amount of detained DICOM image data files;
2. reducing the difference between the receiving speed of the data file and the uploading speed of the image file;
3. the DICOM image data file can be accurately searched.
Drawings
FIG. 1 is a flow chart of the method of the present invention.
FIG. 2 is a block diagram of a modular system of the present invention.
In the figure: 1. the device comprises a monitoring module 2, a read-write module 3, a timing return module 4, a scheduling module 5 and an uploading module.
Detailed Description
The present embodiment is further described with reference to the following drawings and detailed description.
The embodiment provides a temporary storage and retrieval method for a DICOM image cloud file, and fig. 1 is a flow chart of the method of the invention, which comprises the following steps:
s1: creating a temporary file storage directory, and setting original information and an image model of a file;
s2: acquiring index information of a file to be uploaded;
s3: writing index information of a file to be uploaded;
s4: and writing index information of the file to be uploaded and uploading the file.
The image model includes image gray levels and image intensity levels, represented by a function f (x, y), i.e.:
f(x,y)=i(x,y)*r(x,y)
wherein f (x, y) represents an image model, i (x, y) represents an image incident component, r (x, y) represents an image reflection component, wherein 0 < i (x, y) <infinity, 0 < r (x, y) < 1, and the gray scale of the digital image has a value range of: l ismin<f<Lmax、Lmin=iminrmin、Lmax=imaxrmaxInterval [ L ]min,Lmax]Namely the gray level of the image;
wherein, L represents the gray scale of the image, f represents the image, i represents the incident value of the image, and r represents the reflection value of the image; typically, the range of image gray levels is [0, L-1], where the image is black when f is 0, white in gray levels when f is L-1, all intermediate values are gray tones varying from black to white, and the difference in gray level between the highest and lowest gray levels of the image is the contrast.
Step S1 specifically includes the following steps:
s11: referencing subordinate directory information;
s12: pointing to the file and recording the selected key value;
s13: a connection between peer directories is set.
Step S2 specifically includes the following steps:
s21: scanning the set DICOM image file receiving directory folder, skipping if the size of the received DICOM image file is 0KB, and entering step S22 if the size of the received DICOM image file is not 0 KB;
s22: and comparing the last writing time of the received DICOM image file with the current scanning time, and judging the receiving integrity of the DICOM image file.
Step S3 specifically includes the following steps:
s31: creating an existing set and storing DICOM image file index information written into the system;
s32: starting multithreading, copying a completely received DICOM image file into a temporary folder created by the system according to a randomly generated unique code as a file name, and deleting the file from an original folder;
s33: and writing the DICOM image file index information into the tail part of the existing set.
Step S4 specifically includes the following steps:
s41: creating a takeaway set, and storing the read and executed uploaded DICOM image file index information;
s42: starting multithreading to read DICOM image file index information from the header of the existing set;
s43: uploading the DICOM image file to an image cloud platform, removing the index information from the existing set, and writing the index information into a take-away set;
s44: and after the uploading is successful, removing the index information from the fetching set, and deleting the DICOM image file from the system.
The number of files stored in the folder has an upper limit, and when the number of files is large, the operation speed of the files is reduced; the system can establish a new temporary folder for storing the subsequently received temporary files when the number of files in each temporary folder reaches a certain threshold value; scanning a set DICOM image file receiving directory folder, skipping if the size of the received DICOM image file is 0KB, otherwise comparing the current scanning time with the last writing time of the received DICOM image file, if the difference value exceeds a set value, indicating that the DICOM image file is completely received, and otherwise indicating that the DICOM image file is incomplete; and creating a scanned complete received DICOM image file index information list in the memory.
Fig. 2 is a schematic diagram of the relationship between modules of the system of the present invention, which specifically includes a monitoring module 1, a read/write module 2, a timing return module 3, a scheduling module 4, and an upload module 5;
the monitoring module 1: the DICOM image file information acquisition module is used for acquiring the completely received DICOM image file information; scanning a set DICOM image file receiving directory folder, skipping if the size of the received DICOM image file is 0KB, otherwise comparing the current scanning time with the last writing time of the received DICOM image file, if the difference value exceeds a set value, indicating that the DICOM image file is completely received, and otherwise indicating that the DICOM image file is incomplete; and creating a scanned complete received DICOM image file index information list in the memory.
The read-write module 2: used for reading and writing DICOM image file index information; the system comprises an existing set for storing DICOM image file index information written into the system; and the 'take away' set is used for storing the DICOM image file index information which is read and uploaded.
The timing returning module 3: the index information is used for returning DICOM image files at regular time; scanning the 'taken' set at regular time, judging whether the difference value between the DICOM image file taking time in the 'taken' set and the current time exceeds a threshold value, and returning the index information from the 'taken' set to the 'existing' set if the difference value exceeds the threshold value.
The scheduling module 4: the method is used for scheduling the read thread and the write thread and preventing concurrent read-write conflict.
The uploading module 5: the method is used for uploading DICOM image files.
The working process of the invention is as follows: creating a temporary file storage directory, and setting original information and an image model of a file; the monitoring module acquires the completely received DICOM image file information; scanning a set DICOM image file receiving directory folder, skipping if the size of the received DICOM image file is 0KB, otherwise comparing the current scanning time with the last writing time of the received DICOM image file, if the difference value exceeds a set value, indicating that the DICOM image file is completely received, and otherwise indicating that the DICOM image file is incomplete; creating a scanned complete received DICOM image file index information list in the memory; creating an existing set and storing DICOM image file index information written into the system; starting multithreading, copying a completely received DICOM image file into a temporary folder created by the system according to a randomly generated unique code as a file name, and deleting the file from an original folder; writing the DICOM image file index information into the tail part of the existing set; creating a take-away set, and storing the read and uploaded DICOM image file index information; starting multithreading to read DICOM image file index information from the header of the existing set; uploading the DICOM image file to an image cloud platform, removing the index information from the existing set, and writing the index information into a take-away set; and after the uploading is successful, removing the index information from the fetching set, and deleting the DICOM image file from the system.
The present invention is not limited to the above-described embodiments, and the above description is only a preferred embodiment of the present invention, and is not intended to limit the present invention. Any modification, equivalent transformation, improvement, etc. made in accordance with the technical spirit of the present invention fall within the scope of the claimed invention.
Claims (8)
1. A DICOM image cloud file temporary storage and retrieval method is characterized by comprising the following steps:
s1: creating a temporary file storage directory, and setting original information and an image model of a file;
s2: acquiring index information of a file to be uploaded;
s3: writing index information of a file to be uploaded;
s4: and writing index information of the file to be uploaded and uploading the file.
2. The method of claim 1, wherein the step S2 specifically includes the following steps:
s21: scanning the set DICOM image file receiving directory folder, skipping if the received DICOM image file size is 0KB, and proceeding to step S22 if the received DICOM image file size is not 0 KB;
s22: and comparing the last writing time of the received DICOM image file with the current scanning time, and judging the receiving integrity of the DICOM image file.
3. The method of claim 1, wherein the image model comprises image gray scale and image intensity level, and is expressed by a function f (x, y), that is:
f(x,y)=i(x,y)*r(x,y)
wherein f (x, y) represents an image model, i (x, y) represents an image incident component, r (x, y) represents an image reflection component, wherein 0 < i (x, y) < ∞, 0 < r (x, y) < 1, and the gray scale of the digital image has a value range of: l ismin<f<Lmax、Lmin=iminrmin、Lmax=imaxrmaxInterval [ L ]min,Lmax]Namely the gray level of the image;
in the formula, L represents a gradation of an image, f represents an image, i represents an image incidence value, and r represents an image reflection value.
4. The method as claimed in claim 1, wherein the original information of the file in step S1 includes file header, file identifier, group length and meta information version.
5. The method of claim 1, wherein the step S1 specifically includes the following steps:
s11: referencing subordinate directory information;
s12: pointing to the file and recording the selected key value;
s13: a connection between peer directories is set up.
6. The method of claim 5, wherein the directory information includes image information and inspection result information.
7. The method of claim 1, wherein the step S3 specifically includes the following steps:
s31: creating an existing set and storing DICOM image file index information written into the system;
s32: starting multithreading, copying a completely received DICOM image file into a temporary folder created by the system according to a randomly generated unique code as a file name, and deleting the file from an original folder;
s33: and writing the DICOM image file index information into the tail part of the existing set.
8. The method of claim 1, wherein the step S4 specifically includes the following steps:
s41: creating a take-away set, and storing the read and uploaded DICOM image file index information;
s42: starting multithreading to read DICOM image file index information from the header of the existing set;
s43: uploading the DICOM image file to an image cloud platform, removing the index information from the existing set, and writing the index information into a take-away set;
s44: and after the uploading is successful, removing the index information from the fetching set, and deleting the DICOM image file from the system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210198463.8A CN114637869A (en) | 2022-03-02 | 2022-03-02 | Temporary storage and retrieval method for DICOM image cloud file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210198463.8A CN114637869A (en) | 2022-03-02 | 2022-03-02 | Temporary storage and retrieval method for DICOM image cloud file |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114637869A true CN114637869A (en) | 2022-06-17 |
Family
ID=81947637
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210198463.8A Pending CN114637869A (en) | 2022-03-02 | 2022-03-02 | Temporary storage and retrieval method for DICOM image cloud file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114637869A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101908061A (en) * | 2010-07-02 | 2010-12-08 | 互动在线(北京)科技有限公司 | Method and device for synchronizing entries |
US20110016466A1 (en) * | 2009-07-15 | 2011-01-20 | Aten International Co., Ltd. | Virtual media with folder-mount function |
CN102934115A (en) * | 2010-03-12 | 2013-02-13 | 科派恩股份有限公司 | Distributed catalog, data store, and indexing |
CN113239096A (en) * | 2021-07-02 | 2021-08-10 | 浙江卡易智慧医疗科技有限公司 | Method for increasing DICOM image cloud archiving and warehousing speed |
CN113821163A (en) * | 2021-07-30 | 2021-12-21 | 黄山罗米测控技术有限公司 | Method for efficiently caching historical data in offline state of data acquisition gateway of Internet of things |
-
2022
- 2022-03-02 CN CN202210198463.8A patent/CN114637869A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110016466A1 (en) * | 2009-07-15 | 2011-01-20 | Aten International Co., Ltd. | Virtual media with folder-mount function |
CN102934115A (en) * | 2010-03-12 | 2013-02-13 | 科派恩股份有限公司 | Distributed catalog, data store, and indexing |
CN101908061A (en) * | 2010-07-02 | 2010-12-08 | 互动在线(北京)科技有限公司 | Method and device for synchronizing entries |
CN113239096A (en) * | 2021-07-02 | 2021-08-10 | 浙江卡易智慧医疗科技有限公司 | Method for increasing DICOM image cloud archiving and warehousing speed |
CN113821163A (en) * | 2021-07-30 | 2021-12-21 | 黄山罗米测控技术有限公司 | Method for efficiently caching historical data in offline state of data acquisition gateway of Internet of things |
Non-Patent Citations (1)
Title |
---|
CHEONG: "【数字图像处理系列二】基本概念:亮度、对比度、饱和度、锐化、分辨率", Retrieved from the Internet <URL:https://blog.csdn.net/feilong_csdn/article/details/82755816> * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP1229457B1 (en) | Image storage and display system | |
US10157686B1 (en) | Automated document filing | |
US20070035780A1 (en) | System and method for defining characteristic data of a scanned document | |
CN106650211B (en) | Storage server | |
CN101869467B (en) | Digital imaging system of urology surgery | |
CN104715436A (en) | Medical information collecting and filing method and system | |
CN113239096B (en) | Method for increasing DICOM image cloud filing and warehousing speed | |
CN116933306A (en) | Medical clinical examination diagnosis case retrieval system based on big data | |
CN112562817B (en) | System and method for feeding back label of image structured report to image AI | |
WO2020051113A4 (en) | Systems and methods for caching biological image data | |
CN114637869A (en) | Temporary storage and retrieval method for DICOM image cloud file | |
CN112071403B (en) | DICOMDIR file generation method and system containing icon images | |
US20230385559A1 (en) | Automated methods and systems for retrieving information from scanned documents | |
US20230297646A1 (en) | System and methods for classifying magnetic resonance imaging (mri) image characteristics | |
US20180239760A1 (en) | Systems and methods for collecting large medical image data | |
CN112669943B (en) | Method for analyzing DICOM file in file directory | |
CN114283926A (en) | Method and device for improving image retrieval speed of medical terminal of cloud PACS system | |
CN113918843A (en) | Digital image system based on big data | |
CN118349529B (en) | Picture video storage method based on deep learning | |
CN113035330B (en) | Image acquisition method for PACS | |
JP2000348115A (en) | Comprehensive medical information management system | |
CN116072268A (en) | Medical data storage method and medical image system | |
CN113035331B (en) | Image acquisition system for PACS | |
CN115910290A (en) | Panoramic pathological scanning image management method and device, equipment and storage medium | |
EP4040446A1 (en) | System and method for connecting a medical image system with an external service server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |