[vtkusers] extract subset

Bill Lorensen bill.lorensen at gmail.com
Wed Aug 4 10:11:32 EDT 2010


Here is an example:
http://www.vtk.org/Wiki/VTK/Examples/ImageData/vtkExtractVOI

On Wed, Aug 4, 2010 at 9:26 AM, Eric E. Monson <emonson at cs.duke.edu> wrote:
> Hello Ula,
>
> The ParaView "Extract Subset" filter uses the vtkPVExtractVOI class:
>
> http://www.paraview.org/ParaView3/Doc/Nightly/html/classvtkPVExtractVOI.html
>
> I haven't used it, but in the documentation it says, "vtkPVExtractVOI is a wrapper around vtkExtractVOI, vtkExtractGrid and vtkExtractRectilinearGrid. It choose the right filter depending on input and passes the necessary parameters."
>
> So, I think you could use the vtkExtractVOI class from VTK if you're working on vtkImageData:
>
> http://www.vtk.org/doc/nightly/html/classvtkExtractVOI.html
>
> There are a couple examples and tests listed on that page that may help you get started.
>
> -Eric
>
> ------------------------------------------------------
> Eric E Monson
> Duke Visualization Technology Group
>
>
> On Aug 3, 2010, at 12:57 AM, Ula Popov wrote:
>
>> Hello all,
>>
>> I know that there is a filter in paraview "extract subset".
>> I need to implement its functionality.
>>
>>       vtkSmartPointer<vtkXMLImageDataReader> reader =
>> vtkSmartPointer<vtkXMLImageDataReader>::New();
>>       reader->SetFileName(filename);
>>       reader->Update();
>>       vtkImageData* grid = reader->GetOutput();
>>
>> What function should I use? Can I apply it on image data (grid)?
>>
>> Thank you,
>> Ula
>> _______________________________________________
>> 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
>
> _______________________________________________
> 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
>



More information about the vtkusers mailing list