<div dir="ltr"><span style="font-size:16px">Hi,</span><div style="font-size:16px"><br></div><div style="font-size:16px">I'm using itk::ImageToVTKImageFilter to connect itk::ImageFileReader with vtkImageViewer2.</div><div style="font-size:16px"><br></div><div style="font-size:16px">I can visualize my image in QVTKWidget.</div><div style="font-size:16px"><br></div><div style="font-size:16px">I don't know if I'm reading correctly with ITK to pass that to VTK:<br></div><div style="font-size:16px"><br></div><div style="font-size:16px">I'd like to access every frame, but vtkImageViewer2::getMaxSlice() is returning 0 every time.</div><div style="font-size:16px"><br></div><div style="font-size:16px">I'm connecting the pipeline with:</div><div style="font-size:16px"><br></div><div style="font-size:16px"><pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,0,0)">imageData</span><span style="color:rgb(0,0,0)">-></span><span style="font-style:italic;color:rgb(0,0,0)">DeepCopy</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(0,0,0)">connector</span><span style="color:rgb(0,0,0)">-></span><span style="color:rgb(0,0,0)">GetOutput</span><span style="color:rgb(0,0,0)">());</span></pre><pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,0,0)">imageViewer</span><span style="color:rgb(0,0,0)">-></span><span style="font-style:italic;color:rgb(0,0,0)">SetInputData</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(128,0,0)">imageData</span><span style="color:rgb(0,0,0)">);</span></pre></div><div style="font-size:16px"><br></div><div style="font-size:16px"><br></div><div style="font-size:16px">Any ideas?</div><div style="font-size:16px"><br></div><div style="font-size:16px">Thanks.</div></div>