2D Routines in 3D.

Slides:



Advertisements
Similar presentations
Lecture 5.
Advertisements

30/9/2008Lecture 21 Computer Graphics Assistant Professor Dr. Sana’a Wafa Al-Sayegh 2 nd Semester ITGD3107 University of Palestine.
Chapter 11 Above: Principal contraction rates calculated from GPS velocities. Visualized using MATLAB.
Introduction to Matlab:
Interpolation, color, & light. Outline Announcements –HW II--due today, 5PM –HW III on the web later today HW I: Issues Structured vs. Unstructured Meshes.
Fall 2006AE6382 Design Computing1 Three Dimensional Plotting Learning Objectives –Understand the anatomy of a 3D plot –Basics of constructing plots in.
Matlab for Visualization Ray Gasser IS&T Scientific Visualization Tutorial – Spring 2010.
Introduction to Volume Visualization Mengxia Zhu Fall 2007.
Scientific Visualization Data Modelling for Scientific Visualization CS 5630 / 6630 August 28, 2007.
MATLAB Week 3 17 November Outline Graphics – Basic plotting – Editing plots from GUI – Editing plots from m-file – Advanced plotting commands.
Statistics and Simple Plots. Outline Announcements: –Homework II: due Wed. by 5, by Cookie Challenge Statistics Simple plots Tutorial 4.
 1999 BG Mobasseri1 8/29/2015 MATLAB GRAPHICS - PART II ADVANCED PLOTTING June 4, ‘99.
University of Illinois at Chicago Electronic Visualization Laboratory (EVL) CS 426 Intro to 3D Computer Graphics © 2003, 2004, 2005 Jason Leigh Electronic.
Volumetric Visualization. Outline Announcements –PS III due Friday –Last day for self-motivated assignment Belated CookiePresentation What is VV? Slices.
Plotting – 3-Dimensional. 3D Plots versus 2D Plots 3-dimensional plots, in contrast to 2-dimensional ones, has a third axis (often called the z-axis).
ELG 3120 Signal and System Analysis 1 Introduction to MATLAB TAs Wei Zhang Ozgur Ekici (Section A)(Section B) ELG 3120 Lab Tutorial 1.
Chapter 10: Graphics MATLAB for Scientist and Engineers Using Symbolic Toolbox.
3D Surface Inspector 3D Surface Inspector 1. Choose your Method of Image Acquisition. Manual acquisition captures a Z-stack within 3DSI Auto Acq.
The Hong Kong Polytechnic University Industrial Centre 1 MatLAB Lesson 4 : Polynomial Edward Cheung Room W311g 2008.
Computational Methods of Scientific Programming Lecturers Thomas A Herring, Room A, Chris Hill, Room ,
Outline Announcements –HW II due Friday –HW III option Interpolation Colormaps.
Raster Analysis. Learning Objectives Develop an understanding of the principles underlying lab 4 Introduce raster operations and functions Show how raster.
Introduction to MATLAB Session 5 Simopekka Vänskä, THL 2010.
Figures & Axes, Printing & Saving. Outline Announcements –Homework I due Wed. 5PM by –No lecture on Fri. 10/26, rescheduled to Wed. 10/31 at 8AM.
2D Routines in 3D. Outline Announcements –HW II--due Friday. 5PM HW1 & Cookie Grids & Meshes Representing f(x,y) Lines & Surfaces in 3D Survey.
Numerical Analysis 3D Plots. A numerical method is a technique for computing a numerical approximation of the solution to a mathematical problem.
Recap Plots with More than one Line Plots of Complex Arrays Line, Color and Mark Style Axis Scaling and Annotating Plots Subplots Polar Plots Logarithmic.
EGR 115 Introduction to Computing for Engineers Complex Numbers & 3D Plots – Part 2 Friday 07 Nov 2014 EGR 115 Introduction to Computing for Engineers.
Technion - Israel Institute of Technology Faculty of Mechanical Engineering Laboratory for CAD & Lifecycle Engineering Lab 10: 3D & Projections Advanced.
Handle Graphics and 1D Primitives Some Handel graphics.
2/24/2016 A.Aruna/Assistant professor/IT/SNSCE 1.
Dynamic Perspective How a moving camera reveals scene depth and egomotion parameters Jitendra Malik UC Berkeley.
Figures & Axes, Printing & Saving. Outline Announcements –Homework I on web, due Wed. 5PM by –No lecture on Fri. 10/26, rescheduled to Wed. 10/31.
More Matlab Graphics and GUI Graphics subplots some useful commands 3D graphics GUI GUI controls The callback property Other essential properties.
1 Berger Jean-Baptiste
EEE 242 Computer Tools for Electrical Engineering
Figures & Axes, Printing & Saving. Outline Announcements –Homework I on web, due Wed. 5PM by e- mail A word on HWI and cookies What happens when you plot.
Lecture 17 More Plotting Chapter 12 Matrices. Outline from Chapter D Plotting 11.4 Surface Plots 11.5 Interacting with Plotted Data.
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.
1 Berger Jean-Baptiste
CS112 Scientific Computation Department of Computer Science Wellesley College Kodak moments 3-D Visualization and Color.
CS112 Scientific Computation Department of Computer Science Wellesley College Kodak moments 3-D Visualization and Color.
6 th Grade Elements of Design. Line Line is the path of a point move across a surface. A line can be used to express different feelings, meanings, and.
Advanced Plotting Techniques Chapter 11 Above: Principal contraction rates calculated from GPS velocities. Visualized using MATLAB.
AutoDidge Digitizing scanned well log images. Autodidge AUTODIDGE is a program that allows you to digitize scanned well log images to capture curve data.
MATRIX FILES IN SURVEY.
Reading and Writing Image Files
John Federici NJIT Physics Department
Charts & Graphs CTEC V
VTK: The Visualization Toolkit
Elements of design A Brief Overview.
Miguel Tavares Coimbra
Computer Graphics CC416 Week 15 3D Graphics.
ENEE222 Elements of Discrete Signal Analysis Lab 11 1.
3D-Graphs A 3D surface is defined as: z = f(x, y)
Lecture 25.
Probability & Statistics Displays of Quantitative Data
Ch3 Graphics Overview of Plotting Editing Plots
INTRODUCTION TO 3-D 3-D CAD TERMINOLOGY 2-D
Patches of Color.
Modeling 101 For the moment assume that all geometry consists of points, lines and faces Line: A segment between two endpoints Face: A planar area bounded.
Microsoft Excel 2003 Illustrated Complete
Advanced Plotting Techniques
CSCI N317 Computation for Scientific Applications Unit 1 – 5 MATLAB
Create 3D Solid Objects. Create 3D Solid Objects.
Yang-Ming University, Taipei, Taiwan
Plotting Signals in MATLAB
Representation of Color Stimuli in Awake Macaque Primary Visual Cortex
Miguel Tavares Coimbra
Marching Squares Ed Angel
Presentation transcript:

2D Routines in 3D

Outline Announcements Updated Syllabus Representing f(x,y) Wed: 2 Lectures, 8-10 bagels or donuts? HW II--due Wed. 5PM Discuss HWI on Wed Updated Syllabus Representing f(x,y) Lines & Surfaces in 3D Color & Surfaces Example: curtain.m

Syllabus 6. 2D routines in 3D: surfaces 7. Advanced color and lighting 8.Interpolation & unstructured grids 9. GUI’s I 10. GUI’s II 11. Volumetric visualization I 12. VV II & where to go from here

Representing f(x,y) Lots of choices for visualizing 2D data, often depends on properties of data Structure of x & y Regular Grid Irregular 2D view pcolor colortime contour circleplot 3D view surface bar3 meshgrid stem3

3D views 3D views on a computer or painting are just illusions Perspective lines converge towards focal point Color and lighting can enhance perspective Optical illusions are possible

Line Objects in 3D h=plot(x,y);get(h,’zdata’) ans= Empty matri:x 1-by-0 Both patch and line objects have a zdata field. Plot and patch set this to [] We can plot a line in 3D using plot3(x,y,z) could also set zdata field manually

3D view 3D functions will set axes projection to perspective The axes are now a box drawn in perspective

Controlling the 3D view We can control the size of the axes (limits) and the way they are drawn (view) set(gca,’xlim’,[minimum, maximum])--also for y and z Can also set scale to log or reveerse direction (must be done manually) Clicking on the circle button allows you to rotate the axes in 3D

Controlling the 3D view Can also control the view from the command line through view: view(2) or view (3) gets default 2D or 3D views view([az,el]) sets the azimuth=az (rotates about z) and elevation=el(rotates about line in x-y- plane) elevation azimuth

Surfaces in 3D Like lines, patch and surface objects have zdata fields. surf(X,Y,Z) creates a surface with vertices defined by X,Y, and Z color is proportional to Z facecolor=flat mesh(X,Y,Z) is similar, but doesn’t fill polygons edgecolor=flat

Comparing surf and pcolor pcolor is a special form of surf How can we change cdata? field pcolor(x,y,Z) surface(x,y,Z) xdata x ydata y zdata [] Z cdata facecolor ‘faceted’ view orthographic perspective

CDATA We can use surface plots to represent 3D functions c=f(x,y,z) x,y, and z define a surface c is represented by color surf(X,Y,Z,C) where C is the same size as Z

Example: Curtain plots Sample c at every z along an x,y path We want to display c on curtain below the path path=[x(t),y(t)]

Curtain plots The path is the trajectory of a ship The ship has an acoutsic transducer that is sending sound into the water By measuring the volume of sound returned and when it occurs, we can get c(z) this is a rough measure of the concentration of “stuff” in the water depending on the frequency used, this could be shrimp, fish, or submarines

curtain.m name size desctiption Inputs x 1-by-n x-locations y y-locations z m-by-1 depth bins BS m-by-n data Outputs h scalar handle to the curtain

curtain.m The key to curtain is forming matrices X,Y, and Z from vectors x, y, and z Z=z(:)*ones(1,n); X=ones(m,1)*x(:)’;Y=ones(m,1)*y(:)’; x1,y1 x2,y2 x3,y3 x4,y4 x5,y5 z1 z2 z3