我使用 ClearCanvas 库在运行时收到错误消息。这是错误
找不到文件“C:\Users\Don jar\documents\visual studio 2010\Projects\DICOMCA\DICOMCA\bin\Debug\Fluro.dcm”。
错误指向这部分代码:
theFile.Load(DicomReadOptions.Default);
我将不胜感激任何帮助。谢谢
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
string filename = "Fluro.dcm";
DicomFile theFile = new DicomFile(filename);
theFile.Load(DicomReadOptions.Default);
foreach (DicomAttribute attribute in theFile.DataSet)
{
Console.WriteLine("Tag: {0}, Value: {1}", attribute.Tag.Name, attribute.ToString());
}
}
}