<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi, all!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> I thought that if first I have a
ImageData having some extent, spacing, etc and than if I applay a filter on it,
I will keep the same extent and spacing... But it seems to be
wrong!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> I have the following example
:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV><FONT face=Arial size=2>
<DIV> int
a,z,e,r,t,y;<BR> data->VolReader->GetExtent(a,z,e,r,t,y);
//here I have the good Z extent (0 100) (VolReader is a
vtkImageData)<BR> <BR> vtkImageShiftScale *my_shift =
vtkImageShiftScale::New(); //a
filter <BR>
my_shift->SetInput(data->VolReader);<BR>
my_shift->SetScale(my_shift->GetScale()/256.0);<BR>
my_shift->SetOutputScalarTypeToUnsignedChar();<BR> </DIV>
<DIV>data->VolReader=my_shift->GetOutput(); //
I have the same bad results using DeepCopy
method...<BR> <BR>data->VolReader->GetExtent(a,z,e,r,t,y);
//here I have a bad Z extent (0
-1)<BR><BR> my_shift->GetOutput()->GetExtent(a,z,e,r,t,y);
//here I have a bad Z extent too : (0
-1)<BR> my_shift->GetInput()->GetExtent(a,z,e,r,t,y);
//here I have the good Z extent (0 100)<BR></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> This problem seems to be common to all
vtkImageToImageFilter, so I would really need help on this subject : I would
want to apply to a vtkImageData one or more filters before rendering it.</DIV>
<DIV> </DIV>
<DIV>I really thanks you a lot for your help!!!<BR></DIV>
<DIV> </DIV>
<DIV>Matei</FONT></DIV></BODY></HTML>