Representing Sound and Image. Representing images One mean of representing an image it to...
-
Upload
alvin-mitchell -
Category
Documents
-
view
212 -
download
0
description
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…](https://reader036.fdocuments.net/reader036/viewer/2022090107/5a4d1bf17f8b9ab0599e6299/html5/thumbnails/1.jpg)
Representing Sound and Image
![Page 2: Representing Sound and Image. Representing images One mean of representing an image it to interpret…](https://reader036.fdocuments.net/reader036/viewer/2022090107/5a4d1bf17f8b9ab0599e6299/html5/thumbnails/2.jpg)
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…](https://reader036.fdocuments.net/reader036/viewer/2022090107/5a4d1bf17f8b9ab0599e6299/html5/thumbnails/3.jpg)
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…](https://reader036.fdocuments.net/reader036/viewer/2022090107/5a4d1bf17f8b9ab0599e6299/html5/thumbnails/4.jpg)
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…](https://reader036.fdocuments.net/reader036/viewer/2022090107/5a4d1bf17f8b9ab0599e6299/html5/thumbnails/5.jpg)
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…](https://reader036.fdocuments.net/reader036/viewer/2022090107/5a4d1bf17f8b9ab0599e6299/html5/thumbnails/6.jpg)
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…](https://reader036.fdocuments.net/reader036/viewer/2022090107/5a4d1bf17f8b9ab0599e6299/html5/thumbnails/7.jpg)
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…](https://reader036.fdocuments.net/reader036/viewer/2022090107/5a4d1bf17f8b9ab0599e6299/html5/thumbnails/8.jpg)
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…](https://reader036.fdocuments.net/reader036/viewer/2022090107/5a4d1bf17f8b9ab0599e6299/html5/thumbnails/9.jpg)
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…](https://reader036.fdocuments.net/reader036/viewer/2022090107/5a4d1bf17f8b9ab0599e6299/html5/thumbnails/10.jpg)
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…](https://reader036.fdocuments.net/reader036/viewer/2022090107/5a4d1bf17f8b9ab0599e6299/html5/thumbnails/11.jpg)
Addition in two’s complementAddition in two’s complement
Islamic University Of Gaza, Nael Aburas 11