<div>You can post a request to David Gobbi for his vtkDicomReader.<br><br></div>
 <span>
 </span>
<br>      在2017-06-29,"K O ranjith" <kor1581@gmail.com> 写道:
        <blockquote id="isReplyContent" style="padding-left:1ex; margin: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
        -----原始邮件-----<br>
        <b>发件人:</b>"K O ranjith" <kor1581@gmail.com> <br>
        <b>发送时间:</b>2017年06月29日 星期四<br>
        <b>收件人:</b>"Liu_tj" <tjlp@netease.com><br>
        <b>主题:</b>Re: [vtkusers] Error in opening dicom image using vtkDICOMImageReader<br>
<br><div dir="ltr"><div><div>Thanks for the solution..<br></div>It's working. one difference noted between<span style="font-family:Arial,sans-serif;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"> vtkDICOMImageReader vs </span>vtkDICOMReader is,  <span style="font-family:Arial,sans-serif;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">vtkDICOMImageReader set the window level & window width from the dicom metadata properly.<br></span></div><span style="font-family:Arial,sans-serif;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">But in case of </span><span style="font-family:Arial,sans-serif;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">vtkDICOMImageReader, have to manually set....<br></span></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 27, 2017 at 7:13 PM, Liu_tj <span dir="ltr"><<a href="mailto:tjlp@netease.com" target="_blank">tjlp@netease.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><pre style="margin-top:0px;margin-bottom:0px"><span style="font-size:14pt;font-family:"Times New Roman",serif"></span><span style="font-family:Arial,sans-serif;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">Actually vtkDICOMImageReader might fail to parse some DICOM files. As we know, </span><span style="font-family:Arial,sans-serif;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">current vtkDICOMImageReader</span></pre>version does not follow the complete DICOM standard. Maybe you can try vtkDICOMReader by David Gobbi.<br><br></div>
 <span>
 </span>
<br>      在2017-06-27,"K O ranjith" <<a href="mailto:kor1581@gmail.com" target="_blank">kor1581@gmail.com</a>> 写道:
        <blockquote id="m_5256765190910791999isReplyContent" style="padding-left:1ex;margin:0px 0px 0px 0.8ex;BORDER-LEFT:#ccc 1px solid">
        -----原始邮件-----<br>
        <b>发件人:</b>"K O ranjith" <<a href="mailto:kor1581@gmail.com" target="_blank">kor1581@gmail.com</a>> <br>
        <b>发送时间:</b>2017年06月27日 星期二<br>
        <b>收件人:</b>"vtkusers" <<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>><br>
        <b>主题:</b>[vtkusers] Error in opening dicom image using vtkDICOMImageReader<div><div class="h5"><br>
<br><div dir="ltr"><pre style="margin-top:0px;margin-bottom:0px"><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><br></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-family:"Times New Roman",serif;font-size:14pt">Hello,</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">
</p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-size:14pt;font-family:"Times New Roman",serif">While trying to open a mri dicom image using the ReadDICOM vtk example,   it
showing error in </span><span style="font-family:Arial,sans-serif;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">vtkDICOMImageReader</span>. T<span style="font-size:14pt;font-family:"Times New Roman",serif">he code properly working with
sample image file supplied with the example, but showing error while supplying
other dicom images as input. The dicom image file given as input  is perfect one, I have tested it with other
dicom viewers like RadiAnt.<span></span></span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">

</p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-size:14pt;font-family:"Times New Roman",serif">This is the error,</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">

</p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span style="font-size:12pt;font-family:Arial,sans-serif;color:red">ERROR:
In C:\VTK8s\VTK-8.0.0.rc1\IO\<wbr>Image\vtkDICOMImageReader.cxx, line 270</wbr></span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">
</p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span style="font-size:12pt;font-family:Arial,sans-serif;color:red">vtkDICOMImageReader(<wbr>0000020DC5E9CF70): There was a problem retrieving data from:
E:/Projects/mri/evaluate/Qt/<wbr>ImageViewer/VTK/VTKtest/<wbr>ReadDICOM/DICOMData/image.dcm<span></span></wbr></wbr></wbr></span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><br></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span style="font-size:12pt;font-family:Arial,sans-serif;color:red">ERROR:
In C:\VTK8s\VTK-8.0.0.rc1\Common\<wbr>ExecutionModel\vtkExecutive.<wbr>cxx, line 784<span></span></wbr></wbr></span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">

</p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span style="font-size:12pt;font-family:Arial,sans-serif;color:red">vtkCompositeDataPipeline
(0000020DC5E45040): Algorithm vtkDICOMImageReader(<wbr>0000020DC5E9CF70) returned
failure for request: vtkInformation (0000020DC5EF8AA0)</wbr></span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span style="font-size:12pt;font-family:Arial,sans-serif;color:red"> 
Debug: Off</span><span style="color:red;font-family:Arial,sans-serif;font-size:12pt"> </span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span style="font-size:12pt;font-family:Arial,sans-serif;color:red">Modified Time: 2365</span><span style="color:red;font-family:Arial,sans-serif;font-size:12pt"> </span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span style="font-size:12pt;font-family:Arial,sans-serif;color:red">Reference Count: 1</span><span style="color:red;font-family:Arial,sans-serif;font-size:12pt"> </span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span style="font-size:12pt;font-family:Arial,sans-serif;color:red">Registered Events: (none)</span><span style="color:red;font-family:Arial,sans-serif;font-size:12pt"> </span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span style="font-size:12pt;font-family:Arial,sans-serif;color:red">Request: REQUEST_DATA</span><span style="color:red;font-family:Arial,sans-serif;font-size:12pt"> </span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span style="font-size:12pt;font-family:Arial,sans-serif;color:red">FROM_OUTPUT_PORT: 0</span><span style="color:red;font-family:Arial,sans-serif;font-size:12pt"> </span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span style="font-size:12pt;font-family:Arial,sans-serif;color:red">FORWARD_DIRECTION: 0</span><span style="color:red;font-family:Arial,sans-serif;font-size:12pt"> </span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span style="font-size:12pt;font-family:Arial,sans-serif;color:red">ALGORITHM_AFTER_FORWARD: 1<span></span></span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">

</p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span style="font-size:12pt;font-family:Arial,sans-serif;color:red"><span> </span></span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">
</p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span style="font-size:12pt;font-family:Arial,sans-serif">And the code used is :</span><span style="color:red;font-family:Arial,sans-serif;font-size:12pt"> </span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">

</p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-size:14pt;font-family:"Times New Roman",serif;color:black">std::string inputFilename = "E:/mri/image.dcm"; </span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">

</p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-size:14pt;font-family:"Times New Roman",serif;color:black">  vtkSmartPointer<<wbr>vtkDICOMImageReader> reader =</wbr></span><span style="color:black;font-family:"Times New Roman",serif;font-size:14pt">    </span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="color:black;font-family:"Times New Roman",serif;font-size:14pt">vtkSmartPointer<<wbr>vtkDICOMImageReader>::New();</wbr></span><span style="color:black;font-family:"Courier New";font-size:10pt"> </span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">

</p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-size:14pt;font-family:"Times New Roman",serif;color:black">  reader-><i>SetFileName</i>(<wbr>inputFilename.c_str());</wbr></span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-size:14pt;font-family:"Times New Roman",serif;color:black">  reader-><i>Update</i>(); </span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">
</p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-size:14pt;font-family:"Times New Roman",serif;color:black">  vtkSmartPointer<<wbr>vtkImageViewer2> imageViewer =</wbr></span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-size:14pt;font-family:"Times New Roman",serif;color:black">    vtkSmartPointer<<wbr>vtkImageViewer2>::New();</wbr></span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">

</p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-size:14pt;font-family:"Times New Roman",serif;color:black">  imageViewer-><i>SetInputConnectio<wbr>n</wbr></i>(reader->GetOutputPort());</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">

</p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-size:14pt;font-family:"Times New Roman",serif;color:black">  vtkSmartPointer<<wbr>vtkRenderWindowInteractor><wbr>renderWindowInteractor =</wbr></wbr></span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-size:14pt;font-family:"Times New Roman",serif;color:black">    vtkSmartPointer<<wbr>vtkRenderWindowInteractor>::<wbr>New();</wbr></wbr></span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">
</p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-size:14pt;font-family:"Times New Roman",serif;color:black">  imageViewer-><i>SetupInteractor</i>(<wbr>renderWindowInteractor);</wbr></span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-size:14pt;font-family:"Times New Roman",serif;color:black">  imageViewer-><i>Render</i>();</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">
</p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-size:14pt;font-family:"Times New Roman",serif;color:black">  imageViewer-><i>GetRenderer</i>()-><i>Re<wbr>setCamera</wbr></i>();</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-size:14pt;font-family:"Times New Roman",serif;color:black">  imageViewer-><i>Render</i>();</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-size:14pt;font-family:"Times New Roman",serif;color:black"><br></span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-size:14pt;font-family:"Times New Roman",serif;color:black">  renderWindowInteractor-><i>Start</i>(<wbr>);</wbr></span><span style="font-size:12pt;font-family:"Times New Roman",serif;color:black"><span></span></span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-size:14pt;font-family:"Times New Roman",serif;color:black"><br></span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-size:14pt;font-family:"Times New Roman",serif;color:black"><br></span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-size:14pt;font-family:"Times New Roman",serif;color:black">Vtk version 8.0 used</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-size:14pt;font-family:"Times New Roman",serif;color:black">Please help to sort out the error</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">
</p></pre></div>
</div></div></blockquote></blockquote></div><br></div>
</blockquote>