2011年12月29日 星期四

Week 17: 影像壓縮 (四)

作業四:

1. 調色盤 #0, #5, #12 #15 的 RGB 色彩值? (20%)

2. 解碼最前面 20 個 9-bit codes 的值, 請用 16 進位的方式表示出來。 (20%)

3. 將上述 20 個 codes 用 LZW 解壓縮, 請問解壓縮後的結果為何? (20%)

4. 20 個 codes 解壓縮完, Dictionary 的狀況為何? (20%)

5. 最後一個 LZW 區塊的大小為何? (20%)


 A :

    1. 調色盤 RGB 色彩值?

      #0: (B5, AC, AD) = (181, 172, 173)
      #5: (EC, E4, F3) = (236, 228, 243)
     #12: (C6, CC, E9) = (198, 204, 233)
     #15: (CD, D4, ED) = (205, 212, 237)

    2.~4. Answer

    5. 2D (45)

 B :

    1. 調色盤 RGB 色彩值?

      #0: (58, 28, 29) = ( 88, 40, 41)
      #5: (7A, 58, 59) = (122, 88, 89)
     #12: (61, 58, 59) = ( 97, 88, 89)
     #15: (7B, 18, 38) = (123, 24, 38)

    2.~4. Answer

    5. E3 (227)
  
 C :
 
    1. 調色盤 RGB 色彩值?
 
      #0: (95, 8C, 96) = (149, 140, 150)
      #5: (83, 8C, 9C) = (131, 140, 156)
     #12: (B8, BC, C3) = (181, 188, 195)
     #15: (95, 9C, A2) = (149, 156, 162)
 
    2.~4. Answer

    5. 2A (42)
 
 D :

    1. 調色盤 RGB 色彩值?

      #0: (B1, 50, 51) = (177, 80, 81)
      #5: (8F, 17, 27) = (143, 23, 39)
     #12: (48, 28, 39) = ( 72, 40, 57)
     #15: (CF, 93, BB) = (207, 147, 187)
 
    2.~4. Answer

    5. E8 (232)
 
 E :

    1. 調色盤 RGB 色彩值?

      #0: (DE, A3, A5) = (222, 163, 165)
      #5: (48, 28, 2B) = ( 72, 40, 43)
     #12: (9F, 55, 7B) = (159, 85, 123)
     #15: (30, 17, 2F) = ( 48, 23, 47)

    2.~4. Answer

    5. A8 (168)
 
 F :

    1. 調色盤 RGB 色彩值?

      #0: (2F, 21, 24) = ( 47, 33, 36)
      #5: (FC, F4, FC) = (252, 244, 252)
     #12: (22, 1C, 29) = ( 34, 28, 41)
     #15: (BD, BC, C2) = (189, 188, 194)

    2.~4. Answer

    5. 04 (4)

2011年12月23日 星期五

2011年12月22日 星期四

News: 裸挺孕肚 救森林



中文新聞連結

烏拉圭的模特兒暨演員娜塔莉歐瑞洛幫國際環保團體「綠色和平組織」拍攝了以保護森林為主題的宣傳照。照片中,在她全裸且懷孕的身體上僅覆蓋著森林的影像。34歲的歐瑞洛在接受該組織訪問時說:「森林是生命,有超過半數以上的生物生活在森林裡。阿根廷每兩分鐘就有一公頃的森林消失,我們已失去了70%的原始森林,我希望我的兒子能夠享受森林。」

GreenPeace



Uruguayan actress and activist Natalia Oreiro makes a moving appeal for the future of the forests on behalf of her son.

A government forest bill “Ley de Bosques”, supported by more than 1.5 million Argentinean citizens, was approved by the Argentinean Congress in 2007 to protect native forests. Despite the massive civil society movement and political will, governance is still an issue in the region and deforestation rates keep rising because of logging permits and cattle expansion.
Ms Oreiro, inspired by the desire for her son to know the fecundity of the forests, lent her weight to the call to action to Governor of Santiago del Estero to halt forest destruction, revoke illegal logging permits and give future generations a chance to discover the wonders of the forests.

2011年12月16日 星期五

Week 15: 影像壓縮 (二)

1. Book: Introduction to Data Compression
  Author: Khalid Sayood
  ISBN: 9780126208627

  

  銘傳圖書館

  博客來網路書局 books.com.tw

  Chapter 3: Huffman Coding [講義]

  Chapter 5: Dictionary Techniques [講義]

2. Graphics Interchange Format (GIF)

  Wikipedia: Graphics Interchange Format
  GIF specification

2011年12月8日 星期四

Week 14: 影像壓縮 (一)

Image Compression, the art and science of reducing the amount of data required to represent an image, is one of the most useful and commercially successful technologies in the field of digital image.
這是影像處理原文教科書第 8 章的第一句, 寫的非常漂亮, 不但說明了影像處理的意義, 也指出影像壓縮技術在影像處理領域中所占的份量與重要性。但中文教科書是這樣翻譯的:
降低代表一張影像所需資料量的藝術與科學的影像壓縮是數位影像處理領域中最有用和商業上最成功的技術之一。
實在是有點繞舌, 連續 48 個中文字, 中間完全沒http://www.blogger.com/img/blank.gif有標點符號, 讓我讀得非常痛苦, 比改學生的專研報告還痛苦。

1. 背景基礎
  a. coding redundancy 編碼冗餘
  b. spatial and temporal redundancy 空間與時間冗餘
  c. irrelevant redundancy 不相干冗餘


2. Book: Introduction to Data Compression
  Author: Khalid Sayood
  ISBN: 9780126208627

  

  博客來網路書局 books.com.tw

   Chapter 3: Huffman Coding [講義]