Volumetric Visualization. Outline Announcements –PS III due Friday –Last day for self-motivated assignment Belated CookiePresentation What is VV? Slices.

Slides:



Advertisements
Similar presentations
Computational Environment for Radiotherapy Research CERR 3.0 beta 1 - Getting Started -
Advertisements

Chapter 3 – Web Design Tables & Page Layout
Reconstruction from Voxels (GATE-540)
Introduction to Graphing Using MATLAB. Line Graphs  Useful for graphing functions  Useful for displaying data trends over time  Useful for showing.
DAY 8: MICROSOFT EXCEL – CHAPTER 5 Aliya Farheen February 5, 2015.
Visualization Data Representation Ray Gasser SCV Visualization Workshop – Fall 2008.
Chapter 11 Above: Principal contraction rates calculated from GPS velocities. Visualized using MATLAB.
ES 314 Lecture 2 Sep 1 Summary of lecture 1: course overview intro to matlab sections of Chapters 2 and 3.
ParaView Tutorial Greg Johnson, Karla Vega. Before we begin… Make sure you have ParaView installed so you can follow along in the lab section –
CREATING A MULTIPLE PAGE REPORT Presented by: Dr. Ennis-Cole.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2005 Tamara Munzner Information Visualization.
Stockman CSE/MSU Fall 2005 Models and Matching Methods of modeling objects and their environments; Methods of matching models to sensed data for recogniton.
2003 by Jim X. Chen: Introduction to Modeling Jim X. Chen George Mason University.
Introduction to Volume Visualization Mengxia Zhu Fall 2007.
Web Page Development Identify elements of a Web Page Start Notepad
Video on the Web John H. Krantz Hanover College. Outline What is Video Acquiring with a Digital Camera Creating with ImageJ Editing with QuickTime Delivering.
Adaptive Marching Cubes Renben Shu Chen Zhou Mohan S. Kankanhalli.
1 ADVANCED MICROSOFT POWERPOINT Lesson 7 – Working with Visual and Sound Objects Microsoft Office 2003: Advanced.
Section 9.1 Section 9.2 YOU WILL LEARN TO…
Marching Cubes: A High Resolution 3D Surface Construction Algorithm
Volumetric and Blobby Objects Lecture 8 (Modelling)
 1999 BG Mobasseri1 8/29/2015 MATLAB GRAPHICS - PART II ADVANCED PLOTTING June 4, ‘99.
Scientific Visualization Module 6 Volumetric Algorithms (adapted by S.V. Moore – slides deleted, modified, and added) prof. dr. Alexandru (Alex) Telea.
XP Tutorial 1 Introduction to Macromedia Flash MX 2004.
A Brief Introduction to Matlab Laila Guessous Dept. of Mechanical Engineering Oakland University.
Marching Cubes: A High Resolution 3D Surface Construction Algorithm William E. Lorenson Harvey E. Cline General Electric Company Corporate Research and.
A Picture Is Worth A Thousand Words. DAY 7: EXCEL CHAPTER 4 Tazin Afrin September 10,
IMAGE SYNTHESIS 1 Image Synthesis Image synthesis operations create images from other images or non-image data Used when a desired image is either physically.
Create Forms Lesson 5. Objectives Software Orientation The Forms group (below) is located on the Create tab in the Ribbon and can be used to create a.
MA/CS 3751 Fall 2002 Lecture 24. MA/CS 3752 ginput ginput is a Matlab function which takes one argument input: number of points to select in the image.
Geometric Modeling. Volumetric o Collection device obtains regular grid of measurement values Examples: CT, MRI, PET, Ultrasound o Values are interpreted/visualized.
Computational Methods of Scientific Programming Lecturers Thomas A Herring, Room A, Chris Hill, Room ,
Visualizing illuminance levels, generated in Radiance, in a Maya environment Richard Gillibrand & Patrick Ledda University of Bristol, UK Richard Gillibrand.
Post-Processing Output with MATLAB Claudia Fricke Institute of Petroleum Engineering, Heriot Watt University.
Introduction MATLAB stands for MATrix LABoratory.  Basics  Matrix Manipulations  MATLAB Programming  Graphics  Image types  Image Processing  Useful.
Introduction to MATLAB Session 5 Simopekka Vänskä, THL 2010.
Plot the value of a single variable along an aquifer at different times.
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. a lesson approach Microsoft® Excel 2010 © 2011 The McGraw-Hill Companies,
DAY 6: MICROSOFT EXCEL – CHAPTER 3 Sravanthi Lakkimsetty September 2, 2015.
Volume Visualization Presented by Zhao, hai. What’ volume visualization Volume visualization is the creation of graphical representations of data sets.
2D Routines in 3D. Outline Announcements –HW II--due Friday. 5PM HW1 & Cookie Grids & Meshes Representing f(x,y) Lines & Surfaces in 3D Survey.
Volumetric Visualization. Outline Announcements –PS III due today –contest entries by tomorrow –PS IV online today--GUI vs. VV –Demos on Friday What is.
Visualization with ParaView. Before we begin… Make sure you have ParaView 3.14 installed so you can follow along in the lab section –
04/18/02(c) 2002 University of Wisconsin Last Time Hermite Curves Bezier Curves.
IMAGE SYNTHESIS 1 Image Synthesis Image synthesis operations create images from other images or non-image data Used when a desired image is either physically.
CHAPTER 5 CONTOURING. 5.3 CONTOURING Fig 5.7. Relationship between color banding and contouring Contour line (isoline): the same scalar value, or isovalue.
Computer Science 121 Scientific Computing Winter 2014 Chapter 14 Images.
1 Lecture 5 Post-Graduate Students Advanced Programming (Introduction to MATLAB) Code: ENG 505 Dr. Basheer M. Nasef Computers & Systems Dept.
HYPACK SHELL HYPACK Shell Features: Multiple maps, views and floating tool bars.
2/24/2016 A.Aruna/Assistant professor/IT/SNSCE 1.
Surface complexation retards Pb ++ transport relative to nonreactive tracer Br −. Use Xtplot to display the concentration of several species along the.
CDS 301 Fall, 2008 Domain-Modeling Techniques Chap. 8 November 04, 2008 Jie Zhang Copyright ©
Introduction to Animation In animation, a series of images are rapidly changed to create an illusion of movement.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Advanced Visualization Michael McLennan HUBzero® Platform for Scientific Collaboration Purdue University This work licensed under Creative Commons See.
MA/CS375 Fall MA/CS 375 Fall 2002 Lecture 5.
UNIT 11: 3D AutoCAD Objectives: How to print or plot a drawing How to setup a layout using title blocks and viewports Create and manage new layouts Be.
A skills approach © 2012 The McGraw-Hill Companies, Inc. All rights reserved. powerpoint 2010 Chapter 2 Adding Content to Slides.
EEE 242 Computer Tools for Electrical Engineering
1-2 What is the Matlab environment? How can you create vectors ? What does the colon : operator do? How does the use of the built-in linspace function.
1 E. Angel and D. Shreiner: Interactive Computer Graphics 6E © Addison-Wesley 2012 Marching Squares Ed Angel Professor Emeritus of Computer Science University.
3D Ojbects: Transformations and Modeling. Matrix Operations Matrices have dimensions: Vectors can be thought of as matrices: v=[2,3,4,1] is a 1x4 matrix.
Reading and Writing Image Files
Lesson 6: Enhancing Presentations
Pattern, Texture, Rhythm, Shape
CSc4730/6730 Scientific Visualization
Computer Graphics.
Domain-Modeling Techniques
Visualization CSE 694L Roger Crawfis The Ohio State University.
Presentation transcript:

Volumetric Visualization

Outline Announcements –PS III due Friday –Last day for self-motivated assignment Belated CookiePresentation What is VV? Slices Isosurfaces Movies

What is VV? y=f(x) => lines z=f(x,y) => surfaces v=f(x(s),y(s),z(s)) => surfaces with color≠ z v=f(x,y,z) => true 3D data ?

Representing V=f(x,y,z) we have a value of V for every point in a volume V is a cube of data (m-by-n-by-p) We need X, Y, Z of the same size to indicate positions of data –Typically, we have a regular grid defined by vectors x, y, & z –[X,Y,Z]=meshgrid(x,y,z) produces 3D arrays needed by Matlab’s VV functions X, Y, Z are m-by-n-by-p for all j & k, X(j,:,k)=x, Y(:,j,k)=y, Z(j,k,:)=z

Example: CT data CT scans (“Computerized Tomography” a.k.a. CAT scans) produce a series of cross- sectional x-rays Several slices can be stacked together to form a volume

Example: CT data CT scans of head and thorax from dogs provided by Dr. Ned Dykes at NYSCVM Each slice is a separate tiff file –loaded each tiff with imread –stacked into array head –Thinned the data set –[Xs,Ys,Zs,Heads]=reducevolume( X,Y,Z,Head,[4,4,1]); –Cropped data –Head_reduce4_4_1_crop.mat

Visualizing V Simplest way is to look at a particular row/column/layer of V –pcolor(x,y,V(:,:,k))--layer k –pcolor(x,z,squeeze( V(:,k,:) ))--column k –pcolor(y,z,squeeze(V(k,:,:) ))--row k squeeze removes singleton dimensions –v(k,:,:) is 1-by-n-by-p –squeeze(v(k,:,:)) is n-by-p

General Slicing h=slice(X,Y,Z,V,xs,ys,zs) –slices V at multiple planes –slice(X,Y,Z,V,[20 30],[],[10]) produces 3 slices: x=20, x=30, z=10 –What if a slice falls between a row or column? h=slice(X,Y,Z,V,Xsurf,Ysurf,Zsurf) –slices V with a surface defined by Zs=f(Xs,Ys)

Slicing the dog clearslice(Xs,Ys,Zs,Heads,xs, ys,zs,thresh) –same as slice(Xs …) but values of Heads below the threshold are set to clear

Isosurfaces Before perspective plots and color mapping, people plotted z=f(x,y) with contours: –curves of constant z Isosurfaces are analogous methods in 3D –find X,Y,Z s.t. f(X,Y,Z)=v

Isosurfaces fv=isosurface(X,Y,Z,V,v); fv is a struct describing a patch (or surface) object on a triangular mesh fv.vertices(j,:)=position of jth vertex[x, y, z] fv.faces(j,:)=1-by-3--index to 3 vertices forming triangle (like tri) h=patch(fv) will display the surface –set(h,’edgecolor’,’none’,’facecolor’,Colorspec,’faceligh ting’,’phong’)

Isosurfacing the Dog Fv=isosurface(Xs,Ys,Zs,Heads,25); visiso(fv)--makes a pretty isosurface, adds a light source

Animations Animations are extremely easy: 1.Make an image 2.Change it 3.Repeat

You can do this with a for-loop –For j=1:n Make image n –End Problem: Matlab does this too fast –Solution: insert pause command pause; %waits until user hits a key pause(t); %pauses for t seconds Animations in Matlab

Problems with previous scheme –Not portable (only in Matlab) –Not efficient: must render each image every time Solution: save to a standard movie format –AVI is a simple video format which is easy to create with Matlab Creating AVI files

Procedure is similar to before: –First, open a file: mov = avifile(name); %opens file called name –Set any options mov.Quality=100;%quality of images mov.Compression='None'; %compression mov.Fps=fps;%frames per second –Create an image as before –Then, capture it: F = getframe(gca);%capture the frame mov = addframe(mov,F);%add it to the movie –Repeat –Close the movie mov=close(mov); Creating AVI files

avislice.m uses clearslice to slice along a dimension of data –avislice(Xs,Ys,Zs,Heads,3,30,[20 200],2,'dogslicemovie.avi'); avislice.m