# get the output data of a vtk filter

**URL:** <https://discourse.vtk.org/t/get-the-output-data-of-a-vtk-filter/5017>\
**Category:** Development\
**Created:** [January 15, 2021, 8:59am UTC](https://discourse.vtk.org/t/get-the-output-data-of-a-vtk-filter/5017 "2021-01-15T08:59:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christopher\_Wastell](https://discourse.vtk.org/user_avatar/discourse.vtk.org/christopher_wastell/32/2854_2.png) [@Christopher\_Wastell](https://discourse.vtk.org/u/Christopher_Wastell)\
**Post date:** [January 15, 2021, 8:59am UTC](https://discourse.vtk.org/t/get-the-output-data-of-a-vtk-filter/5017/1 "2021-01-15T08:59:44Z")

</div>

Hi, I’m using a vtk filter to work on some input data.  
I see that the vtk filter has a method called GetOutputPort that pipes to the inputPort of the next block, but if I want to get the output of this filter and not passing its output to next step, how can I do that?  
Something like GetOutputData I mean.

---

<div class="post-metadata">

**Author:** ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)\
**Post date:** [January 15, 2021, 3:27pm UTC](https://discourse.vtk.org/t/get-the-output-data-of-a-vtk-filter/5017/2 "2021-01-15T15:27:56Z")

</div>

What about

```auto
filter->Update();
auto dataset = filter->GetOuptut();

```
