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.

Slides:



Advertisements
Similar presentations
Click the Enter button to begin using the Compendium Click to continue.
Advertisements

Chapter 11 Above: Principal contraction rates calculated from GPS velocities. Visualized using MATLAB.
A graphical user interface (GUI) is a pictorial interface to a program. A good GUI can make programs easier to use by providing them with a consistent.
© Anselm Spoerri Lecture 11 Flash –Build Flash Website with Animated Navigation Structure –Decide on Overall Navigation Layout, Import Images & Organize.
Get number The ginput command creates crosshairs. When the user clicks the x,y values of the crosshairs are returned.
Create slices and hotspots Create links in Web pages Create rollovers from slices Create basic animation Add tweening symbol instances to create animation.
1 Introduction to the Visual Studio.NET IDE Powerpoint slides modified from Deitel & Deitel.
Image Morphing, Thin-Plate Spline Model CSE399b, Spring 07 Computer Vision
© 2010 Delmar, Cengage Learning Chapter 4: Creating Animation.
Animation Your Task. You must work in pairs. One of you will read these instruction and explain them, while the other person carries them out. Discuss.
Reporting Aesthetics An ACEware Webinar 1:00-2:00 pm February 14 th, 2008.
Review of last session The Weebly Dashboard The Weebly Dashboard Controls your account and your sites Controls your account and your sites From here you.
InDesign CS3 Lessons 1 and 2. Work Area When First Opened.
Exercise : Animated Navigation Structure in Flash 1.Develop Answers to “What did you learn in ITI program?” “What do you have to offer?” “What are your.
Ansys Workbench 1 Introduction
Department of Mechanical Engineering, LSUSession VII MATLAB Tutorials Session VIII Graphical User Interface using MATLAB Rajeev Madazhy
Creating a Web Site to Gather Data and Conduct Research.
Graphics and Multimedia Part #2
Introduction to Matlab & Data Analysis
ArcGIS: ArcMap Layout View. Agenda Layout interface Using templates Page properties Data frame properties Toolbars Layout elements Fine-tuning Finishing.
Working with Symbols and Interactivity
XP Tutorial 1 Introduction to Macromedia Flash MX 2004.
Chapter 10 Fireworks: Part II The Web Warrior Guide to Web Design Technologies.
GUI development with Matlab: GUI Front Panel Components 1 GUI front panel components In this section, we will look at -GUI front panel components -Programming.
Adobe Flash CS3 Revealed Chapter 1 - GETTING STARTED WITH FLASH.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved CheckWriter Application Introducing Graphics and Printing.
Introduction to Matlab’s Graphical User Interface (GUI) Type “guide” “Guide” creates interface on a Figure window and code in an M-file. Some hidden code.
Computational Methods of Scientific Programming Lecturers Thomas A Herring, Room , Chris Hill, Room ,
Review of last session Add text to your website Add text to your website Title Title Paragraph Paragraph Title and paragraph Title and paragraph Add photographs.
Creating Graphical User Interfaces (GUI’s) with MATLAB By Jeffrey A. Webb OSU Gateway Coalition Member.
Introduction to Flash Animation CS 318. Topics Introduction to Flash and animation The Flash development environment Creating Flash animations  Layers.
Chapter 2 – Introduction to the Visual Studio .NET IDE
Forms Using. 2  Plan a form  Create a form  Move and resize controls  Modify labels  Modify text boxes Objectives.
Chapter 4 Working with Frames. Align and distribute objects on a page Stack and layer objects Work with graphics frames Work with text frames Chapter.
Adobe Photoshop CS3 Revealed – Chapter 16 FOR THE WEB CREATING IMAGES.
Introduction to MATLAB Session 5 Simopekka Vänskä, THL 2010.
Introduction to Matlab & Data Analysis 2015 In this tutorial we will: Build a practical application using GUIDE Learn more about graphical user interface.
Processing Lab 2 – Geometry Bryce Hutchinson Objectives: Add a dictionary Gain a better understanding of header issues Display geometry correctly Visualize.
Using the AccuGlobe Software with the IndianaMap Using the AccuGlobe Software.
Microsoft Access 2002 Illustrated Complete Forms Using.
GUI development with Matlab: GUI Front Panel Components GUI development with Matlab: Other GUI Components 1 Other GUI components In this section, we will.
© 2011 Delmar, Cengage Learning Chapter 4 Working with Frames.
Chapter 16 Designing Effective Input Systems Analysis and Design Kendall and Kendall Fifth Edition.
Digital Image Processing Introduction to MATLAB. Background on MATLAB (Definition) MATLAB is a high-performance language for technical computing. The.
EGR 115 Introduction to Computing for Engineers
INFORMATION SYSTEM – SOFTWARE TOPIC: GRAPHICAL USER INTERFACE.
MA/CS 375 Fall 2002 Lecture 2. Motivation for Suffering All This Math and Stuff Try the Actor demo from
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Student Grades Application Introducing Two-Dimensional Arrays and RadioButton.
Introduction to Matlab Module #10 Page 1 Introduction to Matlab Module #10 – Creating Graphical User Interfaces Topics 1.Overview of GUI Development using.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Folio3 IPhone Training Session 2 Testing App on device Presenter: Imam Raza.
MA/CS 375 Fall MA/CS 375 Fall 2002 Lecture 23.
MATLAB and SimulinkLecture 61 To days Outline Graphical User Interface (GUI) Exercise on this days topics.
MA/CS375 Fall MA/CS 375 Fall 2002 Lecture 5.
Adobe Photoshop CS4 – Illustrated Unit A: Getting Started with Photoshop CS4.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
Creating cast members  Using tool palette window that can be selected from window menu.  The following objects can be created: Push buttons, Radio buttons,
Graphical User Interface in MATLAB
The View Figure Module The View Figure and Figure modules are for FactSage like Notepad and Word for Windows. Use the View Figure module for simple graphical.
Lecture 25.
Creating Links – Lesson 3
Chapter 2 – Introduction to the Visual Studio .NET IDE
Computer presentation
Ch3 Graphics Overview of Plotting Editing Plots
Tutorial Tutorial Read all the directions before proceeding
Topics Graphical User Interfaces Using the tkinter Module
Exercise : Animated Navigation Structure in Animate (= Flash)
Exercise : Animated Navigation Structure in Flash
Presentation transcript:

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 output: x and y Matlab functions

MA/CS 3753 ginput Cross hairs appear, then click to select point. Matlab functions

MA/CS 3754 interp2 ZI = INTERP2(X,Y,Z,XI,YI) interpolates to find ZI, the values of the underlying 2-D function Z at the points in matrices XI and YI. Matrices X and Y specify the points at which the data Z is given. Out of range values are returned as NaN. X, Y must be a regular grid of data (i.e. created with meshgrid)

MA/CS 3755 interp2 (interpolation of rectangular array data) Matlab functions

MA/CS 3756 griddata griddata does the same as interp2 however the input data can be given at arbitrarily spaced points. ZI = GRIDDATA(X,Y,Z,XI,YI) fits a surface of the form Z = F(X,Y) to the data in the (usually) nonuniformly-spaced vectors (X,Y,Z) GRIDDATA interpolates this surface at the points specified by (XI,YI) to produce ZI. The surface always goes through the data points. XI and YI are usually a uniform grid

MA/CS 3757 griddata Matlab functions

MA/CS 3758 Team Project Introduction –Each team is going to work on the same type of project. –All presentation rules for homework apply to the team project. –All coding must be done in Matlab

MA/CS 3759 General Project Topic Image tweening. i.e. given two or more images we are going to write routines that create intermediate images Morphing using non-linear maps Examples… More details:

MA/CS Part 1 Devise a one page team plan It should address what part each team member will work on

MA/CS Part 2 Load in two images using imread Crop the images to be the size of the smaller image. Display the images in the same window using subplot Let the “user” select a set of control point pairs [CXleft,CYleft] and [CXright,CYright]. i.e. a control point pair consists of one 2D point from each picture. Use ginput Plot a * at each point in the left picture and a + at each point in the right picture, using plot Board demo

MA/CS Part 3 Use griddata to evaluate: Xwarpleft = griddata(CXright,CYright,CXleft,Xright,Yright, ‘cubic’); Ywarpleft = griddata(CXright,CYright,CYleft,Xright,Yright, ‘cubic’); where Xright and Yright are a rectangular grid of pixel locations in the right hand image, created with meshgrid. The output Xwarpleft and Ywarpleft indicate the coordinates in the left image where the color of each pixel in the final right image is going to be found Try using ‘linear’, ‘cubic’, ‘v4’ (i.e. first, third and mystery order interpolation) Make sure the calculated Xwarpleft and Ywarpleft are in bounds

MA/CS Part 4 For each pixel in the right picture, use the coordinates (Xwarpleft,Ywarpleft in the left picture) found in Part 3, and the function interp2 to find the three intensities (red, green and blue) in the left picture at the warped coordinates. Convert the results into unsigned 8-bit integers using uint8. Use image to plot the deformed picture.

MA/CS Example Green points map to red points  warped coordinate system

MA/CS Part 5 Using linear interpolation in time, plot a sequence of tween images (t=0,0.2,0.4,..,1) using: C(x,y) = LeftImage((1-t)*Xleft+t*Xwarpleft,(1-t)*Yleft+t*Ywarpleft) Where the values of LeftImage are obtained with interp2

MA/CS Example of Tweening

MA/CS Part 6 Using linear interpolation in time (t=0, 0.2, …, 1.0), plot a sequence of tween images using: C(x,y) = LeftImage((1-t)*Xleft+t*Xright,(1-t)*Yleft+t*Yright) THEN: Using linear interpolation in time (t=0, 0.2, …, 1.0), plot a sequence of tween images using: C(x,y) = (1-t)*LeftImage(Xwarpleft,Ywarpleft)+t*RightImage(Xright,Yright)

MA/CS Part 7 Each team member should contribute a picture. Using the same method as Part 6 create an animation of the pictures morphing from one to the other in sequence.

MA/CS Part 8 (extra credit) Create a graphical user interface for the project using guide It should have a number of buttons, sliders, radio buttons e.g. –a slider to choose the number of control points –a file option to choose the left and right images –an option to add and reduce control points –a zoom option –a slider to choose number of tween frames –…. Go wild….

MA/CS guide Type guide at the matlab prompt: Matlab functions

MA/CS guide cont (adding a slider) 1)click on slider icon 2)move mouse to top left of required slider 3)drag rectangle to specify shape of slider 4)click File, then save as (1) (2) (3)

MA/CS guide cont. (enabling a slider button) right click on slider button left click on properties you can now edit the properties of this slider

MA/CS Using handles > fig = openfig(mfilename,'reuse'); > handles = guihandles(fig); % Create structure for the first time > slider_value = get(handles.slider1, ‘Value);

MA/CS Add A Bunch of Options (but design a better interface)

MA/CS Running GUI:

MA/CS Checking slider value

MA/CS Project Due 10/23/02 No extensions. Presentations due on 10/23 I encourage you to get the majority of it working well before the due date !!. Each team member must submit their own report, preferably with experiments using their own pictures.