volumeraycasting.q

Summary
volumeraycasting.q
Functions
box_containsChecks whether the specified box contains a given point.
intersectswithChecks whether a ray intersects with a given box (and also computes the intersection)
ray_rotate_yzRotation of a ray in the YZ-plane
ray_scale3D scaling of a ray
raytracer_nearestVolumetric ray tracer implementation, using nearest neighbor interpolation Note: we use CUDA hardware textures for speeding up things
raytracer_trilinearVolumetric ray tracer implementation, using trilinear interpolation Note: we use CUDA hardware textures for speeding up things
raytracer_trilinear_pyramidVolumetric ray tracer implementation, using trilinear interpolation Note: we use CUDA hardware textures for speeding up things
voxelfilterA 3D 2x2x2 box filter, used to speed up the volumetric rendering
build_vrc_pyramidBuild a pyramid for speeding up the volume ray casting
volumeraycastingReal-time visualization of 3D volumes (the main function)

Functions

box_contains

Checks whether the specified box contains a given point.

intersectswith

Checks whether a ray intersects with a given box (and also computes the intersection)

ray_rotate_yz

Rotation of a ray in the YZ-plane

ray_scale

3D scaling of a ray

raytracer_nearest

Volumetric ray tracer implementation, using nearest neighbor interpolation Note: we use CUDA hardware textures for speeding up things

Parameters

im_outthe output image
voxelsa 3D cube with the voxel data
voxelsfPrefiltered 3D cube using a 2x2x2-box filter
camera_posThe 3D position of the camera.
scalea scaling factor used for rendering
thetathe rotation angle in the YZ-plane

raytracer_trilinear

Volumetric ray tracer implementation, using trilinear interpolation Note: we use CUDA hardware textures for speeding up things

Parameters

im_outthe output image
voxelsa 3D cube with the voxel data
voxelsfPrefiltered 3D cube using a 2x2x2-box filter
camera_posThe 3D position of the camera.
scalea scaling factor used for rendering
thetathe rotation angle in the YZ-plane

raytracer_trilinear_pyramid

Volumetric ray tracer implementation, using trilinear interpolation Note: we use CUDA hardware textures for speeding up things

Parameters

im_outthe output image
voxelsa 3D cube with the voxel data
voxelsfPrefiltered 3D cube using a 2x2x2-box filter
camera_posThe 3D position of the camera.
scalea scaling factor used for rendering
thetathe rotation angle in the YZ-plane

voxelfilter

A 3D 2x2x2 box filter, used to speed up the volumetric rendering

Parameters

voxelsfthe filtered 3D volume
voxelsthe original 3D volume

build_vrc_pyramid

Build a pyramid for speeding up the volume ray casting

volumeraycasting

Real-time visualization of 3D volumes (the main function)

Parameters

voxelsthe 3D volume to visualize
voxelsizethe size of an individual voxel (isotropic voxels: use [1,1,1])
interpolation_methodthe interpolation technique to use (“nearest” or “trilinear”)
Close