1 Introduction

Over the recent years, texture analysis and modeling have been a hot topic in the field of image processing. Texture synthesis, texture retrieval, denoising of textured images, edge detection in textured images, and texture segmentation are some of the most important challenges in this domain. Having an accurate statistical model for textured images can be very useful to deal with these challenges, especially image segmentation.

Texture segmentation is dividing the image into regions with similar texture. Segmenting a textured image is a challenging task because using traditional segmentation methods in textured images often results in an over segmentation [1]. This is due to the fact that a textured region usually consists of many small homogeneous regions (texture elements). Traditional segmentation methods rely on the pixel value for segmentation while an efficient texture analysis method should consider its neighboring pixel values too.

In this paper, different distributions have been used for modeling and segmentation of textured natural images in contourlet domain. Skewed alpha-stable distribution which is a generalized form of Rayleigh distribution presents the best results. The proposed method’s performance is also compared to other algorithms. Simulation results show superiority of the proposed algorithm related to the other methods.

2 Literature review

Feature extraction is the most important step in texture segmentation. Having some texture discriminative descriptors can make the segmentation process straightforward. Therefore, various works in recent years have been carried out in texture feature extraction [1,2,3,4,5,6,7,8,9]. Texture analysis methods can be divided into four categories: statistical methods (e.g., co-occurrence matrices [10,11,12], autocorrelation features [13, 14]), geometrical methods (e.g., Voronoi tessellations [15, 16]), model base methods (e.g., random fields [5, 17,18,19], fractals [12, 20]) and signal processing methods (e.g., spatial domain filtering [21, 22], Fourier domain filtering [2], and wavelet-based methods [16, 23]).

Statistical modeling is one of the most popular texture analysis methods. In this approach, the pixel values are assumed to be random variables drawn from a specific distribution, then the distribution’s parameters are estimated and can be used as features in different tasks such as image segmentation [24,25,26] or denoising [27]. Various distributions have been used for texture modeling and segmentation. Gaussian distribution is one of the most commonly used models for texture analysis [24, 28, 29]. Rayleigh, Weibull [30, 31], and Wishart [25] distributions have been also used for texture feature extraction. However, due to its shape and properties, each of these distributions is suitable for a specific type of data. For example, Rayleigh and Gaussian distributions are unable to fit heavy-tailed or nonsymmetrical histograms. To solve this problem, we propose using alpha-stable distribution for texture modeling. Alpha-stable or Levy distributions firstly introduced by Levy [25] are a family of distributions which are able to model a wide range of data; this is because in its general form, alpha-stable distribution can be asymmetric having various shapes.

Many researchers have used texture modeling and feature extraction in multiresolution domains like wavelet transform [26, 27]. Most of these methods use transform coefficients’ energy [28], fractal dimension [20], or statistical modeling parameters [29,30,31] as texture features. Different multiresolution transforms have been introduced in recent years. Wavelet transform is the simplest and most popular one used for texture feature extraction. Wavelet’s advantages are simplicity and low redundancy but decomposing in these two directions is its serious disadvantage that limits the number of informative features extracted from the image. Contourlet transform has been introduced to overcome this problem. Contourlet [32] is a two-dimensional transform that uses a pyramidal directional filter bank to extract image details at different scale and directions. Since there is no limitation on the number of directions in contourlet, various texture features can be extracted.

Statistical modeling in transform domain is one of the most effective texture feature extraction and classification methods. For example, Euclidean or Kullback-Liebler distance between the distributions can be used as a similarity measurement for texture classification [29, 33], or the distribution’s parameters can be used as texture features [29]. Different distributions have been used to model texture in the multiresolution domain. Generalized-Gaussian distribution has been used to model wavelet [29, 34, 35] and contourlet [31] coefficients. Kwitt and Uhl [36] have used gamma and Weibull distributions to model texture in complex DWT domain. Generalized gamma distribution has been also used for texture modeling in transform domain [37, 38].

In our work, alpha-stable distribution is proposed to model and segment textured images in contourlet domain. We have used the alpha-stable parameters of these detail images for texture segmentation. Contourlet transform’s ability to extract texture features in different scales and directions combined with alpha-stable distribution’s modeling capabilities prove to be an effective method for texture analysis and feature extraction. Simulation results show that a significant improvement has been achieved by this method compared with other texture segmentation methods.

3 Contourlet transform

Recently, wavelet transform has been widely used in signal processing. This is because wavelet transform provides a good nonlinear approximation for piecewise smooth functions in one dimension [39]. However, since two-dimensional wavelet is the tensor product of one-dimensional wavelet, it can only model zero-dimension discontinuities (points). On the other hand, in an image, edges are one-dimension discontinuities and thus cannot be modeled using wavelets. Contourlet transform is a “true two-dimensional representation of images which can capture the intrinsic geometrical structure inherent in visual information” [32].

Contourlet transform uses a multiscale filter bank like Laplacian that performs the pyramid decomposition. On each decomposition level, the prediction residual image is passed through a directional filter bank to calculate details in different directions. Figure 1 shows the block diagram for Contourlet transform.

Fig. 1
figure 1

Contourlet transform

In our work, we use Contourlet transform’s ability to extract image details in various scales and directions to build a strong texture descriptor.

4 Skewed alpha-stable distribution

The concept of stable distributions was firstly introduced by levy [25]. This family of distributions does not have a close formed probability density function and is defined by a characteristic function which is shown in Eq. 1.

$$ \phi \left(\omega \right)=\left\{\begin{array}{c}\exp \left\{ j\mu \omega -{\left|\gamma \omega \right|}^{\alpha}\left[1- jsgn\left(\omega \right)\beta \tan \left(\frac{\pi \alpha}{2}\right)\right]\right\},\alpha \ne 1\\ {}\exp \left\{ j\mu \omega -\left|\gamma \omega \right|\left[1+ jsgn\left(\omega \right)\beta \frac{2}{\pi}\ln \left(\omega \right)\right]\right\},\alpha \ne 1\end{array}\right. $$
(1)

Probability density function can be obtained by taking FFT (fast Fourier transform) of the characteristic function. Alpha-stable distribution has four parameters: α ∈ (0, 2] (shape parameter), β ∈ [−1, 1] (skewness parameter), γ ∈ + (dispersion parameter), and μ ∈  (location parameter). Gaussian distribution is a special case of alpha-stable distribution with α = 2. Figures 2, 3, and 4 show the alpha-stable probability density function for different values of α, β, and γ.

Fig. 2
figure 2

Alpha-stable distribution for different values of α

Fig. 3
figure 3

Alpha-stable distribution for different values of β

Fig. 4
figure 4

Alpha-stable distribution for different values of γ

Due to its flexibility in representing heavy-tailed and non-symmetric data, alpha stable distribution can be used to model a wide range of texture data. Combining this with contourlet’s ability to extract texture features in different scales and directions gives us a full texture descriptor.

5 Materials and method

In simulation process, different texture mosaics from Brodatz album [40], Vistex database, and the KTH-TIPS2 database [41] which contain multiple natural textures, in addition to two polarimetric SAR images, have been used. These polarimetric images consist of a RADARSAT-2 image of Vancouver area and an AIRSAR image of San Francisco Bay.

In segmentation process, 100 random texture mosaics containing textures from Brodatz, Vistex, or the KTH-TIPS2 album have been used. Figure 5 shows some sample texture and mosaics from Brodatz album. Figure 6 contains textures from Vistex database, and Fig. 7 shows textures samples from the KTH database.

Fig. 5
figure 5

Texture samples from Brodatz album

Fig. 6
figure 6

Texture samples from Vistex album

Fig. 7
figure 7

Texture samples from the KTH-TIPS2 database

Vancouver image size is 9785 × 8779 pixels and has a special resolution of 1 m × 3 m. The image contains three different types of land cover: mountains, sea, and urban area. Figure 8 shows Vancouver image. Figure 9 shows the San Francisco Bay area image, which is a 900 × 1024 full polarimetric image.

Fig. 8
figure 8

Vancouver image. a HH band. b HV band. c Hand segmented image

Fig. 9
figure 9

San Francisco Bay image. a Sinclair decomposition. b Hand segmented image

5.1 Statistical modeling

In our work, Gaussian, Rayleigh, Log-Normal, Inverse-Gaussian, Weibull, and alpha-stable distributions have been used for modeling. These distributions have been chosen because they have been used in many state of the art texture analysis publications [24, 42,43,44,45].

Maximum likelihood (ML) method has been used to estimate parameters of each distribution. Figure 10 shows the statistical modeling steps. First, the input image is decomposed using contourlet transform. Next, for each distribution, parameters are estimated using maximum likelihood method.

Fig. 10
figure 10

Statistical modeling block diagram

To evaluate how well each distribution fits the data, Kolmogorov–Smirnov distance (KSD) has been used. KSD is calculated based on Eq. 2, where CFD is the cumulative distribution function of the proposed distribution and EFD is the cumulative distribution function from image histogram.

$$ \mathrm{KSD}=\max \left\{\left|\mathrm{CDF}(x)-\mathrm{EDF}(x)\right|\right\} $$
(2)

The estimation has been done for all the Brodatz and Vistex images and for each of the Vancouver image polarizations.

5.2 Image segmentation

Figure 11 shows the segmentation algorithm. First, additive Gaussian noise is added to the image. To evaluate the performance of each method in the presence of noise, Gaussian noise with different densities has been added to the images, and segmentation has been done with various noise densities.

Fig. 11
figure 11

Segmentation algorithm

Next, feature extraction is performed. Different texture analysis methods have been used for feature extraction. These methods include statistical modeling and fractal analysis of the image both in the Contourlet and the image domain. Table 1 shows a summary of different feature sets.

Table 1 Used feature sets in our work

Figure 12 shows feature extraction process in the image domain. For each pixel, a 25 × 25-pixels window has been selected around it and the features have been extracted from this window. Next, the histogram of the pixel values inside of the window is calculated and different distributions have been fitted to this histogram. For each of the mentioned distributions, its parameters have been estimated using the maximum likelihood method and these parameters have been used as features for classification.

Fig. 12
figure 12

Feature extraction process in image domain

Figure 13 illustrates the feature extraction process in contourlet domain. First the image is transformed to the contourlet domain and the contourlet subbands are calculated. We perform a single level contourlet decomposition in five directions. This will result in 1 approximation and 32 detail images containing contourlet coefficients. Next, distribution parameters are estimated for each of the subbands.

Fig. 13
figure 13

Feature extraction process in contourlet domain

For comparison, fractal analysis which is another texture analysis method has also been used for feature extraction [20].

A three-layered perceptron neural network with 25 neurons in the hidden layer has been used as the classifier. Figure 14 shows this network’s structure. Hyperbolic tangent sigmoid transfer function was used for hidden and output layers (Figs. 15).

Fig. 14
figure 14

Neural network structure

Fig. 15
figure 15

Hyperbolic tangent sigmoid transfer function

6 Simulation results and discussion

The following figures show the estimation results. They contain average value of KSD for different distributions in each subband. Figure 16 shows the average KSD values of each sub band for the alpha-stable distribution. The first subband is the approximation image, and subband numbers 2 through 33 are the detail images, which contain the texture information. From the graph, it is clear that alpha-stable distribution has the highest error in the first sub band, which is the approximation, which means this distribution is useful for modeling the texture information in the detail images.

Fig. 16
figure 16

Average KSD values of each contourlet subband for the alpha-stable distribution. a Brodatz album. b Vistex database. c KTH-TIPS2 database. d Vancouver area image. e San Francisco Bay area

Figures 17, 18, and 19 show comparison of the KSD values and the standard deviation of the estimation error for different distributions in each subband. We can see by obtained results, alpha-stable distribution has the lowest estimation error in the subbands representing the texture. Furthermore, the standard deviation of error in these subbands is lowest for alpha-stable distribution in most cases. Rayleigh distribution has the highest error among all the distributions. Gaussian distribution also leads to acceptable results.

Fig. 17
figure 17

Estimation results for Brodatz images. a Average KSD value for different distributions in each subband. b Standard deviation of the error

Fig. 18
figure 18

Estimation results for Vistex images. a Average KSD value for different distributions in each subband. b Standard deviation of the error

Fig. 19
figure 19

Estimation results for KTH database images. a Average KSD value for different distributions in each subband. b Standard deviation of the error

In Figs. 20 and 21, we can see the estimation results for the SAR images. It is quite clear that the alpha-stable distribution is best model for representing this type of texture.

Fig. 20
figure 20

Estimation results for the Vancouver image. Average KSD values for different distributions in each subband

Fig. 21
figure 21

Estimation results the San Francisco Bay image. Average KSD values for different distributions in each subband

We can see that for the Brodatz textures and both SAR polarizations alpha-stable distribution has the best performance. This is due to alpha-stable distribution’s ability to model both skewed and heavy tailed data.

Segmentation has been done for 100 random texture mosaics generated from each of Brodatz, Vistex, and KTH-THIPS2 databases which is a total of 300 texture mosaics. Figures 5, 6, and 7 show some samples of these mosaics. Table 2 contains the average segmentation accuracy of different methods performed on the texture mosaics and the SAR images. Considering the results, it is clear that using contourlet transform vastly improves the segmentation accuracy. This improvement is because of contourlet’s ability to extract texture details in multiple scales and directions. Comparison of contourlet and wavelet’s results shows the importance of analyzing the image in more than 3 directions. Therefore, texture modeling in contourlet domain can be a powerful tool for image segmentation.

Table 2 Average segmentation accuracy of different methods (without noise)

Using alpha-stable distribution to model texture in contourlet domain leads to the highest segmentation accuracy among all the simulated methods. It is due to use of analyzing the texture in multiple directions and scales using contourlet, combined with alpha-stable distribution fitting the data. Table 3 shows the standard deviation of the segmentation accuracy for each method, which shows that the proposed algorithm’s accuracy has the lowest standard deviation.

Table 3 Standard deviation of segmentation accuracy for different methods (without noise)

Figures 22, 23, and 24 plot the segmentation accuracy with different noise densities. Figures 25, 26, 27, and 28 show also the segmentation results for some sample images with and without noise. We can see that the proposed method is also very robust in the presence of noise. As a matter of fact, even though Gaussian and Rayleigh modeling produce acceptable results in case of the noise free case, their performance drops significantly in the presence of noise (Figs. 29 and 30).

Fig. 22
figure 22

Average segmentation accuracy of different methods in the presence of noise for Brodatz mosaics

Fig. 23
figure 23

Average segmentation accuracy of different methods in the presence of noise for Vistex mosaics

Fig. 24
figure 24

Average segmentation accuracy of different methods in the presence of noise for KTH-TIPS2 mosaics

Fig. 25
figure 25

Segmentation results for a mosaic from Brodatz album without noise. a Original image. b Hand-segmented image. c Gaussian features. d Rayleigh features. e Alpha-stable features. f Gaussian + contourlet features. g Rayleigh + contourlet features. h Alpha-stable + contourlet features. i Fractal dimension. j Fractal + contourlet. k Alpha-stable + wavelet

Fig. 26
figure 26

Segmentation results for the previous mosaic in presence of Gaussian noise with density of 0.3. a Original image. b Hand-segmented image. c Gaussian features. d Rayleigh features. e Alpha-stable features. f Gaussian + contourlet features. g Rayleigh + contourlet features. h Alpha-stable + contourlet features. i Fractal dimension. j Fractal + contourlet. k Alpha-stable + wavelet

Fig. 27
figure 27

Segmentation results for a mosaic from Vistex album without noise. a Original image. b Hand-segmented image. c Gaussian features. d Rayleigh features. e Alpha-stable features. f Gaussian + contourlet features. g Rayleigh + contourlet features. h Alpha-stable + contourlet features. i Fractal dimension. j Fractal + contourlet. k Alpha-stable + wavelet

Fig. 28
figure 28

Segmentation results for the previous mosaic in presence of Gaussian noise with density of 0.3. a Original image. b Hand-segmented image. c Gaussian features. d Rayleigh features. e Alpha-stable features. f Gaussian + contourlet features. g Rayleigh + contourlet features. h Alpha-stable + contourlet features. i Fractal dimension. j Fractal + contourlet. k Alpha-stable + wavelet

Fig. 29
figure 29

Segmentation results for Vancouver image. a Original image. b Hand-segmented image. c Gaussian features. d Rayleigh features. e Alpha-stable features. f Gaussian + contourlet features. g Rayleigh + contourlet features. h Alpha-stable + contourlet features. i Fractal dimension. j Fractal + contourlet. k Alpha-stable+ wavelet

Fig. 30
figure 30

Segmentation results for San Francisco Bay image. a Original image. b Hand-segmented image. c Gaussian features. d Rayleigh features. e Alpha-stable features. f Gaussian + contourlet features. g Rayleigh + contourlet features. h Alpha-stable + contourlet features. i Fractal dimension. j Fractal + contourlet. k Alpha-stable+ wavelet

7 Conclusion

In this paper, skewed alpha stable distribution has been proposed for modeling the contourlet subbands of textured images. Simulation results show that alpha stable distribution can model the textured data in contourlet domain better than other distributions. This is due to alpha-stable distribution’s ability to model a wide range of data combined of different histogram shapes. Since contourlet transform provides texture details in multiple directions, statistical modeling of these details can be used as an effective method for texture feature extraction and classification.

We have also proposed a new texture segmentation method based on alpha-stable distribution parameters in contourlet domain. The performance of the proposed features on image segmentation has been compared with that of features extracted using Gaussian and Rayleigh distributions and fractal features which have been used in earlier texture segmentation works. Results have demonstrated the superior performance of new features in segmentation of textured images.

Even though Gaussian and Rayleigh parameters of contourlet domain perform almost as well as the alpha-stable features for the noise-free case, as the noise density increases their segmentation accuracy decreases quickly. The proposed segmentation method has the best accuracy and is the most robust in the presence of noise.