<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 group,<br>
    <br>
    I seem to be able to use stencils to mask images and get i.e., some
    stats data using the vtkImageAccumulate filter.<br>
    However since the region of the image mask is very small I would
    like to use a small stencil to get those stats (thus improving
    efficiency).<br>
    <br>
    Therefore I am using the<font color="#000000"> <a class="el" href="http://www.vtk.org/doc/release/5.4/html/a01275.html#a3bfd0cbcd9ad3f4f2292a0f00428536">SetOutputWholeExtent</a>()
      f</font>unction in the <a class="el" href="http://www.vtk.org/doc/release/5.4/html/a01275.html" title="use polydata to mask an image">vtkPolyDataToImageStencil</a>
    to give the stencil a sub-extent (say: 250 260 150 160 10 15) and
    apply it on an image with a full extent (say: 0 511 0 511 0 50) in
    i.e. vtkImageAccumulate. However I get an error regarding one extent
    being outside another extent.<br>
    <br>
    Is it possible to apply a stencil with a sub-extent to a full image
    and if so I would I do this? Do I have to (temporarily) set the
    update extent of the image to the sub-extent of the stencil?<br>
    <br>
    Thanks - Maarten</div>
</div><br>

      </body></html>