Hello,<br>
<br>
I am new to VTK and visualization in general. I am trying to extract a 2D<br>
slice from a 3D volume. The classes I use are as follows:<br>
<br>
vtkImageReader - reads the stack of 2D CT images<br>
vtkVolumeTextureMapper2D - Maps the volume<br>
<br>
in order to get a slice defined by a vtkPlane with origin and normal<br>
corresponding to the slice of interest, I use:<br>
<br>
    mapper = vtkImageResliceMapper::New();<br>
    mapper-&gt;SetInputConnection(<div id=":z8">reader-&gt;GetOuputPort());<br>
    mapper-&gt;SetSlicePlane(plane);<br>
<br>
    slice = vtkImageSlice::New();<br>
    slice-&gt;SetMapper(mapper);<br>
<br>
    renderer-&gt;AddViewProp(slice);<br>
<br>
I understand that the vtkImageSlice is a 3D prop and I tried using<br>
suggestions to change the position and focal point of the camera. However,<br>
this is still displayed in a 3D space. I need to display this as a 2D slice<br>
with a correct view (for oblique slices as well) and prevent the user from<br>
rotating the slice.<br>
<br>
Any help would be greatly appreciated!<br>
<br>
Sahithya<br>
</div>