Is it possible to draw a roi(rectangle) on the vtkImageViewer2?

Hi all.

I have a question about the vtkImageViewer2.

I would like to draw an ROI box and move/drag it.

For example:
roi
I made it using GDI++.

Does VTK provide this function on the vtkImageViewer2?

I have tested some sample codes but I couldn’t find a solution.
https://lorensen.github.io/VTKExamples/site/Cxx/GeometricObjects/Polygon/
https://lorensen.github.io/VTKExamples/site/Cxx/Visualization/CaptionActor2D/

Could you please advise for me?

Thank you :slight_smile:

1 Like