Data Representation Flashcards
Week 2, 4 (19 cards)
equation for range of possible numbers
R = B^k
- where R = range, B = base, K = number of digits
what is binary coded decimal
- unsigned integer
- intergeres are stored as decimal numbers
- each decimal digit is stored as its 4 - bit binary equivalent
2 ways of representing signed integers
- sign-magnitude
- two’s complement
what does the mantissa impact
range
what does the exponent impact
accuracy/precision
what is the IEEE Standard 754
- developed to facilitate the portability of programs
- uses BCD or DPP to represent significand (mantissa)
- signs for special values
how is text represented
- represent characters as strings of bits
what is a character set
a list of characters where each character in the set is enumerated
- ASCII, Unicode, UTF-8
name the 3 types of image formats
- rasters
- HDTV
- vector
what is a raster and how does it represent an image
- aka bitmap
- each pixel is an n-bit string which encodes its colour
- rasterisation = converting a vector graphic to a raster image
what is a HDTV and how does it represent images
- 1920 x 1080 pixels
- 24 bits per pixel
- total size = approx 6.2 MB
what is vector format and hoe does it represent images
- image created from geometric shapes
- only need to store data for points & lines/curves between them
- smaller size than raster images
- lossless compression
name the 3 colour models
- RGB
- HSV
- CMYK
what is the RGB colour model and how does it represent colour
- bits represent how much of each colour is needed
- expressed as a triplet of values
- # RRGGBB
what is the HSV colour model and how does it represent colour
- represents colour as a cylinder
- hue = angle
- saturation = deeper colours at the edge
- value = height
- used in image & video editing software
what is the CMYK colour model & how does it represent colour
- cyan, magenta & yellow
- subtracts light colours
- used in printers
- can be expressed as a tuple
how are images captured
- by sampling
- no. of samples = resolution
- expressed as pixels per inch (PPI)
how are videos and animation captured
- series of still images
- image = frame
- number of frames per second defines how seamless the sequence seems
- depending on frame resolution and fps, this may require a lot of space to store