Lab 9 Intro to Robots.

Slides:



Advertisements
Similar presentations
TRANSFORMATIONS.
Advertisements

ROTATION ..
11.5 Rotations. Rotations Rotate a Figure 90 about the origin.
Warm Up Draw an example of a reflection: Draw an example of a figure that has one or more lines of symmetry: Find the new coordinates of the image after.
Secret Fortress Construction Challenge Name(s): _______________________ You should have two identical LEGO block kits. Set the extra kit aside, and use.
Quick graphs using Intercepts 4.3 Objective 1 – Find the intercepts of the graph of a linear equation Objective 2 – Use intercepts to make a quick graph.
Rectangular Coordinate System
X y (x,y) x - coordinate y - coordinate. How are coordinates helpful?
The Coordinate Plane Goal: Plot points on a coordinate plane.
The Coordinate Plane. A coordinate plane is formed when two number lines intersect. The coordinate plane is used to locate points. The two number lines.
Coordinate Plane. The Basics All points on the coordinate plane have an address that is in the format of (x,y) The x-coordinate represents the horizontal.
Java Applets A First Program. Applet Example /* The world’s simplest program, repeated once more in another format in an attempt to turn all of you into.
Math 025 Section 7.2 Graphing.
Lesson 2: Reflecting Shapes. When Doing Reflections… You use a line of reflection No matter where the shape is in relation to the line of reflection,
Lesson Topic: Drawing the Coordinate Plane and Points on the Plane
Elements in Photography Focus: Line Project 2. Line The element “line” is considered by most to be the most basic element of art. It has an almost infinite.
8.3 Notes Handout.
Chapter 1.7 Midpoint and Distance in a Coordinate Plane
1-6 Ordered Pairs and Relations
Equations of straight lines
Lesson 5 Menu Five-Minute Check (over Lesson 6-4) Main Idea and Vocabulary Targeted TEKS Example 1: Identify Line Symmetry Example 2: Identify Line Symmetry.
Reflection MCC8.G.3 Describe the effect of dilations, translations, rotations and reflections on two-dimensional figures using coordinates. Picture with.
Chapter 1 - Foundations for Functions
Graph dilations on a coordinate plane.
Lesson 1-6 Pages Ordered Pairs and Relations.
CS1315: Introduction to Media Computation Referencing pixels directly by index number.
Transformations and the Circle Family
Objective: Plot points and lines on a coordinate plane. Standards Addressed: G: Represent relationships with tables or graphs in the coordinate plane.
LEARNING TARGETS: 1. TO IDENTIFY SLOPE FROM A TABLE OF VALUES. 2. TO IDENTIFY SLOPE FROM A GRAPH. 3. TO IDENTIFY SLOPE FROM 2 POINTS. 4. TO IDENTIFY SLOPE.
Chapter 1-6: Ordered Pairs and Relations Coordinate system: used to locate points also call the Coordinate plane Origin: is a (0,0) and is the point at.
COORDINATE PLANE Math 7.
PRE-ALGEBRA. Lesson 1-10 Warm-Up PRE-ALGEBRA Lesson 1-10 Warm-Up.
Coordinate System Graphing and Ordering Pairs. Coordinate Plane X - Axis Y - Axis Origin Quadrant 1 Quadrant 4Quadrant 3 Quadrant 2.
Graphing Introduction. In this section we need to review some of the basic ideas in graphing. It is assumed that you’ve seen some graphing to this point.
Chapter 1 -Foundations for Functions
Geometry warm-up Get a strip of paper from the back desk.
ITEC 109 Multimedia Lecture Lecture 23. Photo manipulation Review Lists / Arrays.
Rotations. Goals Distinguish between a translation, reflection, and rotation. Visualize, and then perform rotations using patty paper. To determine the.
(7.7) Geometry and spatial reasoning The student uses coordinate geometry to describe location on a plane. The student is expected to: (B) graph reflections.
FUNCTION TRANSLATIONS ADV151 TRANSLATION: a slide to a new horizontal or vertical position (or both) on a graph. f(x) = x f(x) = (x – h) Parent function.
3.6 - Equations of Lines in the Coordinate Plane Please view the presentation in slideshow mode by clicking this icon at the bottom of the screen.
The Coordinate Plane. Vocabulary Words Axes - two perpendicular number lines used for locating points Origin – the intersection of the two axes Y-axis.
CS 1114: Finding things Prof. Graeme Bailey (notes modified from Noah Snavely, Spring 2009)
Finding the Slope. The Question Given the two point (-3,1) and (3,3) which lie on a line, determine the slope of that line. First, let’s draw the graph,
Section 2.6 Inverse Functions. Definition: Inverse The inverse of an invertible function f is the function f (read “f inverse”) where the ordered pairs.
Chapter-4(part 1) Graphing Linear Equations and Functions By: Donna, Fannie, Ashley and Nick.
Notes Over 9.2 Graphing a Rational Function The graph of a has the following characteristics. Horizontal asymptotes: center: Then plot 2 points to the.
In the last several lessons, you have described translations using coordinates. You have also developed strategies for determining where an object started.
SLOPE 8.2.spi11 Finding the slope of a line: The slope of a hill means how steeply it goes up or down. Lines and curves also have a slope. To find slope:
Transformationf(x) y = f(x) + c or y = f(x) – c up ‘c’ unitsdown ‘c’ units EX: y = x 2 and y = x F(x)-2 xy F(x) xy
Dilation: a transformation that produces an image that is the same shape as the original, but is a different size. A dilation stretches or shrinks the.
REVIEW OF MAPPING RULES
Algebra Vol 2 Lesson 6-3 Elimination by Addition or Subtraction.
Ordered Pairs Objective:Find how to graph ordered pairs.
Python/JES JES IDE (Integrated Development Environment)
Unit 1: Transformations Lesson 3: Rotations
Graphical Representation of Linear Equations and Functions
Introduction to Functions
A movement of a figure in a plane.
MATH 8 – UNIT 1 REVIEW.
Gray Scale picture def pixBW(pixel): # given a pixel, change to BW
Objective The student will be able to:
Rotations on the Coordinate Plane
Intervals of Increase and Decrease
Directions: Fill in the blanks with the correct answers then color in the picture with the given color. Color White: A full rotation around a.
1.6 Inverse Functions.
1.6 Inverse Functions.
Y X Equation of Lines.
Let’s start an intro unit to Geometry!!
4.3 Rotations.
Presentation transcript:

Lab 9 Intro to Robots

Exercise 1: Write the program described in class that makes a red line scan across a photo. Program design: picture = loadPicture(“mypicture.jpg”) copyPic = copyPicture(picture) for each xCoordinate of copyPic: draw a vertical red line show(copyPic) wait(0.2) reconstruct the original pixels in copyPic from picture copy vertical line in original picture to copy def reconstructVerticalLine(pic1,pic2,x): for each yCoordinate of pic2: get pixel (pix1) from pic1 pixel (x,y) get pixel (pix2) from pic2 pixel (x,y) get three colors from pix1 assign three colors to pix2 Intro to Robots

I don’t like the name, call your new function filterRedAreas(). Exercise 2: Rewrite findRedAreas() in the class notes to convert all really red areas to totally red (255,0,0) and the rest to black (0,0,0). As a measure of “really red”, let’s say that pixels in the range (>200, <175, <175) are “really red”. I don’t like the name, call your new function filterRedAreas(). Intro to Robots

Exercise 3: Modify the program studied in class that finds the red center of a photograph to put a cross-hairs in the same picture. Intro to Robots

Write a program that rotates a picture 90°. Exercise 4: Write a program that rotates a picture 90°. Intro to Robots

Modify that program to put a cross-hairs at the center of the blob. Exercise 5: The second program we studied in class puts a vertical line through the center of the largest red blob in a picture. Modify that program to put a cross-hairs at the center of the blob. Idea for how to do this: Make a copy of the picture by rotating it 90 degrees. In the rotated picture find the x-coordinate of the vertical line through the largest red blob. Use this as the y-coordinate of a horizontal line in the original picture. Intro to Robots