1 / 17

Color Quantization

Color Quantization. CS 443 Intro to Imaging and Multimedia. 2D Histogram. 2D Histogram. 3D Histogram. Quantization. Originally: m different colors. Reduce to n distinct colors, minimizing the change in image quality. Scalar Quantization.

jontae
Download Presentation

Color Quantization

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Color Quantization CS 443 Intro to Imaging and Multimedia

  2. 2D Histogram

  3. 2D Histogram

  4. 3D Histogram

  5. Quantization Originally: m different colors Reduce to n distinct colors, minimizing the change in image quality.

  6. Scalar Quantization Replace each component ci of the original color value c with: For each channel: Originally, m = 4096 (12 bit) Reduced to n =256 (8 bit) • Disadv: • Does not depend on color distribution  degrades image quality • Reduction ration is not large.

  7. Vector Quantization Replace the original color value c with representative color value ci’ in accordance with color distribution. How to choose representative color?

  8. Vector Quantization • How to choose representative color? • Populosity algorithm: • Determine n most frequent colors c’ ; • Replace original color value with the closest c’ . • Improvement: Group similar colors in larger cells

  9. Vector Quantization • How to choose representative color  Group similar colors in larger cells • Median-Cut Algorithm • Calculate 3D color histogram ; • Split the ‘box’ into smaller subboxes s.t. each subbox contains almost equal number of pixels; • Determine representative color c’ for each subbox; • Replace each color c with the representative c’ of the closest subbox.

  10. Vector Quantization • How to choose representative color  Group similar colors in larger cells • Median-Cut Algorithm • Calculate 3D color histogram ; • Split the ‘box’ into smaller subboxes s.t. each subbox contains almost equal number of pixels; Split at the median point (w.r.t #pixels) of the longest axis

  11. Vector Quantization • 2. Octree: • Colors arranged in a tree, branching factor =8. • At most K nodes, i.e. colors. • To traverse the tree, choose the closest node

  12. Vector Quantization • 2. Octree: • Colors arranged in a tree, branching factor =8. • At most K nodes, i.e. colors. • To traverse the tree, choose the closest node • Build: • For each new color ci • If #nodes < K, create a new node for ci; • otherwise, merge similar nodes (colors) to keep #colors = K.

  13. Vector Quantization

More Related