一个开源的基于.net的dicom库


一个开源的基于.net的dicom库 自己重新编译过了,可以用,里面有 1 dicom库; 2 DicomScu(C-Store,C-Find,C-Move) 3 DicomPrintScp 等。
资源截图
代码片段和文件信息
// mDCM: A C# DICOM library
//
// Copyright (c) 2006-2008  Colby Dillion
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not write to the Free Software
// Foundation Inc. 59 Temple Place Suite 330 Boston MA  02111-1307  USA
//
// Author:
//    Colby Dillion (colby.dillion@gmail.com)

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Text;

using Dicom.Data;
using Dicom.Utility;

using NLog;
using NLog.Config;
using NLog.Targets;
using NLog.Win32.Targets;

namespace Dicom
{
public delegate void DebugOutputHandler(String msg);

public static class Debug
{
static Debug() {
GetStartDirectory();
}

private static Logger _log;

public static Logger Log {
get {
if (_log == null) {
_log = LogManager.GetLogger(“DICOM“);
}
return _log;
}
set {
_log = value;
}
}

public static void InitializeSyslogLogger(bool console) {
InitializeSyslogLogger(514 console);
}
public static void InitializeSyslogLogger(int port bool console) {
LoggingConfiguration config = new LoggingConfiguration();

SyslogTarget st = new SyslogTarget();
st.Port = port;
config.AddTarget(“Syslog“ st);

config.LoggingRules.Add(new LoggingRule(“*“ LogLevel.Debug st));

if (console) {
ColoredConsoleTarget ct = new ColoredConsoleTarget();
ct.Layout = “${message}“;
config.AddTarget(“Console“ ct);

config.LoggingRules.Add(new LoggingRule(“*“ LogLevel.Debug ct));
}

LogManager.Configuration = config;
}

public static void InitializeConsoleDebugLogger() {
LoggingConfiguration config = new LoggingConfiguration();

ColoredConsoleTarget ct = new ColoredConsoleTarget();
ct.Layout = “${message}“;
config.AddTarget(“Console“ ct);

config.LoggingRules.Add(new LoggingRule(“*“ LogLevel.Debug ct));

LogManager.Configuration = config;
}

private static string _startdir;
public static string GetStartDirectory() {
if (_startdir == null) {
_startdir = Process.GetCurrentProcess().StartInfo.WorkingDirectory;
if (String.IsNullOrEmpty(_startdir)) {
_startdir = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().Codebase);
_startdir = _startdir.Substring(6);
}
}
return _startdir;
}

public

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2010-07-12 08:28  dicomLib
     目录           0  2010-07-12 08:16  dicomLibBin
     目录           0  2010-07-12 08:16  dicomLibBinx64
     文件      139264  2007-12-19 15:40  dicomLibBinx64Aga.Controls.dll
     文件      120002  2008-02-16 19:55  dicomLibBinx64dicom.dic
     文件      757760  2008-07-23 18:48  dicomLibBinx64Dicom.dll
     文件      679424  2008-07-23 18:39  dicomLibBinx64Dicom.Jpeg.dll
     文件      202240  2008-07-23 18:38  dicomLibBinx64Dicom.Jpeg2000.dll
     文件       12800  2008-07-23 18:48  dicomLibBinx64Dicom.Linq.dll
     文件        3592  2007-12-19 15:39  dicomLibBinx64dicom.pem
     文件     1030667  2008-07-23 18:48  dicomLibBinx64Dicom.xml
     文件       43008  2008-07-23 18:48  dicomLibBinx64DicomDump.exe
     文件      106496  2008-07-23 18:48  dicomLibBinx64DicomPrintScp.exe
     文件       33280  2008-07-23 18:48  dicomLibBinx64DicomScu.exe
     文件      253952  2007-12-19 15:40  dicomLibBinx64NLog.dll
     文件      208827  2008-02-16 18:45  dicomLibBinx64private.dic
     目录           0  2010-07-12 08:16  dicomLibBinx86
     文件      139264  2007-12-19 15:40  dicomLibBinx86Aga.Controls.dll
     文件      120002  2008-02-16 19:55  dicomLibBinx86dicom.dic
     文件      758272  2008-07-23 18:38  dicomLibBinx86Dicom.dll
     文件      505344  2008-07-23 18:36  dicomLibBinx86Dicom.Jpeg.dll
     文件      149504  2008-07-23 18:36  dicomLibBinx86Dicom.Jpeg2000.dll
     文件       13312  2008-07-23 18:38  dicomLibBinx86Dicom.Linq.dll
     文件        3592  2007-12-19 15:39  dicomLibBinx86dicom.pem
     文件     1030667  2008-07-23 18:38  dicomLibBinx86Dicom.xml
     文件       43520  2008-07-23 18:38  dicomLibBinx86DicomDump.exe
     文件      107008  2008-07-23 18:38  dicomLibBinx86DicomPrintScp.exe
     文件       33792  2008-07-23 18:38  dicomLibBinx86DicomScu.exe
     文件      253952  2007-12-19 15:40  dicomLibBinx86NLog.dll
     文件      208827  2008-02-16 18:45  dicomLibBinx86private.dic
     文件        1181  2010-05-29 07:38  dicomLibchisc.net.txt
............此处省略962个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)