Chapter 14 Landsat 7 image of the retreating Malaspina Glacier, Alaska.

Slides:



Advertisements
Similar presentations
Images Images are a key component of any multimedia presentation.
Advertisements

Laboratory of Image Processing Pier Luigi Mazzeo
Image Display MATLAB functions for displaying image Bit Planes
Chapter 11 Above: Principal contraction rates calculated from GPS velocities. Visualized using MATLAB.
Color COM 366 Web Design & Production. RGB color Amount of light in each channel Closer to 255, whiter color gets Every color has value for red,
School of Engineering and Computer Science Victoria University of Wellington Copyright: Peter Andreae & david streader, VUW Images and 2D Graphics COMP.
Insight Through Computing 22. Working with Image Files imread, imwrite, imshow, uint8, rgb2gray.
Images and colour Colour - colours - colour spaces - colour models Raster data - image representations - single and multi-band (multi-channel) images -
Image Representation.
2.01 Understand Digital Raster Graphics
Graphics in the web Digital Media: Communication and Design
Bitmapped Images 27 th November 2014 With Mrs
Bitmapped Images. Bitmap Images Today’s Objectives Identify characteristics of bitmap images Resolution, bit depth, color mode, pixels Determine the most.
Colour Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman
Computer Systems Nat 4.5 Computing Science Data Representation Lesson 4: Storing Graphics EXTENSION.
Chapter 5. Loops are common in most programming languages Plus side: Are very fast (in other languages) & easy to understand Negative side: Require a.
CMYK vs. RGB Design. Primary colors The colors that make up the base for every other color created. Depending on whether you are looking at it from science,
Digital Images Chapter 8, Exploring the Digital Domain.
Lab #5-6 Follow-Up: More Python; Images Images ● A signal (e.g. sound, temperature infrared sensor reading) is a single (one- dimensional) quantity that.
Sundermeyer MAR 550 Spring Laboratory in Oceanography: Data and Methods MAR550, Spring 2013 Miles A. Sundermeyer Image Processing/Analysis.
07: Color in Interactive Digital Media
Objective Understand concepts used to create digital graphics. Course Weight : 15% Part Three : Concepts of Digital Graphics.
Matlab tutorial course Lesson 5: Loading and writing data, producing visual output
I-1 Steps of Image Generation –Create a model of the objects –Create a model for the illumination of the objects –Create an image (render) the result I.
Getting the Basics Graphics for the Web McIntyre, Period 2 Kellogg, Period 5.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Aerial Photographs and Remote Sensing Aerial Photographs For years geographers have used aerial photographs to study the Earth’s surface. In many ways.
Color. There are established models of color, each discipline uses it own method for describing and discussing color intelligently.
Image and Video Processing in MATLAB Partly based on slides by Dmitri Roduy.
© 1999 Rochester Institute of Technology Introduction to Digital Imaging.
Photoshop I I450 Technology Seminar. Adobe Photoshop Illustrator Acrobat InDesign ImageReady.
MA/CS 3751 Fall 2002 Lecture 24. MA/CS 3752 ginput ginput is a Matlab function which takes one argument input: number of points to select in the image.
CS112 Scientific Computation Department of Computer Science Wellesley College Numb3rs Number and image types.
Lecture 3 The Digital Image – Part I - Single Channel Data 12 September
Image Representation. Digital Cameras Scanned Film & Photographs Digitized TV Signals Computer Graphics Radar & Sonar Medical Imaging Devices (X-Ray,
ADOBE PHOTOSHOP VECTOR VS RASTER. Pixel A pixel is the fundamental unit of an image in Photoshop. It is a small square block of color. An image often.
Image Display & Enhancement Lecture 2 Prepared by R. Lathrop 10/99 updated 1/03 Readings: ERDAS Field Guide 5th ed Chap 4; Ch 5: ; App A Math Topics:
Digital Image Processing Lecture4: Fundamentals. Digital Image Representation An image can be defined as a two- dimensional function, f(x,y), where x.
Ch 6 Color Image processing CS446 Instructor: Nada ALZaben.
DIGITAL IMAGE. Basic Image Concepts An image is a spatial representation of an object An image can be thought of as a function with resulting values of.
Color Web Design Professor Frank. Color Displays Based on cathode ray tubes (CRTs) or back- lighted flat-screen Monitors transmit light - displays use.
CS 101 – Sept. 14 Review Huffman code Image representation –B/W and color schemes –File size issues.
June 14, ‘99 COLORS IN MATLAB.
CMPS1371 Introduction to Computing for Engineers IMAGES.
L23. Working with Image Files imread, imwrite, imshow, uint8, rgb2gray.
Digital Image Processing Introduction to MATLAB. Background on MATLAB (Definition) MATLAB is a high-performance language for technical computing. The.
Computer Science 121 Scientific Computing Winter 2014 Chapter 14 Images.
Image Representation Last update st March Heejune Ahn, SeoulTech.
MA/CS375 Fall MA/CS 375 Fall 2002 Lecture 5.
Computer Application in Engineering Design
(Project) by:- ROHAN HIMANSHU ANUP 70282
Reading and Writing Image Files
John Federici NJIT Physics Department
Images and 2D Graphics COMP
Images In Matlab.
Digital Data Format and Storage
2.01 Understand Digital Raster Graphics
Color Image Representation
Chapter I Digital Imaging Fundamentals
Digital Image Processing using MATLAB
Computer Graphics Using “Adobe Photoshop”
Chapter 13 Sights and Sounds.
Color Visualization in Matlab
CSE 307 Basics of Image Processing
Digital Image Processing
Computer Systems Nat 4.5 Computing Science Data Representation
Basic Concepts of Digital Imaging
Visuals are analog signals...
Fundamentals of Image Processing Digital Image Representation
Non-numeric Data Representation
Presentation transcript:

Chapter 14 Landsat 7 image of the retreating Malaspina Glacier, Alaska

Earth science is a very visual discipline Graphs Maps Field Photos Satellite images Because of this, all Earth scientists should have: Basic knowledge about graphics file types Pros/cons of different graphics file types Siccar Point: The first recognized angular unconformity by James Hutton Image: Chris Highly Allochthonous Blog Photomicrograph of peridotite (mantle rock) Sediment Core Landsat image of Death Valley, CA Cathodoluminescence image of granite

Which is better? Depends on use For graphs/plots: typically vector ( unless data set is HUGE ) For photos: raster Which is better? Depends on use For graphs/plots: typically vector ( unless data set is HUGE ) For photos: raster

MATLAB provides functions that read raster images Each pixel’s value (color) is stored as a number in matrix MATLAB also has an image processing toolbox with TONS of image processing options. In this class, we will only use the image functions that are part of the standard MATLAB libraries imread, image, imagesc, colormap, Novarupta Volcano, Aleutian Islands, Alaska Purples/Reds: Volcanic ash from 1912 Eruption Blues: Snow/Ice Mississippi River meanders & oxbows near Memphis, TN Yukon River delta, Alaska Landsat false-color image examples…

Before we start processing images, we need to talk about how computers represent colors as numbers Three common color models RGB: An additive model works like light CMYK: A subtractive model works like ink HSV: A cone-shaped model useful for shading colors

For variables of class uint8 (and 8-bit images) are the possible integer values (same for the uint8 class!) 0 is minimum for any RGB color 255 is max for any RGB color Red (R)Green (G) Blue (B)To define any color, you must specify the Red (R), Green (G), and Blue (B) values Wait, color can be a vector! Grayscale images only need one value (0=black, 255=white) [ ][ ][ ][ ][ ][ ][ ] [ ][ ][ ][ ][ ][ ][ ]

Just to annoy us, MATLAB requires colormap RGB values to be values between 0 and 1 for variables of class double 0 is minimum for any RGB color 1 is max for any RGB color Red (R)Green (G) Blue (B)To define any color, you must specify the Red (R), Green (G), and Blue (B) values To convert from the system, just divide by 255! Or cast as uint8 Grayscale images really only need one value (0=black, 1=white) [ ][ ][ ][ ][ 1 0 0][ ][ 0 1 0] [ ][ ][ ][ 1 1 0][ 0 1 1][ 1 0 1][ ]

MATLAB can represent color in images in two basic ways 1)True Color or RGB The three color components are stored in a m x n x 3 matrix. I.e. a 3D matrix. R-valuesG-valuesB-values (:, :, 1) R-values; (:, :, 2) G-values; (:, :, 3) B-values 2)Indexed to a Colormap Colors are stored as a single integer value that corresponds to a row in a colormap matrix. Colormap stores the RGB values Image Matrix Colormap Matrix 4 Pixel Image

‘image’ plots a matrix as an image Don’t forget to specify the colormap If not, you get the default 64 color ‘jet’ colormap

MATLAB provides several built-in colormaps The command colormap is rather useful It can set the current colormap Can be a built-in map or a custom n x 3 matrix Built-in colormaps can be easily scaled E.g. “jet(256)” returns a 256 x 3 matrix that follows the color scheme of the built-in “jet” colormap.

If ‘image’ is passed a 3D matrix It is assumed to be a true color image R-values 1 st level R-values G-values 2 nd level G-values B-values 3 rd level B-values If ‘image’ is passed a 2D matrix It is assumed to be an colormap indexed image

If you exceed the color map values, you get either the min or max color

Why does MATLAB offer two ways to store image colors? 1)Flexibility. It is always good to give users options 2)Grayscale vs Color Images These images are typically read in MATLAB in different ways Grayscale: Indexed Color Color image: True Color or RGB image

‘imread’ can read in most standard grayscale raster image types.jpg.gif.png, etc… Stores image as a rectangular matrix Each entry represents one pixel’s grayscale value (black to white) Let’s read this image into MATLAB The image is 814 x 531 pixels Matrix will be 531 x 814 Try to automate detection of the dendrites Cropped grayscale image of dendrites Increased contrast (using Photoshop)

If ‘image’ is given a 2D matrix, it assumes the image is indexed color

‘imread’ can read in most standard RGB raster image types.jpg.gif.png, etc… Stores image as a 3D matrix Each entry represents one pixel’s R, G, or B value (min/max) 1 st z-slice = Red values 1 st z-slice = Red values 2 nd z-slice = Green values 2 nd z-slice = Green values 3 rd z-slice = Blue values 3 rd z-slice = Blue values Let’s read this image into MATLAB The image is 1000 x 1001 pixels Matrix will be 1001 x 1000 x 3 Try to automate detection of the water Landsat image of Yukon River delta Google Earth Image (aerial photo)