Function Repository Resource:

QuadtreeImageDecomposition

Source Notebook

Quadtree decomposition of an image

Contributed by: Matthias Odisio

ResourceFunction["QuadtreeImageDecomposition"][image,th,minsize]

performs a quadtree decomposition of image with threshold th using subdivisions of size 2minsize.

Details and Options

Decomposing an image into regions of homogeneous colors can be useful in applications such as image compression or image segmentation.
The boundaries between quads are shown on the left. On the right, each quad is pictured by its average color; less extreme compression schemes would result in less-lossy representations.

Examples

Basic Examples (1) 

Decompose an image:

In[1]:=
(* Evaluate this cell to get the example input *) CloudGet["https://www.wolframcloud.com/obj/8c9a2e69-64ce-4711-a873-89b7f20e83aa"]
Out[1]=

Requirements

Wolfram Language 11.3 (March 2018) or above

Version History

  • 1.0.0 – 13 March 2019

License Information