[vtkusers] question
XIN LI
xli16 at jhmi.edu
Mon Jan 29 09:52:24 EST 2007
Hello vtk users, I just upgraded VTK version from 4.2 to 5.0. My code worked well in VTK4.2. But I got an error when I ran my project in VTK5.0.The error is : ERROR: In \VTK5.0.2\VTK\Filtering\vtkStreamingDemandDrivenPipeline.cxx, line 628vtkStreamingDemandDrivenPipeline (055CED70): The update extent specified in the information for output port 0 on algorithm vtkTrivialProducer(05139F98) is 0 271 0 167 0 127, which is outside the whole extent 0 135 0 83 0 63. My project is built with visual C++. I use vtkProbeFilter to upsample an image. The following is the code: vtkFloatArray *downArray = vtkFloatArray::New();downArray->SetVoidArray(someDataBuffer, 136*84*64,1); vtkImageData *downImg = vtkImageData::New();downImg->SetDimensions(136,84, 64);downImg->SetOrigin(0,0,0);downImg->SetSpacing(2,2,2);downImg->SetScalarTypeToFloat();downImg->GetPointData()->SetScalars(downArray);downArray->Delete(); vtkFloatArray *upArray = vtkFloatArray::New();upArray->SetVoidArray(databuffer, 272*168*128,1); vtkImageData *upImg = vtkImageData::New();upImg->SetDimensions(272,168,128);upImg->SetOrigin(0,0,0);upImg->SetSpacing(1,1,1);upImg->SetScalarTypeToFloat();upImg->GetPointData()->SetScalars(upArray); vtkProbeFilter *probe = vtkProbeFilter::New();probe->SetInput(upImg);upImg->Delete();probe->SetSource(downImg);downImg->Delete();probe->Update(); vtkFloatArray *upArray = vtkFloatArray::New();upArray = (vtkFloatArray*)(probe->GetOutput()->GetPointData()->GetScalars()); Could you please tell me what's wrong in my code? Thanks! Xin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070129/fa2b9971/attachment.htm>
More information about the vtkusers
mailing list