A GA and SA-Based Fractal Image Coding

Megumi Takezawa, Ren Togo, Hideo KitajimaThe Journal of The Institute of Image Information and Television Engineers 2003

Abstract

This paper proposes a fast search technique using a genetic algorithm (GA) including a simulated annealing (SA) algorithm for the optimal parameters of the iterated function system (IFS) utilized in fractal image coding. The heavy computational costs of the previous methods to find the optimal IFS parameters are a serious problem, and in order to overcome it, we have already proposed a GA-based technique to find them in short time. However, its reduction is not enough for the practical use. Therefore, the proposed method achieves further reduction by including an SA search in the GA search. Some simulation results show that the proposed method achieves more reduction in the computational costs than the only GA-based method does.

Introduction

Fractal image coding is a compression technique based on the concept of "self-similarity," where parts of an image are represented as transformed versions of other parts. The core of this process involves dividing an image into "range blocks" and searching for the best matching "domain blocks" within the same image. By applying affine transformations—including scaling, rotation, and brightness shifts—the algorithm minimizes the difference between these blocks.

However, the search for optimal Iterated Function System (IFS) parameters is a massive combinatorial problem. Conventional exhaustive searches are computationally prohibitive for real-time applications. While Genetic Algorithms (GA) offer a faster alternative, they are prone to premature convergence, often getting trapped in local optima (sub-optimal solutions).

Methodology: Hybrid GA and SA Optimization

To overcome the limitations of standard GA, this research introduces a hybrid approach that incorporates Simulated Annealing (SA) as a local refinement step.

Chromosomal Representation

The parameters for the affine transformation, including the domain block coordinates ($x_j, y_j$), scaling factors ($t_{ij}$), and offsets ($\alpha_{ij}, g_{ij}$), are encoded into a binary string known as a chromosome. This encoding allows the genetic operators to manipulate the transformation parameters directly.

Chromosomal representation of the IFS parameters, where each segment corresponds to a specific transformation variable.

The Hybrid Search Process

The algorithm begins with a standard GA global search, involving selection, crossover, and mutation. The primary innovation of this method is the conditional activation of SA. When the maximum fitness of the population remains stagnant for a set number of generations, the SA algorithm is applied to all chromosomes.

Flowchart of the proposed hybrid GA and SA algorithm, highlighting the conditional SA step used to escape local optima.

SA allows the system to occasionally accept inferior solutions based on a "temperature" parameter. This stochastic behavior enables the search to "jump" out of local minima, eventually cooling down to settle on a more globally optimal solution. The fitness of each candidate is determined by the Mean Square Error (MSE) between the original and reconstructed blocks.

Experimental Results

The hybrid method was evaluated using standard $256 \times 256$ grayscale benchmark images: GIRL, LENA, and BOAT.

Efficiency Gains

The performance improvements were dramatic. The hybrid GA+SA method reached optimal parameters after approximately 3,000 candidate evaluations, whereas the GA-only method required over 17,000 evaluations to achieve similar results. This efficiency translates directly into reduced calculation times:

  • Conventional Exhaustive Search: 30,600 seconds
  • GA-only Search: 1,000 seconds
  • Proposed GA+SA Search: 800 seconds

Image Quality

Crucially, the speedup did not come at the cost of fidelity. The Peak Signal-to-Noise Ratio (PSNR) vs. bit rate curves for the GA+SA method were nearly identical to those of the slower GA-only and conventional methods, proving that the hybrid search effectively finds the mathematical optimum without degrading the final image.

Conclusion

By combining the global exploration of Genetic Algorithms with the local refinement of Simulated Annealing, this paper presents a significantly more efficient approach to fractal image coding. The hybrid GA+SA method reduces computational time by a factor of roughly 38 compared to conventional methods, making fractal compression more viable for practical use. Future work may focus on parallel hardware implementations to further reduce processing times for high-resolution imagery.

Summary updated

BibTeX
@article{takezawa2003ga,
  author = {Megumi Takezawa and Ren Togo and Hideo Kitajima},
  title = {{A GA and SA-Based Fractal Image Coding}},
  journal = {The Journal of The Institute of Image Information and Television Engineers},
  year = {2003},
  doi = {10.3169/itej.57.864},
}
An Efficient Criterion for Fractal Image Coding and Its GA-Based OptimizationThe Journal of The Institute of Image Information and Television Engineers · 2004
An IFS-Parameter Quantization Method for Fractal Image Coding with Genetic Algorithms.The Journal of The Institute of Image Information and Television Engineers · 2002
Fast sparse fractal image compressionPlos · 2017
Fractal Image Coding for Improve the Quality of Medical ImagesJournal of the Korean Society of Radiology · 2014
Quality Improvement of JPEG Images Based on Fractal Image CodingThe Journal of The Institute of Image Information and Television Engineers · 2004
Simulated Annealing for JPEG QuantizationarXiv · 2017
Figure