image processing - Error from reading with ClearCanvas in DICOM file in C# and how to display the DICOM VCR tag -
i'm receiving error in runtime using clearcanvas libraries. here error
could not find file 'c:\users\don jar\documents\visual studio 2010\projects\dicomca\dicomca\bin\debug\fluro.dcm'.
the error points section of code:
thefile.load(dicomreadoptions.default);
i grateful help. thanks
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()); } } }
the filename parameter constructor dicomfile sets absolute path of dicomfile. set path dicom file in "picture" folder, mention.
the exception seeing caused fact gave relative path dicom file, , trying load in directory application located.
Comments
Post a Comment