The bunch sampling algorithm for synthesising a regular texture is outlined in Algorithm 7. Generally, the algorithm might be divided into an analysis stage (from lines 0 to 0) and a synthesis stage (from lines 0 to 0).