<div dir="ltr">Hi,<div><br></div><div>I have modified the vtkBorderWidget example which has a moving window to show<span style="font-size:12.666666984558105px;color:rgb(0,0,0);font-family:sans-serif;line-height:19.04166603088379px"> </span><span style="font-size:12.666666984558105px;color:rgb(0,0,0);font-family:sans-serif;line-height:19.04166603088379px">the region that is selected by </span>vtkBorderWidget. I am using VTK6.</div>
<div><br></div><div>As long as I use vtkJPEGReader, it works fine, but when I replace it with vtkDICOMImageReader to read a single file of DICOM, then the moving border does not show the exact region meaning that the region is a little off. </div>
<div><br></div><div>I think the problem comes from the following line of code:</div><div><br></div><div> imageClip->SetOutputWholeExtent( dicomReader->GetOutputInformation(0)->Get( vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT() ) );<br>
</div><div><br></div><div>Would you hint me why jpg works just fine but for dicom reader (with a single file) the border and selected area are a little off and do not match?<br></div><div><br></div><div>thanks</div><div>
sam</div>
<div><br></div><div><br></div><div>[1] <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/ImageClip">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/ImageClip</a></div></div>