資源簡(jiǎn)介
DICOM Viewer C#,可以打開查看DCM 文件,用于PACS開發(fā)
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Text;
using?System.Windows.Forms;
using?System.IO;
using?System.Collections;
using?System.Drawing;
using?System.Text.Regularexpressions;
namespace?DicomViewer
{
????class?DicomHandler
????{
????????string?fileName?=?““;
????????Dictionary?tags?=?new?Dictionary();//dicom文件中的標(biāo)簽
????????BinaryReader?dicomFile;//dicom文件流
????????//文件元信息
????????public?Bitmap?gdiImg;//轉(zhuǎn)換后的gdi圖像
????????UInt32?fileHeadLen;//文件頭長(zhǎng)度
????????long?fileHeadOffset;//文件數(shù)據(jù)開始位置
????????UInt32?pixDatalen;//像素?cái)?shù)據(jù)長(zhǎng)度
????????long?pixDataOffset?=?0;//像素?cái)?shù)據(jù)開始位置
????????bool?isLitteEndian?=?true;//是否小字節(jié)序(小端在前?、大端在前)
????????bool?isExplicitVR?=?true;//有無VR
????????//像素信息
????????int?colors;//顏色數(shù)?RGB為3?黑白為1
????????public?int?windowWith?=?0?windowCenter?=?0?/?2;//在未設(shè)定時(shí)?窗寬窗位為0
????????int?rows?cols;
????????public?void?readAndShow(TextBox?textBox1)
????????{
????????????if?(fileName?==?string.Empty)
?
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件????????120??2012-12-27?16:31??DicomViewer\app.config
?????文件??????93064??1999-06-05?09:18??DicomViewer\bin\Debug\color.dcm
?????文件?????526316??2012-10-30?15:50??DicomViewer\bin\Debug\CT.dcm
?????文件??????34304??2013-03-24?23:33??DicomViewer\bin\Debug\DicomViewer.exe
?????文件????????120??2012-12-27?16:31??DicomViewer\bin\Debug\DicomViewer.exe.config
?????文件??????50688??2013-03-24?23:33??DicomViewer\bin\Debug\DicomViewer.pdb
?????文件??????14328??2013-03-24?21:47??DicomViewer\bin\Debug\DicomViewer.vshost.exe
?????文件????????120??2012-12-27?16:31??DicomViewer\bin\Debug\DicomViewer.vshost.exe.config
?????文件????????490??2009-06-11?05:14??DicomViewer\bin\Debug\DicomViewer.vshost.exe.manifest
?????文件?????526598??2005-11-11?14:46??DicomViewer\bin\Debug\IM-0001-0002.dcm
?????文件??????24699??2013-03-24?23:33??DicomViewer\DicomHandler.cs
?????文件???????3950??2013-03-24?20:36??DicomViewer\DicomViewer.csproj
?????文件????????168??2013-03-24?20:34??DicomViewer\DicomViewer.csproj.user
?????文件????????911??2012-12-30?23:30??DicomViewer\DicomViewer.sln
????..A..H.?????19456??2013-03-25?14:27??DicomViewer\DicomViewer.suo
?????文件??????18809??2013-03-24?21:26??DicomViewer\Helpers.cs
?????文件???????5005??2013-03-23?01:01??DicomViewer\Main.cs
?????文件??????11721??2013-03-23?01:01??DicomViewer\Main.Designer.cs
?????文件??????14162??2013-03-23?01:01??DicomViewer\Main.resx
?????文件???????4066??2013-03-24?23:33??DicomViewer\obj\Debug\DicomViewer.csproj.FileListAbsolute.txt
?????文件????????846??2013-03-24?23:33??DicomViewer\obj\Debug\DicomViewer.csproj.GenerateResource.Cache
?????文件??????34304??2013-03-24?23:33??DicomViewer\obj\Debug\DicomViewer.exe
?????文件???????5964??2013-03-24?23:33??DicomViewer\obj\Debug\DicomViewer.Main.resources
?????文件??????50688??2013-03-24?23:33??DicomViewer\obj\Debug\DicomViewer.pdb
?????文件????????180??2013-03-24?23:33??DicomViewer\obj\Debug\DicomViewer.Properties.Resources.resources
?????文件????????471??2012-12-27?16:31??DicomViewer\Program.cs
?????文件???????1378??2012-12-27?11:29??DicomViewer\Properties\AssemblyInfo.cs
?????文件???????2872??2012-12-27?11:29??DicomViewer\Properties\Resources.Designer.cs
?????文件???????5612??2012-12-27?11:29??DicomViewer\Properties\Resources.resx
?????文件???????1096??2012-12-27?11:29??DicomViewer\Properties\Settings.Designer.cs
............此處省略13個(gè)文件信息
評(píng)論
共有 條評(píng)論