« Home | How is Multimedia Data different » | Types of Multimedia Data » | Multimedia Indexing » | Case Studies » | Content Based Retrival » | Using Metadata for managing Multimedia Data » | Information Management & Retrival : Introduction » | Advanced data structures » | SQL and Multimedia : Introduction » | Multimedia Object Size » 

Thursday, April 06, 2006 

Representing image through quadtree

Let’s say we divide the picture area into 4 sections. Those 4 sections are then further divided into 4 subsections. We continue this process, repeatedly dividing a square region by 4. We must impose a limit to the levels of division otherwise we could go on dividing the picture forever. Generally, this limit is imposed due to storage considerations or to limit processing time or due to the resolution of the output device. A pixel is the smallest subsection of the quad tree.
To summarize, a square or quadrant in the picture is either :
  1. entirely one color
  2. composed of 4 smaller sub-squares
To represent a picture using a quad tree, each leaf must represent a uniform area of the picture. If the picture is black and white, we only need one bit to represent the colour in each leaf; for example, 0 could mean black and 1 could mean white.

Now consider the following image :
The definition of a picture is a two-dimensional array, where the elements of the array are colored points .

Given Image in pixel form In Quad tree-form


Now when this image is represneted as quad tree it will look like :
The quad tree of the above example picture. The quadrants are shown
in counterclockwise order from the top-right quadrant. The root is the top node.
(The 2nd and 3rd quadrants are not shown.)


For matching procedure, color structure descriptor is first extracted from sample image and then matched with the descriptors associated to the images contained in the DB. Now here we can have a result image in certain range of tolerance according to two criterion : Quadtree Structure Similarity (QSS) and Quadtree Color Similarity(QCS). The main concept is that the difference in the structure of two quadtrees can be evaluated through the number of changes in the structure that need to be performed to make one of the quadtrees equivalent to the other. This process is called quadtree warping. Once the two quadtrees have the same structure, they are recursively navigated and the difference is computed between the colors of
the corresponding leaves. The final formula used for the similarity matching(SM) is the following:
SM = A1*QSS + A2*QCS
where the constants A1 and A2 are determined empirically for normalization and
weighting of the two metrics.

Sorry, I'm Brazilian and my English is 'very very bad'.

How I implement a quadtree in C++?

I need one implementation please. I nedd show a quadtree in a screen with you nodes coloring.

Thank you.

Post a Comment