# about vtk continuous display

**URL:** https://discourse.vtk.org/t/about-vtk-continuous-display/10097
**Category:** Support
**Tags:** code
**Created:** [December 7, 2022, 2:19am UTC](https://discourse.vtk.org/t/about-vtk-continuous-display/10097 "2022-12-07T02:19:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![marlon.ma](https://discourse.vtk.org/user_avatar/discourse.vtk.org/marlon.ma/32/6091_2.png) [@marlon.ma](https://discourse.vtk.org/u/marlon.ma)
#### Post date: [December 7, 2022, 2:19am UTC](https://discourse.vtk.org/t/about-vtk-continuous-display/10097/1 "2022-12-07T02:19:04Z")

</div>

I want vtk to display images continuously, because I am tracking the registration process, but my code will not respond to the image window when running. What should I do？

```auto
void Updata() {
		i++;
		cout << i << endl;
		viewer->SetInputData(image->GetOutput());
		std::string name =std::to_string(i);
		viewer->GetRenderWindow()->SetWindowName(name.c_str());
		viewer->Render();
	}
	void Setimage(vtkImageFlip* image) {
		this->image = image;
	}

```

Is it wrong for me to do this? I keep setting new images in vtkimageviewer2, and then render them.
