Images In Matlab.

Slides:



Advertisements
Similar presentations
Laboratory of Image Processing Pier Luigi Mazzeo
Advertisements

Chapter 14 Landsat 7 image of the retreating Malaspina Glacier, Alaska.
CGA 115 Professor Mary A. Malinconico. Questions from Last Week ????????
© red ©
Images and colour Colour - colours - colour spaces - colour models Raster data - image representations - single and multi-band (multi-channel) images -
Colour Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 6 This presentation © 2004, MacAvon Media Productions Colour.
Version 1.0, 30 June 2004 APPLICATIONS OF METEOSAT SECOND GENERATION (MSG) RGB IMAGES: PART 02 INTRODUCTION TO RGB COLOURS Author:Jochen Kerkmann (EUMETSAT)
Quiz Review - Drawing Kickback - line type most specific to designers that is drawn with an emphasis at the beginning and at the end. Feathering - a vague-looking.
Digital Images Chapter 8, Exploring the Digital Domain.
07: Color in Interactive Digital Media
Objective Understand concepts used to create digital graphics. Course Weight : 15% Part Three : Concepts of Digital Graphics.
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.
Colours and Computer Jimmy Lam The Hong Kong Polytechnic University.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Introduction to MATLAB
What are the five colors in the legend? Enter the information below (5 points) 0000FF = = FFFFFF = 00FF00 = FF0000 = Color Theory Legend: income.
Color and Resolution Introduction to Digital Imaging.
Spring R. Smith - University of St Thomas - Minnesota QMCS 130: Today’s Class Final Exam – rest of class scheduleFinal Exam – rest of class schedule.
CS112 Scientific Computation Department of Computer Science Wellesley College Numb3rs Number and image types.
Image Representation. Digital Cameras Scanned Film & Photographs Digitized TV Signals Computer Graphics Radar & Sonar Medical Imaging Devices (X-Ray,
Homework Assignment You are going to research any artist of your choosing from any time period or genre. You are going to complete a one page double- spaced.
W2D1. HSV colour model Source: Primary colours Red Green Blue Secondary Cyan Magenta.
Ch 6 Color Image processing CS446 Instructor: Nada ALZaben.
A L I MAM M OHAMMAD B IN S AUD I SLAMIC U NIVERSITY C OLLEGE OF S CIENCES D EPARTMENT OF M ATHEMATICS MATLAB 251 : MATH SOFTWARE Introduction to MATLAB.
By: Ashley. Spot Color Spot color refers to the process of selecting text or a graphic object such as a circle and then adding a spot of color to it.
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.
Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli
PRIMARY COLOURS Primary Colours: The 3 primary colours are red, yellow and blue. They are three colours that can't be made by mixing any other colours,
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.
HSB to RGB to HEX.
Image Representation Last update st March Heejune Ahn, SeoulTech.
Color Element of Art.
Introduction to MATLAB Ehsan Adeli M. Iran University of Science and Technology, E-Learing Center, Fall 2008 (1387)
Using Color CMPS 233. The Color Wheel Primary colors are the only colors you cannot create: yellow, red, and blue Mixing adjacent colors in a color wheel.
RED, YELLOW, and BLUE These colors cannot be made Used to make all other colors.
1 of 32 Computer Graphics Color. 2 of 32 Basics Of Color elements of color:
Guess the colour Mix the colours Evaluation Group with work.
Colour CPSC Colour ● Models ● RGB ● CMY(K) ● HSB (or HSV) ● RYB ● Harmonies ● Monochrome ● Complementary ● Analogous ● Triadic.
Images Data Representation.
Half Toning Dithering RGB CMYK Models
Sampling, Quantization, Color Models & Indexed Color
Design Concepts: Module A: The Science of Color
The Colour of Light: Additive colour theory.
ივანე ჯავახიშვილის სახელობის
Color on Remotely Sensed Imagery
Plotting Chapter 5.
Red, socks, yellow, jacket, coat, orange, skirt, black, hat, green, blue, jeans, brown, T-shirt, shoes, white, pink.
Chapter 6: Color Image Processing
Color Image Representation
Color Theory and the Color Wheel
COMS 161 Introduction to Computing
Mixing coloured lights
Colour Theories.
Two ways to discuss color 1) Addition 2) Subtraction
Chapter 13 Sights and Sounds.
Color Visualization in Matlab
Nuts and Bolts of Digital Imaging
Color and Shading Lecture 9 Mon, Sep 26, 2005.
What Color is it?.
©
Digital Image Processing
Primary and secondary There are two theories about how we can organize the different colours. Physicists explain color as a function of light. This is.
©
Color Theory Study Guide
Basic Concepts of Digital Imaging
Non-numeric Data Representation
METEOSAT SECOND GENERATION (MSG) INTRODUCTION TO RGB COLOURS
Presentation transcript:

Images In Matlab

Colour Images Digital images are represented as a matrix of numbers. The matrix has three pages, one for red, one for green and one for blue. Each red, green or blue value goes from 0 to 1, where 0 is off, 0.5 is on half-way, and 1 is on all the way. Combining red, green, and blue values in different proportions yields different colours. 1 0.5 0.25 0.75 0.1 0.9 0.4 1 0.5 0.25 0.75 0.1 0.9 0.4 1 0.5 0.25 0.75 0.1 0.9 0.4

Colour Images 1,0,0 0,1,0 0,0,1 Puts red, green and blue values on separate pages.

Colour Images 1,0,1 1,1,0 0,1,1

Grayscale Images 0.25 Grayscale images have the same values on all three pages. 0.75 1

Reading in Images From Files

Reading in Images From Files

Reading in Images From Files Images read in from files have R,G,B values that go from 0 to 255 and are of class uint8 (i.e. unsigned 8-bit integer). 00001100 =0×27 + 0×26 + 0×25 + 0×24 + 1×23 + 1×22 + 0×21 + 0×20 = 0 + 0 + 0 + 0 + 8 + 4 + 0 + 0 = 12

Colour maps Index Red Green Blue 1 2 3 4 Instead of specifying the R,G,B value at each pixel, you can make a look-up table that contains different colours and then your image only has to contain references to the look- up table. This is a good way to save space and send images more quickly. 1 2 3 4

Colour maps Converts to unsigned 8-bit integers.

Colour maps

Colour maps

Colour maps

Colour maps Matlab has several built-in colour maps: parula - Blue-green-orange-yellow color map hsv - Hue-saturation-value color map. hot - Black-red-yellow-white color map. gray - Linear gray-scale color map. bone - Gray-scale with tinge of blue color map. copper - Linear copper-tone color map. pink - Pastel shades of pink color map. white - All white color map. flag - Alternating red, white, blue, and black color map. lines - Color map with the line colors. colorcube - Enhanced color-cube color map. vga - Windows colormap for 16 colors. jet - Variant of HSV. prism - Prism color map. cool - Shades of cyan and magenta color map. autumn - Shades of red and yellow color map. spring - Shades of magenta and yellow color map. winter - Shades of blue and green color map. summer - Shades of green and yellow color map.

Scaled Images Indicates that we want to scale the image.

Scaled Images

Scaled Images

Writing Images to Files MyImage.jpg Image matrix File name Image format

Writing Images to Files MyMappedImage.tif Colour map