I am currently working on introducing a scale or ruler feature in VTK within a vtkResliceImageViewer. My goal is for the scale to dynamically update as I zoom in or move the data in the viewer, reflecting the current position and zoom level accurately. I am a beginner with VTK, using C++ as my programming language and VTK version 8.2. Could you please suggest how to achieve this functionality?
I am attaching a GIF to demonstrate my requirement for better clarity. Any guidance on implementing this would be greatly appreciated.
I tried vtkLegendScaleActor but it’s doesn’t satisfied my whole requirement. I’m stuck in this, I would appreciate any step-by-step guidance on implementing this feature. As a beginner in VTK, detailed instructions would be incredibly helpful and encouraging.
As most the other essential medical image computing features, this is already implemented in 3D Slicer using VTK (it works in both 2D and 3D views):
As always, you can copy the code to your application - there are no restrictions on how you use Slicer or its source code. However, probably this is not the only feature that you’ll need. Your users will require measurements, panoramic image construction, curved planar reformat view, straightened 3D view, AI segmentation of bone, tooth and nerve, etc. and 3D Slicer and its extensions provide help for all these. You can copy all these features to your application, too, but testing and maintaining these features, refactoring your application a few times to accommodate them all, etc. means a lot of work. You can save a time and money and focus on just developing new features that matter by building your application on 3D Slicer as a platform. You can customize the application at many levels to do only what you need, exactly the way you need it. There are now several FDA-approved applications that are built on the 3D Slicer platform.
Is there any class related to VTK, to setup annotate the render window with scale information with respective to XY,YZ and XZ orientation.[For zoom and pan operations - For different render windows]