CUDA-based DICOM medical image dynamic nonlinear window modulation method
暂无分享,去创建一个
The invention discloses a CUDA-based DICOM medical image dynamic nonlinear window modulation method. The method comprises the steps of (1) reading DICOM image pixel value information and DICOM image tag information in DICOM-format images; (2) setting the window width and the window level of an image window, and using a nonlinear function for window modulation; (3) on the basis of a CUDA, adopting a parallel algorithm to calculate a mapping equation in nonlinear window modulation, and obtaining pixel data of a DIB image through calculation; (4) according to a pixel data set composed of the pixel data, obtained through calculation, of the DIB image, filling a bit image structural body with the tag information read in the step (1), and displaying the constructed bit image; (5) according to the displayed bit image, judging whether the window width and the window level of window modulation need to be reset or not is judged, and if the window width and the window level of window modulation need to be reset, executing the step (2) again. The image can be more delicately displayed through nonlinear window modulation, the image enhancement effect is achieved, the time for generating the DIB image is effectively shortened through CUDA-based parallel calculation, and the real-time performance is ensured.