CN107122613A - A kind of DICOM image display methods based on pseudo-colours - Google Patents

A kind of DICOM image display methods based on pseudo-colours Download PDF

Info

Publication number
CN107122613A
CN107122613A CN201710308743.9A CN201710308743A CN107122613A CN 107122613 A CN107122613 A CN 107122613A CN 201710308743 A CN201710308743 A CN 201710308743A CN 107122613 A CN107122613 A CN 107122613A
Authority
CN
China
Prior art keywords
dicom
dicom images
gray level
color
pseudo
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
Application number
CN201710308743.9A
Other languages
Chinese (zh)
Inventor
李金屏
安庆浩
于向茹
郑修楠
丁健配
韩延彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
University of Jinan
Original Assignee
University of Jinan
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by University of Jinan filed Critical University of Jinan
Priority to CN201710308743.9A priority Critical patent/CN107122613A/en
Publication of CN107122613A publication Critical patent/CN107122613A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros

Abstract

The invention discloses a kind of DICOM image display methods based on pseudo-colours, it comprises the following steps:Step 1, the gray level in DICOM images is extracted;Step 2, DICOM images are mapped to RGB color:The gray level of extraction is changed into the data element of 16 bit binary value, data element is divided into behind three parts and changes into decimal value respectively and by brightness regulation coefficient assignment into B, G and R Color Channel;Step 3, the image being mapped in RGB color is preserved.The present invention is by extracting gray level in DICOM images and being that RGB realizes the display of DICOM images by the gradation conversion of extraction, it sufficiently make use of tri- Color Channels of R, G, B, gray level in DICOM images is mapped completely in RGB color to be converted into pseudo color image, is conducive to human eye directly effectively to observe the detail section in DICOM images.

Description

A kind of DICOM image display methods based on pseudo-colours
Technical field
The present invention relates to a kind of DICOM image display methods based on pseudo-colours, belong to technical field of image processing.
Background technology
DICOM (Digital Imaging and Communications in Medicine) is widely used in multiple Field, such as radiating medical, cardiovascular imaging, X-ray, nuclear magnetic resonance.Many information are included in DICOM images, wherein most Main information is that the pixel data elements in the data bit of image, data bit are usually 12 either 16, denotable Gray level is maximum up to 65536.People are when observing DICOM images usually using two methods, and one is to use special software, Two be that DICOM images are converted into other picture formats.When being shown to DICOM images, usually used software has OsiriX, Sante DICOM viewer etc., the image shown is gray-scale map, but human eye can only identify 35 kinds or so Gray tone, if to observe the detail section in DICOM images, it is necessary to another windowing, is individually carried out to this region Display, it is clear that the observation that this method gives people brings no small trouble;It is usual when entering row format conversion to DICOM images Window adding technology is used, the form of conversion is generally BMP.Window adding technology refers to by a window, by window area It is transformed on display linearity, but this method can sacrifice the partial pixel value in image, because being higher than or low Highest or minimum show value can be separately arranged as in the pixel value of window bound.
Under normal circumstances, people can identify thousands of kinds of color shadeses and brightness.If DICOM images can use pseudo- coloured silk Color is shown, then the nuance of tissue adjacent area can just be distinguished with different colors, and then human eye can Observed with direct.Therefore, in the urgent need to a kind of DICOM image display methods based on pseudo-colours.
The content of the invention
For above-mentioned deficiency, the invention provides a kind of DICOM image display methods based on pseudo-colours, it can be with puppet Colour shows DICOM images, is conducive to human eye directly can effectively observe the nuance in image.
The present invention solves its technical problem and adopted the technical scheme that:A kind of DICOM images display side based on pseudo-colours Method, it is characterized in that, comprise the following steps:
Step 1, the gray level in DICOM images is extracted;
Step 2, DICOM images are mapped to RGB color:The gray level of extraction is changed into 16 bits The data element of value, and data element is divided into three parts, three partial data elements after division are changed into ten respectively enters Numerical value processed and by brightness regulation coefficient assignment into B, G and R Color Channel;
Step 3, the image being mapped in RGB color is preserved.
Preferably, in step 1, the process of the gray level in the extraction DICOM images comprises the following steps:
Step 11, the data element position to DICOM framing into data set;
Step 12, the position of storage DICOM image authentic datas, i.e. data field are found in data element position;
Step 13, the data in data field are extracted, that is, obtain the gray level in DICOM images.
Preferably, in step 2, the process that DICOM images are mapped into RGB color comprises the following steps:
Step 21, the gray level A in DICOM images is converted into the binary numeral B of 16;
Step 22, the binary numeral B of 16 is divided into preceding n1Position B1, middle n2Position B2With rear n3Position B3Three parts, and n1+n2+n3=16;
Step 23, by B1、B2And B3It is respectively converted into decimal number D1、D2And D3
Step 24, according to formulaCalculate brightness of image regulation parameter ri, i=1,2,3;
Step 25, the numerical value respectively D of B, G and R color component is obtained1×r1、D2×r2And D3×r3
Preferably, the n before the binary numeral B of 16 is divided into1Position B1, middle n2Position B2With rear n3Position B3Three part mistakes Cheng Zhong, n1=4, n2=7, n3=5.
The beneficial effects of the invention are as follows:The present invention is by extracting the gray level in DICOM images and turning the gray scale of extraction It is changed to RGB to realize the display of DICOM images, it sufficiently make use of tri- Color Channels of R, G, B, by DICOM images Gray level is mapped completely in RGB color, realizes DICOM images being converted into pseudo color image, be conducive to human eye straight Connect the detail section effectively observed in DICOM images.
Brief description of the drawings
Fig. 1 is flow chart of the method for the present invention;
Fig. 2 is the schematic diagram of DICOM picture formats, and wherein a is image part, and b is file header part, and c is data Collect part, d is data element portion;
Fig. 3 is the color cube schematic diagram of RGB color.
Embodiment
For the technical characterstic for illustrating this programme can be understood, below by embodiment and with reference to its accompanying drawing to the present invention It is described in detail.Following disclosure provides many different embodiments or example is used for realizing the different structure of the present invention. In order to simplify disclosure of the invention, hereinafter the part and setting of specific examples are described.In addition, the present invention can be not With repeat reference numerals in example and/or letter.This repetition is for purposes of simplicity and clarity, itself not indicate to be begged for By the relation between various embodiments and/or setting.It should be noted that part illustrated in the accompanying drawings is painted not necessarily to scale System.Present invention omits the description to known assemblies and treatment technology and process to avoid being unnecessarily limiting the present invention.
Under normal circumstances, people can identify 35 kinds or so of gray tone, and for color shades and brightness, people Thousands of kinds can be identified.The maximum gray scale of DICOM images is 65 536, and people are observing gray level image using display When, because human eye distinguishes the limited in one's ability of gray tone, display is typically only capable in display 256 grades of gray scales, therefore image in addition Nuance can not directly be observed.In order to enable people to directly observe DICOM medical images using Pseudo-color Technique Correlative detail information, it is contemplated that human eye proposes a kind of DICOM based on pseudo-colours to the sensitiveness of colouring information, the present invention Image display method, it by 65536 grey-scale maps in DICOM images into RGB color, so as to pseudo- color Color mode shows DICOM images, to allow human eye directly effectively to observe the nuance in image.
As shown in figure 1, a kind of DICOM image display methods based on pseudo-colours of the present invention, it comprises the following steps:
Step 1, the gray level in DICOM images is extracted;
Step 2, DICOM images are mapped to RGB color:The gray level of extraction is changed into 16 bits The data element of value, and according to sensitivity of the human eye to Red Green Blue, the data element of 16 is divided into preceding n1 Position, middle n2Position and rear n3Three parts of position, by the preceding n after division1Position, middle n2Position and rear n3Three partial data elements of position are changed into respectively Decimal value, and assignment is distinguished into B, G and R Color Channel by brightness regulation coefficient, complete DICOM images and be mapped to The process of RGB color;
Step 3, the image being mapped in RGB color is preserved.
Preferably, in step 1, the process of the gray level in the extraction DICOM images comprises the following steps:
Step 11, according to the file structure of DICOM images, to data element position of the DICOM framing into data set Put.
As shown in Fig. 2 typical DICOM file form is divided into file header and data set two parts.File header includes introduction And prefix, data set is at least including a data element.Each data element have 4 domains, is identifier (Tag), data respectively Type (Value Representation), data length (Value Length) and data field (Value Field), wherein Data field be selectable.
The related description of file, can be placed on inside introduction by the byte of introduction length 128.
The byte of prefix length 4, is upper case character " D ", " I ", " C ", " M ", a file can be judged by the value whether For DICOM file.
Identifier is the signless integer for accounting for 4 bytes, and data elements all DICOM can be carried out with identifier It is unique to represent.
Data type is the character string for accounting for 2 bytes, and which kind of type indicates the data in the data element is.Data type It is selectable, it depends on the wire data type consulted.Explicit (Explicit VR) is defined in DICOM and implicit (Implicit VR) two kinds of transformats, wherein in explicit transmission, data type there must be, in implicit transmission, data Type must be omitted.
Data length is to account for 2 or 4 bytes (it is display or implicit to depend on data type and data type) Without symbol even number value, and specify the length of data field.
Data field must include even number byte, and storage is real data, and data can have multiple values, but total Length must be even number, not enough then polishing.
Step 12, according to data element structure, the position of storage DICOM image authentic datas is found in data element position Put, i.e. data field.
Step 13, the data in data field are extracted, the data of extraction are the gray level in DICOM images.
Preferably, in step 2, the process that DICOM images are mapped into RGB color comprises the following steps:
Step 21, the gray level A in DICOM images is converted into the binary numeral B of 16;
Step 22, the binary numeral B of 16 is divided into preceding n1Position B1, middle n2Position B2With rear n3Position B3Three parts, and n1+n2+n3=16, preferably, n is taken in specific implementation process1=4, n2=7, n3=5;
Step 23, by B1、B2And B3It is respectively converted into decimal number D1、D2And D3
Step 24, according to formulaCalculate brightness of image regulation parameter ri, wherein, i=1,2,3;
Step 25, the numerical value respectively D of B, G and R color component is obtained1×r1、D2×r2And D3×r3
As shown in figure 3, RGB color is a kind of common color model.Why RGB color can be used for table Show color, it is after all or especially sensitive to red, blueness and green because of the cone-shaped cell and rod-shaped cells in human eye. RGB color model is indicated with cartesian coordinate system, and all colors are normalized.
R, G, B color component represent 3 reference axis respectively, when the corresponding numerical value of R, G, B all takes 0, i.e. the origin of coordinates, Represent black;Conversely, when the corresponding numerical value of R, G, B all takes maximum, then it represents that white;Table when R, G, B numerical value are equal What is shown is gray scale, and straight line of the gray scale along 2 points of black and white of connection extends to white from black;Other points in cube represent it Its color.
The present invention sufficiently make use of tri- Color Channels of R, G, B.The denotable color of RGB color is reachable 16777216 kinds, it is far longer than 65536 gray levels in DICOM images, so the gray level in DICOM images completely may be used To be mapped in RGB color.RGB color is that color is shown by the various combination of three Color Channels, each The data element that Color Channel is accounted in 8, DICOM images is 16 to the maximum, and the data element of 16 is divided into three by the present invention Then these three binary numerals are converted into the decimal system by individual part again, and by brightness regulation coefficient distinguish assignment to B, G and In R Color Channels, DICOM images are converted into DICOM images with pseudo-color processing by the present invention by the method, and then are made Human eye directly can effectively observe the nuance in DICOM images.
In addition, the application of the present invention is not limited to technique, mechanism, the system of the specific embodiment described in specification Make, material composition, means, method and step., will be easy as one of ordinary skill in the art from the disclosure Ground understands, for current technique that is existing or will developing later, mechanism, manufacture, material composition, means, method or Step, the knot that the function or acquisition that wherein their execution are substantially the same with the corresponding embodiment that the present invention is described are substantially the same Really, they can be applied according to the present invention.Therefore, appended claims of the present invention are intended to these techniques, mechanism, system Make, material composition, means, method or step are included in its protection domain.

Claims (4)

1. a kind of DICOM image display methods based on pseudo-colours, it is characterized in that, comprise the following steps:
Step 1, the gray level in DICOM images is extracted;
Step 2, DICOM images are mapped to RGB color:The gray level of extraction is changed into the number of 16 bit binary value Three parts are divided into according to element, and by data element, three partial data elements after division are changed into decimal value respectively And by brightness regulation coefficient assignment into B, G and R Color Channel;
Step 3, the image being mapped in RGB color is preserved.
2. a kind of DICOM image display methods based on pseudo-colours according to claim 1, it is characterized in that, in step 1 In, the process of the gray level in the extraction DICOM images comprises the following steps:
Step 11, the data element position to DICOM framing into data set;
Step 12, the position of storage DICOM image authentic datas, i.e. data field are found in data element position;
Step 13, the data in data field are extracted, that is, obtain the gray level in DICOM images.
3. a kind of DICOM image display methods based on pseudo-colours according to claim 1, it is characterized in that, in step 2 In, the process that DICOM images are mapped into RGB color comprises the following steps:
Step 21, the gray level A in DICOM images is converted into the binary numeral B of 16;
Step 22, the binary numeral B of 16 is divided into preceding n1Position B1, middle n2Position B2With rear n3Position B3Three parts, and n1+n2+ n3=16;
Step 23, by B1、B2And B3It is respectively converted into decimal number D1、D2And D3
Step 24, according to formulaCalculate brightness of image regulation parameter ri, i=1,2,3;
Step 25, the numerical value respectively D of B, G and R color component is obtained1×r1、D2×r2And D3×r3
4. a kind of DICOM image display methods based on pseudo-colours according to claim 3, it is characterized in that, by 16 Binary numeral B be divided into preceding n1Position B1, middle n2Position B2With rear n3Position B3In three partial routines, n1=4, n2=7, n3=5.
CN201710308743.9A 2017-05-04 2017-05-04 A kind of DICOM image display methods based on pseudo-colours Pending CN107122613A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710308743.9A CN107122613A (en) 2017-05-04 2017-05-04 A kind of DICOM image display methods based on pseudo-colours

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710308743.9A CN107122613A (en) 2017-05-04 2017-05-04 A kind of DICOM image display methods based on pseudo-colours

Publications (1)

Publication Number Publication Date
CN107122613A true CN107122613A (en) 2017-09-01

Family

ID=59726621

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710308743.9A Pending CN107122613A (en) 2017-05-04 2017-05-04 A kind of DICOM image display methods based on pseudo-colours

Country Status (1)

Country Link
CN (1) CN107122613A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108877735A (en) * 2017-05-12 2018-11-23 京东方科技集团股份有限公司 Show the gray-scale intensity method of adjustment and adjustment device of equipment
WO2019095485A1 (en) * 2017-11-17 2019-05-23 广州视源电子科技股份有限公司 Video signal processing method and apparatus, and readable storage medium
CN110717950A (en) * 2019-09-02 2020-01-21 北京深睿博联科技有限责任公司 Film reading method and device for medical images
CN112071403A (en) * 2020-09-09 2020-12-11 苏州小艺物联科技有限公司 DICOMDIR file generation method and system containing icon images

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004020942A (en) * 2002-06-17 2004-01-22 Ziosoft Inc High-gradient monochromatic display system and display program
CN103577699A (en) * 2013-11-14 2014-02-12 哈尔滨工程大学 DICOM medical image displaying and processing method based on Android platform

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004020942A (en) * 2002-06-17 2004-01-22 Ziosoft Inc High-gradient monochromatic display system and display program
CN103577699A (en) * 2013-11-14 2014-02-12 哈尔滨工程大学 DICOM medical image displaying and processing method based on Android platform

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
LI JINXIU ET AL: "Pseudocolor Coding of Medical Images Based on Gradient", 《2007 1ST INTERNATIONAL CONFERENCE ON BIOINFORMATICS AND BIOMEDICAL ENGINEERING》 *
曹茂永等: "高灰度分辨率图像的伪彩色编码", 《光学技术》 *
梁云等: "DICOM医学图像数据转换算法研究", 《图形图像》 *
郭仕剑等: "数字荧光实时频谱分析设备的设计实现", 《电子测量与仪器学报》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108877735A (en) * 2017-05-12 2018-11-23 京东方科技集团股份有限公司 Show the gray-scale intensity method of adjustment and adjustment device of equipment
WO2019095485A1 (en) * 2017-11-17 2019-05-23 广州视源电子科技股份有限公司 Video signal processing method and apparatus, and readable storage medium
CN110717950A (en) * 2019-09-02 2020-01-21 北京深睿博联科技有限责任公司 Film reading method and device for medical images
CN112071403A (en) * 2020-09-09 2020-12-11 苏州小艺物联科技有限公司 DICOMDIR file generation method and system containing icon images
CN112071403B (en) * 2020-09-09 2023-09-12 周兴祥 DICOMDIR file generation method and system containing icon images

Similar Documents

Publication Publication Date Title
CN107122613A (en) A kind of DICOM image display methods based on pseudo-colours
CN112272947B (en) Method and device for processing video signal and computer readable storage medium
CN103402117B (en) Based on the video image color cast detection method of Lab chrominance space
CN105184754B (en) Method for enhancing picture contrast
CN107680142B (en) Method for improving out-of-gamut color overlay mapping
TW201123158A (en) System and method for modulating backlight
CN108885857A (en) Keep the spectrum remodeling procedure and equipment of color
CN108933933A (en) A kind of video signal processing method and device
US6894720B2 (en) Method and apparatus for applying tone mapping functions to color images
CN108711142A (en) Image processing method and image processing apparatus
CN108230407A (en) A kind for the treatment of method and apparatus of image
CN107862672A (en) The method and device of image defogging
CN102577396B (en) For the RGB primary colors generation system of wide colour gamut and method and color coding systems
CN113658564B (en) Image color depth conversion method and electronic equipment
CN104835185B (en) The decoding method and multi-media transmission system of a kind of three-dimension code
CN111899690B (en) Method and device for improving low-brightness Mura
CN107833256B (en) The method and device of pseudo- coloring for digital picture
CN117037683A (en) DICOM image display method based on Mini LED display screen
CN109119046B (en) Adjusting system and adjusting method for gray scale brightness and memory
CN103531177B (en) A kind of method and system that dot matrix word library antialiasing is shown
WO2023040431A1 (en) Tone mapping method, device and system
CN116245766A (en) Image enhancement processing method and device, electronic equipment and readable storage medium
CN102426694A (en) Image fusion method based on Alpha channel bitmap technology
CN116309886A (en) Display control method, display control device, electronic equipment and storage medium
CN104182998A (en) Self-adaption image brightness rendering method 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170901