[vtkusers] UpdateExtent vs WholeExtent pb

Dean Inglis dean.inglis at on.aibn.com
Wed May 29 14:17:35 EDT 2002


ok, heres the cxx pipeline (ignore the symantic errors):

the image input is non-isotropic (512 x 512 x 64)

vtkVolume16Reader v16
vtkImageData i1 = v16->GetOutput()
vtkImagePlaneWidget w1
  w1->SetInput( i1 )
  w1->SetPlaneOrientationToXAxes()
vtkImagePlaneWidget w2
  w2->SetInput( i1 )
  w2->SetPlaneOrientationToYAxes()
vtkImageData i2a = w1->GetResliceOutput()
vtkImageData i2b = w2->GetResliceOutput()
vtkImageMapToColors c1
  c1->SetInput( i2a )
vtkImageData i3 = c1->GetOutput()
vtkImageActor a1
  a1->SetInput( i3 )

now let's say I want to change the input to c1 

  int currentSlice = 1;

  if (currentSlice == 0)
    {
    c1->SetInput(w1->GetResliceOutput())
    }
  else
    {
    c1->SetInput(w2->GetResliceOutput())
    }
  a1->SetInput( c1->GetOutput() )
  
I get this... 

ERROR: In c:/Builder/Vtk/Common/vtkDataObject.cxx, line 540
vtkImageData (0BA199C4): Update extent does not lie within whole extent

ERROR: In c:/Builder/Vtk/Common/vtkDataObject.cxx, line 547
vtkImageData (0BA199C4): Update extent is: 0, 511, 0, 63, 0, 0

ERROR: In c:/Builder/Vtk/Common/vtkDataObject.cxx, line 554
vtkImageData (0BA199C4): Whole extent is: 0, 63, 0, 511, 0, 0



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dean Inglis, Ph.D.
Clinical Research Unit
25 Charlton Avenue East, Unit 610
Hamilton, ONT, L8N 1Y2
tel: (905) 527-0028
fax: (905) 521-1297
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




More information about the vtkusers mailing list