<div dir="ltr"><div><span style="color:rgb(0,0,0);font-family:"times new roman";font-size:medium">Hi, I am new to C# simpleITK and can't find much sample codes. I tried to read dicom image and display them in simpleITK. The dicom image was read without a problem. But got an exception when show. </span></div><div><span style="color:rgb(0,0,0);font-family:"times new roman";font-size:medium"><br></span></div><div><span style="color:rgb(0,0,0);font-family:"times new roman";font-size:medium">Any suggestion will be appreciated. </span></div><div><span style="color:rgb(0,0,0);font-family:"times new roman";font-size:medium"><br></span></div><div><span style="color:rgb(0,0,0);font-family:"times new roman";font-size:medium">Thanks.</span></div><div><span style="color:rgb(0,0,0);font-family:"times new roman";font-size:medium">Andy</span></div><div><span style="color:rgb(0,0,0);font-family:"times new roman";font-size:medium"><br></span></div><div><span style="color:rgb(0,0,0);font-family:"times new roman";font-size:medium"><br></span></div><div><span style="color:rgb(0,0,0);font-family:"times new roman";font-size:medium">//-------------code------------</span></div><div><div><font color="#000000" face="times new roman" size="3">using itk.simple;</font></div><div><font color="#000000" face="times new roman" size="3"><br></font></div><div><font color="#000000" face="times new roman" size="3">namespace TestReadDicom</font></div><div><font color="#000000" face="times new roman" size="3">{</font></div><div><font color="#000000" face="times new roman" size="3">    class Program</font></div><div><font color="#000000" face="times new roman" size="3">    {</font></div><div><font color="#000000" face="times new roman" size="3">        static void Main(string[] args)</font></div><div><font color="#000000" face="times new roman" size="3">        {</font></div><div><font color="#000000" face="times new roman" size="3">            var myreader = new ImageSeriesReader();</font></div><div><font color="#000000" face="times new roman" size="3">            var names = ImageSeriesReader.GetGDCMSeriesFileNames(@"E:\ImageSet_0.DICOM");</font></div><div><font color="#000000" face="times new roman" size="3">            myreader.SetFileNames(names);</font></div><div><font color="#000000" face="times new roman" size="3">            var image = myreader.Execute();</font></div><div><font color="#000000" face="times new roman" size="3">            VectorDouble imDim = image.GetOrigin();</font></div><div><font color="#000000" face="times new roman" size="3">            Console.WriteLine(imDim[0].ToString());</font></div><div><font color="#000000" face="times new roman" size="3">            SimpleITK.Show(image);</font></div><div><span style="color:rgb(0,0,0);font-family:"times new roman";font-size:medium">        }</span><br></div><div><font color="#000000" face="times new roman" size="3">    }</font></div><div><font color="#000000" face="times new roman" size="3">}</font></div></div><div><font color="#000000" face="times new roman" size="3"><br></font></div><div><span style="color:rgb(0,0,0);font-family:"times new roman";font-size:medium">//-------------output------------</span><font color="#000000" face="times new roman" size="3"><br></font></div><div><font color="#000000" face="times new roman" size="3"></font><div><font color="#000000" face="times new roman" size="3">Additional information: Exception thrown in SimpleITK Show: ..\..\..\..\..\SimpleITK\Code\IO\src\sitkShow.cxx:500:</font></div><div><font color="#000000" face="times new roman" size="3"><br></font></div><div><font color="#000000" face="times new roman" size="3">sitk::ERROR: Error in administrating child process: [The parameter is incorrect</font></div></div></div>