<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Hi,<br><br>I have an image with a certain extent and a stencil whose extent is a sub-extent of the image's extent (entirely within the image's extent).<br><br>Now I would like to create a sub-image of the given image using the vtkImageStencil class and the given stencil with the sub-extent.<br><br>However I am getting errors like this one<br>ERROR: In /build/buildd/vtk-5.2.1/Filtering/vtkStreamingDemandDrivenPipeline.cxx, line 698<br>vtkStreamingDemandDrivenPipeline (0x5c41270): The update extent specified in the information for output port 0 on algorithm vtkTrivialProducer(0x5c40d60) is 0 511 0 511 0 98, which is outside the whole extent 245 287 272 437 36 44.<br><br>Which indicates to me that the extent of the output is incorrect. Apart from the fact I don't really understand why this filter
sets the extent of the output image to the extent of the input image and not to the extent of the stencil, but has some-one an idea how to prevent this error?<br><br>Thanks - Maarten<br></div>
</div><br>
</body></html>