Volume Rendering. Lecture 21

Similar documents
Volume Graphics Introduction

Volume Visualization

Volume visualization. Volume visualization. Volume visualization methods. Sources of volume visualization. Sources of volume visualization

Scalar Data. Visualization Torsten Möller. Weiskopf/Machiraju/Möller

Volume Visualization. Part 1 (out of 3) Volume Data. Where do the data come from? 3D Data Space How are volume data organized?

Direct Volume Rendering

Direct Volume Rendering

Volume Rendering - Introduction. Markus Hadwiger Visual Computing Center King Abdullah University of Science and Technology

Data Visualization (DSC 530/CIS )

Volume Rendering. Computer Animation and Visualisation Lecture 9. Taku Komura. Institute for Perception, Action & Behaviour School of Informatics

CIS 467/602-01: Data Visualization

Scalar Data. CMPT 467/767 Visualization Torsten Möller. Weiskopf/Machiraju/Möller

Data Visualization (DSC 530/CIS )

Data Visualization (CIS/DSC 468)

Previously... contour or image rendering in 2D

Lecture overview. Visualisatie BMT. Transparency. Transparency. Transparency. Transparency. Transparency Volume rendering Assignment

Scalar Data. Alark Joshi

Direct Volume Rendering

11/1/13. Visualization. Scientific Visualization. Types of Data. Height Field. Contour Curves. Meshes

Visualization. CSCI 420 Computer Graphics Lecture 26

CS 5630/6630 Scientific Visualization. Volume Rendering I: Overview

Visualization Computer Graphics I Lecture 20

Direct Volume Rendering. Overview

Overview. Direct Volume Rendering. Volume Rendering Integral. Volume Rendering Integral Approximation

Height Fields and Contours Scalar Fields Volume Rendering Vector Fields [Angel Ch. 12] April 23, 2002 Frank Pfenning Carnegie Mellon University

Computer Graphics. - Volume Rendering - Philipp Slusallek

Visualization. Images are used to aid in understanding of data. Height Fields and Contours Scalar Fields Volume Rendering Vector Fields [chapter 26]

Visualization Computer Graphics I Lecture 20

lecture 21 volume rendering - blending N layers - OpenGL fog (not on final exam) - transfer functions - rendering level surfaces

Computational Strategies

First Steps in Hardware Two-Level Volume Rendering

Volume Illumination. Visualisation Lecture 11. Taku Komura. Institute for Perception, Action & Behaviour School of Informatics

GPU-based Volume Rendering. Michal Červeňanský

3/29/2016. Applications: Geology. Appliations: Medicine. Applications: Archeology. Applications: Klaus Engel Markus Hadwiger Christof Rezk Salama

Raycasting. Ronald Peikert SciVis Raycasting 3-1

Hardware Accelerated Volume Visualization. Leonid I. Dimitrov & Milos Sramek GMI Austrian Academy of Sciences

A SURVEY ON 3D RENDERING METHODS FOR MRI IMAGES

GPU-Accelerated Deep Shadow Maps for Direct Volume Rendering

Shear-Warp Volume Rendering. Volume Rendering Overview

Particle-Based Volume Rendering of Unstructured Volume Data

A Survey of Volumetric Visualization Techniques for Medical Images

Volume Rendering with libmini Stefan Roettger, April 2007

Visible-Surface Detection Methods. Chapter? Intro. to Computer Graphics Spring 2008, Y. G. Shin

Rendering Smoke & Clouds

CSE 167: Lecture #17: Volume Rendering. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2012

5. Volume Visualization

Point-Based Rendering

Volume Ray Casting Neslisah Torosdagli

Computer Graphics. Bing-Yu Chen National Taiwan University

Multipass GPU Surface Rendering in 4D Ultrasound

CS GPU and GPGPU Programming Lecture 2: Introduction; GPU Architecture 1. Markus Hadwiger, KAUST

Rendering. Converting a 3D scene to a 2D image. Camera. Light. Rendering. View Plane

1 Ray Casting. Forward methods The picture shows the basic idea of forward methods. A voxel influences several pixels in the resulting image.

CHAPTER 1 Graphics Systems and Models 3

CSE528 Computer Graphics: Theory, Algorithms, and Applications

Computer Graphics Lecture 11

Introduction to Visualization and Computer Graphics

Splatting (feed-forward) Fill the holes. Process for volume rendering. Footprint Evaluation for Volume Rendering. Feed Backward vs.

Level of Details in Computer Rendering

cs6630 November TRANSFER FUNCTIONS Alex Bigelow University of Utah

Computer Graphics. Bing-Yu Chen National Taiwan University The University of Tokyo

Announcements. Mosaics. Image Mosaics. How to do it? Basic Procedure Take a sequence of images from the same position =

Volume Illumination & Vector Field Visualisation

Computer Graphics. Lecture 9 Hidden Surface Removal. Taku Komura

CS 498 VR. Lecture 18-4/4/18. go.illinois.edu/vrlect18

Volume Illumination, Contouring

Ray Casting on Programmable Graphics Hardware. Martin Kraus PURPL group, Purdue University

Introduction to Scientific Visualization

The Rasterization Pipeline

Clipping. CSC 7443: Scientific Information Visualization

CEng 477 Introduction to Computer Graphics Fall 2007

Data Visualization (CIS/DSC 468)

Real-Time Volume Graphics

CS 354R: Computer Game Technology

Lecture 11: Ray tracing (cont.)

Indirect Volume Rendering

The Traditional Graphics Pipeline

COMP371 COMPUTER GRAPHICS

CSE528 Computer Graphics: Theory, Algorithms, and Applications

Iso-surface cell search. Iso-surface Cells. Efficient Searching. Efficient search methods. Efficient iso-surface cell search. Problem statement:

CS4620/5620: Lecture 14 Pipeline

Point based Rendering

Geometric Representations. Stelian Coros

Chapter 11 Global Illumination. Part 1 Ray Tracing. Reading: Angel s Interactive Computer Graphics (6 th ed.) Sections 11.1, 11.2, 11.

Data Representation in Visualisation

The Traditional Graphics Pipeline

Sung-Eui Yoon ( 윤성의 )

GigaVoxels Effects In Video Games

Topics and things to know about them:

Implicit Surfaces & Solid Representations COS 426

Pipeline Operations. CS 4620 Lecture 10

Volumetric Scene Reconstruction from Multiple Views

Multidimensional Transfer Functions in Volume Rendering of Medical Datasets. Master thesis. Tor Øyvind Fluør

University of West Bohemia in Pilsen Faculty of Applied Sciences Department of Computer Science and Engineering DIPLOMA THESIS

Jingyi Yu CISC 849. Department of Computer and Information Science

Visibility and Occlusion Culling

Announcements. Mosaics. How to do it? Image Mosaics

The Traditional Graphics Pipeline

Hardware-Assisted Visibility Ordering for Point-Based and Volume Rendering

Hidden surface removal. Computer Graphics

Transcription:

Volume Rendering Lecture 21

Acknowledgements These slides are collected from many sources. A particularly valuable source is the IEEE Visualization conference tutorials. Sources from: Roger Crawfis, Klaus Engel, Markus Hadwiger, Joe Kniss, Aaron Lefohn, Daniel Weiskopf, Torsten Moeller, Raghu Machiraju, Han-Wei Shen and Ross Whitaker 3/4/2010 R. Crawfis, Ohio State Univ. 2

Visualization of Volumetric Data 3/4/2010 R. Crawfis, Ohio State Univ. 3

Overview Volume rendering refresher Rectilinear scalar fields Direct t volume rendering and optical models Volume rendering integral Ray casting and alpha blending Volume resampling on graphics hardware (part 1) Texture-based volume rendering Proxy ygeometry 2D textured slices 3/4/2010 R. Crawfis, Ohio State Univ. 4

Surface Graphics Traditionally, graphics objects are modeled with surface primitives (surface graphics). Continuous in object space 3/4/2010 R. Crawfis, Ohio State Univ. 5

Difficulty with Surface Graphics Volumetric object handling gases, fire, smoke, clouds (amorphous data) sampled data sets (MRI, CT, scientific) Peeling, cutting, sculpting any operation that exposes the interior 3/4/2010 R. Crawfis, Ohio State Univ. 6

Volume Graphics Typically defines objects on a 3D raster, or discrete grid in object space Raster grids: structured or unstructured Data sets: sampled, computed, or voxelized Peeling, cutting are easy with a volume model 3/4/2010 R. Crawfis, Ohio State Univ. 7

Volume Graphics & Surface Graphics 3/4/2010 R. Crawfis, Ohio State Univ. 8

Volume Graphics - Cons Disadvantages: Large memory and processing power Object-j space aliasing Discrete transformations Notion of objects is different 3/4/2010 R. Crawfis, Ohio State Univ. 9

Volume Graphics - Pros Advantages: Required for sampled data and amorphous phenomena Insensitive to scene complexity Insensitive to surface type Allows block operations 3/4/2010 R. Crawfis, Ohio State Univ. 10

Volume Graphics Applications (simulation data set) Scientific data set visualization 3/4/2010 R. Crawfis, Ohio State Univ. 11

More Volume Graphics Applications (artistic data set) Amorphous entity visualization smoke, steam, fire 3/4/2010 R. Crawfis, Ohio State Univ. 12

Volume Rendering Algorithms Intermediate geometry based (marching cube) Direct volume rendering Splatting (forward projection) Ray Casting (backward projection) or resampling Cell Projection / scan-conversion Image warping 3/4/2010 R. Crawfis, Ohio State Univ. 13

How to visualize? Slicing: display the volume data, mapped to colors, along a slice plane Iso-surfacing: generate opaque and semi-opaque surfaces on the fly Transparency effects: volume material attenuates reflected or emitted light Semi-transparent material slice Iso-surfacesurface 3/4/2010 R. Crawfis, Ohio State Univ. 14

Overview Volume rendering refresher Rectilinear scalar fields Direct t volume rendering and optical models Volume rendering integral Ray casting and alpha blending Volume resampling on graphics hardware (part 1) Texture-based volume rendering Proxy ygeometry 2D textured slices 3/4/2010 R. Crawfis, Ohio State Univ. 15

Volume Data Continuous scalar field in 3D Discrete volume: voxels Sampling Reconstruction 3/4/2010 R. Crawfis, Ohio State Univ. 16

Direct Volume Rendering Render volume without extracting any surfaces (DVR) Map scalar values to optical properties (color, opacity) Need optical model Solve volume rendering integral for viewing rays into the volume 3/4/2010 R. Crawfis, Ohio State Univ. 17

Direct Rendering Pipeline I Detection of Structures Shading Reconstruct (interpolate/filter) color/opacity Composite Final l Image Validation (change parameters) 3/4/2010 R. Crawfis, Ohio State Univ. 18

Direct Rendering Pipeline Classify Shade Reconstruct Visibility Composite order Validate 3/4/2010 R. Crawfis, Ohio State Univ. 19

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 3/4/2010 R. Crawfis, Ohio State Univ. 20

Back-To-Front - Frieder et al 1985 A viewing algorithm that traverses and renders the scene objects in order of decreasing distance from the observer. Maybe derived from a standard - Painters Algorithm 1. 2. 3. 3/4/2010 R. Crawfis, Ohio State Univ. 21

Back-To-Front - Frieder et al 1985 2D Start traversal at point farthest B from the observer, 2 orders C D Either x or y can be innermost loop If x is innermost, display order will be A, C, B, D y Screen If y is innermost, display order will be C, A, D, B Both result in the correct image! If voxel (x,y) is (partially) obscured by voxel (x,y ), then x <= x and y <= y. So project (x,y) before (x,y ) and the image will be correct A x 3/4/2010 R. Crawfis, Ohio State Univ. 22

Back-To-Front - Frieder et al 1985 3D Axis traversal can still be done arbitrarily, 8 orders Data can be read and rendered as slices Note: voxel projection is NOT in order of strictly decreasing distance, so this is not the painter s algorithm. Perspective? 003 013 023 033 103 113 123 133 033 203 213 223 233 133 303 313 323 333 233 032 303 313 323 333 333 132 232 031 302 312 322 332 332 131 231 030 301 311 321 331 331 130 230 300 310 320 330 3/4/2010 R. Crawfis, Ohio State Univ. 23 330

Ray Casting Goal: numerical approximation of the volume rendering integral Resample volume at equispaced locations along the ray Reconstruct at continuous location via tri-linear interpolation Approximate integral 3/4/2010 R. Crawfis, Ohio State Univ. 24

Ray Tracing another typical method from traditional graphics Typically y we only deal with primary rays - hence: ray-casting a natural image-order technique as opposed to surface graphics - how do we calculate the ray/surface intersection??? Since we have no surfaces - we need to carefully step through the volume 3/4/2010 R. Crawfis, Ohio State Univ. 25

Ray Casting Since we have no surfaces - we need to carefully step 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? 3/4/2010 R. Crawfis, Ohio State Univ. 26

Basic Idea of Ray-casting Pipeline - Data are defined at the corners of each cell (voxel) - The data value inside the voxel is determined using interpolation (e.g. tri-linear) c2 c1 - Composite colors and opacities along the ray path c3 - Can use other ray-traversal schemes as well 3/4/2010 R. Crawfis, Ohio State Univ. 27

Evaluation = Compositing over operator - Porter & Duff 1984 C in C(0) in C, α C out C i, α i C(N) out C = C ( 1 α) + C α C( i) = C( i 1) out in ) ( ( ) ( ) in out 3/4/2010 R. Crawfis, Ohio State Univ. 28

Compositing: Over Operator cf = (0,1,0) af = 0.4 c = af*cf + (1 - af)*ab*cb) a = af + (1 - af)*ab c cb = (100) (1,0,0) ab = 0.9 c = (0.54,0.4,0) a = 0.94 3/4/2010 R. Crawfis, Ohio State Univ. 29

Volumetric Ray Integration color opacity 1.0 object (color, opacity) 3/4/2010 R. Crawfis, Ohio State Univ. 30

Interpolation n binary smooth Closest value Weighted average 3/4/2010 R. Crawfis, Ohio State Univ. 31

Tri-Linear Interpolation n eye image pixel viewing vew ray trilinear interpolation voxel sample point 3/4/2010 R. Crawfis, Ohio State Univ. 32

Interpolation Kernels volumetric compositing color opacity 1.0 object (color, opacity) 3/4/2010 R. Crawfis, Ohio State Univ. 33

Interpolation Kernels interpolation kernel volumetric compositing color opacity color c = c s α s (1 - α) + c 1.0 opacity α = α s (1 - α) + α object (color, opacity) 3/4/2010 R. Crawfis, Ohio State Univ. 34

Interpolation Kernels interpolation kernel volumetric compositing color opacity 1.0 object (color, opacity) 3/4/2010 R. Crawfis, Ohio State Univ. 35

Interpolation Kernels volumetric compositing color opacity 1.0 object (color, opacity) 3/4/2010 R. Crawfis, Ohio State Univ. 36

Interpolation Kernels volumetric compositing color opacity 1.0 object (color, opacity) 3/4/2010 R. Crawfis, Ohio State Univ. 37

Interpolation Kernels volumetric compositing color opacity 1.0 object (color, opacity) 3/4/2010 R. Crawfis, Ohio State Univ. 38

Interpolation Kernels volumetric compositing color opacity 1.0 object (color, opacity) 3/4/2010 R. Crawfis, Ohio State Univ. 39

Interpolation Kernels volumetric compositing color opacity object (color, opacity) 3/4/2010 R. Crawfis, Ohio State Univ. 40

Levoy - Pipeline shading Acquired values Data preparation Prepared values classification Voxel colors Voxel opacities Ray-tracing / resampling Ray-tracing / resampling Sample colors compositing Sample opacities Image Pixels 3/4/2010 R. Crawfis, Ohio State Univ. 41

Ray Marching Use a 3D DDA algorithm to step through regular or rectilinear grids. 3/4/2010 R. Crawfis, Ohio State Univ. 42

Adaptive Ray Sampling [Hanrahan et al 92] Sampling rate is adjusted to the significance of the traversed data 3/4/2010 R. Crawfis, Ohio State Univ. 43

Classification How do we obtain the emission and absorption values? scalar value s T(s) emission RGB absorption A 3/4/2010 R. Crawfis, Ohio State Univ. 44

Ray Traversal Schemes Intensity Max Average Accumulate First Depth 3/4/2010 R. Crawfis, Ohio State Univ. 45

Ray Traversal - First Intensity First Depth First: extracts iso-surfaces (again!) done by Tuy&Tuy 84 3/4/2010 R. Crawfis, Ohio State Univ. 46

Ray Traversal - Average Intensity Average Depth Average: produces basically an X-ray picture 3/4/2010 R. Crawfis, Ohio State Univ. 47

Ray Traversal - MIP Intensity Max Depth Max: Maximum Intensity Projection used for Magnetic Resonance Angiogram 3/4/2010 R. Crawfis, Ohio State Univ. 48

Maximum Intensity Projection (1) No emission or absorption Pixel value is maximum scalar value along the viewing ray Maximum S max Scalar value S s 0 Advantage: no transfer function required Drawback: misleading depth information s ray Works well for MRI data (esp. angiography) 3/4/2010 R. Crawfis, Ohio State Univ. 49

Maximum Intensity Projection (2) Emission/Absorption MIP 3/4/2010 R. Crawfis, Ohio State Univ. 50

Ray Traversal - Accumulate Intensity Accumulate Depth Accumulate: make transparent layers visible! Levoy 88 3/4/2010 R. Crawfis, Ohio State Univ. 51

Transfer function v = f (x) v 0 here s the edge x α v 3/4/2010 v 0 R. Crawfis, Ohio State Univ. 52