Function Repository Resource:

BakersMap

Source Notebook

Apply baker's map on an image

Contributed by: Enrique Zeleny

ResourceFunction["BakersMap"][imagedata,c,n]

gives the baker’s map on the points of imagedata with parameter c for n steps.

Details and Options

The baker's map is , computed modulo 1.
imagedata must be a square array of gray levels.

Examples

Basic Examples (4) 

Take an image:

In[1]:=
pic = Map[First, Rest[ImageData@
     Rasterize[Style[A, FontFamily -> "Times New Roman", Italic], RasterSize -> {100, 100}]], {2}];
In[2]:=
ArrayPlot[pic]
Out[2]=

Apply BakersMap for two steps:

In[3]:=
ArrayPlot[ResourceFunction["BakersMap"][pic, 2., 2]]
Out[3]=

Apply BakersMap for a different number of steps:

In[4]:=
{Table[ArrayPlot[
    ResourceFunction["BakersMap"][pic, 2., n]], {n, {4, 10, 11, 15, 20}}]} // GraphicsGrid
Out[4]=

Modify the parameter c:

In[5]:=
{Table[ArrayPlot[
    ResourceFunction["BakersMap"][pic, c, 3]], {c, {.2, 1., 1.1, 1.5, 2.}}]} // GraphicsGrid
Out[5]=

Requirements

Wolfram Language 11.3 (March 2018) or above

Version History

  • 1.0.0 – 07 March 2019

Related Resources

License Information