bitmap representation
play

Bitmap Representation Divide an image into a grid Pick the - PowerPoint PPT Presentation

Bitmap Representation Divide an image into a grid Pick the average color in each cell (pixel) Remember that color 1 Remember Average Pixel Color 2 Wednesday, November 2, 2011 Pixels are very small! 3 428 How Much Memory 1 RGB value


  1. Bitmap Representation Divide an image into a grid Pick the average color in each cell (pixel) Remember that color 1 Remember Average Pixel Color 2 Wednesday, November 2, 2011

  2. Pixels are very small! 3 428 How Much Memory 1 RGB value = 3 bytes 640 428 x 640 x 3 = 821,760 bytes (821 KB) But file size is just 90 KB !! 4 Wednesday, November 2, 2011

  3. Idea! Remember the 256 most frequent colors used in the picture Assign each of these colors a number from 0-255 (which fits in 1 byte) Remember this 1-byte number for each pixel. 5 Indexed Representation 20 162 230 181 220 222 68 ... 144 ... … ... ... ... ... 144 ... ... ... ... ... ... ... ... 6 Wednesday, November 2, 2011

  4. Indexed Representation Size = size of color table + size of indexed picture Color table size = 256 * 3 bytes = 768 bytes Size of indexed picture = 428 x 640 = 273,920 bytes Total = 768 + 273,920 = 274,688 bytes 7 Wednesday, November 2, 2011

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend