Computer Graphics - Quadtree decomposition and effect of depth.

Authors Avatar

                                    Computer Graphics

                             PROJECT

 

        Quadtree decomposition and effect of depth.

        

                                                                                                           

1) Introduction

   This document represents the final report for our project done for Prof. Gregory Dudek in Computer Graphics (308-557) course taught at McGill University. I have chosen the area of quad trees, and particularly the effect and advantages (and disadvantages) of depth on the image outputted after compression in the quad trees.

The definifition of a picture is a two-dimensional array, where the elements of the array are black or white points; two-dimensional arrays are very widely used to represent different kind of pictures Here is an example of an image represented as a two-dimensional array. Each pixel is an element of the array.

Most of the time, the 'gif' and 'jpeg' standards provide performance hard to imitate , so we are going to test if even with less data stored we can have also a good picture .

2) Brief Overview

   a)Basic Algorithm

   Quad tree Decomposition consists in subdividing the image into blocks that are more homogeneous than the image itself. This technique works by dividing the square image into four equal-sized squared blocks. If block meets the criterion, it is not divided any further. If it does not meet the criterion (only black or only white value), it is subdivided again into four blocks, and the test criterion is applied to those blocks. This process is repeated iteratively until each block meets the criterion.

Join now!

                                                                                                                                 

  • Each region divided into 4 quadrants  
  • Examine if all black or white
  • Quadrant with black + white = =grey
  • Grey quadrants are subdivided until sub-quadrants are all black or white only
  • ...

This is a preview of the whole essay