Dear VTK users and developers,
I am working on image viewer which is going to be integrated with eye tracker device. Although I look at some open source project’s source code such as 3d slicer, mitk, smili, medInria, starview in C++ on github, I still could not figure out a solution yet . Sorry if I miss anything in advance.
I would like to ask a question as follows. I already got x,y coordinates of image pixel in vtkRenderWindow in vtkImageViewer2 using vtkRenderWindowInteractor in C++ using VtK 8.2 and Qt 12.5 in Qt Creator after opening 2d/3d nifti image or DICOM image on windows 10.
How to get exact location (x,y and size) of shown image in vtkImageViewer2 any time such as top left and bottom right corner in x,y pixels in current screen when i do zoom in/out , pan , left/right click or any keyboard events in VTK as shown on Figure?. Basically, I only need to get x,y and size in pixels of what i see in vtk not all image coordinates when i do not see all image in vtk.
I would really appreacite if you let me know some solutions about it in C++ using VTK or any guidance.
Thank you in advance