I need to answer a question on fractals from the book Fractals Everywhere by M. Barsley and I have been struggling with it for a while:
Use collage theorem to help you find an IFS consisting of two affine maps in $\mathbb{R}^2$ whose attractor is close to this set:

It would be great to have some hints/help - I feel like it should be really simple but I'm having a hard tome to wrap my head around it. Thanks!
If you have Mathematica, you can generate a good approximation to the set like so:
Even if you don't have Mathematica, you should be able to read the IFS you seek right out of the code. The package represents an affine transformation $T:\mathbb R^2 \rightarrow \mathbb R^2$ given by $$T(x,y) = \left( \begin{array}{cc} a & b\\ c & d \end{array} \right)\left( \begin{array}{c} x \\ y \end{array}\right) +\left( \begin{array}{c} e \\ f \end{array}\right) $$ in the form
and you can see two such transformations in the code.
The idea behind the collage theorem is to find transformations that map the whole image onto the two, colored sub-parts. You can automate the procedure by mapping key points in the whole to the corresponding key points in the sub-part. To map onto the red sub-portion, for example, you might consider the following picture:
The arrows indicate how certain key points in the whole map to their corresponding key point in the red sub-part. The central dot in the middle of the red spiral is fixed. Since we know the function has a particular form dependent on the parameters
{a,b,c,d,e,f}, we can use a least squares procedure to find a very good approximation to the function. That is, for each pair consisting of a key point $(x_1,y_1)$ and its known image $(x_2,y_2)$, we form the squared norm $$\|T(x_1,y_1)-(x_2,y_2)\|^2 = \left\|\left( \begin{array}{cc} a & b\\ c & d \end{array} \right)\left( \begin{array}{c} x_1 \\ y_1 \end{array}\right) +\left( \begin{array}{c} e \\ f \end{array}\right) - \left( \begin{array}{c} x_2 \\ y_2 \end{array}\right) \right\|^2. $$ We then total these and minimize over the parameters{a,b,c,d,e,f}to obtain a function.The other transformation can be estimated in similar fashion. There, we attempt to map the green key points in the following image to the red key points in the smaller figure as shown here:
The process should be pretty good. Here's the generated image overlayed on top of the original scanned image.
Could be better, actually but still, it's pretty good. I picked the points using a point and click tool that certainly had a little error.