Open access peer-reviewed chapter

Optimization of Fractal Image Compression

Written By

Rafik Menassel

Submitted: 28 March 2020 Reviewed: 28 May 2020 Published: 28 July 2020

DOI: 10.5772/intechopen.93051

From the Edited Volume

Fractal Analysis - Selected Examples

Edited by Robert Koprowski

Chapter metrics overview

842 Chapter Downloads

View Full Metrics

Abstract

Fractal encoding is a promising method of image compression. It is built on the basis of the forms found in the image and the generation of repetitive blocks based on mathematical translations. The technique seems to be moved theoretically and practically, but it requires enormous programming time due to the excessive resources required when compressing large volumes of data. On the other hand, metaheuristics represent all of the methods used to solve difficult optimization problems with less consumption of resources. They are marked by their rapid convergence and their lessening in research difficulties. In this chapter, we have tried to apply a new experience around the performance of organic metaheuristics inspired by nature, which are, respectively, the wolf pack algorithm (WPA) and the bat-inspired algorithm (BIA), as bioinspired techniques to optimize the fractal image compression (FIC). Experiments show the enhancement of diverse characteristics (coding time, compression rate (CR), peak signal-to-noise ratio (PSNR), and mean square error (MSE)). In addition, an assessment of the proposed approaches via many other approaches highlights this improvement.

Keywords

  • fractal image compression (FIC)
  • metaheuristics
  • wolf pack algorithm (WPA)
  • bat-inspired algorithm (BIA)
  • image quality

1. Introduction

Nowadays, a significant size of information is managed and transmitted, and mainly, images have involved prodigious status, particularly in recognition field. Thus, it is important to decrease the size of the data via compression algorithms which can allow their storage and their transmission while using limited resources. Compression is employed to overcome this problem and keep more files. Mainly multimedia files need more storage space than other types of files. Images represent the largest part of the most used multimedia files in almost all fields. Unlike other types of files, a huge amount of image data requires more resources for storage and transmission on computer networks, and compression is therefore presented as an inevitable tool with the aim of more maneuverability of this data. Today, several compression formats exist while presenting their limits (degradations, size, duration, etc.) on somewhat particular images (text images and background areas).

To overcome this difficulty, scientists are constantly developing new techniques to compress images in order to find a perfectionist compression method that can largely conserve storage space and preserve the quality of the source file.

The compression methods that exist tend to introduce the theory of fractals, which appears to be a strong instrument for boosting image quality and reducing the resources required. Nowadays, the image files intricated in several specific programs are characterized by massive data, pixel correlation, and similarity. Under such conditions, the old compression methods appear to be unsuitable for this mission because of their need for significant encoding time. On the other hand, the recently developed fractal image compression techniques offer better compression qualities [1, 2, 3]. These methods are built on the principle that shapes (fractals) can better represent usual scenes than traditional geometric forms. A number of fractal image compression techniques are presented in a lot of works; they include an image coding agreeing to more security and less degradation (Jeng et al. [4], Li [5], and Han [6]). These methods have revealed an important in information, reduced statistical characteristics of chaotic patterns, and weakness in statistical cryptanalysis. In addition, metaheuristics are likewise employed to optimize compression, like genetic algorithms [7], ant colonies [8], and optimization by particle swarms [9]. These methods have ability to create a partition constructed on a region which improves the compression ratio and maintains better the decompressed image quality.

In this chapter, we try for the first time to apply natural metaheuristics on fractal compression, by suggesting new methods which associate, both the bat-inspired algorithm (BIA) and the wolf pack algorithm (WPA) with fractal image compression (FIC) to speed up encoding and optimize both file size and image quality. The main objective of using these algorithms is its property of search for global solution and its capacity to generate very satisfactory results quickly and for less means compared to similar techniques. The algorithms also use fewer parameters and without initial approximation of the unidentified parameters. This document is organized as follows; Section 1 presents an introduction in the study context. Next, a summary of the fractal image compression is detailed in Section 2. Section 3 summarizes the natural metaheuristics and presents those used in this work, namely, the WPA and the BIA. In Section 4, we give a review of some related works. After that, we present our proposed methods in Sections 5 and 6. Experiments are explained in Section 7. Finally, the conclusion appears in Section 8.

Advertisement

2. Fractal encoding

Fractal compression is a new method of irreversible image compression [10]. It was adapted by Hutchinson [11] and Barnsley and Demko [12]. It searches for self-similarities among the diverse image blocks [13] and only keeps the parameters of the contractual transformation in place of the pixels of the image. Like this, we can build an estimate as close as possible to the source image by detecting the redundancy of forms at several scales and try to eliminate these redundancies in the original image so that the result is precise enough to be accepted.

The FIC is founded on an iterated function system f, a limited group of contractions defined on a metrical space Rn by the relation:

fi:RnRn;i<NE1

This contraction can be in several shapes depending on technical constraints. It can be done several points of the original image and carry them nearer to the compressed one. This reflection is named “affine transformation”; then, each sub-block of the original image will be submitted either a rotation at an angle, a scale, or a translation (transformed using eight isometries) according to Equation 2:

wx=Tx+bE2

where T is a linear transformation, Rn → Rn is a vector, and b ∈ Rn is a vector. Practically, the general principle of fractal compression is to try to find the finest matching domain blocks for each range block in order to minimize the distance metric. The code that follows illustrates this idea well:

  • Enter the original image

  • Create a partitioning of Range Blocks R

  • Create a partitioning of Domain figures

  • For all figures Destination Make

    • For all figures Sources Make

  • For all the defined transformations Make

    • Apply the transformation to the Range Blocks

    • Adjust the average of the pixel colors

    • Apply the reduction from the Range Blocks to the Domain Blocks

    • Calculate the error between the result and the Domain Blocks

    • If the error is minimal for the destination figure Then

  • Save the modifications made

    • End if

  • End For

  • Write the saved values in the output file

    • End For

  • End For

This process is realized following the relation:

Bi=vDiE3

where v () is the function of the contraction which aims to modify Di. Thereafter, the nearest block Bi is sought for all Ri blocks by calculating the error between Bi and Ri, and we can use, for example, the Hausdorff distance defined by Equation 4:

HBiRi=maxdBiRidRiBiE4

where d(B, R) = max b ϵ A min r ϵ B ||b-r||.

Or using the Euclidean distance described by the equation:

d2RB=nribi2E5

where n represents the pixel’s number in Ri and Bi blocks. d should be as minimum as possible for blocks that look alike.

Fractal decompression consists of the reconstruction of Ri from the blocks Bi which appear identical the most by practicing the contraction used in compression.

In recent years, several studies have concentrated on the development of accelerated decryption procedures [14, 15, 16] with the aim of preserving image quality. Their principle is to choose a random image as the original one and execute an affine transformation like defined in Equations (6) and (7), founded on the fractal ciphers obtained by itself. This act is repeated recursively till the reconstructed image were satisfactory:

Ri=Si.D+Oi.IE6
S=URiE7

where I is a contractive or isometric spatial transformation, D is a domain block, R is a range block, and S is the reconstructed image.

In fact, FIC is becoming among the most promising methods for image compression for its significant compression ratio (CR) and preservation of quality. Its beginnings date from the 1990s when Jacquin [17, 18] introduced the first method of image compression; its principle is partitioning the image into two tiling blocks: the range and domain blocks.

The domain blocks are double the size of the range blocks and overlap such that a new domain block starts at each pixel. The main idea of this compression is to find the nearest domain block in concordance with each range block, to determine the right contractual transformation, and to store all these parameters. This principle was exciting; however it remained limited to local applications because it consumes a lot of CPU time. Since then, researchers have constantly presented new techniques to reduce the compression time; Thomas and Deravi [19] link range blocks and brand them more adaptive with image content by using the region-growing method. Cardinal [20] presented an alike principle; it is founded on a geometrical partition of the grayscale image block feature space. The experimental evaluations with earlier published methods illustrate an important enhancement in encoding time with practically better quality. He et al. [21] have used the normalized block with the aim to evade the extreme search in corresponding block. Chong and Pi [22] proposed a new adaptive search method to decrease the calculation complexity of fractal encoding to discard a big number of unqualified domain blocks so as to speed up FIC.

Other studies have been presented on new aspects to improve the way of research like the encoding via the Fourier transform [23], special image features [24], and discrete cosine transform inner product [25]. The majority of existing methods rely on a corresponding error threshold to limit the search. Lately, Lin and Wu [26] have defined another way of search built on image block edge property, which proves suitable results. Furthermore, many research articles have been published over the past decade; they increased the quality of the compressed image through the use of metaheuristics without resorting to more resources in the coding process.

Advertisement

3. Natural heuristics

Heuristics refer to the set of techniques that can solve several problems by maximizing gains and decreasing the resource’s consumption; however, the optimal solution cannot be certain if, in the investigation space, there is an intersection between the local and global solution [27]. Natural heuristics represent a large family of heuristics which are inspired from communal conduct of animals existing in societies like assemblages of birds, ant colonies, or grouping of fish. They are founded on the principle of populations of entities who cooperate and develop rendering to reciprocal precepts. These techniques allow the invention of procedures which can resolve hard problems by dividing control. These approaches form a famous prototype which is effectively employed as a prodigious tool for resolving difficult problems [28] with less resource consumption. Several researches [29, 30] illustrate that these systems have an effective potential to manage various situations and could be adapted to bring solutions to diversified optimization problems.

3.1 The wolf pack algorithm (WPA)

The wolf pack algorithm (WPA) [31] belongs to the family of bioinspired techniques which can be used to estimate resolutions for numerous optimization problems. WPA is a metaheuristic built on the population invoked by the social hunting behavior of wolves. It basically involves hunting wolves, tracking down prey, and capturing it under the orders of a leader wolf. The wolf pack includes the strongest and most intelligent wolf chef. He is responsible for controlling the pack. Its decisions are always based on the surrounding environment: prey, pack wolves, and other hunters. The pack is divided into two families of wolves: scoot and ferocious.

The scoot wolves move autonomously in the milieu and adjust its way according to the concentration of the odor of the prey. When a prey is found, scoot wolves cry and transmit info by sound to the leading wolf who guesses the distance to reach this prey; it calls the furious wolves and quickly displaces towards the cry. The prey is then caught and is shared conferring to the nature of each wolf: from the sturdiest to the feeblest. Subsequently, feeble wolves could die from absence of nutrition. In this manner the pack ensures a certain dynamic and robustness at all times.

WPA is performed as follows:

In a search environment n, any wolf i denotes an elementary solution to the problem, at a location xi.

Initially, wolves are distributed chaotically in the environment.

At any instant t, the wolf i passes from the location xti to the location xt + 1i. The choice of the following location is updated by rendering the following equation:

xit+1=xit+λxgtxitE8

where λ represents a vector randomly distributed in the interval [−1,1] and xg designates the location of the chief wolf. After a static sum of repetitions, which corresponds to a research stage, the wolf of the finest result gets converted to a leader one; feeble wolves (bad solutions) will be wiped out and substituted with a novel group of wolves in an arbitrary manner.

3.2 The bat-inspired algorithm

The bat-inspired algorithm (BIA) [32] belongs to the family of metaheuristics inspired by nature, introduced by Yang and founded on the echolocation comportment of bats. Bats have a system identical to radar except that radars use electromagnetic waves while bats use ultrasonic waves (of frequency inaudible to humans). Bats move and hunt with high-performance sonar. By another way, bats are distinguished by an extraordinary steering mechanism allowing them to differentiate between an obstacle and a prey, which allows them to hunt even all. The impulses produced by bats can be linked almost to the hunting plans of bats. Often, the pulses are between 25 and 150 kHz at a static frequency; they only persist for 8–10 ms. Bats generate between 10 and 20 ultrasonic sound eruptions every second, each of them stays between 5 and 20 ms. However, when bats seek their prey and feel so close, they can increase the rate of emission of sound eruptions up to 200/s. This proves the extraordinary ability of bats to process signals. Assuming that the speed of sound in air is v = 340 m/s, the wavelength λ of the ultrasonic sound therefore manifests with a continuous frequency f:

λ=v/fE9

The wavelengths vary between 2 and 14 mm and are equivalent to the size of the bat’s prey, for a representative frequency between 25 and 150 kHz. The pulses produced by bats can spread an imposing sound intensity of 110 dB, but quite favorably, these pulses remain in the ultrasonic domain. The intensity of the pulse can take different stages, such as very strong when bats are chasing and weak at a quiet sound when they mark their prey. These short pulsations usually have a wandering range of a few meters which depends on the frequency.

In reality, bats combine all of their senses to effectively detect prey and navigate more easily. Here, we are only interested in echolocation and the behaviors that accompany it. To create new optimization techniques, the echolocation of bats can be transformed into an optimized objective function.

In a search space Ri, the bats fly randomly using the speed Vi in location (solution) Xi using velocity Vi. They produce pulses at a static wavelength λ with a variable frequency f and an intensity A (differs from a big positive A0 to a smallest constant value Amin) to hunt for prey. When the bats choice the finest results, they choose a local result from the best selected ones.

Advertisement

4. Introducing bioinspired approaches in the FIC

In 2005, Dervis Karaboga proposed a new iterative optimization method based on artificial bee colonies (ABC). This technique is based on three different classes of bees, (a) bee used, (b) spectator bee, and (c) scout bee. The spectator bees waiting in the store obtain data concerning the sources of nectar revealed earlier from the employees. Then they choose a usable nutrition source built on the received information. Scout bees arbitrarily search for nutriment in the area for [33].

In 2006, Cristian Martinez presented an enhanced image compression using the ant colony technique. The basic idea is that ants always seek and find the shortest path from nest to food source using the pheromone. For fractal compression, the pheromone is positioned on the range block i and the domain block j. The pheromone matrix is rectangular (not symmetrical) where the lines designate range blocks (image blocks) and the columns indicate domain blocks (blocks to transform). Then, the ants build routes by choosing a block of domain j for each block of range i. the solution will be found on the basis of updating the pheromone and heuristic information [34]. The result proposes similar image quality to that obtained with a deterministic way while minimizing the calculation time by 34%.

In 2009, many of studies were focalized on FIC: Chakrapani and Soundara Rajan [35] have created a new fractal image compression founded on a genetic algorithm in the intention of optimizing the encoding time for an acceptable image quality. The results give improved performance over exhaustive search.

In the work of Xing-yuan, Fan-ping, and Shu-guo [36], a spatial correlation hybrid genetic algorithm that uses the features of the fractal and divided iterative function system is proposed. It consists of two stages. The first uses spatial correlation in the images for the range and the domain blocks in order to exploit the local optima. The second one is based on a genetic-simulated annealing algorithm (SAGA) to find the global optima if the local optima is not satisfied. In order to escape early convergence, the algorithm approves that the dyadic mutation operator takes place in place of the traditional operator.

In 2010, Chakrapani et al. have enhanced the fractal image compression using particle swarm optimization (PSO) technique [37]. PSO is used to speed up the search of the nearest finest match block for a definite block to be encoded. This method illustrates that the recovered image quality can be conserved when in comparison with the full-search FIC.

In 2016, Shaimaa S. Al-Bundi et al. [38] use an upgraded genetic algorithm to enhance the exploration space in the target image by good estimation to the global optimum in an only execution.

In 2017, Al-Saidi N.M.G et al. [39] optimize the fractal image compression by introducing the harmony search algorithm. This strategy searches for the best solution through singing a song; this proposed technique offers splendid performances in terms of image quality, reduced computation time, and storage space when compared to other methods.

In 2018, we [40] used the wolf pack algorithm to improve the FIC; the idea is to take the entire image for the search space where this space is divided into blocks; scooters wolves roam the environment to find other smaller and similar blocks. They examine the entire space and select the blocks with the best physical shape. By this method, the encoding time was considerably reduced, and we also obtained a better compression rate.

In 2019, we have [41] chosen to improve the FIC by using the bat-inspired algorithm. Our tow proposed methods are detailed and well explained in Sections 5 and 6, respectively.

Advertisement

5. Wolf pack algorithm to optimize fractal image compression

We assume an image of m x n pixels as exploration space, represented by an array P where each pixel is considered as a cell and on a byte (gray pixel). The resulting image C of m/2 × n/2 pixels is reached by following the steps:

  • Divide the entire image into tiny nonoverlapping ri blocks of size s × s (with s << m). More simply, we will proceed with blocks of square size of b x b; this partition called range block will be represented by RN = {r1, r2,…, rN}.

  • For all the blocks ri, the scooting wolves roam the space in order to find a di of size 2b × 2b similar with ri while respecting the parameters mentioned above. A fitness value f (di) will be assigned for each block di according to Eq. (6). The block di is taken for prey.

  • After the hunting wolves have inspected the entire space and for all ri blocks, di blocks with the best physical form are selected. It will be mapped according to Eqs. (4) and (5).

If no improvement is made to the wolf chef solution, the process will be stopped after a fixed number of iterations.

The adapted WPA algorithm for FIC is showed as:

Algorithm 1. FIC-WPA

Initialization:

Generate ri, (i = 1 … N)

For each ri, f(ri) ← 0, (i = 1 … N)

While not (stopping criteria)

it←0

While not (Iter-scoot < It)

Pick random numbers: λ ϵ [−1,1]

For each ri do

xi ← xi + λ|xg − xi|

If (f(bxi) < f(g)) g ← i

Endif

Endfor

ri ← v(di)

Update It

EndWhile

EndWhile

End For.

Advertisement

6. BAT-inspired algorithm introduced in FIC

The similar idea employed in the wolf pack algorithm and the BAT algorithm for FIC is completed through the succeeding phases:

  1. The whole image is scouted randomly by bats with the use of loudness L and frequency F.

  2. Each block is compared to all of its neighboring blocks by bats for its degree of homogeneity as a function of volume and frequency. If they meet a criterion (color_level_block - neighboring color level ≤ frequency), we create a domain block of size L * L whose value is only the mean of the domain block.

  3. When the bats roam the whole picture. The iteration will be stopped.

  4. After decomposing the image into domain blocks, the bats’ position themselves at xi, and the size of the blksz block will be saved in a sparse S.

  5. By eliminating the solution with the smaller block, we try to find the best solution in this step.

  6. In order to calculate the compression ratio, we will use Huffman encoding to store all information (locations, block sizes, and values).

  7. Finally, and to reconstruct the image, we will use Huffman decoding to regenerate the image data of the compressed image.

Algorithm 2. Proposed FIC-BAT

Initialization: Generate bats (Number_bats = 1..N) //

Begin

Loudness L;

Frequency F;

While not (stopping criteria)

For each bat

If similarity (distance) = 1

Create domain block;

Store location in vectors I,J;

Store block sizes in vector blksz;

Else

Store location in vectors I,J;

Store block sizes in vector blksz;

End-if

End For

End-while

Search for best solutions;

Store the locations and block sizes in a sparse S;

End.

Advertisement

7. Experimentations

7.1 Fractal image compression with WPA

The resolution presents an aspect that should not be ignored when trying to test the efficiency of an approach. For our circumstance, we will take into consideration the three test images (Lena, Barbara, and cameraman) with different resolutions (16 * 16, 32 * 32, 64 * 64, 128 * 128, 256 * 256) so that we can see the impact of this factor on the quality quantities (compression ratio, compression time, EQM, PSNR) (Figures 1 and 2).

Figure 1.

Tested images (before compression). (a) Cameraman, (b) Lena, and (c) Barbara.

Figure 2.

Decompressed tested images (after WPA compression). (a) Cameraman, (b) Lena, and (c) Barbara.

From the test images with a reconstructed resolution of 256 * 256, it can be seen that the quality of the images is acceptable to a very good degree. And to be more exact, we must refer to calculable measures.

The table below presents the results obtained by applying our approach to the above images with different resolutions:

The results obtained (detailed in Table 1) illustrate firstly the agreement between image resolution and encoding time, which demonstrates that our proposed method is significantly responsive to image resolution; it is also clear that the image quality is in contrast linked to it (image quality degrades quickly as resolution increases). This is clearly shown by the amplitudes of the PSNR and the MSE.

Tested imageResolutionCompression time (s)Decompression time (s)Compression ratioMSEPSNR (dB)
Cameraman16*160.1840.8181.0982.61737.999
32*320.4460.8021.1744.07936.173
64*642.4510.8161.4206.85331.509
128*12841.2840.8101.6538.93130.096
256*256774.4380.8971.7419.15231.605
Lena16*160.1850.8321.0957.73033.616
32*320.5070.8011.1255.86134.451
64*642.2900.7911.2878.40133.550
128*12834.2570.8211.4809.54732.641
256*256668.8100.8501.5969.28233.305
Barbara16*160.2250.8121.0191.35238.070
32*320.6070.7631.0554.06436.067
64*641.8680.7811.1526.25935.060
128*12822.7130.7931.31011.09332.348
256*256509.4060.8611.44711.11533.288

Table 1.

Variation in image resolution.

The compression ratio remains relative to the resolution where we indicate that our method interferes in this measurement. Wolves appear when the quantity of blocks is very huge (higher resolution) by contributing a higher compression rate than that existing in lesser resolutions.

Decompression time stays optimized and is similar for almost all methods. This is due to the decompression process which is not complex compared to the compression process.

We will now focus on comparing our proposed method with some other techniques. The following table (Table 2) shows the notable alteration between our method and the others:

Images de testMethodsPSNR (dB)Time (s)Ratio (CR)
Lena 128*128FIC-WPA32.64134.2571.480
Suman K. Mitra et al.’s works [7]30.22/1.059
Vishvas V. Kalunge et al.’s works [42]/67/
Lena 256*256FIC-WPA33.305668.8101.596
Y. Chakrapani et al.’s works [37]26.2223701.3
Exhaustive search32.6984001.3
DWSR [31]25.821256.42471.56355
PSO-RCQP [43]27.0896.4531.6392
Cameraman 256*256FIC-WPA31.605774.4381.741
PSO-RCQP [43]26.6862681.8212
Barbara 128*128FIC-WPA32.34822.7131.310
Vishvas V. Kalunge et al.’s works [42]/66/
Barbara 256*256FIC-WPA33.288509.4061.447
Y. Chakrapani et al works [37]28.3425001.2
Exhaustive search32.8484001.2

Table 2.

Comparison of the FIC-WPA with other techniques.

7.2 Using bat-inspired algorithm to enhance fractal image compression

Bat’s number: In Table 3, we will examine the images of the cameraman and Lena in order to extract the adequate number of bats that will be used in our approach.

ImagesNumber of batsCompression timeDecompression timeCompression ratioPSNRMSE
Cameraman20.4880.7051.38531.60810.088
40.4590.7071.36630.9348.563
80.4520.7291.37231.2169.417
160.4510.7491.34930.9348.879
320.5090.8431.35529.82710.045
640.4720.9191.36530.41210.405
1280.4780.7491.34831.8959.663
2560.4750.8831.33530.9898.899
5120.4570.7501.39229.9979.870
Lena20.5180.7391.30330.62914.440
40.5480.7271.31530.08315.612
80.5050.7161.31130.07114.929
160.5140.7131.30629.98415.348
320.5630.7841.29930.45215.037
640.5620.7791.29831.22813.887
1280.5120.7151.30630.66915.603
2560.5180.7091.32030.38916.118
5120.5200.7021.32129.85614.710

Table 3.

Testing the number of bats.

Loudness:Table 4 presents some tests carried out on an additional stress which is loudness, with the objective of taking into consideration the good value for the test.

ImageLoudnessCompression timeDecompression timeCompression ratioPSNRMSE
Cameraman20.4530.7201.26733.7886.531
30.4520.7291.37231.2169.417
40.4580.7211.37633.0227.807
50.4690.7021.35530.2209.375
60.4380.7271.35930.1199.027
70.4600.7231.34828.9719.130
80.4420.7271.27934.2845.600
90.4550.7361.22030.8136.962
100.4680.7571.20533.8595.012
110.4720.7551.18733.5484.362
Lena20.5300.7351.24831.78114.848
30.5050.7161.31130.07114.929
40.5370.7261.32429.23016.853
50.5860.7511.29930.53614.382
60.5190.7131.24430.81213.766
70.5160.7151.22331.29012.190
80.5030.7561.22831.03211.917
90.4950.7401.20432.2139.056
100.4920.7611.19431.8738.372
110.4880.7371.19232.0509.695

Table 4.

Testing the values of loudness.

Frequency: The last test table (Table 5) is made to pick up the best frequencies that will be used in our algorithm.

ImageFrequencyCompression timeDecompression TimeCompression ratioPSNRMSE
Cameraman200.4900.7141.11840.3411.526
300.4580.6981.20933.5764.4806
400.4420.7271.27934.2845.600
500.4600.7381.35729.46311.990
600.4350.7061.42226.88715.954
700.4530.7161.58623.70122.989
800.4670.7021.72223.76933.415
Lena200.4950.7551.06642.1991.904
300.5120.7351.09935.5224.947
400.5030.7561.22831.03211.917
500.5140.7181.35927.64923.370
600.5490.7451.59023.57739.059
700.5210.7171.85022.20450.050
800.6460.7202.06420.86958.349

Table 5.

Testing different values of frequency.

As we can see from the previous tables, the best choices are given by 8 for the number of bats, 8 for the intensity, and 30 for the frequency, so the treatment parameters are as follows:

The number of iterations is in the interval of [10,100].

The number of bats is fixed at 8.

Loudness 8, Frequency 30.

We experienced the proposed approach on five images through diverse resolutions. Table 6 illustrates certain quality measurement liable on the resolutions.

Test imageResolutionCompression time (s)Decompression time (s)Compression ratioMSEPSNR (dB)
Blonde women32*320.4550.6921.2239.64332.645
64*642.5810.6981.43013.10031.678
128*12834.6340.7121.71214.16530.853
256*256811.2910.7631.74113.15032.065
Lena32*320.5220.7041.1095.65134.695
64*642.1930.7041.2828.72233.380
128*12833.3760.7201.4869.79932.909
256*256732.3450.7631.6049.66033.115
Cameraman32*320.4670.8321.2113.62836.328
64*642.6080.7191.4407.74330.258
128*12843.8540.6911.6589.08631.078
256*256732.0110.9771.6789.62631.095
Living room32*320.5580.6871.21913.47531.210
64*642.0920.6921.35514.58431.414
128*12826.3470.7101.48714.58431.322
256*256478.2190.7671.55514.13831.599
Mandrill32*320.5980.5541.21111.93631.674
64*642.3760.8891.42218.37730.555
128*12822.1900.7321.41918.43530.582
256*256334.6360.7951.36816.40430.737

Table 6.

Testing the image resolutions.

Figure 3 shows the image of blonde women before and after proposed compression.

Figure 3.

An image of Compressed and decompressed blond women.

In Figure 4, we show a cameraman image before and after proposed compression,

Figure 4.

An image of compressed and decompressed cameramen.

Figures 5 and 6 describe separately Lena and living room images before and after applying the proposed compression.

Figure 5.

An image of compressed and decompressed Lena.

Figure 6.

An image of compressed and decompressed living room.

Finally, we conclude our sequence of assessments with mandrill image before and after proposed compression, in Figure 7.

Figure 7.

An image of compressed and decompressed Mandrill.

As we can observe, the images’ quality is very suitable.

And to approve this effect, Table 6 explores additional quality measure.

The table shows that our approach is significantly sensitive to changing resolutions. It is also clear that the quality of the images is inversely linked to the resolution (as soon as the resolution increases, the quality of the images degrades) which is well proven by the MSE and PSNR measurements.

We note that our proposed method has a remarkable effect on compression ratio and remains relative to the resolution; the bats then show themselves, when the number of blocks is greater (more resolution) by offering a compression ratio greater than that present in the lower resolutions.

On the other hand, the decompression process does not include any complexity compared to the compression process which gives us a decompression time which remains optimized and similar for almost all resolutions.

Finally, and to be in the set of techniques which try to optimize fractal compression, we will draw up a comparison of our approach with certain existing methods. Table 7 clearly shows the remarkable difference between our method and the others.

Test imageMethodsPSNR (dB)Compression time (s)Compression ratio
Lena 128*128BIA32.90933.3761.486
Suman K. Mitra et al works [7]30.22/1.059
Vishvas V. Kalunge et al works [42]/67/
Lena 256*256BIA33.115732.3451.604
Y. Chakrapani et al.’s works [37]26.2223701.3
Exhaustive search32.6984001.3
DWSR [44]25.821256.42471.56355
PSO-RCQP [43]27.0896.4531.6392
Cameraman 256*256BIA31.095732.0111.678
PSO-RCQP [43]26.6862681.8212
Barbara 128*128BIA32.17621.4781.312
Vishvas V. Kalunge et al.’s works [42]/66/

Table 7.

Proposed approach versus other methods.

At first glance, our proposed method represents new work which has led to satisfactory results. It proportionally retains the quality offered after compression. Reduced time remains very satisfactory, and the compression rate is better than that offered by most of the methods below.

Advertisement

8. Conclusion

In this chapter, we explained the possibility of optimizing fractal image compression using bioinspired metaheuristics. We focused on the application and, for the first time, recent metaheuristics which are, respectively, the wolf pack algorithm and the bat-inspired algorithm in order to improve the performance of fractal image compression. The results demonstrate the efficiency of the algorithms considered.

Compared to other optimization metaheuristics, our approaches offer better results in many aspects, mainly the encoding and decoding time, the size, and the quality.

In addition, proposed approaches demonstrate the ability of these techniques to manage image compression.

Advertisement

Conflict of interest

No potential conflict of interest was reported by the authors.

Advertisement

Thanks

I would to thank the persons that have participated in this work.

References

  1. 1. Galabov M. Fractal image compression. In: Proceedings of 4th International Conference on Computer Systems and Technologies e-Learning – CompSysTech 2003;43(6):2003. pp. 320-326
  2. 2. Selim A, Hadhoud MM, Salem OM. A comparison study between spiral and traditional fractal image compression. In: Proceedings – The 2009 International Conference on Computer Engineering and Systems, ICCES’09. 2009. pp. 39–44
  3. 3. Thanushkodi KG, Bhavani S. Comparison of fractal coding methods for medical image compression. IET Image Processing. 2013;7(7):686-693
  4. 4. Jeng JH, Tseng CC, Hsieh JG. Study on Huber fractal image compression. IEEE Transactions on Image Processing. 2009;18(5):995-1003
  5. 5. Li J, Kuo CCJ. Image compression with a hybrid wavelet-fractal coder. IEEE Transactions on Image Processing. 1999;8(6):868-874
  6. 6. Han JHJ. Fast fractal image compression using fuzzy classification. In: 2008 Fifth International Conference on Fuzzy Systems and Knowledge Discovery, 3. 2008. pp. 272-276
  7. 7. Mitra SK, Murthy CA, Kundu MK. Technique for fractal image compression using genetic algorithm. IEEE Transactions on Image Processing. 1998;7(4):586-593
  8. 8. Li J, Yuan D, Xie Q, Zhang C. Fractal image compression by ant colony algorithm. In: 2008 the 9th International Conference for Young Computer Scientists. 2008. pp. 1890-1894
  9. 9. Tseng C-C, Hsieh J-G, Jeng J-H. Fractal image compression using visual-based particle swarm optimization. Image and Vision Computing. 2008;26(8):1154-1162
  10. 10. Lu G. Fractal image compression. Signal Processing: Image Communication. 1993;5(4):327-343
  11. 11. Hutchinson J. Fractals and self-similarity. Indiana University Mathematics Journal. 1981;30(5):713-747
  12. 12. Barnsley MF, Demko S. Iterated function systems and the global construction of fractals. Proceedings of the Royal Society of London A: Mathematical, Physical and Engineering Sciences. 1817;1985(399):243-275
  13. 13. Peitgen H-O, Jürgens H, Saupe D. Chaos and fractals. New Frontiers of Science. New York: Springer Science Business Media; 1992:1; ISBN: 978-1- 4757-4742-3
  14. 14. Geir EÖ, Skjalg L. Fractal-based image coding with fast decoder convergence. Signal Processing. 1994;40(1):105-117
  15. 15. Ho Moon Y, Soon Kim H, Shin Kim Y, et al. A novel fast fractal decoding algorithm. Signal Processing: Image Communication. 1999;14(4):325-333. DOI: 10.1016/s0923-5965(98)00016-2
  16. 16. Moon YH, Baek KR, Kim YS, et al. Fast fractal decoding algorithm with convergence criteria. Proceedings of the Society of Photo-Optical Instrumentation Engineers. 1997;36(7):1992-1999
  17. 17. Jacquin AE. Image coding based on a fractal theory of iterated contractive image transformations. IEEE Transactions on Image Processing. 1992;1(1):18-30
  18. 18. Jacquin AE. Fractal image coding: A review. Proceedings of IEEE. 1993;81(10):1451-1465
  19. 19. Thomas L, Deravi F. Region-based fractal image compression using heuristic search. IEEE Transactions on Image Processing. 1995;4(6):832-838
  20. 20. Cardinal J. Fast fractal compression of greyscale images. IEEE Transactions on Image Processing. 2001;10(1):159-164
  21. 21. He C, Xu X, Yang J. Fast fractal image encoding using one-norm of normalized block. Chaos, Solitons and Fractals. 2006;27(5):1178-1186
  22. 22. Tong CS, Pi M. Fast fractal image encoding based on adaptive search. IEEE Transactions on Image Processing. 2001;10(9):1269-1277
  23. 23. Hartenstein H, Saupe D. Lossless acceleration of fractal image encoding via the fast Fourier transform. Signal Processing: Image Communication. 2000;16(4):383-394
  24. 24. Zhang C, Zhou Y, Zhang Z. Fast fractal image encoding based on special image features. Tsinghua Science and Technology. 2007;12(1):58-62
  25. 25. Truong TK, Jeng JH, Reed IS, et al. A fast encoding algorithm for fractal image compression using the DCT inner product. IEEE Transactions on Image Processing. 2000;9(4):529-535
  26. 26. Lin YL, Wu MS. An edge property-based neighborhood region search strategy for fractal image compression. Computers & Mathematics with Applications. 2011;62(1):310-318. DOI: 10.1016/j.camwa.2011.05.011
  27. 27. Olamaei J, Niknam T, Gharehpetian G. Application of particle swarm optimization for distribution feeder reconfiguration considering distributed generators. Applied Mathematics and Computation. 2008;201(1–2):575-586. DOI: 10.1016/j. amc.2007.12.053
  28. 28. Gandomi AH, Alavi AH. Multi-stage genetic programming: A new strategy to nonlinear system modeling. Information Sciences (Ny). 2011;181(23):5227-5239. DOI: 10.1016/j.ins.2011.07.026
  29. 29. Blum C, Merkle D. Swarm intelligence: Introduction and applications. In: Natural Computing Series. Berlin, Heidelberg: Springer-Verlag; 2008. ISBN: 978-3-540-74088-9. DOI: 10.1007/978-3-540-74089-6_2
  30. 30. Felix T, Chan S, Tiwari MK. Swarm Intelligence, Focus on Ant and Particle Swarm Optimization, (Ed.), ISBN: 978-3-902613-09-7. Rijeka: IntechOpen; 2007
  31. 31. Wu HS, Zhang FM. Wolf pack algorithm for unconstrained global optimization. In: Mathematical Problems in Engineering. Hindawi Publishing Corporation. Vol. 2014. 2014. Available from: http://dx.doi.org/10.1155/2014/465082. Article ID: 465082
  32. 32. Yang XS. A new metaheuristic bat-inspired algorithm. In: González JR, Pelta DA, Cruz C, Terrazas G, Krasnogor N, editors. Nature Inspired Cooperative Strategies for Optimization (NICSO). Studies in Computational Intelligence. Vol. 284. Berlin, Heidelberg: Springer; 2010. pp. 65-74. DOI: 10.1007/978-3-642-12538-6_6k2
  33. 33. Karaboga D. A comparative study of artificial bee Colony algorithm. Applied Mathematics and Computation. 2009;214(1):108-132. DOI: 10.1016/j.amc.2009. 03.090
  34. 34. Martinez C. An ACO algorithm for image compression. CLEI Electronic Journal. 2006;9(2):1-17. DOI: 10.19153/cleiej.9.2.1
  35. 35. Chakrapani Y, Soundararajan K. Genetic algorithm applied to fractal image compression. ARPN Journal of Engineering and Applied Sciences. 2009;4(1):53-58
  36. 36. Xing-yuan W, Fan-ping L, Shu-guo W. Fractal image compression based on spatial correlation and hybrid genetic algorithm. Journal of Visual Communication and Image Representation. 2009;20(8):505-510. DOI: 10.1016/j.jvcir.2009.07.002
  37. 37. Chakrapani Y, Soundararajan K. Implementation of fractal image compression employing particle swarm optimization. The World Journal of Modelling and Simulation. 2010;6(1):40-46
  38. 38. Al-Bundi SS, Al-Saidi NMG, Al-Jawari NJ. Crowding optimization method to improve fractal image compressions based iterated function systems. International Journal of Advanced Computer Science and Applications. 2016;7(7):392-401
  39. 39. Al-Saidi NMG, Al-Bundi SS, Al-Jawari NJ. An improved harmony search algorithm for reducing computational time of fractal image coding. Journal of Theoretical and Applied Information Technology. 2017;95(8):1669-1678
  40. 40. Menassel R, Nini B, Mekhaznia T. An improved fractal image compression using wolf pack algorithm. Journal of Experimental & Theoretical Artificial Intelligence. 2018;30(3):429-439. DOI: 10.1080/0952813X.2017.1409281
  41. 41. Menassel R, Gaba I, Titi K. Introducing BAT inspired algorithm to improve fractal image compression. International Journal of Computers and Applications. 2019. DOI: 10.1080/1206212X.2019.1638631
  42. 42. Kalunge VV, Varunakshi B. Time optimization of fractal image compression by using genetic algorithm. International Journal of Engineering Research & Technology. 2012;1(10):1-5
  43. 43. Wang X-Y, Zhang D-D, Wei N. Fractal image coding algorithm using particle swarm optimization and hybrid Quadtree partition scheme. IET Image Processing. 2015;9(2):153-161
  44. 44. Wang X-Y, Zhang D-D. Discrete wavelet transform-based simple range classification strategies for fractal image coding. Nonlinear Dynamics. 2014;75(3):439-448

Written By

Rafik Menassel

Submitted: 28 March 2020 Reviewed: 28 May 2020 Published: 28 July 2020