<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>
<META content='"MSHTML 4.72.3110.7"' name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT color=#000000 size=2>Hi,</FONT></DIV>
<DIV><FONT color=#000000 size=2></FONT> </DIV>
<DIV><FONT color=#000000 size=2> I have a 3D dataset (extent
0-512,0-512,0-20) which I had shrunk usink vtkShrink3D. I got the extent as
0-63, 0-63, 0-8 as per my expectaions. But when I passed the data to
imageResliceFilter,it just made the extent bigger to 0-504,0-504,0-18.This
happens even if I have no transform function set for ImageReslice. Can anybody
please help me why this is happening and how to solve this. My code looks
something like this :</FONT></DIV>
<DIV><FONT color=#000000 size=2></FONT> </DIV>
<DIV><FONT size=2>Function(vtkImageData *data) {</FONT></DIV>
<DIV><FONT size=2></FONT><FONT color=#000000 size=2>
...</FONT></DIV>
<DIV><FONT color=#000000 size=2></FONT><FONT size=2>
...</FONT></DIV>
<DIV><FONT size=2> vtkReslice *reslice =
vtkReslice::New();</FONT></DIV>
<DIV><FONT size=2> reslice->SetInput(data);</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> vtkImageViewer *viewer =
vtkImageViewer::New();</FONT></DIV>
<DIV><FONT size=2>
viewer->setInput(reslice->GetOutput());</FONT></DIV>
<DIV><FONT size=2> viewer->Render();</FONT></DIV>
<DIV><FONT size=2> ...</FONT></DIV>
<DIV><FONT size=2> ...</FONT></DIV>
<DIV><FONT size=2>}</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>when I give data as the input to viewer I get the right result
, but with reslice the size is bigger.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Amit</FONT></DIV></BODY></HTML>