1 / 31

Storing Images

Storing Images. Quad Trees. Justin Griffin COT 4810 09/23/04. Outline. What is a Quad Tree? Example walkthrough Quad Tree manipulations Summary. What is a Quad Tree?.

niveditha
Download Presentation

Storing Images

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. Storing Images Quad Trees Justin Griffin COT 4810 09/23/04

  2. Outline • What is a Quad Tree? • Example walkthrough • Quad Tree manipulations • Summary

  3. What is a Quad Tree? • Can be thought of as a B-tree of order 4. Each node represents one quadrant of its parent. The tree is filled out by a process of subdividing an image matrix into four quadrants recursively until the quadrant is one solid color, or the pixel level is reached. • The number of pixels in the image must be a power of 2.

  4. B A C D A B C D The principal nodes of a quad tree Example

  5. Root (entire image) B A C D

  6. Root (entire image) B C A D

  7. Root (entire image) B C A D

  8. Root (entire image) B C A D

  9. Root (entire image) B C A D

  10. Root (entire image) B C A D

  11. Root (entire image) B C A D

  12. Root (entire image) B C A D

  13. Root (entire image) B C A D • The 16x16 image matrix needs to store 256 pixels by conventional storage methods. • We have compressed the image into 77 nodes.

  14. Root (entire image) B C A D

  15. Root (entire image) B C A D

  16. Root (entire image) B C A D

  17. Root (entire image) B C A D

  18. Root (entire image) B C A D

  19. Manipulations Rotations Rotate the image 90° counter-clockwise

  20. Manipulations Rotations Rotate the image 90° counter-clockwise

  21. Manipulations Rotations Rotate the image 90° counter-clockwise

  22. Manipulations Rotations Rotate the image 90° counter-clockwise

  23. Manipulations Rotations Rotate the image 90° counter-clockwise

  24. Manipulations Rotations Rotate the image 90° counter-clockwise

  25. Manipulations Scaling Remove all terminal nodes. Reinterpret the root node as one of the principal nodes. This reduces the size of the image by a factor of 2. B D A C

  26. Manipulations Scaling B D A C

  27. Manipulations Scaling B D A C

  28. Manipulations Scaling

  29. Manipulations Scaling • Shrinking the image reduces the resolution by a power of 2 for each level removed from tree.

  30. Summary • Quad Trees are efficient image storing data structures. • Easy to manipulate the image with simple recursive tree rotations. • Algorithms exist to: • Detect neighboring images • Image recognition

  31. Sources • “The New Turing Omnibus”, by A.K. Dewdney A.W.H. Freeman/Owl Book, 2001 New York • http://www.cs.ubc.ca/~pcarbo/cs251/welcome.html • http://www.laesieworks.com/digicom/Lossless_Quadtree.html • http://www.cs.umd.edu/users/brabec/quadtree/rectangles/cifquad.html

More Related