[vtkusers] Specify image subregion on which vtkImageMarchingCubes operates?

Cory Quammen cquammen at cs.unc.edu
Sat Feb 25 10:14:14 EST 2012


Karthik,

Thanks for the suggestion. I tried it, but it didn't work.

I found vtkImageClip, which enables me to set the extent that I want
to send down the pipeline without copying the data. This is exactly
what I need.

Thanks,
Cory

On Sat, Feb 25, 2012 at 1:13 AM, Karthik Krishnan
<karthik.krishnan at kitware.com> wrote:
> (prior to the update of course..)
>
> ie:
> marchingCubes->GetOutput()->SetUpdateExtent( 10, 50, 10, 50, 10, 50 )
> marchingCubes->Update();
>
>
> On Sat, Feb 25, 2012 at 11:42 AM, Karthik Krishnan
> <karthik.krishnan at kitware.com> wrote:
>>
>> Does setting the image update extent on the output of MC help. Something
>> like ?
>>
>>   marchingCubes->GetOutput()->SetUpdateExtent( 10, 50, 10, 50, 10, 50 )
>>
>>
>> On Fri, Feb 24, 2012 at 10:05 PM, Cory Quammen <cquammen at cs.unc.edu>
>> wrote:
>>>
>>> Hi all,
>>>
>>> I've looked at the VTK documentation and wiki examples, but couldn't
>>> find an example of what I want to do.
>>>
>>> I'd like to generate an isocontour from a subregion of an image. I
>>> could use a vtkExtractVOI to extract the subregion of interest, but
>>> I'd like to avoid copying the image data. Is there a way to specify
>>> the extent on which the vtkImageMarchingCubes filter operates on its
>>> input?
>>>
>>> If there is an alternative that saves memory, I'd be happy to hear that
>>> as well.
>>>
>>> Thanks in advance,
>>> Cory
>>>
>>> --
>>> Cory Quammen
>>> Research Associate
>>> Department of Computer Science
>>> The University of North Carolina at Chapel Hill
>>> _______________________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the VTK FAQ at:
>>> http://www.vtk.org/Wiki/VTK_FAQ
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
>>
>>
>> --
>> --
>> karthik
>>
>
>
>
> --
> --
> karthik
>



-- 
Cory Quammen
Research Associate
Department of Computer Science
The University of North Carolina at Chapel Hill



More information about the vtkusers mailing list