Representing Sound and Image. Representing images One mean of representing an image it to...

11
Representing Sound and Image

description

Black and white image Each pixel can be represented by a single bit. For more elaborate black and white picture, each pixel can be represented by a collection of bits. Islamic University Of Gaza, Nael Aburas3

Transcript of Representing Sound and Image. Representing images One mean of representing an image it to...

Page 1: Representing Sound and Image. Representing images One mean of representing an image it to interpret…

Representing Sound and Image

Page 2: Representing Sound and Image. Representing images One mean of representing an image it to interpret…

Representing imagesRepresenting images

• One mean of representing an image it to interpret the image as a collection of dots, each is called pixel.

• Pixel is a picture element.• Each pixel is encoded.• Image is represented as a collection

encoded pixels.• Such collection is called bit map

Islamic University Of Gaza, Nael Aburas 2

Page 3: Representing Sound and Image. Representing images One mean of representing an image it to interpret…

Black and white imageBlack and white image

• Each pixel can be represented by a single bit.

• For more elaborate black and white picture, each pixel can be represented by a collection of bits.

Islamic University Of Gaza, Nael Aburas 3

Page 4: Representing Sound and Image. Representing images One mean of representing an image it to interpret…

Color imageColor image

• RGB encoding–Each pixel is represented as three color: red,

green and blue.–One byte is normally used to represent the

intensity of each color.–Three byte of storage are required to

represent a single pixel.

Islamic University Of Gaza, Nael Aburas 4

Page 5: Representing Sound and Image. Representing images One mean of representing an image it to interpret…

Representing soundsRepresenting sounds• The most generic method of encoding audio information

is to sample the amplitude of the sound wave at regular intervals and record the series of values obtained.

• Sound waves rises in amplitude, falls, rises at a higher level, and then drop back to 0.

• The voice at one end of the communication is encoded as numeric values representing the amplitude of the voice.

• The numeric values can be then transmitted over the communication line to the receiving end.

Islamic University Of Gaza, Nael Aburas 5

Page 6: Representing Sound and Image. Representing images One mean of representing an image it to interpret…

Storing integersStoring integers

• Two’s complement Notation, excess notation are used for representing integer values in computing equipment.

Islamic University Of Gaza, Nael Aburas 6

Page 7: Representing Sound and Image. Representing images One mean of representing an image it to interpret…

Two’s complement NotationTwo’s complement Notation

• The most popular system within today’s computer.

• system in which negative numbers are represented by the two's complement of the absolute value

• Used a fixed number of bits to represent each of the values in the system.

• In today’s equipment, it is common to represent by a pattern of 32 bits which allows a wide range of numbers to be represented.

Islamic University Of Gaza, Nael Aburas 7

Page 8: Representing Sound and Image. Representing images One mean of representing an image it to interpret…

Figure 1.21 Two’s complement notation Figure 1.21 Two’s complement notation systemssystems

Islamic University Of Gaza, Nael Aburas 8

Page 9: Representing Sound and Image. Representing images One mean of representing an image it to interpret…

Two’s complement NotationTwo’s complement Notation

• The leftmost bit of a bit pattern represent the sign of the value.–“1” represent the negative sign.–“0” represent the positive sign

• The complement of a pattern is the pattern obtained by changing all the 0s to1s and all the 1s to 0s.

Islamic University Of Gaza, Nael Aburas 9

Page 10: Representing Sound and Image. Representing images One mean of representing an image it to interpret…

Coding the value using Two’s complementCoding the value using Two’s complement

• Representing negative value–Copy the original pattern from the right to left

until a 1 has been copied, then complement the remaining bits until the final bit pattern.

Islamic University Of Gaza, Nael Aburas 10

Page 11: Representing Sound and Image. Representing images One mean of representing an image it to interpret…

Addition in two’s complementAddition in two’s complement

Islamic University Of Gaza, Nael Aburas 11