Introduction to Computer Science – Chapter 9 CSc 2010 Spring 2011 Marco Valero.

Slides:



Advertisements
Similar presentations
Creative Computing. \\ aims By the end of the session you will be able to: 1.Explain the difference between various image file formats 2.Load in and display.
Advertisements

Dr. Paige H. Meeker. What can Python do without the Robots? We can use Python to control the robots We can also use Python to create some interesting.
CS2984: Introduction to Media Computation Drawing directly on images.
Computer Science 111 Fundamentals of Programming I More Digital Image Processing.
Week 7 - Wednesday.  What did we talk about last time?  Transparency  Gamma correction  Started texturing.
Computer Vision Introduction to Image formats, reading and writing images, and image environments Image filtering.
Lecture 1: Images and image filtering
CS443: Digital Imaging and Multimedia Filters Spring 2008 Ahmed Elgammal Dept. of Computer Science Rutgers University Spring 2008 Ahmed Elgammal Dept.
Announcements Kevin Matzen office hours – Tuesday 4-5pm, Thursday 2-3pm, Upson 317 TA: Yin Lou Course lab: Upson 317 – Card access will be setup soon Course.
Eleven colors and rasters. Color objects Meta represents colors with color objects You can create a color by saying: [color r g b] r: amount of red (0-255)
Image Enhancement.
Image Analysis Preprocessing Arithmetic and Logic Operations Spatial Filters Image Quantization.
Computer Science 111 Fundamentals of Programming I Introduction to Digital Image Processing.
Computer Vision Lecture 3: Digital Images
April Geometric Transformations for Computer Graphics Shmuel Wimer Bar Ilan Univ., School of Engineering.
FLUID IMAGES Being friendly to computers and mobiles, don’t discriminate.
Lecture 1: Images and image filtering CS4670/5670: Intro to Computer Vision Kavita Bala Hybrid Images, Oliva et al.,
Harris detector Convert image to greyscale Apply Gaussian convolution to blur the image and remove noise Calculate gradient of image in x and y direction.
CSC589 Introduction to Computer Vision Lecture 3 Gaussian Filter, Histogram Equalization Bei Xiao.
Parallel Edge Detection Daniel Dobkin Asaf Nitzan.
Chapter 5 Using Classes and Objects in Media Computing
Addison Wesley is an imprint of © 2010 Pearson Addison-Wesley. All rights reserved. Chapter 5 Working with Images Starting Out with Games & Graphics in.
September 23, 2014Computer Vision Lecture 5: Binary Image Processing 1 Binary Images Binary images are grayscale images with only two possible levels of.
September 5, 2013Computer Vision Lecture 2: Digital Images 1 Computer Vision A simple two-stage model of computer vision: Image processing Scene analysis.
Lecture 03 Area Based Image Processing Lecture 03 Area Based Image Processing Mata kuliah: T Computer Vision Tahun: 2010.
Aim: How can we use Photoshop to sharpen edges in an image? Do Now: Open the image you worked with yesterday.
Chapter 4: Representation of data in computer systems: Images OCR Computing for GCSE © Hodder Education 2011.
Why is computer vision difficult?
Computer Science 111 Fundamentals of Programming I Introduction to Digital Image Processing.
Introduction to Image processing using processing.
Introduction to Image Processing. Image Processing is the steps of using image processing tools to covert different kinds of image sources into different.
Digital Media Lecture 4: Bitmapped images: Compression & Convolution Georgia Gwinnett College School of Science and Technology Dr. Jim Rowan.
CSC508 Convolution Operators. CSC508 Convolution Arguably the most fundamental operation of computer vision It’s a neighborhood operator –Similar to the.
Image Manipulation CSC361/661 – Digital Media Spring 2002 Burg/Wong.
Machine Vision Introduction to Using Cognex DVT Intellect.
Introduction to Computer Science – Chapter 5 CSc 2010 Spring 2011 Marco Valero.
Python Programming in Context Chapter 6. Objectives To understand pixel based image processing To use nested iteration To use and understand tuples To.
Lecture # 19 Image Processing II. 2 Classes of Digital Filters Global filters transform each pixel uniformly according to the function regardless of.
Sejong Univ. CH3. Area Processes Convolutions Blurring Sharpening Averaging vs. Median Filtering.
PhotoShop Basics Start > All Programs > Adobe Master Collection CS5> Adobe PhotoShop CS5.
Machine Vision. Image Acquisition > Resolution Ability of a scanning system to distinguish between 2 closely separated points. > Contrast Ability to detect.
Introduction to Computer Science – Chapter 6 CSc 2010 Spring 2011 Marco Valero.
Lecture 1: Images and image filtering CS4670/5670: Intro to Computer Vision Noah Snavely Hybrid Images, Oliva et al.,
1 Sections 5.1 – 5.2 Digital Image Processing Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
Non-linear filtering Example: Median filter Replaces pixel value by median value over neighborhood Generates no new gray levels.
Image Processing Intro2CS – week 6 1. Image Processing Many devices now have cameras on them Lots of image data recorded for computers to process. But.
Chapter 8. Drawing Pixels, Bitmaps, Fonts, and Images Computer Graphics (spring, 2009) School of Computer Science University of Seoul.
Geometric Transformations for Computer Graphics
Geometric Transformations for Computer Graphics
Data Representation Images.
David Meredith Aalborg University
Lesson 2-3 AP Computer Science Principles
Image Deblurring and noise reduction in python
1-Introduction (Computing the image histogram).
Chapter 5 Working with Images
Histogram Histogram is a graph that shows frequency of anything. Histograms usually have bars that represent frequency of occuring of data. Histogram has.
Chapter 8, Exploring the Digital Domain
Lecture 1: Images and image filtering
9th Lecture - Image Filters
Lecture 17 Figures from Gonzalez and Woods, Digital Image Processing, Second Edition, 2002.
Gray Scale picture def pixBW(pixel): # given a pixel, change to BW
Geometric Transformations for Computer Graphics
Resolution Resolution: 6 x 4.
Fundamentals of Programming I Introduction to Digital Image Processing
Y/I/Q channel blurring with 5x5 mean filter
Harris detector Convert image to greyscale
Digital Image Processing
Lecture 1: Images and image filtering
Intensity Transform Contrast Stretching Y ← u0+γ*(Y-u)/s
IMAGE DEBLURRING THE END IS NIGH
Presentation transcript:

Introduction to Computer Science – Chapter 9 CSc 2010 Spring 2011 Marco Valero

Overview Review image basics Making pictures Image processing Shrinking and enlarging Blurring and sharpening Negative and embossing Robot vision

Image basics We used takePicture and show to respectively take and show pictures already We’ve also seen savePicture as a means to save a snapshot to disk makePicture( ) will load a picture from disk and return a picture object ▫myPic = makePicture(pickAFile())

Image basics Height and width can be retrieved from a picture ▫getHeight( ) and getWidth( ) show(, ) ▫We can call show(myPic, ‘my title’) to create a window with a title

Making pictures Rather than taking pictures, we can create our own ▫width = height = 100 ▫newPic = makePicture(width, height, black) RGB ▫Each is a byte, We can loop through each pixel just like a matrix and change the value

Image processing We can think of the bitmap as a matrix then any transformation from one picture to another is a matrix transformation 500x500 pixel bitmap ▫250k pixels ▫If 10 operations per transformation that’s 2.5 mil ops! Image processing is intensive

Shrinking & enlarging If we wanted to shrink a given n x n image by a factor of f ▫Result size is n/f x n/f ▫Bitmap[x*f, y*f] -> NewBitmap[x, y] Enlarging is the inverse ▫Result size is n*f x n*f ▫Bitmap[x/f, y/f] -> NewBitmap[x, y]

Blurring & sharpening Pixel transformation as a result of its local neighbors’ values Blurring is done by setting a pixels value to the averages of its neighbors ▫V = sum([getRed(up),getRed(left),…]) / 5 Sharpening is done by subtracting the sum of its neighbors ▫V = 5*getRed(self) – sum([neighborvalues])

Negative & embossing To create a negative of an image we simply subtract 255 from the current value ▫V = 255 – getRed(pixel) Creating an embossed effect is done by subtracting a neighbors value from a pixel ▫V = getRed(pixel) – getRed(neighbor)

Robot vision Are computers good at recognizing objects? Are _we_ good at recognizing objects? What would a simple tracking code look like?

Robot vision What if we only focused on the object? ▫We can use high contrast filter ▫What are the issues with this? Blob filtering ▫takePicture(‘blob’) ▫Compare to older program