C#开发DICOM医学影像处理工具代码解析

需积分: 43 31 下载量 90 浏览量 更新于2024-11-19 1 收藏 29.5MB RAR 举报
资源摘要信息:"C#VS2010工具开发DICOM医学影像程序代码" 该资源提供了在Visual Studio 2010(VS2010)环境下,使用C#编程语言开发DICOM(Digital Imaging and Communications in Medicine,医学数字成像和通信)相关应用的示例代码。DICOM作为医疗影像领域广泛使用的国际标准,主要用于医学影像及设备信息的交换和通信。本资源以openjpeg开源库为基础,实现了对DICOM医学图像的浏览、传输等操作功能。 知识点详细说明: 1. C#编程语言:C#(读作“C Sharp”)是微软公司开发的一种面向对象的、运行于.NET框架之上的高级编程语言。它集成了.NET平台强大的功能,以及组件对象模型(COM)的能力。在本资源中,C#被用来编写与DICOM相关的处理逻辑和用户界面代码。 2. DICOM标准:DICOM是一种由医学成像设备和信息系统共同遵守的国际标准,用于控制医疗图像设备和管理医疗图像。它包含了图像的获取、存储、通信、打印和显示等多种功能,对于医疗图像的数据交换和共享至关重要。本资源的开发聚焦于该标准,使得生成的程序可以处理DICOM格式的医学影像。 3. openjpeg库:openjpeg是一个开源库,支持JPEG 2000标准。JPEG 2000是一种采用小波变换技术的图像压缩标准,相较于传统JPEG标准,它在保持图像质量的同时,提供了更高的压缩率。在医疗影像领域,JPEG 2000用于压缩高分辨率医学图像,以优化存储空间和网络传输。虽然JPEG 2000并非DICOM标准的唯一压缩方式,但本资源选择使用openjpeg作为压缩处理的底层库。 4. Visual Studio 2010(VS2010):这是微软公司发布的一款集成开发环境(IDE),用于开发C#、C++和其他.NET语言的应用程序。VS2010提供了一整套开发工具,包括编译器、调试器、设计器等,从而大幅提高开发效率和产品质量。本资源的代码可以在VS2010环境下编译运行,说明了其对老版本开发环境的兼容性。 5. DICOM Objects:在本资源的描述中提到“DicomObjects”,这可能是指使用DICOM标准中的对象和操作。DICOM对象模型包含了多种用于医学影像及相关数据的抽象概念,如图像、患者信息、设备数据等。通过这些对象模型,开发者可以创建各种符合DICOM标准的应用程序。 6. 医学影像的浏览、传输:本资源的主要功能包括对DICOM医学影像文件的浏览和传输。浏览功能允许用户在程序界面上查看DICOM图像,而传输功能则涉及到将图像从一个系统发送到另一个系统,例如从成像设备传输到医疗记录系统。这些功能对于医学影像的诊断、分析、共享和存储至关重要。 综上所述,该资源涵盖了使用C#在VS2010环境下,借助openjpeg库开发DICOM医学影像相关应用程序的各个方面。这对于那些需要进行医学影像处理和分析的开发者而言,是一个宝贵的实践案例。开发者可以利用本资源,了解如何在.NET平台上构建符合DICOM标准的医学影像处理工具,以及如何对医疗图像进行高效的压缩、存储和传输。
2017-02-16 上传
1引言................................................ ............................................................. ................................ 3 1.1结构............................................ ................................................. ............................................. 3 1.2支持的语言............................................... .................................................................... .......... .4 1.3使用COM对象模型的效果.......................................... ........................................................... 4 1.4 DicomObjects中的集合.............................................. .............................................................. 4 1.5 Dicom对象的DICOM数据表示........................................................................ ....................... 5 1.6解释和使用序列............................................. .......................................................................... 7 1.7私有属性............................................... .................................................................... ............... 7 2第一步 - 阅读,查看和写入DICOM文件................................................................... ............. 9 2.1您的第一个DICOM计划............................................. ............................................................. 9 2.2将映像写入磁盘............................................ ......................................................................... 10 3通过网络简单地发送和接收图像........................................ .................................................... 11 3.1发送图像.................................................. ................................................................ .............. 11 3.2接收图像............................................... ..................................................................... ............ 11 4查询/检索(SCU)........................................... .......................................................... .............. 13 4.1公共特性............................................... ................................................................... .............. 13 4.2 DoQuery ............................................... ................................................................................ . 14 4.3 GetImages ............................................... ............................................................................... 14 4.4 GetUsingMove ................................................ ........................................................................15 4.5 DoRawQuery ................................................ ...........................................................................15 4.6 MoveSync ................................................ ................................................................................15 4.7 MoveImages ................................................ ............................................................................15 4.8基于Dicom连接的Q / R方法........................................... ............................ ....... ......... ..... 15 5离线媒体............................................. ................................................. ..... ....... ........................17 5.1阅读............................................... ................................................. .......... ....... ....... ..............17 5.2创建................................................ ................................................. ....................................... 18 5.3更新............................................... ................................................. ........................................ 19 5.4乘以引用的目录记录............................................. ................................................................ 19 6打印............................................ ................................................. .............................................. 20 6.1使用DicomPrint打印.................................................. ........................................................... 20 6.2使用标准化操作打印............................................. ................................................................ 22 6.3将DICOM图像打印到Windows打印机.......................................... ..................................... 22 7将DICOM图像导出到其他格式........................................... .................................................... 23 7.1单帧............................................... ................................................. ........................................ 23 7.2多帧图像/电影........................................... ............................................................................. 23 7.3非文件导出............................................. ...................................................................... ......... 23 8高级图像审查站............................................. ........................................................................... 24 8.1基本查看控件................................................ ......................................................................... 24 8.2多帧(电影)图像.......................................... ....................................................................... 24 8.3注释............................................ ................................................. ........................................... 25 8.4查找表............................................... ................................................. .................................... 28 8.5 DICOM灰度呈现状态............................................. ................................................................ 28 8.6显示速度优化................................................ ......................................................................... 29 9网络使用............................................... ......................................................... ........................... 31 9.1在Web服务器上运行DicomObjects . .... .......................................... ................................... 31 9.2在Web客户端上运行DicomObjects .......... .... .................................. .................................. 33 10写路由器/修改器.................................. .... .... .............. ...................................................... ... 35 11编写DICOM服务器............................................. ................................................................ ... 36 11.1聆听协会的对象........................................... ........................................................................ 36 11.2验证协会............................................... ................................................................................ 37 11.3处理C-STORE操作............................................ ................................................................... 37 11.4处理查询/检索请求............................................ ................................................................. 38 11.5处理C-ECHO请求............................................ .................................................................... 42 11.6传输语法和质量问题............................................ ............................................................... 42 11.7性能和可靠性问题............................................. .................................................................. 43 11.8模态WorkList SCP .............................................. .................................................................. 44 11.9打印SCP ............................................... ................................................. .............................. 44 11.10存储承诺SCP ................................................ ..................................................................... 45 12访问和修改像素数据............................................ .................................................................. 46 12.1原始指针的语言............................................. ...................................................................... 46 12.2使用变量数组的语言............................................. .............................................................. 47 13创建DICOM图像.............................................. .................................................................. ... 48 13.1导入其他格式................................................ ....................................................................... 48 13.2导入多帧图像.................................................. ..................................................................... 49 13.3从划痕............................................... ................................................................... ............... 50 14使用模态WorkList作为SCU ........................................... ...................................................... 52 15语言特定功能.............................................. ............................................................................ 53 15.1 Visual Basic ............................................... .................................................. ......................... 53 15.2 VBScript ................................................ ................................................. .............................. 53 15.3应用程序的Visual Basic(例如MS Access)........................................ ............................. 53 15.4 Microsoft Visual C ++ ................................................ ........................................................ ... 53 15.5 Borland Delphi和Borland C ++ Builder ........................................... .................................... 55 15.6 Java ................................................ ................................................. ..................................... 56 15.7其他环境............................................... ................................................. .............................. 56 16日志记录................................................ ................................................. ................................ 57 16.1日志详细信息和级别............................................. ........................................................... .. 57 16.2文件记录............................................... ................................................. .............................. 57 16.3 DicomLog控制................................................ ...................................................................... 58 17高级使用............................................... ................................................. ................................. 59 17.1超车注册表值............................................ ........................................................................... 59 17.2更改默认SOP类的列表.......................................... ............................................................ 59 17.3传输语法选择.................................................. ..................................................................... 60 17.4私人SOP类................................................ .................................................................. ....... 61 17.5私有传输语法........................................................................................................................ 61 17.6存储承诺............................................... ............................................................................ ... 61