Python/JES JES IDE (Integrated Development Environment)

Slides:



Advertisements
Similar presentations
Introduction to Computing CS A109. Course Objectives Goal is to teach computation in terms relevant to non-CS majors Students will be able to read, understand,
Advertisements

+ Introduction to Programming My first red-eye removal.
CS1315: Introduction to Media Computation Making sense of functions.
Conditionals-part31 Conditionals – part 3 Barb Ericson Georgia Institute of Technology Nov 2009.
Python: Modifying Pictures Using Loops. Review JES command area – program area Defining/using functions specifying a sequence of steps for what the function.
TOPIC 5 INTRODUCTION TO PICTURES 1 1 Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach by M. Guzdial and B.
Georgia Institute of Technology Manipulating Pictures, Arrays, and Loops part 1.
CS 102 Computers In Context (Multimedia)‏ 02 / 06 / 2009 Instructor: Michael Eckmann.
CS 102 Computers In Context (Multimedia)‏ 02 / 18 / 2009 Instructor: Michael Eckmann.
Using Irfan By Linda Kenney.
James Tam Programming: Part II In this section of notes you will learn about more advanced programming concepts such as looping, functions.
CS 102 Computers In Context (Multimedia)‏ 02 / 25 / 2009 Instructor: Michael Eckmann.
Discover Digital Textile Printing for Fashion & Textiles Photo montage and engineered prints.
Introduction to Computing and Programming in Python: A Multimedia Approach Chapter 3: Modifying Pictures using Loops.
Computer Science 101 Introduction to Programming with Pictures.
+ Introduction to Programming My first red-eye removal.
IMAGE PROCESSING LIBRARY (PIL) This is a package that you can import into python and it has quite a few methods that you can process image files with.
How to use the Java class libraries Brief documentation of how to do this all with Java.
Objective Understand concepts used to create digital graphics. Course Weight : 15% Part Three : Concepts of Digital Graphics.
CS1315: Introduction to Media Computation Picture encoding and manipulation.
CS1315: Introduction to Media Computation Picture encoding and manipulation.
Download JES Tool JES: Jython Environment for Students
Review. Terms 6 x 6 Rule – States that each slide should have no more than six bulleted items with no more than 6 words on each bullet Contextual Spelling.
COSC 1P02 Introduction to Computer Science 7.1 Cosc 1P02 Week 7 Lecture slides "There are two ways of constructing a software design; one way is to make.
Jeopardy Heading1Heading2Heading3Heading4 Heading5 Q $100 Q $200 Q $300 Q $400 Q $500 Q $100 Q $200 Q $300 Q $400 Q $500 Final Jeopardy.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. M I C R O S O F T ® Refining Original Illustrations Lesson 9.
Introduction to Computing and Programming in Python: A Multimedia Approach Chapter 3: Modifying Pictures using Loops.
CS1315: Introduction to Media Computation Picture encoding and manipulation.
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. a lesson approach Microsoft® PowerPoint 2010 © 2011 The McGraw-Hill Companies,
Picture Lab. Manipulating Pictures Discussion and activities with java.awt.Color introduce students to megapixels, pixels, the RGB color model, binary.
Introduction to Computing and Programming in Python: A Multimedia Approach Chapter 3: Modifying Pictures using Loops.
Photoshop Editing Work Flow A Guide to the Full Meal Deal.
CS 102 Computers In Context (Multimedia)‏ 02 / 09 / 2009 Instructor: Michael Eckmann.
Python Programming in Context Chapter 6. Objectives To understand pixel based image processing To use nested iteration To use and understand tuples To.
An image has Reflective Symmetry if there is at least one line which splits the image in half so that one side is the mirror image of the other.
ITEC 109 Multimedia Lecture Lecture 23. Photo manipulation Review Lists / Arrays.
Chapter 3: Modifying Pictures using Loops. Chapter Learning Objectives.
First Project: Dance Dance Sprite  Write a dance with your sprite (You pick or create the sprite)  Incorporate as many of the Motion Commands as you.
PART TWO Electronic Color & RGB values 1. Electronic Color Computer Monitors: Use light in 3 colors to create images on the screen Monitors use RED, GREEN,
Copyright © Curt Hill Further Picture Manipulation Considering position.
Python: Working with pixels. Reminder: Conditionals if age < 18: showInformation(“Sorry, not allowed to vote yet.”) else: showInformation(“Please select.
* Edit photos * Create banners * Create animations * Enhance documents/presentations * Create documents * And many more.
I MAGE P ROCESSING IN CS1 Brad Miller David Ranum Luther College.
Advanced Imaging Techniques V Guilford County Sci Vis.
1 Sections 5.1 – 5.2 Digital Image Processing Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
Test 2 on Wed, 11/9 On image processing
Today, we'll learn how to animate our artwork
Chapter 4: Modifying Pictures using Loops
Download JES Tool JES: Jython Environment for Students
Image Processing CS177.
Week 2.
Picture Functions ppp =makePicture(pickAFile())
Lab 9 Intro to Robots.
Graphics Fundamentals
Download JES Tool JES: Jython Environment for Students
Test 2 on Wed, 11/9 On image processing
Chapter 4: Modifying Pictures using Loops
Монголын ноосон бүтээгдэхүүн үйлдвэрлэгчдийн холбоо
Chapter 3: Modifying Pictures using Loops
Faded picture background with full-color overlay (Intermediate)
Chapter 3: Modifying Pictures using Loops
Gray Scale picture def pixBW(pixel): # given a pixel, change to BW
The Project LennaGray.raw LennaEdge.raw
Agenda – 1/31/18 Questions? Group practice problems
Darkened picture background with full-color circle (Intermediate)
A Media Computation Cookbook
FUNCTION PRACTICE !!!.
CS 177 Week 3 Recitation Slides
Chapter 3: Modifying Pictures using Loops
Presentation transcript:

Python/JES JES IDE (Integrated Development Environment) Incorporates editing environment Program pane Command pane Watcher button to view debugging

Image Processing Negative B/WReduce Red Sunset Posterize Redeye Sepia-tone Mirror Symmetry Background substitution – chromakey Edge Detection Rotate Scale up or down a picture

Picture Functions in JES Picture-level: pick a file and make a picture = makePicture(pickAFile()) Pixel-level: pick a pixel in a picture = . getPixel(x.y) Do operation on a pixel, propagating the same operation over the entire picture

Pixel operations Find out what RGB values are .getRed(), . getGreen(), .getBlue() Change to a new colors .setRed(255), .setGreen(0) .setBlue(125) Create a new color in (R,G,B) and set new color = makeColor(0,255,0) .setColor( ) = .getColor() = pickAColor()

2. Get Picture Dimension pWid = myPic.getWidth() pHgt = myPic.getHeight()

Example >>> pic = makePicture(pickAFile()) >>> pix = pic.getPixel(1,1) >>> print pix Pixel, color=color r=168 g=131 b=105 # get/set individual color values >>> print pix.getRed() 168 >>> pix.setRed(255) 255 >>> color=pix.getColor() >>> print(color) color r=255 g=131 b=105 >>> pix.setColor(color)

LAB_1026 Pick a file and convert it to a picture file Change colors of 10 pixels at (20,50), (21,50), … (29,50) to reds. Write a function, hrz10(pic), to draw a red horizontal line from (20,50),…,(29,50) in the picture file, pic (or any name). You have to use a ‘for’ loop. Write a function, hrz100(pic,x,y), to draw a red horizontal line from (x,y) for 100 pixels. Write a function, diag(pic,x,y,n), to draw a red diagonal line from (x,y) for n pixels.