P1253814550VYUPZ - PowerPoint PPT Presentation

1 / 27
About This Presentation
Title:

P1253814550VYUPZ

Description:

???????????????????????? Ian Thomas. ?????????????? ??? ... 16 bit - R and B have 5 bits each, but G has 6 bits. because the eye is more sensitive to green. ... – PowerPoint PPT presentation

Number of Views:20
Avg rating:3.0/5.0
Slides: 28
Provided by: ianth3
Category:

less

Transcript and Presenter's Notes

Title: P1253814550VYUPZ


1
???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
  • Inside a digital image
  • How colour is defined for images
  • How colour is represented in an image

2
???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
Representing colour
3
???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
The Windows colour cube is 6x6x6 with 216
colours.
Blue
Green
Red
Gray line
http//www.webreference.com/dev/graphics/palette.h
tml
4
???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
Green
Blue
Red
We can make the grey line vertical by changing
the direction of the R, G and B axes.
5
???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
Intensity
Hue
Red
Green
Red
Red
Blue
Green
Blue
Green
Blue
Saturation
Transforming from RGB to HSI
6
???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
Converting from RGB to HSI firstly we normalize
the RGB values.
7
???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
Now calculate normalized h, s and i values
8
???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
Now convert h, s and i to more convenient H, S
and I values
http//www.clarkson.edu/class/image_process/RGB_to
_HSI.pdf
9
???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
To convert back from HIS to RGB
10
HSV and HLS colour spaces are other ways to
describe colour.
http//escience.anu.edu.au/lecture/cg/Color/printN
otes.en.html
11
Saturation of colour
http//escience.anu.edu.au/lecture/cg/Color/printN
otes.en.html
12
???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
Defining colour to an image
13
An artists pallette defines the colours used in
a painting.
http//artguildct.org/2005200320March.htm
http//www.arttoheartweb.com/starry_night.htm
14
???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
Van Gogh Robert Rauschenberg
http//www.featurepics.com/editorial/Color-Analyti
cs.aspx
15
???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
Using a palette from the Windows colour cube
Using the best palette for the image - adaptive
palette
16
???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
Image resolution and quantization
17
???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
Resolution is the number of pixels in an image.
128x192
64x48
16x24
32x48
18
???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
Quantization is the number of different colours
for each pixel.
256 levels
4 levels
19
???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
Quantization affects the quality of an image.
64
16
32
256
20
???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
Ways to store images
21
Indexed colour means that the image is broken up
into an array of indexes and a palette.
http//en.wikipedia.org/wiki/Bits_per_pixel
22
???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
8 bit indexed colour
23
???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
Highcolour 15 bit - each colour R,G,B has 5
bits. There are a total of 32,768 colours 16
bit - R and B have 5 bits each, but G has 6 bits
because the eye is more sensitive to green. There
are a total of 65,536 colours.
http//en.wikipedia.org/wiki/Highcolour
24
???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
8 bit RGB - Truecolour for example, yellow
(255,255,0) blue (0,0,255) There are a total of
16 million colours.
25
???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
An image can be split into RGB.
red
green
blue
http//homepages.cae.wisc.edu/mccormic/ece533/hw3
.html
26
???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
Or into HSI.
Hue
Saturation
Intensity
http//homepages.cae.wisc.edu/mccormic/ece533/hw3
.html
27
???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
  • An image file consists of 2 parts
  • a header with information about the image (may
    include the palette)
  • the body with the actual image information

Image x size
Image x size
Image file
Write a Comment
User Comments (0)
About PowerShow.com