<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\Image\vtkDICOMImageReader.cxx, line 270</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(0000020DC5E9CF70): There was a problem retrieving data from:
E:/Projects/mri/evaluate/Qt/ImageViewer/VTK/VTKtest/ReadDICOM/DICOMData/image.dcm<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"><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\ExecutionModel\vtkExecutive.cxx, line 784<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">vtkCompositeDataPipeline
(0000020DC5E45040): Algorithm vtkDICOMImageReader(0000020DC5E9CF70) returned
failure for request: vtkInformation (0000020DC5EF8AA0)</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<vtkDICOMImageReader> reader =</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<vtkDICOMImageReader>::New();</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>(inputFilename.c_str());</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<vtkImageViewer2> imageViewer =</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<vtkImageViewer2>::New();</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>SetInputConnection</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<vtkRenderWindowInteractor>renderWindowInteractor =</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<vtkRenderWindowInteractor>::New();</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>(renderWindowInteractor);</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>ResetCamera</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>();</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>