Introduction to Image Processing and Python: Pixel ...

Introduction to Image Processing and

Python: Pixel Representation

Pixel Representation

Steven L. Tanimoto

Intro. to Image Proc. & Python ? S. Tanimoto

Saturday, August 24, 13

Pixel Representation

1

Outline

? Representing pixels in PixelMath and

other Imaging Systems

? Binary Numbers

? Converting to/from decimal

? Bits and Bytes and how binary numbers

represent information

? Direct RGB color representation

? Indexed color representation

Intro. to Image Proc. & Python ? S. Tanimoto

Saturday, August 24, 13

Pixel Representation

2

Binary Numbers and Pixels

The binary number system (or base 2) uses one

binary digit (¡°bit¡±) for each power of 2 in some

range of powers, say 20 to 27.

Decimal

0

1

2

3

Binary

0

1

10

11

Intro. to Image Proc. & Python ? S. Tanimoto

Saturday, August 24, 13

Pixel Representation

3

Binary Numbers (continued)

Decimal

4

5

6

7

8

9

10

11

12

13

14

15

Intro. to Image Proc. & Python ? S. Tanimoto

Saturday, August 24, 13

Binary

100

101

110

111

1000

1001

1010

1011

1100

1101

1110

1111

Pixel Representation

4

Pixel Values in Binary

Decimal

0

1

100

127

128

254

255

Intro. to Image Proc. & Python ? S. Tanimoto

Saturday, August 24, 13

Binary

00000000

00000001

01100100

01111111

10000000

11111110

11111111

Pixel Representation

5

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download