Function Repository Resource:

Divide an image into a list of colored polygons centered around the origin

Contributed by: Erik Mahieu
 ResourceFunction["ImageRadialDivide"][img] divides the image img into polygons centered around the origin.

## Details and Options

An image of width w is divided into w/2 rings of w polygons each, resulting in w2/2 colored polygons.
Both face and edge colors are taken to be the color of the pixel closest to the centroid of the polygon in the image.
The result is a disk-shaped image where pixels outside of the disk region are discarded.
This function is very important for transformations of an image that operate inhomogeneously, that is, differently on different parts of the image. This is the case with anamorphic transformations where the deformation of the original is dependent on the locations of each pixel.

## Examples

### Basic Examples

Radially divide an image into a list of colored polygons:

 In[1]:=
 Out[2]=

### Scope

The output of the function is a list of colored polygons:

 In[3]:=
 Out[4]=
 In[5]:=
 Out[5]=

The function operates best on circular images such as logos and the like:

 In[6]:=
 Out[7]=

### Neat Examples

Here is an example of a conical mirror anamorphic function operating on the vertices of an image that was divided into squares:

 In[8]:=
 In[9]:=
 Out[9]=