Does setting the image update extent on the output of MC help. Something like ?<div><br></div><div>  marchingCubes-&gt;GetOutput()-&gt;SetUpdateExtent( 10, 50, 10, 50, 10, 50 )<br><br><div class="gmail_quote">On Fri, Feb 24, 2012 at 10:05 PM, Cory Quammen <span dir="ltr">&lt;<a href="mailto:cquammen@cs.unc.edu">cquammen@cs.unc.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I&#39;ve looked at the VTK documentation and wiki examples, but couldn&#39;t<br>
find an example of what I want to do.<br>
<br>
I&#39;d like to generate an isocontour from a subregion of an image. I<br>
could use a vtkExtractVOI to extract the subregion of interest, but<br>
I&#39;d like to avoid copying the image data. Is there a way to specify<br>
the extent on which the vtkImageMarchingCubes filter operates on its<br>
input?<br>
<br>
If there is an alternative that saves memory, I&#39;d be happy to hear that as well.<br>
<br>
Thanks in advance,<br>
Cory<br>
<br>
--<br>
Cory Quammen<br>
Research Associate<br>
Department of Computer Science<br>
The University of North Carolina at Chapel Hill<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>--<div>karthik</div><br>
</div>