CN111210898B - Method and device for processing DICOM data - Google Patents

Method and device for processing DICOM data Download PDF

Info

Publication number
CN111210898B
CN111210898B CN201911398553.6A CN201911398553A CN111210898B CN 111210898 B CN111210898 B CN 111210898B CN 201911398553 A CN201911398553 A CN 201911398553A CN 111210898 B CN111210898 B CN 111210898B
Authority
CN
China
Prior art keywords
image
dicom
window
data
description information
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.)
Active
Application number
CN201911398553.6A
Other languages
Chinese (zh)
Other versions
CN111210898A (en
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.)
Sinounion Healthcare Inc
Original Assignee
Sinounion Healthcare Inc
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 Sinounion Healthcare Inc filed Critical Sinounion Healthcare Inc
Priority to CN201911398553.6A priority Critical patent/CN111210898B/en
Publication of CN111210898A publication Critical patent/CN111210898A/en
Application granted granted Critical
Publication of CN111210898B publication Critical patent/CN111210898B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H30/00ICT specially adapted for the handling or processing of medical images
    • G16H30/20ICT specially adapted for the handling or processing of medical images for handling medical images, e.g. DICOM, HL7 or PACS
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20212Image combination
    • G06T2207/20221Image fusion; Image merging
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Radiology & Medical Imaging (AREA)
  • Epidemiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Primary Health Care (AREA)
  • Public Health (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the disclosure relates to a method and a device for processing DICOM data, wherein the method comprises the following steps: obtaining DICOM data displayed by a current window and a basic view angle of the window, wherein the DICOM data comprises DICOM images and description information; dividing the description information in the DICOM data to obtain at least one partial image corresponding to the description information; carrying out multi-plane reconstruction on the DICOM image according to a basic view angle and a preset transformation relation to obtain a two-dimensional image; scaling and adjusting the local image according to a preset scaling proportion to obtain an adjusted local image; and drawing and displaying the two-dimensional image and the adjusted local image in the virtual window according to the relative position, and outputting the image displayed by the virtual window. The method and the device can avoid local deformation caused by forcibly scaling the size of the image according to the size of the window, and solve the problem that the analysis and diagnosis of doctors are influenced by the deformation of the image.

Description

Method and device for processing DICOM data
Technical Field
The present disclosure relates to the field of image processing technologies, and in particular, to a method and an apparatus for processing DICOM data.
Background
In the medical image field, the digital imaging and communications in medicine (Digital Imaging and Communications in Medicine, DICOM) format standard created by the american electrical manufacturing association (National Electric Manufactures Association, NEMA for short) is a file standard format widely used for medical image processing, storage, transmission, printing. The standard format may be used to facilitate viewing of medical information, medical images, medical data transmissions, and the like. The DICOM image is an image obtained by examining a patient, and can reflect the disease state of the patient at the time of examination.
Each time a patient performs an examination of a signature (0020, 000D), a DICOM image is obtained, sometimes even of more than one sequence signature (0020, 000E), and a DICOM image of multiple sequences or even of different examination modality signatures (0008, 0060). Sometimes the patient also needs to perform the same type of examination at different times to obtain multiple different DICOM images for the physician to review and compare.
When a doctor looks at a DICOM image of a patient and makes a diagnosis, it is often necessary to enlarge a local region or to save a screen image by a screenshot method for the fusion-displayed image for later use. The screen capturing method is adopted to store the image, so that the display effect of the original DICOM image can be affected, the information displayed around the window can not be adjusted to affect the reading, and after the screen capturing is stored, the condition of stretching deformation sometimes exists in the printing output process, so that the analysis and diagnosis results of doctors are affected.
Based on the above, in the prior art, there is a problem that the analysis and diagnosis of doctors are affected by the images stored in the direct screenshot.
The above drawbacks are to be overcome by those skilled in the art.
Disclosure of Invention
First, the technical problem to be solved
In order to solve the above-mentioned problems of the prior art, the present disclosure provides a method and apparatus for processing DICOM data, so as to at least overcome the problem that the analysis and diagnosis of a doctor are affected by the existing images stored in direct screenshot to a certain extent.
Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned by the practice of the disclosure in the form of data subsections.
(II) technical scheme
In order to achieve the above purpose, the main technical scheme adopted in the present disclosure includes:
embodiments of the present disclosure provide a method of processing DICOM data, comprising:
obtaining DICOM data displayed by a current window and a basic view angle of the window, wherein the DICOM data comprises DICOM images and description information;
dividing the description information in the DICOM data to obtain at least one partial image corresponding to the description information;
carrying out multi-plane reconstruction on the DICOM image according to the basic view angle and a preset transformation relation to obtain a two-dimensional image;
scaling and adjusting the local image according to a preset scaling proportion to obtain an adjusted local image;
and drawing and displaying the two-dimensional image and the adjusted local image in the virtual window according to the relative position, and outputting the image displayed by the virtual window.
In an embodiment of the present disclosure, after obtaining DICOM data of the current window display, the method further includes:
and acquiring a volume data set formed by pixel points in all the DICOM images, wherein the volume data set comprises the space coordinates, the volume data size and the volume data number from the first DICOM image to the central position of the first pixel at the upper left corner.
In an embodiment of the present disclosure, segmenting the description information in the DICOM data to obtain at least one local image corresponding to the description information includes:
dividing the description information in the DICOM data according to the relative position with the DICOM image;
the segmented descriptive information block in a relative orientation is used as a partial image.
In an embodiment of the present disclosure, after obtaining at least one partial image corresponding to the description information, the method further includes:
when the descriptive information block comprises a row of characters, taking the pixel height of the characters as the height of the local image and the pixel length of the characters as the width of the local image;
when the descriptive information block comprises a plurality of lines of characters, the pixel height of the characters is taken as the height of the local image, and the maximum value of the pixel length in the plurality of lines of characters is taken as the width of the local image.
In an embodiment of the present disclosure, the mode of multi-planar reconstruction includes at least one operation of scaling, translation, rotation, and window width and level adjustment.
In an embodiment of the disclosure, the preset transformation relationship includes:
according to the three-dimensional space transformation rule, determining a Matrix transformation relation Matrix as follows:
matrix transformation relation Matrix = translation Matrix x scaling Matrix x rotation Matrix;
and taking the Matrix transformation relation Matrix as a transformation relation Matrix of the relative coordinates of the base view angle and the DICOM image.
In an embodiment of the present disclosure, further comprising:
and after the window width and window level of the DICOM image are adjusted, if the color information of the DICOM image is changed, acquiring an adjusted window width and window level value.
In an embodiment of the present disclosure, performing multi-plane reconstruction on the DICOM image according to the basic view angle in combination with a preset transformation relationship, to obtain a two-dimensional image includes:
creating a virtual window, wherein the size of the virtual window is the same as the size of the image to be output;
adding the set of volume data to the virtual window as display data;
setting a corresponding camera view angle for the display data according to the basic view angle and the preset transformation relation;
and drawing window textures in the virtual window according to the shooting visual angle and the display data to obtain the two-dimensional image.
In an embodiment of the present disclosure, drawing and displaying the two-dimensional image and the adjusted partial image in the virtual window according to the relative position includes:
replacing the adjusted local image and the two-dimensional image according to the relative position of the description information and the DICOM image, and drawing on the pixel points of the relative position by utilizing the adjusted local image;
and rendering and displaying the drawn image of the virtual window.
Another embodiment of the present disclosure also provides an apparatus for processing DICOM data, including:
the acquisition module is used for acquiring DICOM data displayed by a current window and a basic view angle of the window, wherein the DICOM data comprises DICOM images and description information;
the segmentation module is used for segmenting the description information in the DICOM data to obtain at least one local image corresponding to the description information;
the reconstruction module is used for carrying out multi-plane reconstruction on the DICOM image according to the basic view angle and a preset transformation relation to obtain a two-dimensional image;
the scaling module is used for scaling and adjusting the local image according to a preset scaling ratio to obtain an adjusted local image;
and the drawing module is used for drawing and displaying the two-dimensional image and the adjusted local image in the virtual window according to the relative position, and outputting the image displayed in the virtual window.
(III) beneficial effects
The beneficial effects of the present disclosure are: according to the method and the device for processing the DICOM data, on one hand, when the DICOM image is browsed, the local image corresponding to the description information is independently zoomed after being segmented with the DICOM image, and then the DICOM image is fused with the original DICOM image, so that details of the original data can be kept, local deformation caused by forcibly zooming the image according to the size of a window is avoided, and the problem that the analysis and diagnosis of doctors are influenced due to the image deformation is solved; on the other hand, the two-dimensional image is combined with the adjusted image to be drawn and displayed in the virtual window, the description information can be scaled according to the setting during display, the displayed information is reduced, the shielding of the image information is reduced, and the output image is optimized.
Drawings
FIG. 1 is a flow chart of a method for processing DICOM data according to one embodiment of the present disclosure;
FIG. 2 is a schematic diagram of an image displayed by a window according to an embodiment of the present invention;
FIG. 3 is a flowchart of step S150 according to an embodiment of the present invention;
FIG. 4 is a flowchart showing the processing of DICOM data in conjunction with the image of FIG. 2;
FIG. 5 is a schematic diagram of display data obtained according to an embodiment of the invention;
FIG. 6 is a diagram illustrating information according to an embodiment of the invention;
FIG. 7 is a partial image corresponding to the block 2 of FIG. 6 according to an embodiment of the present invention;
FIG. 8 is a partial image corresponding to the descriptor block 7 in FIG. 6 according to an embodiment of the present invention;
FIG. 9 is a schematic diagram of an image generated after fusing a partial image with the image of FIG. 6 according to an embodiment of the present invention;
FIG. 10 is a schematic diagram of an apparatus for processing DICOM data according to another embodiment of the disclosure;
fig. 11 is a schematic diagram of a computer system of an electronic device according to an embodiment of the disclosure.
Detailed Description
For a better explanation of the present disclosure, for ease of understanding, the present disclosure is described in detail below by way of specific embodiments in conjunction with the accompanying drawings.
All technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure belongs. The terminology used in the description of the disclosure herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The term "and/or" as used herein includes any and all combinations of one or more of the associated listed items.
Based on the prior art, when the currently browsed DCIOM image is stored and output in the DICOM browsing process, only the screenshot of the current window can be stored, and the content and the relative size of the descriptive information displayed by the image window cannot be modified, but when the image is output in a printing function or reporting mode, the size of the descriptive information generally needs to be changed, and even if the interpolation algorithm is used for processing, the local deformation of the image can be inevitably generated, so that the analysis and diagnosis results of doctors are influenced. The present invention thus provides a method and apparatus for processing DICOM data, as described in detail below:
fig. 1 is a flowchart of a method for processing DICOM data according to an embodiment of the disclosure, as shown in fig. 1, specifically including the following steps:
as shown in fig. 1, in step S110, DICOM data displayed in a current window and a base view angle of the window are acquired, where the DICOM data includes a DICOM image and description information;
as shown in fig. 1, in step S120, the description information in the DICOM data is segmented to obtain at least one partial image corresponding to the description information;
as shown in fig. 1, in step S130, the DICOM image is reconstructed in a multi-plane manner according to the basic view angle and a preset transformation relationship, so as to obtain a two-dimensional image;
as shown in fig. 1, in step S140, scaling adjustment is performed on the local image according to a preset scaling ratio, so as to obtain an adjusted local image;
as shown in fig. 1, in step S150, the two-dimensional image and the adjusted partial image are drawn and displayed in a virtual window according to the relative position, and the image displayed in the virtual window is output.
The specific implementation of the steps of the embodiment of fig. 1 is described in detail below:
in step S110, DICOM data of the current window display and a base view angle of the window are acquired.
In an embodiment of the present disclosure, the DICOM data includes a DICOM image and description information, where the description information is mainly used for storing information related to the medical image. After loading DICOM data in this step, the method further includes: and acquiring a volume data set formed by pixel points in all the DICOM images, wherein the volume data set comprises the space coordinates, the volume data size and the volume data number from the first DICOM image to the central position of the first pixel at the upper left corner.
For example, the browsing software loads local DICOM data by selecting a folder. The DICOM data is loaded, a DICOM image is analyzed in the loading process, and three-dimensional space information of a DICOM image volume data set is stored. The volume data is usually obtained by scanning by CT and other instruments and then stored on the pixel points of the picture, the volume data consists of voxels, the voxels are basic volume elements, and the three-dimensional space information of the volume data set is the arrangement information and the color information of the voxels in the three-dimensional space. Fig. 2 is a schematic diagram of an image displayed by a window in step S110 according to an embodiment of the present invention.
In addition, since the DICOM image is displayed in the window, the viewing angle of the window at that time is taken as the base viewing angle, and the subsequent viewing angle transformation is also performed by taking the base viewing angle at that time as the original angle.
In step S120, the description information in the DICOM data is segmented to obtain at least one partial image corresponding to the description information.
In an embodiment of the present disclosure, the description information and the DICOM image need to be separated, where the relative positions of the description information and the DICOM image may be: the left upper part, the upper right part, the right lower part, the lower right part, the lower left part and the left part have 8 different orientations. When the DICOM image is segmented, the segmentation can be performed on the basis of the segmentation, namely, the description information in the DICOM data is segmented according to the relative position with the DICOM image; the segmented descriptive information tile at a later relative orientation is then taken as a partial image.
In an embodiment of the present disclosure, after the dividing, it is further required to determine how the size of each of the descriptor tiles is defined, so that after obtaining at least one partial image corresponding to the descriptor, it further includes: the width and the height occupied by the description information positioned at the periphery and four corners of the DICOM image window are calculated by taking pixels as units.
Because the description information is divided into a plurality of cases, one line of characters and a plurality of lines of characters, when the description information block comprises one line of characters, the pixel height of the characters is used as the height of the local image, and the pixel length of the characters is used as the width of the local image; when the descriptive information block comprises a plurality of lines of characters, the pixel height of the characters is taken as the height of the local image, and the maximum value of the pixel length in the plurality of lines of characters is taken as the width of the local image.
Based on the above, the tile is described as the width and height of the partial image based on the determined width and height, and the pixel value of the width and height is scaled as the original.
In step S130, the DICOM image is reconstructed in a multi-plane manner according to the basic view angle and a preset transformation relationship, so as to obtain a two-dimensional image.
In an embodiment of the present disclosure, the manner in which the multi-planar reconstruction is performed in this step includes at least one of scaling, translation, rotation, and window-width-window-level adjustment.
In an embodiment of the disclosure, the preset transformation relationship includes:
according to the three-dimensional space transformation rule, determining a Matrix transformation relation Matrix as follows:
matrix transformation relation Matrix = translation Matrix x scaling Matrix x rotation Matrix;
and taking the Matrix transformation relation Matrix as a transformation relation Matrix of the relative coordinates of the base view angle and the DICOM image.
In an embodiment of the present disclosure, the step further includes:
and after the window width and window level of the DICOM image are adjusted, if the color information of the DICOM image is changed, acquiring an adjusted window width and window level value.
The window width is the range of CT values displayed by the CT image, the width of the window width directly influences the definition and the contrast of the image, and the smaller the window width is, the smaller the displayed CT value range is, the stronger the contrast is, so that the method is suitable for observing tissue structures with relatively close density; on the contrary, the wider the window width is, the larger the displayed CT value range is, the worse the contrast is, and the method is more suitable for observing tissue structures with larger density differences. The window level (window center) refers to the average value or the center value in the window width range, so that if the window width window level is adjusted once, the color of the DICOM image is also necessarily changed correspondingly, and therefore, the adjusted window width window level value needs to be recorded in the step so as to record the color.
In step S140, the local image is scaled according to a preset scaling ratio, so as to obtain an adjusted local image.
In an embodiment of the present disclosure, since in the prior art, when the currently browsed DCIOM image is to be saved and output during DICOM browsing, only the current window screenshot can be saved, and the saved image can be used for a printing function or be output in the form of a report. However, the image stored in this way is in a visible and instant form, the size of the image is determined according to the size of the window, the size of the displayed image cannot be modified, if scaling of the size of the image is forced, interpolation algorithm is needed to process, and therefore local deformation of the image is inevitably generated, and the analysis and diagnosis results of doctors are affected. Based on this problem, the present embodiment is based on the foregoing steps to divide the local image from the DICOM image, and further, the size of the divided local image may be adjusted according to a preset scaling ratio, so that the adjusted local image (such as azimuth information, patient name, etc.) may not be scaled with the DICOM image, so as to reduce the occlusion of the local image to the image and reduce the visible range of non-important information.
Further, since the segmented partial images in the embodiment generally represent different types of description information, when the preset scaling is set, the scaling of the same or different sizes can be set for different partial images according to the requirement.
In step S150, the two-dimensional image and the adjusted partial image are drawn and displayed in a virtual window according to the relative position, and the image displayed in the virtual window is output.
Fig. 3 is a flowchart of step S150 in an embodiment of the present invention, which specifically includes the following steps:
in step S301, a virtual window is created, wherein the size of the virtual window is the same as the size of the image to be output.
In step S302, the set of volume data is added to the virtual window as display data.
In step S303, a corresponding camera view angle is set for the display data according to the base view angle and the preset transformation relationship.
In step S304, a window texture is drawn in the virtual window according to the imaging view angle in combination with the display data, so as to obtain the two-dimensional image.
Based on the above steps, a projection relationship is established according to the three-dimensional space projection principle in computer graphics, and a reconstruction method is realized according to multi-planar reconstruction (MPR). The MPR can superimpose all axial images in the scanning range and then recombine the coronal, sagittal and any angle oblique images of the tissues appointed by the recombination lines marked by some marking lines, can generate new tomographic images at will without repeated scanning, and can develop and display the growth of curved objects in one image if curved surface recombination is performed. When the output image is as long as Width pixels and as high as Height pixels, calculating all pixel values of Width multiplied by Height pixels in the actual corresponding DICOM image of the output image by utilizing the position information, visual angle information, scaling relation and the like of the image, setting color mapping information for the pixel values, and forming a two-dimensional image by the pixel set processed by the above steps
In an embodiment of the present disclosure, drawing and displaying the two-dimensional image and the adjusted partial image in the virtual window according to the relative position includes:
replacing the adjusted local image and the two-dimensional image according to the relative position of the description information and the DICOM image, and drawing on the pixel points of the relative position by utilizing the adjusted local image;
and rendering and displaying the drawn image of the virtual window.
Based on the above, taking the image shown in fig. 2 as an example, fig. 4 is a specific flowchart for processing DICOM data in combination with the image shown in fig. 2, and includes the following steps:
and step S1, loading DICOM data by browsing software.
And S2, obtaining DICOM data three-dimensional information.
And S3, displaying DICOM data and acquiring a basic visual angle.
Next, the window image is subjected to transformation processing, mainly for DICOM image and description information division, and then is subjected to separate processing.
And S4, performing image transformation operation.
The window width window level adjustment method can perform operations such as zooming, translation, rotation and window width window level adjustment on images in the window. After the above operation, the content of the data displayed in the window will be changed, and the operations of zooming, translating, rotating, etc. will be performed on the image, so that the viewing angle of the window will be changed, that is, the relative position of the image and the viewpoint of viewing the image will be changed by the above operation. And recording a Matrix of the relative coordinate transformation relation between the changed viewpoint and the image.
In this step, a translation operation is taken as an example: setting the coordinate of a pixel A in the three-dimensional space as (X, Y, Z), translating the pixel point a units in the X direction, b units in the Y direction and c units in the Z direction, and setting the new coordinate of the moved pixel A as (X) 1 ,Y 1 ,Z 1 ):
According to the three-dimensional space transformation rule, multiplying all the transforms according to steps to obtain a total transformation matrix: matrix transformation relation Matrix = translation Matrix x scaling Matrix x rotation Matrix; the Matrix transformation Matrix is a relative coordinate transformation relation Matrix of the view point and the image, wherein one or more of translation, scaling and rotation can be selected.
Step S5, the size of the descriptive information block is obtained.
And S6, setting DICOM image output parameters.
In this step, based on the data saving operation performed in steps S4 and S5, the saving output parameters may be set through the operation interface of the software, for example, the name of the generated DICOM image, the length and width pixel values of the DICOM image, the scaling percentage value of the image description information, the saving path of the DICOM image, and other relevant information.
Next, still the DICOM image (steps S7 and S8) and the description information are processed (steps S9 and S10), respectively, as follows:
and S7, creating a virtual window and setting the size of the window.
In this step, the virtual window is set according to the parameters set in S6.
And S8, setting display data.
And setting a volume data set formed by pixel points of the DICOM image into a window, and recording the position information of the current image by using the volume data set as display data and a coordinate transformation matrix of the current window.
Creating a virtual OpenGL window, setting the size of the window to be consistent with the size of a stored image, setting a volume data set formed by pixel points of a DICOM image into the window as display data, and setting a camera view angle by using a recorded viewpoint and an image transformation matrix.
Fig. 5 is a schematic diagram of display data obtained in an embodiment of the invention.
And S9, hiding the image, and enabling the image display window to display only the image description information.
Fig. 6 is a schematic diagram of description information in an embodiment of the present invention, the pixel value of the display data is temporarily set to 0, at this time, all DIOCM images in the window are empty, the window completely displays the background, and the window image at this time is intercepted, which is the information description image. The 8 positions describing the information tiles are shown in fig. 6.
And S10, intercepting a partial image according to the size of the descriptive information block.
In the step, the occupied length and height of the image window periphery and the four-corner description information block are calculated, and the size of a rectangular bounding box of a text description block is obtained by taking pixels as units, namely W is H. The text description information block calculates the width and height of the text description information block, records the text description information block, and takes the recorded text description information block as the original scaling.
And intercepting a local image with a corresponding position and a corresponding size on the information description image according to the width and the height of the recorded text description information block. Fig. 7 is a partial image corresponding to the description information block 2 in fig. 6 according to an embodiment of the present invention, and fig. 8 is a partial image corresponding to the description information block 7 in fig. 6 according to an embodiment of the present invention. Scaling the partial image by a percentage according to the set description information,
and S11, performing offline rendering image combination, and replacing window textures to be drawn of the virtual window by using the scaled local images.
The window lines to be drawn according to the OpenGL virtual window shown in fig. 6 are images after the size is changed. Setting the color mapping information recorded in step S3 (recorded in the form of window width bed) to the display data, and assigning pixel values of corresponding position points to pixel values on the local image in an alternative manner to obtain fig. 9, where fig. 9 is a schematic diagram of an image generated after the local image is fused with the image in fig. 6 in an embodiment of the present invention. The pictures of fig. 2, 5, 6, 7, 8, and 9 have black frame lines added to enable distinction of picture boundaries, but the frame lines are not present in an actual image.
And step S12, outputting and storing the finally generated image to be rendered of the virtual OpenGL window as a DICOM image, naming the generated image according to the DICOM image name input in the step S6, and storing the DICOM image under the DICOM storage path set in the step S6. .
And S13, cleaning all use and creation resources of the virtual OpenGL window, and closing the virtual OpenGL window.
Through the steps, DICOM data in the browsing window can be output as an image with a specific size on the basis of guaranteeing data values as much as possible by utilizing the original data.
Furthermore, the method can be also applied to multi-mode fusion data. When the window display data are multi-mode data, that is, the displayed data are two sets of data to be fused, only three-dimensional space information of the two sets of data is needed to be saved in the step S2, and a color mapping lookup table of the fused data is needed to be saved, when the display data are set in the step S8, the display data in the virtual window are set according to the sequence of loading the two sets of data by software, after the setting is completed, the color mapping lookup table is set on the second set of data, other steps are not needed to be changed, and the method is similar to the single-mode data method steps and is not repeated herein.
It should be noted that, in this embodiment, the output image is the data to be rendered acquired in the virtual window, so the output image may be output as different format types according to the need.
Based on the above steps, the present disclosure establishes a DICOM image processing and outputting method mechanism and method, first, obtains a DIOCM image displayed by a current window: in the image browsing process, if the browsed DICOM image is required to be output and stored, window view port information of the image to be output and stored is obtained, and spatial position information of the currently displayed image is recorded, so that relevant attributes such as output image size, scaling, color mapping configuration information and the like are set when the output image is generated. Next, the description information of the displayed DICOM image is acquired: and hiding the data information of the window, and acquiring an information image with only image information. And cutting the information image, namely cutting the information of each block along the maximum text bounding box to form one or more partial images. And correlating the relative position information of all the local information with the local image information, and recording the relative position information and the local image information for re-layout of the image description information when generating the output image. Finally, an output image is constructed: a projection relation is established according to a three-dimensional space projection principle in computer graphics, and a reconstruction method is realized according to multi-plane reconstruction (MPR). When the output image is required to be longer than Width pixels and higher than Height pixels, calculating all pixel values of Width multiplied by Height pixels in the actual corresponding DICOM image of the output image by utilizing the position information, the visual angle information, the scaling relation and the like of the image, setting color mapping information for the pixel values, and forming a two-dimensional image by the pixel set processed by the above steps. Scaling the local image according to the set scaling ratio, fusing the local image with the generated two-dimensional image according to the position of the local image relative to the original image, generating a new image, generating an image with a corresponding format according to the required output format, and storing the image in a specified path
In summary, by adopting the method for processing DICOM data provided by the embodiment of the present disclosure, on one hand, when browsing DICOM images, after the local image corresponding to the description information is separately scaled after being segmented with the DICOM image, the local image is then fused with the original DICOM image, so that details of the original data can be maintained, local deformation generated by scaling the image forcibly according to the window size is avoided, and the problem that the analysis and diagnosis of doctors are affected due to the image deformation is solved; on the other hand, the two-dimensional image is combined with the adjusted image to be drawn and displayed in the virtual window, the description information can be scaled according to the setting during display, the displayed information is reduced, the shielding of the image information is reduced, and the output image is optimized.
In correspondence with the above method, fig. 10 is a schematic diagram of an apparatus for processing DICOM data according to another embodiment of the disclosure, where, as shown in fig. 10, the apparatus 100 includes: an acquisition module 110, a segmentation module 120, a reconstruction module 130, a scaling module 140, and a rendering module 150.
The obtaining module 110 is configured to obtain DICOM data displayed in a current window and a base view angle of the window, where the DICOM data includes a DICOM image and description information; the segmentation module 120 is configured to segment the description information in the DICOM data to obtain at least one local image corresponding to the description information; the reconstruction module 130 is configured to perform multi-plane reconstruction on the DICOM image according to the basic view angle in combination with a preset transformation relationship, so as to obtain a two-dimensional image; the scaling module 140 is configured to perform scaling adjustment on the local image according to a preset scaling ratio, so as to obtain an adjusted local image; the drawing module 150 is configured to draw and display the two-dimensional image and the adjusted local image in a virtual window according to a relative position, and output an image displayed in the virtual window.
In summary, the technical effects of the apparatus for processing DICOM data provided by the embodiments of the present disclosure are referred to as the technical effects of the above method, and are not described herein.
Referring now to FIG. 11, there is illustrated a schematic diagram of a computer system 1100 suitable for use in implementing an electronic device of an embodiment of the present invention. The computer system 1100 of the electronic device shown in fig. 11 is merely an example, and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 11, the computer system 1100 includes a Central Processing Unit (CPU) 1101, which can execute various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 1102 or a program loaded from a storage section 1108 into a Random Access Memory (RAM) 1103. In the RAM 1103, various programs and data required for system operation are also stored. The CPU 1101, ROM 1102, and RAM 1103 are connected to each other by a bus 1104. An input/output (I/O) interface 1105 is also connected to bus 1104.
The following components are connected to the I/O interface 1105: an input section 1106 including a keyboard, a mouse, and the like; an output portion 1107 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 1108 including a hard disk or the like; and a communication section 1109 including a network interface card such as a LAN card, a modem, and the like. The communication section 1109 performs communication processing via a network such as the internet. The drive 1110 is also connected to the I/O interface 1105 as needed. Removable media 1111, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like, is installed as needed in drive 1110, so that a computer program read therefrom is installed as needed in storage section 1108.
In particular, according to embodiments of the present invention, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from a network via the communication portion 1109, and/or installed from the removable media 1111. The above-described functions defined in the system of the present application are performed when the computer program is executed by a Central Processing Unit (CPU) 1101.
The computer readable medium shown in the present invention may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present invention may be implemented by software, or may be implemented by hardware, and the described units may also be provided in a processor. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
As another aspect, the present application also provides a computer-readable medium that may be contained in the electronic device described in the above embodiment; or may exist alone without being incorporated into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to implement the online platform data transmission method as described in the above embodiments.
For example, the electronic device may implement the method as shown in fig. 1: step S110, obtaining DICOM data displayed by a current window and a basic view angle of the window, wherein the DICOM data comprises DICOM images and description information; step S120, dividing the description information in DICOM data to obtain at least one local image corresponding to the description information; step S130, carrying out multi-plane reconstruction on the DICOM image according to a basic view angle and a preset transformation relation to obtain a two-dimensional image; step S140, scaling and adjusting the local image according to a preset scaling ratio to obtain an adjusted local image; and step S150, drawing and displaying the two-dimensional image and the adjusted local image in the virtual window according to the relative position, and outputting the image displayed by the virtual window.
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, and includes several instructions to cause a computing device (may be a personal computer, a server, a touch terminal, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method of processing DICOM data, comprising:
obtaining DICOM data displayed by a current window and a basic view angle of the window, wherein the DICOM data comprises DICOM images and description information;
dividing the description information in the DICOM data to obtain at least one partial image corresponding to the description information;
carrying out multi-plane reconstruction on the DICOM image according to the basic view angle and a preset transformation relation to obtain a two-dimensional image;
scaling and adjusting the local image according to a preset scaling proportion to obtain an adjusted local image;
and drawing and displaying the two-dimensional image and the adjusted local image in the virtual window according to the relative position, and outputting the image displayed by the virtual window.
2. The method of processing DICOM data as set forth in claim 1, further comprising, after obtaining DICOM data for a current window display:
and acquiring a volume data set formed by pixel points in all the DICOM images, wherein the volume data set comprises the space coordinate, the volume data size and the volume data number of the central position of the first pixel in the upper left corner of the first DICOM image.
3. The method of claim 1, wherein segmenting the description information in the DICOM data to obtain at least one partial image corresponding to the description information comprises:
dividing the description information in the DICOM data according to the relative position with the DICOM image;
the segmented descriptive information block in a relative orientation is used as a partial image.
4. The method of processing DICOM data as set forth in claim 3, further comprising, after obtaining at least one partial image corresponding to the description information:
when the descriptive information block comprises a row of characters, taking the pixel height of the row of characters as the height of the local image and taking the pixel length of the row of characters as the width of the local image;
when the descriptive information block comprises a plurality of rows of characters, the pixel height of the plurality of rows of characters is used as the height of the local image, and the maximum value of the pixel length in the plurality of rows of characters is used as the width of the local image.
5. The method of processing DICOM data of claim 1, wherein the manner of multi-planar reconstruction includes at least one of scaling, translation, rotation and window level adjustment.
6. The method of claim 5, wherein the predetermined transformation relationship comprises:
according to the three-dimensional space transformation rule, determining a Matrix transformation relation Matrix as follows:
matrix transformation relation Matrix = translation Matrix x scaling Matrix x rotation Matrix;
the Matrix transformation relation Matrix is a transformation relation Matrix of the relative coordinates of the base view angle and the DICOM image.
7. The method of processing DICOM data as set forth in claim 6, further comprising:
and after the window width and window level of the DICOM image are adjusted, if the color information of the DICOM image is changed, acquiring an adjusted window width and window level value.
8. The method of claim 2, wherein performing a multi-planar reconstruction of the DICOM image in accordance with the base view in combination with a predetermined transformation relationship to obtain a two-dimensional image comprises:
creating a virtual window, wherein the size of the virtual window is the same as the size of the image to be output;
adding the set of volume data to the virtual window as display data;
setting a corresponding camera view angle for the display data according to the basic view angle and the preset transformation relation;
and drawing window textures in the virtual window according to the visual angle of the camera and the display data, and obtaining the two-dimensional image.
9. The method of processing DICOM data as recited in claim 8, wherein rendering and displaying the two-dimensional image and the adjusted partial image in a virtual window according to relative positions comprises:
replacing the adjusted local image and the two-dimensional image according to the relative position of the description information and the DICOM image, and drawing on the pixel points of the relative position by utilizing the adjusted local image;
and rendering and displaying the drawn image of the virtual window.
10. An apparatus for processing DICOM data, comprising:
the acquisition module is used for acquiring DICOM data displayed by a current window and a basic view angle of the window, wherein the DICOM data comprises DICOM images and description information;
the segmentation module is used for segmenting the description information in the DICOM data to obtain at least one local image corresponding to the description information;
the reconstruction module is used for carrying out multi-plane reconstruction on the DICOM image according to the basic view angle and a preset transformation relation to obtain a two-dimensional image;
the scaling module is used for scaling and adjusting the local image according to a preset scaling ratio to obtain an adjusted local image;
and the drawing module is used for drawing and displaying the two-dimensional image and the adjusted local image in the virtual window according to the relative position, and outputting the image displayed in the virtual window.
CN201911398553.6A 2019-12-30 2019-12-30 Method and device for processing DICOM data Active CN111210898B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911398553.6A CN111210898B (en) 2019-12-30 2019-12-30 Method and device for processing DICOM data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911398553.6A CN111210898B (en) 2019-12-30 2019-12-30 Method and device for processing DICOM data

Publications (2)

Publication Number Publication Date
CN111210898A CN111210898A (en) 2020-05-29
CN111210898B true CN111210898B (en) 2023-08-01

Family

ID=70786524

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911398553.6A Active CN111210898B (en) 2019-12-30 2019-12-30 Method and device for processing DICOM data

Country Status (1)

Country Link
CN (1) CN111210898B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112820385A (en) * 2021-02-01 2021-05-18 赛诺联合医疗科技(北京)有限公司 Medical image browsing method, client and system
CN113823385B (en) * 2021-09-03 2024-03-19 青岛海信医疗设备股份有限公司 Method, device, equipment and medium for modifying DICOM image

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104361336A (en) * 2014-11-26 2015-02-18 河海大学 Character recognition method for underwater video images
CN106910210A (en) * 2017-03-03 2017-06-30 百度在线网络技术(北京)有限公司 Method and apparatus for generating image information
CN108962354A (en) * 2018-07-03 2018-12-07 成都市九阵科技有限公司 A kind of DICOM browsing image method
CN109360233A (en) * 2018-09-12 2019-02-19 沈阳东软医疗系统有限公司 Image interfusion method, device, equipment and storage medium
CN109635805A (en) * 2018-12-11 2019-04-16 上海智臻智能网络科技股份有限公司 Image text location method and device, image text recognition methods and device
CN109919146A (en) * 2019-02-02 2019-06-21 上海兑观信息科技技术有限公司 Picture character recognition methods, device and platform

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10002423B2 (en) * 2015-09-04 2018-06-19 Canon Kabushiki Kaisha Medical image processing apparatus, medical image processing method, and medical image processing system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104361336A (en) * 2014-11-26 2015-02-18 河海大学 Character recognition method for underwater video images
CN106910210A (en) * 2017-03-03 2017-06-30 百度在线网络技术(北京)有限公司 Method and apparatus for generating image information
CN108962354A (en) * 2018-07-03 2018-12-07 成都市九阵科技有限公司 A kind of DICOM browsing image method
CN109360233A (en) * 2018-09-12 2019-02-19 沈阳东软医疗系统有限公司 Image interfusion method, device, equipment and storage medium
CN109635805A (en) * 2018-12-11 2019-04-16 上海智臻智能网络科技股份有限公司 Image text location method and device, image text recognition methods and device
CN109919146A (en) * 2019-02-02 2019-06-21 上海兑观信息科技技术有限公司 Picture character recognition methods, device and platform

Also Published As

Publication number Publication date
CN111210898A (en) 2020-05-29

Similar Documents

Publication Publication Date Title
CN111192356B (en) Method, device, equipment and storage medium for displaying region of interest
US10692272B2 (en) System and method for removing voxel image data from being rendered according to a cutting region
US8928656B2 (en) Volume rendering using N-pass sampling
CN103325139B (en) Medical image-processing apparatus and medical image processing method
US10275930B2 (en) Combined intensity projection
US8244018B2 (en) Visualizing a 3D volume dataset of an image at any position or orientation from within or outside
US8659602B2 (en) Generating a pseudo three-dimensional image of a three-dimensional voxel array illuminated by an arbitrary light source by a direct volume rendering method
JPH08138078A (en) Image processing device
US20050237336A1 (en) Method and system for multi-object volumetric data visualization
CN111598989B (en) Image rendering parameter setting method and device, electronic equipment and storage medium
EP1634248B1 (en) Adaptive image interpolation for volume rendering
CN111210898B (en) Method and device for processing DICOM data
CN104968276A (en) Image processing device and region extraction method
US20220343589A1 (en) System and method for image processing
CN108022216B (en) System and method for reducing MPR artifact
JP4668289B2 (en) Image processing apparatus and method, and program
CN114694805A (en) Medical image rendering method, device, equipment and medium
US9035945B1 (en) Spatial derivative-based ray tracing for volume rendering
CN106530386B (en) Method and system for volume rendering of medical images
JP7131080B2 (en) volume rendering device
JP6443574B1 (en) Ray casting program, search control data, search control data generation method, and ray casting apparatus
US20120007851A1 (en) Method for display of images utilizing curved planar reformation techniques
JP7223312B2 (en) volume rendering device
US20230064516A1 (en) Method, device, and system for processing medical image
CN114005513A (en) MIP projection CPU algorithm

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
GR01 Patent grant
GR01 Patent grant