A way to read dicompyler's image to c++ image class

An image reading and image technology, applied in visual/graphics programming, creating/generating source code, compiler construction, etc., can solve the problem of low execution efficiency of Python function modules, shorten the development cycle, improve development efficiency, guarantee The effect of execution efficiency

Inactive Publication Date: 2019-10-29
SOUTH CHINA NORMAL UNIVERSITY
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, since Python is an interpreted language, that is to say, the functional modules developed by Python have not been compiled, and each functional module depends on the Python interpreter to run, so the execution efficiency of Python functional modules is not high.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A way to read dicompyler's image to c++ image class

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036] The present invention will be described in further detail below in conjunction with the accompanying drawings, but the embodiments of the present invention are not limited thereto.

[0037] In addition to the DICOM RT data reading module, dicompyler also includes other auxiliary user interface function modules. In order to simplify the development process, the entire dicompyler function module must be simplified, and the simplified method is to use the object-oriented programming method supported by Python , build a custom module, the specific steps are as follows:

[0038] 1. Retain the three core modules of dicompyler, namely DICOM RT analysis module dicomparser, dose volume histogram module dvhdoses and dose volume histogram calculation module dvhcalc;

[0039] 2. On the basis of the above three modules, customize the function module named Patient.pyc. In this module, a class named Patient is customized. This class is the core class of image data conversion, which de...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for reading images of dicompyler to a C + + image class. The method comprises the steps of initializing connection parameters of a connector; initializing a Python interpreter, and loading a simplified dicompyler functional module; acquiring an image object of the dicompyler functional module, and acquiring the image size and the image mode; converting image data into a character string form by using a computer-assisted personal interviewing (C-API) indirect trigger data conversion function provided by Python to obtain a packaged character string object; extracting character string data of the character string object by utilizing the character string object and a parametric analytic function provided by the Python, and reading the character string data to a C / C++ memory array; copying the image data in the memory array to the C + + image class, setting the size of the image class according to the acquired image size, setting a color table, and finally completing the reading of data of digital imaging and communications in medicine radiotherapy (DICOM RT). The method can improve the development efficiency and execution efficiency of a program and shorten the development cycle, has very high practicality, and is especially suitable for equipment for medical image processing software development.

Description

technical field [0001] The invention belongs to the field of computer application program development, in particular to a method for reading dicompyler images into C++ image classes. Background technique [0002] Currently, dicompyler is an extensible open source radiotherapy research and development toolkit based on the DICOM standard, and it is also a cross-platform DICOM RT reader. Dicompyler is developed with Python, which uses PIL (Python Imaging Library, Python image library) to store and display DICOM RT medical images. [0003] PIL provides a wide range of file format support, efficient internal data representation and quite powerful image processing capabilities, plus Python is a programming language with simple language, simple development, good cross-platform and many public libraries, and more importantly Due to the high development efficiency of Python, combining the above two advantages, dicompyler is deeply loved by the majority of medical image researchers. ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F8/34G06F8/36
CPCG06F8/34G06F8/37
Inventor 陈棋江蔡夫鸿何赛灵
Owner SOUTH CHINA NORMAL UNIVERSITY
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products