CN107729470A - A kind of image processing method and device - Google Patents
A kind of image processing method and device Download PDFInfo
- Publication number
- CN107729470A CN107729470A CN201710949641.5A CN201710949641A CN107729470A CN 107729470 A CN107729470 A CN 107729470A CN 201710949641 A CN201710949641 A CN 201710949641A CN 107729470 A CN107729470 A CN 107729470A
- Authority
- CN
- China
- Prior art keywords
- image
- queue
- thread
- thread pool
- calling
- 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
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
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5061—Partitioning or combining of resources
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/50—Indexing scheme relating to G06F9/50
- G06F2209/5011—Pool
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/50—Indexing scheme relating to G06F9/50
- G06F2209/5018—Thread allocation
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Medical Treatment And Welfare Office Work (AREA)
- Processing Or Creating Images (AREA)
Abstract
The present invention provides a kind of image processing method and device, the above method and comprised the following steps:Stored by calling the thread accesses image queue in thread pool, and to the image file in described image queue;Parse the image file of storage and store the view data of acquisition to database.Above-mentioned technical proposal, by calling the thread in thread pool to substantially increase data transmission efficiency to image file storage and the database purchase parallel processing of view data.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of image processing method and device.
Background technology
In recent years, as application of the digital medical image equipment in medical field increasingly increases, by these digital medical shadows
As equipment acquired image data are very important, and these view data are carried out with storage processing also just turns into medical treatment letter
The study hotspot in breathization field.
Existing view data storing process, is mainly included the following steps that:
Step 1:From DICOM (Digital Imaging and Communications in Medicine, medical digital
Imaging and communication) the Tag information of DICOM images is parsed in image;
Step 2:Image file is stored;
Step 3:View data in image file is stored to database.
But with the rapidly growth of medical domain view data, in face of the processing of mass image data, above-mentioned serial place
View data mode is managed, data transmission efficiency is leveraged, the problem of bust this is also resulted in when serious.
Therefore, there is an urgent need to provide a kind of image real time transfer scheme to solve above-mentioned technical problem.
The content of the invention
The present invention provides a kind of image processing method and device, to solve the above problems.
The embodiment of the present invention provides a kind of image processing method, comprises the following steps:By calling in thread pool
Thread accesses image queue, and the image file in described image queue is stored;
Parse the image file of storage and store the view data of acquisition to database.
The embodiment of the present invention also provides a kind of image data processing system, including processor, is adapted for carrying out each instruction;Storage
Equipment, suitable for storing a plurality of instruction, the instruction is suitable to be loaded and performed by the processor;
Deposited by calling the thread accesses image queue in thread pool, and to the image file in described image queue
Storage;
Parse the image file of storage and store the view data of acquisition to database.
Technical scheme provided in an embodiment of the present invention:By calling the thread accesses image queue in thread pool, and to institute
The image file stated in image queue is stored;Parse the image file of storage and store the view data of acquisition to data
Storehouse.
Above-mentioned technical proposal, by calling the thread in thread pool to image file storage and the data stock of view data
Parallel processing is stored up, substantially increases data transmission efficiency.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair
Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 show the image processing method flow chart of the embodiment of the present invention 1;
Fig. 2 show the image data processing system structure chart of the embodiment of the present invention 2;
Fig. 3 show the image data processing system structure chart of the embodiment of the present invention 3.
Embodiment
Describe the present invention in detail below with reference to accompanying drawing and in conjunction with the embodiments.It should be noted that do not conflicting
In the case of, the feature in embodiment and embodiment in the application can be mutually combined.
The present invention is based on MFC (Microsoft Foundation Classes;Microsoft Foundation class libraries) framework, in conjunction with
The use in Boost storehouses can be real by the DICOM image files storage of standard and the database purchase asynchronous parallelization of view data
It is existing;Mode using thread pool as processing data task in transmitting procedure, it can effectively reduce and frequently create new thread institute band
The overhead come, so as to improve the transmission speed of massive medical data.
Fig. 1 show the image processing method flow chart of the embodiment of the present invention 1, comprises the following steps:
Step 101:By calling the thread accesses image queue in thread pool, and to the image text in described image queue
Part is stored;
Further, the thread accesses image queue by calling in thread pool, and in described image queue
Before image file is stored, in addition to:
By calling thread pool thread to obtain image file corresponding to each image capture device respectively and by the figure
As file is put into described image queue.
Further, it is described by calling thread pool thread to obtain image text corresponding to each image capture device respectively
Part and before described image file is put into described image queue, in addition to:
It is pre-created the thread pool and described image queue.
Further, the thread accesses image queue by calling in thread pool, and in described image queue
The process that image file is stored is:
Function is bound with the function object in thread pool to be realized to image storage in advance;
By calling the thread in thread pool to perform the function object, by corresponding to each image capture device of acquisition
Image file is put into described image queue;
Call it is described realize function access described image queue, and then the image file in described image queue is deposited
Storage.
Further, call it is described realize function, described image queue is accessed come poll by true circulations.
Step 102:Parse the image file of storage and store the view data of acquisition to database.
The method of Thread Pool Technology of the embodiment of the present invention based on Boost storehouses Medical Image Processing data reasonable in design,
The database store process concurrent asynchronous of view data storage and view data is handled, and then improves image transmitting mistake
The whole efficiency of journey.
Fig. 2 show the image data processing system structure chart of the embodiment of the present invention 2, including:Each image capture device
(equipment M1, equipment M2 ... equipment Mn), Boost thread pools, Queue queues, data storage storehouse.
First, an engineering based on C++ dialog boxes is created based on MFC frameworks, opened when engineering initializes dialog box
Handle the main thread of connection request task;Secondly, Boost thread pools are called by main thread, realizes the communication to connection request
Consult, transfer syntax, the byte order of both sides when negotiations process is mainly to determine transmission data;Finally carry out image file storage
And the database purchase of view data.
Specific implementation process is as follows:
1) thread pool threads for handling image storage and the image queue for storing patient image data are created;
2) function object for realizing function and thread pool of image storage is bound;
3) by calling thread pool threads to perform function object in thread pool, by each image capture device pair of acquisition
The image file answered is put into image queue;
4) continued cycling through in thread pool perform processing image storage realize function, wherein, described realize letter performing
In number, by true circulations come poll image queue;
If 5) there are image file, pop dequeues in described image queue;If without image file, continue waiting for;
6) parse the image file of storage and store the view data of acquisition to database.
5) and 6) repeat, until image real time transfer terminates.
The embodiment of the present invention uses performs image real time transfer based on Boost thread pools, can be by way of parallelization
The overhead of reduction system, so as to improve the process performance of data during medical image transmission.With general serial process
The implementation of view data is compared, and the embodiment of the present invention carries out the optimization of data processing using Thread Pool Technology, can be effective
Improve the efficiency of massive medical image data transfer storage, laid the foundation for the development of future medicine realm information technology.
Fig. 3 show the image data processing system structure chart of the embodiment of the present invention 3, including processor, is adapted for carrying out each
Instruction;Storage device, suitable for storing a plurality of instruction, the instruction is suitable to be loaded and performed by the processor;
Deposited by calling the thread accesses image queue in thread pool, and to the image file in described image queue
Storage;
Parse the image file of storage and store the view data of acquisition to database.
Further, the thread accesses image queue by calling in thread pool, and in described image queue
Before image file is stored, in addition to:
By calling thread pool thread to obtain image file corresponding to each image capture device respectively and by the figure
As file is put into described image queue.
Further, it is described by calling thread pool thread to obtain image text corresponding to each image capture device respectively
Part and before described image file is put into described image queue, in addition to:
It is pre-created the thread pool and described image queue.
Further, the thread accesses image queue by calling in thread pool, and in described image queue
The process that image file is stored is:
Function is bound with the function object in thread pool to be realized to image storage in advance;
By calling the thread in thread pool to perform the function object, by corresponding to each image capture device of acquisition
Image file is put into described image queue;
Call it is described realize function access described image queue, and then the image file in described image queue is deposited
Storage.
Further, call it is described realize function, described image queue is accessed come poll by true circulations.
The embodiment of the present invention is combined to Boost storehouses thread pool module by using computer advanced programming language C++
Call, realize the method for parallel processing of standard DICOM images data storage procedure, so not only can effectively reduce frequent wound
Overhead caused by new thread is built, the framework model of processing view data is also optimized, so as to improve massive medical image
The transmission speed of data.
Technical scheme provided in an embodiment of the present invention:By calling the thread accesses image queue in thread pool, and to institute
The image file stated in image queue is stored;Parse the image file of storage and store the view data of acquisition to data
Storehouse.
Above-mentioned technical proposal, by calling the thread in thread pool to image file storage and the data stock of view data
Parallel processing is stored up, substantially increases data transmission efficiency.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.
Claims (10)
1. a kind of image processing method, it is characterised in that comprise the following steps:
Stored by calling the thread accesses image queue in thread pool, and to the image file in described image queue;
Parse the image file of storage and store the view data of acquisition to database.
2. image processing method according to claim 1, it is characterised in that the line by calling in thread pool
Journey access images queue, and before being stored to the image file in described image queue, in addition to:
By call thread pool thread obtain respectively image file corresponding to each image capture device and by described image text
Part is put into described image queue.
3. image processing method according to claim 2, it is characterised in that described by calling thread pool thread to distinguish
Before obtaining image file corresponding to each image capture device and described image file being put into described image queue, also wrap
Include:
It is pre-created the thread pool and described image queue.
4. image processing method according to claim 1, it is characterised in that described by calling the thread in thread pool to visit
Image queue is asked, and the process stored to the image file in described image queue is:
Function is bound with the function object in thread pool to be realized to image storage in advance;
By calling the thread in thread pool to perform the function object, by image corresponding to each image capture device of acquisition
File is put into described image queue;
Call it is described realize function access described image queue, and then the image file in described image queue is stored.
5. image processing method according to claim 4, it is characterised in that call it is described realize function, pass through
True circulations carry out poll and access described image queue.
6. a kind of image data processing system, it is characterised in that including processor, be adapted for carrying out each instruction;Storage device, it is suitable to
A plurality of instruction is stored, the instruction is suitable to be loaded and performed by the processor;
Stored by calling the thread accesses image queue in thread pool, and to the image file in described image queue;
Parse the image file of storage and store the view data of acquisition to database.
7. image data processing system according to claim 6, it is characterised in that the line by calling in thread pool
Journey access images queue, and before being stored to the image file in described image queue, in addition to:
By call thread pool thread obtain respectively image file corresponding to each image capture device and by described image text
Part is put into described image queue.
8. image processing apparatus according to claim 7, it is characterised in that described by calling thread pool thread to distinguish
Before obtaining image file corresponding to each image capture device and described image file being put into described image queue, also wrap
Include:
It is pre-created the thread pool and described image queue.
9. image processing apparatus according to claim 6, it is characterised in that described by calling the thread in thread pool to visit
Image queue is asked, and the process stored to the image file in described image queue is:
Function is bound with the function object in thread pool to be realized to image storage in advance;
By calling the thread in thread pool to perform the function object, by image corresponding to each image capture device of acquisition
File is put into described image queue;
Call it is described realize function access described image queue, and then the image file in described image queue is stored.
10. image processing apparatus according to claim 9, it is characterised in that call it is described realize function, pass through
True circulations carry out poll and access described image queue.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710949641.5A CN107729470A (en) | 2017-10-12 | 2017-10-12 | A kind of image processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710949641.5A CN107729470A (en) | 2017-10-12 | 2017-10-12 | A kind of image processing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107729470A true CN107729470A (en) | 2018-02-23 |
Family
ID=61211152
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710949641.5A Pending CN107729470A (en) | 2017-10-12 | 2017-10-12 | A kind of image processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107729470A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108806773A (en) * | 2018-05-21 | 2018-11-13 | 上海熙业信息科技有限公司 | Medical image cloud storage platform designing method |
CN111069062A (en) * | 2019-12-13 | 2020-04-28 | 中国科学院重庆绿色智能技术研究院 | Multi-channel visual inspection control method, system software architecture and construction method |
CN112487034A (en) * | 2020-12-01 | 2021-03-12 | 上海思客琦智能装备科技股份有限公司 | Double-queue asynchronous image processing method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8120613B2 (en) * | 2006-11-29 | 2012-02-21 | Siemens Medical Solutions Usa, Inc. | Method and apparatus for real-time digital image acquisition, storage, and retrieval |
CN102572607A (en) * | 2011-12-28 | 2012-07-11 | 中国人民解放军第四军医大学唐都医院 | Medical imaging calling-reading optimizing method based on multithreading technology |
CN103577699A (en) * | 2013-11-14 | 2014-02-12 | 哈尔滨工程大学 | DICOM medical image displaying and processing method based on Android platform |
-
2017
- 2017-10-12 CN CN201710949641.5A patent/CN107729470A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8120613B2 (en) * | 2006-11-29 | 2012-02-21 | Siemens Medical Solutions Usa, Inc. | Method and apparatus for real-time digital image acquisition, storage, and retrieval |
CN102572607A (en) * | 2011-12-28 | 2012-07-11 | 中国人民解放军第四军医大学唐都医院 | Medical imaging calling-reading optimizing method based on multithreading technology |
CN103577699A (en) * | 2013-11-14 | 2014-02-12 | 哈尔滨工程大学 | DICOM medical image displaying and processing method based on Android platform |
Non-Patent Citations (1)
Title |
---|
强强抱你: "PACS***与数据归档", 《百度文库》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108806773A (en) * | 2018-05-21 | 2018-11-13 | 上海熙业信息科技有限公司 | Medical image cloud storage platform designing method |
CN111069062A (en) * | 2019-12-13 | 2020-04-28 | 中国科学院重庆绿色智能技术研究院 | Multi-channel visual inspection control method, system software architecture and construction method |
CN112487034A (en) * | 2020-12-01 | 2021-03-12 | 上海思客琦智能装备科技股份有限公司 | Double-queue asynchronous image processing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3667496B1 (en) | Distributed computing system, data transmission method and device in distributed computing system | |
EP4016399A1 (en) | Method for distributed training model, relevant apparatus, and computer program product | |
US10073817B1 (en) | Optimized matrix multiplication using vector multiplication of interleaved matrix values | |
CN107729470A (en) | A kind of image processing method and device | |
US9367640B2 (en) | Method and system for creating linked list, method and system for searching data | |
CN107609159A (en) | Method, apparatus and computer-readable medium for data loading | |
CN107766101A (en) | App starts processing method, device and the equipment of event | |
US10496595B2 (en) | Method for zero-copy object serialization and deserialization | |
CN110213614A (en) | The method and apparatus of key frame are extracted from video file | |
CN107077390A (en) | A kind of task processing method and network interface card | |
CN109697537A (en) | The method and apparatus of data audit | |
CN104166568B (en) | A kind of method of the picture file of electrical power system loaded in parallel based on CIM/G | |
CN107748879A (en) | For obtaining the method and device of face information | |
CN111143446A (en) | Data structure conversion processing method and device of data object and electronic equipment | |
CN109960597A (en) | A kind of dynamic registration method and relevant apparatus of Applied layer interface | |
CN108829526B (en) | Inter-process communication method, electronic equipment and readable storage medium | |
CN110062035A (en) | A kind of http request method and apparatus based on deque | |
CN203706207U (en) | Compression medical image storage transmission system based on cloud storage | |
CN110532559A (en) | The processing method and processing device of rule | |
CN110414450A (en) | Keyword detection method, apparatus, storage medium and electronic equipment | |
CN108255675A (en) | A kind of port diagnostic extracting method, device and computing device | |
CN107766137A (en) | A kind of task processing method and device | |
CN108647236A (en) | A kind of prescriptions of traditional Chinese medicine vector space model method and device based on Term co-occurrence | |
EP3447690A1 (en) | Maxout layer operation apparatus and method | |
CN107133090A (en) | A kind of method for processing business and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180223 |
|
RJ01 | Rejection of invention patent application after publication |