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.

Slides:



Advertisements
Similar presentations
Digital Color 24-bit Color Indexed Color Image file compression
Advertisements

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
COMP 14: Files and Graphics for Applets June 19, 2000 Nick Vallidis.
Exercise 1 - Poisson Image completion using Discrete Poisson Linear Systems.
Manipulating 2D arrays in Java
Image Representation.
CS320n –Visual Programming Introduction to LabVIEW.
Introduction to LabVIEW Seth Price Department of Chemical Engineering New Mexico Tech Rev. 10/5/14.
Adobe Photoshop 6 Foundation Level Course. What is Photoshop? Photoshop is a graphics program, which allows you to manipulate elements of photographs.
Contains 16,777,216 Colors. My Car is red My Car is red How do I add colors to my web page? Notepad Browser Works with the “Standard” colors: Red, Green,
Trevor McCasland Arch Kelley.  Goal: reduce the size of stored files and data while retaining all necessary perceptual information  Used to create an.
TERMS TO KNOW. Programming Language A vocabulary and set of grammatical rules for instructing a computer to perform specific tasks. Each language has.
WEB GRAPHICS. The Pixel Computer displays are comprised of rows and columns of pixels. Pixels are indivisible. Some common screen resolutions are:, 600.
©Brooks/Cole, 2003 Chapter 2 Data Representation.
Chapter 2 Data Representation. Define data types. Visualize how data are stored inside a computer. Understand the differences between text, numbers, images,
COMP Bitmapped and Vector Graphics Pages Using Qwizdom.
CS 102 Computers In Context (Multimedia)‏ 01 / 28 / 2009 Instructor: Michael Eckmann.
Georgia Institute of Technology Introduction to Media Computation Barb Ericson Georgia Institute of Technology May 2006.
TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach.
Image Processing & Perception Sec 9-11 Web Design.
Design of Bio-Medical Virtual Instrumentation Tutorial 3.
Java: Chapter 1 Computer Systems Computer Programming II.
Chapter 11 Fluency with Information Technology 4 th edition by Lawrence Snyder (slides by Deborah Woodall : 1.
ECE291 Computer Engineering II Lecture 9 Josh Potts University of Illinois at Urbana- Champaign.
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 14 Introduction to Computer Graphics.
Content To Date Review Course Work/Labs Assigned to Date Review HTML Image Tag Editing code for image folder Introduce HTML Color Tags Webpage Safe Colors.
More Basic XHTML Module 2: XHTML Basics LESSON 2.
Part I MVRT 2011 – 2012 Season Introduction to LabVIEW.
Addison Wesley is an imprint of © 2010 Pearson Addison-Wesley. All rights reserved. Chapter 5 Working with Images Starting Out with Games & Graphics in.
Most of the attributes of the body element specify colors for the Web page. Note: The background attribute won’t be useful till we learn about graphics.
Number Systems CIT Network Math
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.
Color on Computers. Bits and Bytes Bit: a single piece of yes/no or 0/1 data Two bits can code 4 items (00, 01, 10, 11) Three bits = 8 (000, 001, 010,
Two –Dimensional Arrays Mrs. C. Furman Java Programming November 19, 2008.
Lecture 15: Intro to Graphics Yoni Fridman 7/25/01 7/25/01.
CS320n –Visual Programming
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.
Color Web Design Professor Frank. Color Displays Based on cathode ray tubes (CRTs) or back- lighted flat-screen Monitors transmit light - displays use.
1 Introduction to Graphics b The last one or two sections of each chapter of the textbook focus on graphical issues b Most computer programs have graphical.
Image File Formats By Dr. Rajeev Srivastava 1. Image File Formats Header and Image data. A typical image file format contains two fields namely Dr. Rajeev.
TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach.
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.
More Digital Representation Discrete information is represented in binary (PandA), and “continuous” information is made discrete.
1 Sections 5.1 – 5.2 Digital Image Processing Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
Multidimensional Arrays
Image Processing Objectives To understand pixel based image processing
Everything is a number Everything in a computer memory and on storages is a number. Number  Number Characters  Number by ASCII code Sounds  Number.
Vocabulary byte - The technical term for 8 bits of data.
Vocabulary byte - The technical term for 8 bits of data.
Adjusting Image Colors Lasso & Marquee Tools
Vocabulary byte - The technical term for 8 bits of data.
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.
Images Presentation Name Course Name Unit # – Lesson #.# – Lesson Name
CS320n –Visual Programming
CS320n –Visual Programming
Multidimensional Arrays and Image Manipulation
Chapter 2 Data Representation.
Images Presentation Name Course Name Unit # – Lesson #.# – Lesson Name
Multidimensional Arrays
Digital Image Processing
Visuals are analog signals...
Presentation transcript:

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 Manipulation2

3 LabView LabVIEW is a graphical programming language –as opposed to a text based programming language such as Java or C++ –originally developed to collect and analyze data from instrumentation. –can be used as a general purpose programming language There are similarities –must think about what the problem is –what is the program suppose to do? –must plan a solution –must implement and test the solution The difference is what you do when implementing solution. –typing vs. working with icons

Colors and Computers Computers store numbers. How to store colors? Color models RGB Look at source code for a web page –search for “color” Visual ProgrammingImage Manipulation4

Visual ProgrammingImage Manipulation5 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

Exercise Complete LabVIEW program to create a color picker Visual ProgrammingImage Manipulation6

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

Visual ProgrammingImage Manipulation8 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 ProgrammingImage Manipulation9 Image Data

Visual ProgrammingImage Manipulation10 Image Data

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

Visual ProgrammingImage Manipulation12 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 ProgrammingImage Manipulation13 Viewing a Single Color Developed a VI to do this in an early lab a single function exists Controls and indicator added.

Visual ProgrammingImage Manipulation14 Sample Single Colors Moss? Black.

Visual ProgrammingImage Manipulation15 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 ProgrammingImage Manipulation16 Unflatten Image Function Most interested in the 24-bit pixmap

Visual ProgrammingImage Manipulation17 Unflattening the Image Image Wire Displaying value in element 0,0 Shown as a hexadecimal number, base 16. 1B = red component, 1 * * 1 = 27 1A = green component, 1 * * 1 = = blue component, 0 * * 1 = 5

Image Manipulation Program already done to pull out red, green, and blue components Now make changes such as –swapping –brighter –darker –remove one color channel –invert –posterize Visual ProgrammingImage Manipulation18

Visual ProgrammingImage Manipulation19 Original

Visual ProgrammingImage Manipulation20 Result