Docsity

Volume Rendering: Voxels, Ray Casting, and Splatting - Prof. David E. Breen, Study notes of Computer Science

Partial preview of the text

Download Volume Rendering: Voxels, Ray Casting, and Splatting - Prof. David E. Breen and more Study notes Computer Science in PDF only on Docsity!

CS 431/

Advanced Rendering Techniques

Dr. David Breen

University Crossings 149

Tuesday 6PM → 8:50PM

Presentation 9

Logistics

• Deadline for all assignments is

  • Friday 5PM 6/ 6 /0 8 for graduating seniors
  • Wednesday 9AM 6/1 1 /0 8 for everybody else

• Course evaluations

Slide Credits

• Jian Huang - University of Tennessee

• Gordon Kindlmann & James Durkin -

Cornell University

• Jonathan Cohen - Johns Hopkins University

• Pat Hanrahan - Stanford University

Direct Volume Rendering (DVR):

Ray-casting

Jian Huang

This set of slides references slides used by Prof. Torsten Moeller (Simon Fraser), Prof. Han-Wei Shen (Ohio State).

Basic Idea

Based on the idea of ray tracing (^) • Trace a ray from each

pixel into object space

  • Compute color value along the ray
  • Assign the value to the pixel

Data Representation

•3D volume data are represented by a finite number of cross sectional slices (hence a 3D raster) •On each volume element (voxel), stores a data value (if it uses only a single bit, then it is a binary data set. Normally, we see a gray value of 8 to 16 bits on each voxel.)

N x 2D arrays = 3D array

Viewing

Ray Casting

  • Where to position the volume and image plane
  • What is a ‘ray’
  • How to march a ray

Early Methods

  • Before 1988
  • Did not consider transparency
  • did not consider sophisticated light

transportation theory

  • were concerned with quick solutions
  • hence more or less applied to binary data

non-binary data - require sophisticated classification/compositing methods!

Ray Casting

  • Stepping through the volume: a ray is cast into the volume, sampling the volume at certain intervals
  • The sampling intervals are usually equi-distant, but don’t have to be (e.g. importance sampling)
  • At each sampling location, a sample is interpolated / reconstructed from the grid voxels
  • popular filters are: nearest neighbor (box), trilinear (tent), Gaussian, cubic spline
  • Along the ray - what are we looking for?

Example: Using the nearest

neighbor kernel

In Tuys’ paper Q = P + K x V

At each step k, Q is rounded off to the nearest voxel (like the DDA algorithm)

Check if the voxel is on the boundary or not (compare against a threshold)

If yes, perform shading

Ray Traversal Schemes

Depth

Intensity Max

Average

Accumulate First

Ray Traversal - First

Depth

Intensity

First

  • First : extracts iso-surfaces (again!) done by Tuy&Tuy ’

Ray Traversal - MIP

Depth

Intensity Max

  • Max : Maximum Intensity Projection used for Magnetic Resonance Angiogram

Ray Traversal - Accumulate

Depth

Intensity

Accumulate

  • Accumulate opacity while compositing colors : make transparent layers visible! Levoy ‘