[vtkusers] Difference in images displayed in vtkImageViewer2 and vtkResliceImageViewer

ram kor1581 at gmail.com
Wed Sep 20 09:09:25 EDT 2017


Hi,
More adetails about the question
In case of the vtkResliceImageViewer,
while connecting the dicom reader with vtkResliceImageViewer
with the api vtkResliceImageViewer ->SetInputData(m_vtkDcmRdr->GetOutput());
getting the distorted image display.
while connecting with vtkResliceImageViewer
->SetInputConnection(vtkDICOMReader ->GetOutputPort());
vtk showing error message "Use SetInputData instead.", but the images
displaying properly as like as vtkImageViewer2

In case of vtkImageViewer2,
both connections 
with the api vtkImageViewer2 ->SetInputData(m_vtkDcmRdr->GetOutput());
and  vtkImageViewer2 ->SetInputConnection(vtkDICOMReader ->GetOutputPort());   
giving same result and no error message.

Now, vtkResliceImageViewer displaying properly as like as vtkImageViewer2
while using SetInputConnection, but the  vtk  error message "Use
SetInputData instead." is there.
Can avoid this by down casting vtkResliceImageViewer?









--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html


More information about the vtkusers mailing list