<div dir="ltr"><div>I cheked the extent and it is correct in z from 0..11. Why can,t i scroll the vtkimagedata in the viewer?</div><div><br></div><div>Thanks<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El mar., 26 mar. 2019 a las 16:06, zandarina (<<a href="mailto:esmeralda.ruiz@alma3d.com">esmeralda.ruiz@alma3d.com</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear all,<br>
<br>
I have a question. I want to show using vtkResliceImageViewer the slices i<br>
have got from the reslicer<br>
filter. So i append in z the output and i call a fuction to show me the<br>
vtkImageData withh all the slices extracted from the reslicer filter. But my<br>
surprise is that only show one slice. But if i use the same<br>
vtkResliceImageViewer with the whole volume it works propertly. What can i<br>
do to show the slices obtained form the reslicer in the viewer.<br>
<br>
Thanks<br>
<br>
<br>
vtkImageAppend* append1 = vtkImageAppend::New();<br>
//Define Stack in Z<br>
append1->SetAppendAxis(2);<br>
<br>
...<br>
<br>
// done<br>
reslice->Update();<br>
<br>
<br>
//Append the slices into an image<br>
append1->AddInputData(reslice->GetOutput());<br>
append1->Update();<br>
<br>
image_paraxial = append1->GetOutput();<br>
<br>
vtkNew<vtkResliceImageViewer> image_viewer_;<br>
<br>
vtkNew<vtkGenericOpenGLRenderWindow> renderWindow;<br>
SetRenderWindow(renderWindow);<br>
<br>
image_viewer_->SetRenderWindow(renderWindow);<br>
image_viewer_->SetupInteractor(renderWindow->GetInteractor());<br>
<br>
//vtkSmartPointer<vtkImageData> image_data = vtkImageData::SafeDownCast(<br>
//scene.get_volume()->GetMapper()->GetInputDataObject(0, 0));<br>
<br>
image_viewer_->SetInputData(image_data);<br>
image_viewer_->SetSliceOrientationToXY();<br>
image_viewer_->SetSlice(1);<br>
image_viewer_->SetResliceModeToAxisAligned();<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html</a><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://vtk.org/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div>