Skip to content

This controller provides a lightweight approach to generate synthetic IVUS-like images for catheter navigation.#47

Closed
rmolazem wants to merge 19 commits intoInfinyTech3D:mainfrom
rmolazem:IVUS_controller
Closed

This controller provides a lightweight approach to generate synthetic IVUS-like images for catheter navigation.#47
rmolazem wants to merge 19 commits intoInfinyTech3D:mainfrom
rmolazem:IVUS_controller

Conversation

@rmolazem
Copy link
Contributor

@rmolazem rmolazem commented Mar 5, 2026

IVUSController simulates a simplified Intravascular Ultrasound (IVUS) imaging process inside a SOFA scene. The controller generates synthetic ultrasound frames by emitting radial rays from several probe points located near the tip of the catheter and computing their intersections with the vessel wall mesh.

For each probe point, a set of rays is cast in multiple angular directions within a maximum sensing depth. Ray–triangle intersections are computed using the vessel mesh topology, optionally restricted to a region of interest (ROI) to reduce the number of tested triangles. The distance between the probe and the first intersection with the vessel wall is then mapped to a pixel intensity using a simple attenuation model, producing a polar ultrasound slice.

Multiple probe points close to the catheter tip are used to reconstruct a side-section IVUS image, approximating the cross-sectional view typically observed in real IVUS systems.

Main features:

  • Ray-based ultrasound simulation around the catheter tip
  • ROI-based triangle filtering for faster intersection tests
  • Distance-to-intensity mapping with attenuation
  • Support for multiple probe points to reconstruct the IVUS slice
  • Uses vessel mesh topology and collision geometry already available in the SOFA scene

Copy link
Contributor

@epernod epernod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok the code start to be too big to be review like this and we need to move this code out from InfinyToolkit
From what I see all the helper functions like compute plane, compute Roy and compute intersection are good.

Could you :

  1. Move the structure of this PR into SofaLnRobotics repository
  2. Add CMakeLists and init.cpp files to init the plugin (similar as what is done here or in any other SOFA plugin)
  3. Then could you just put the init method and maybe isolated method like computePerpendiclarPlane or BOI computation of the component first. It will be easier to review. Then the main part related to image computation to be added in another PR

@rmolazem
Copy link
Contributor Author

Ok the code start to be too big to be review like this and we need to move this code out from InfinyToolkit From what I see all the helper functions like compute plane, compute Roy and compute intersection are good.

Could you :

  1. Move the structure of this PR into SofaLnRobotics repository
  2. Add CMakeLists and init.cpp files to init the plugin (similar as what is done here or in any other SOFA plugin)
  3. Then could you just put the init method and maybe isolated method like computePerpendiclarPlane or BOI computation of the component first. It will be easier to review. Then the main part related to image computation to be added in another PR

Sure, I'll do it.

@rmolazem rmolazem closed this Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants