[vtkusers] Project voxel/pixel value onto surface mesh

Andras Lasso lasso at queensu.ca
Mon Jun 5 22:08:29 EDT 2017


If the surface is inside the volume then you can use vtkProbeFilter to set surface color to the voxel’s color at the same position. 3D Slicer provides this in the “Probe volume with model” module – you can try it there or have a look at its source code for an example:
https://github.com/Slicer/Slicer/blob/master/Modules/CLI/ProbeVolumeWithModel/ProbeVolumeWithModel.cxx

Andras

From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of Kurt Sansom
Sent: Monday, June 5, 2017 7:34 PM
To: vtk <vtkusers at vtk.org>
Subject: [vtkusers] Project voxel/pixel value onto surface mesh

Hi,
   I am trying to come up with an efficient way to project voxel values from an image volume to a surface mesh.

Basically I have a triangle surface mesh with normal information, and I want to create a new cell array that is the voxel intensity value closest to the surface mesh in the normal direction.

I am thinking it's kind of like doing an iso-surface but I want image intensities from the image volume based on the location of the surface mesh and then I want to be able to view the image as projected on the surface mesh.

Another way I was thinking of this is texturing the surface with the image intensities based on the closest voxel/pixel to the surface.

Another way I thinking of doing it is using two image volumes vol_1 is the image stack and vol_2 is a signed distance field where I want the pixel intensity of vol_1 at the zero level set of vol_2.

Does anyone have an example or can think a good way to do this?

Regards,
 ~Kurt
--
Kurt Sansom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170606/9f4f4e65/attachment.html>


More information about the vtkusers mailing list