[vtkusers] Turning off/on voxels at the intersection of two vtkimagedata

Andras Lasso lasso at queensu.ca
Wed Jan 9 15:10:08 EST 2019


You can do the single step of blanking out an image data with another by resampling the two images in the same coordinate system and use vtkImageMask or vtkImageMath to combine them.

If you wanted to simulate medical procedures (bone removal, etc.) note that a full suite of tools are available for this in 3D Slicer application (www.slicer.org<http://www.slicer.org>) and its many extensions. They are based on VTK and fully customizable or extensible in Python and C++. You can connect to almost any position tracker device (it can be a simple webcam that tracks 2D barcodes, or a commercial surgical navigation system) using SlicerIGT extension (www.slicerigt.org<http://www.slicerigt.org>) to get tool position in real-time. To remove tissue probably the simplest is to import the tool model as a segment and apply “volume masking” segment editor effect. You can even compute skill assessment metrics using PerkTutor extension (www.perktutor.org<http://www.perktutor.org>). All the programming that you need to do is writing 20-30 lines of Python code to trigger volume masking automatically when the tool position is changed. If you have any questions you can post it to https://discourse.slicer.org.

Andras

From: vtkusers <vtkusers-bounces at vtk.org> On Behalf Of shadab anwar
Sent: Wednesday, January 9, 2019 2:31 PM
To: vtkusers at public.kitware.com; vtkusers at vtk.org
Subject: [vtkusers] Turning off/on voxels at the intersection of two vtkimagedata

Hi everyone,

I am working on a problem consisting of two vtkimagedata, where the first vtkimagedata represents workpiece (3D block) and other vtkimagedata represents  tool (cylindrical) in my application.
I want to turn off the voxels at the intersection of these two imagedata after that  I want to translate the tool to a next position and repeat the same thing.

I have tried few methods but no sucess! I'll be really grateful if you can help me with the easiest method to do so or at least show me direction to go.

Thanks,
Shadab
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20190109/c66ea5dc/attachment-0001.html>


More information about the vtkusers mailing list