<div dir="ltr">Hi,<div><br></div><div>I'm using itk::ImageToVTKImageFilter to connect itk::ImageFileReader with vtkImageViewer2.</div><div><br></div><div>I can visualize my image in QVTKWidget.</div><div><br></div><div>I'd like to access every frame, but vtkImageViewer2::getMaxSlice() is returning 0 every time.</div><div><br></div><div>I'm connecting the pipeline with:</div><div><br></div><div><pre style="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="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><br></div><div>I understand that in VTK 6 this is the way.</div><div><br></div><div>Could I access to every frame from VTK?</div><div><br></div><div>Thanks.</div></div>