Wolfram Research

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

Decompose an image:

In[1]:=
(* Evaluate this cell to get the example input *) CloudGet["https://www.wolframcloud.com/obj/40db7b78-1520-49e6-880f-51beb14816d8"]
Out[1]=

Requirements

Wolfram Language 11.3 (March 2018) or above

Resource History

License Information