CS320n –Visual Programming

Slides:



Advertisements
Similar presentations
Arrays. Memory organization Table at right shows 16 bytes, each consisting of 8 bits Each byte has an address, shown in the column to the left
Advertisements

Exercise 1 - Poisson Image completion using Discrete Poisson Linear Systems.
First Bytes - LabVIEW. Today’s Session Introduction to LabVIEW Colors and computers Lab to create a color picker Lab to manipulate an image Visual ProgrammingImage.
Manipulating 2D arrays in Java
5. 1 JPEG “ JPEG ” is Joint Photographic Experts Group. compresses pictures which don't have sharp changes e.g. landscape pictures. May lose some of the.
Digital Colour Theory. What is colour theory? It is the theory behind colour mixing and colour combination.
Image Processing & Perception Sec 9-11 Web Design.
COSC 1P02 Intro. to Computer Science 6.1 Cosc 1P02 Week 6 Lecture slides "To succeed, jump as quickly at opportunities as you do at conclusions." --Benjamin.
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 14 Introduction to Computer Graphics.
What are the five colors in the legend? Enter the information below (5 points) 0000FF = = FFFFFF = 00FF00 = FF0000 = Color Theory Legend: income.
Computer Science 112 Fundamentals of Programming II Graphics Programming.
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.
Pictures Looping through pixels.. Lab Review (1) Objects  Instantiated from Class  Turtle myTut = new Turtle(myWorld);  new operator creates an instance.
1 Ethics of Computing MONT 113G, Spring 2012 Session 10 HTML Tables Graphics on the Web.
Two –Dimensional Arrays Mrs. C. Furman Java Programming November 19, 2008.
Digital Media Lecture 3: Image Encoding Bitmapped images Georgia Gwinnett College School of Science and Technology Dr. Jim Rowan.
CS320n –Visual Programming
Picture Lab. Manipulating Pictures Discussion and activities with java.awt.Color introduce students to megapixels, pixels, the RGB color model, binary.
Why a bitmap (.bmp), not a.jpg? If you cannot save a.bmp, make it an uncompressed.tif. Compression (of this 8-bit 397,000 pixel image): none (397kb memory)medium.
ITEC 109 Multimedia Lecture Lecture 23. Photo manipulation Review Lists / Arrays.
CMPS1371 Introduction to Computing for Engineers IMAGES.
Representing Sound and Image. Representing images One mean of representing an image it to interpret the image as a collection of dots, each is called.
1 Sections 5.1 – 5.2 Digital Image Processing Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
Week 3 Labview exercises
Multidimensional Arrays
Representation of image data
(Project) by:- ROHAN HIMANSHU ANUP 70282
Image Processing Objectives To understand pixel based image processing
CSS Layouts CH 13.
David Meredith Aalborg University
Vocabulary byte - The technical term for 8 bits of data.
Vocabulary byte - The technical term for 8 bits of data.
Image Processing CS177.
Adjusting Image Colors Lasso & Marquee Tools
Vocabulary byte - The technical term for 8 bits of data.
Image Processing & Perception
UNIT 2 – LESSON 4 Encoding Color Images.
Compression (of this 8-bit 397,000 pixel image):
DIP 9 65 Original 210 Eye Zoomed.
U2L4 Encoding Color Images
Vocabulary byte - The technical term for 8 bits of data.
Vocabulary byte - The technical term for 8 bits of data.
Vocabulary byte - The technical term for 8 bits of data.
Vocabulary byte - The technical term for 8 bits of data.
Microprocessor and Assembly Language
COMS 161 Introduction to Computing
Images Presentation Name Course Name Unit # – Lesson #.# – Lesson Name
CS320n –Visual Programming
Color Values All colors in computer images are a combination of red, green and blue Each component is encoded as a number means the color is.
Digital Image Processing using MATLAB
Chapter 5 SubVIs.
Looping through pixels.
Image Analyzer John Ponte SAS Abstract References
Numbers and their bases
- orange white green - cyan - red - blue Example 1 24 bit RGB
CS 106A, Lecture 18 Practice with 1D and 2D Arrays
Multidimensional Arrays and Image Manipulation
Chapter 2 Data Representation.
Art Programs Raise Deep Questions
Images Presentation Name Course Name Unit # – Lesson #.# – Lesson Name
GRAPHICAL DATA EXCHANGE FORMATS .jpg .gif .tif.
Multidimensional Arrays
Digital Image Processing
CS 177 Week 3 Recitation Slides
Basic Concepts of Digital Imaging
Multi-Dimensional Arrays
Visuals are analog signals...
EET 2259 Unit 9 Arrays Read Bishop, Sections 6.1 to 6.3.
Non-numeric Data Representation
- orange white green - cyan - red - blue Example 1 24 bit RGB
Presentation transcript:

CS320n –Visual Programming Image Manipulation

What We Will Do Today Look at how to alter images using LabVIEW Visual Programming Image Manipulation

Loading Images VI Block Diagram of VI that allows user to load jpg images from a file and displays the image Visual Programming Image Manipulation

Image Data The image cluster contains a lot of data The heart of the image is an array of ints each int only uses 1 byte or 8 bits represents a number from 0 – 255 three ints in a row represent the red, green, and blue intensity for 1 pixel elements 0, 1, 2 are for the pixel at row 0, column 0, the upper left corner Visual Programming Image Manipulation

Image Data Visual Programming Image Manipulation

Image Data Visual Programming Image Manipulation

RGB Colors What color is that pixel at the top left corner? Looks very black Unbundle image to get at image array Visual Programming Image Manipulation

RGB Colors First three elements of image array are 27, 26, and 5 Intensity of red from 0 to 255 0 is none, 255 is maximum a little red, a little green, almost no blue very close to black, all three 0 Visual Programming Image Manipulation

Viewing a Single Color Developed a VI to do this in an early lab a single function exists Controls and indicator added. Visual Programming Image Manipulation

Sample Single Colors Black. Moss? Visual Programming Image Manipulation

How Many Colors If the encoding of an image allows red, green, and intensity values of 0 – 255 there are 256 * 256 * 256 = 16,777,216 possible colors 1 byte per color per pixel 3 bytes total per pixel, 24 bits a.k.a. 24 bit image Visual Programming Image Manipulation

Altering Images Some programming tools allow individual pixels or areas to be affected, recolored. We will look at altering image by affecting all pixels in the image need to work with the color data can work with the array of colors from image OR “unflatten” the image data to a 2d array go from an array of 1 dimension (like a list) to an array with 2 dimensions, like a table Visual Programming Image Manipulation

Unflatten Image Function Most interested in the 24-bit pixmap Visual Programming Image Manipulation

Unflattening the Image Image Wire Displaying value in element 0,0 Shown as a hexadecimal number, base 16. 1B = red component, 1 * 16 + 11 * 1 = 27 1A = green component, 1 * 16 + 10 * 1 = 26 05 = blue component, 0 * 16 + 5 * 1 = 5 Visual Programming Image Manipulation

One filter – Invert image Invert the image set each pixel = 16,777,215 – original value auto indexing really shines 2d array single element 1d array flatten back to image Visual Programming Image Manipulation

Original Visual Programming Image Manipulation

Result Visual Programming Image Manipulation