Peng Fu ,Qianqian XuJieyu Zhang and Leilei Geng
Abstract: The superpixel segmentation has been widely applied in many computer vision and image process applications.In recent years,amount of superpixel segmentation algorithms have been proposed.However,most of the current algorithms are designed for natural images with little noise corrupted.In order to apply the superpixel algorithms to hyperspectral images which are always seriously polluted by noise,we propose a noiseresistant superpixel segmentation (NRSS) algorithm in this paper.In the proposed NRSS,the spectral signatures are first transformed into frequency domain to enhance the noise robustness; then the two widely spectral similarity measures-spectral angle mapper (SAM)and spectral information divergence (SID) are combined to enhance the discriminability of the spectral similarity; finally,the superpixels are generated with the proposed frequency-based spectral similarity.Both qualitative and quantitative experimental results demonstrate the effectiveness of the proposed superpixel segmentation algorithm when dealing with hyperspectral images with various noise levels.Moreover,the proposed NRSS is compared with the most widely used superpixel segmentation algorithm-simple linear iterative clustering (SLIC),where the comparison results prove the superiority of the proposed superpixel segmentation algorithm.
Keywords:Superpixel segmentation,hyperspectral images,fourier transformation,spectral similarity,random noise.
In recent years,superpixel segmentation has been widely used as a preprocessing step of various computer vision applications,such as image segmentation [Farag,Lu,Roth et al.(2017)],saliency detection [Liu,Li,Ye et al.(2017)],target tracking [Wang,Wang,Liu et al.(2018)],image classification [Zhang,Zheng and Xia (2018)],and so on.In general,the existing superpixel segmentation algorithms can be categorized as graph-based or gradient-based approaches.The classical graph-based algorithms include the Normalized cuts algorithm [Shi and Malik (2000)],the superpixel lattice algorithm [Moore,Prince,Warrell et al.(2008)],the Entropy rate superpixel segmentation [Liu,Tuzel,Ramalingam et al.(2011)].Typical graph-based algorithms include Watersheds algorithm [Vincent and Soille (1991)],Quick-shift algorithm [Vedaldi and Soatto (2018)],Turbopixel algorithm [Levinshtein,Stere,Kutulakos et al.(2009)].In recent years,the clustering techniques [He,Ouyang,Wang et al.(2018)] have been widely used in the superpixel segmentation algorithms,where the simple linear iterative clustering (SLIC) [Achanta,Shaji,Smith et al.(2012)] is the most prominent one.The detailed descriptions and performance comparison of these superpixel segmentation algorithms can be found in [Wei,Yang,Gong et al.(2018)].The most desirable property of a superpixel segmentation algorithm is that the generated superpixels should be tightly adhering to the image boundaries.In general,the current superpixel segmentation algorithms are designed for natural images,where the noise is very limited in these images.However,the hyperspectral (HS) images are more likely to be corrupted by random noise due to the weak energy acquired in each spectral band.In practice,when we apply the existing algorithms to segment a HS image into superpixels,the generated superpixels are always affected by the noise.To address this challenge,we propose a novel noise-resistant superpixel segmentation (NRSS) algorithm for the noisy HS images in this paper.In order to make the superpixel algorithm more robust to noise,a new spectral similarity measure is designed in frequency domain.Experimental results show the effectiveness and superiority of the proposed NRSS algorithm.
Given a HS image with the sizeX×Y×N,whereXandYrepresent the length and width of the spatial image,andNis the total number of the spectral bands.First,the spatial image within one band is divided intoKblocks with block size equalsS.Then,an initial cluster center can be defined as follows:
in which Rkrepresents the initial center;xkandykare the spatial coordinates;ψkdenotes the vector of spectral signatures of the center.After the initialization step,we assign each pixel to the closest center by using a new similarity measure,where the proposed measure is composed of a spatial similarity term and a spectral similarity term.In order to enhance the noise robustness of the algorithm,the spectral similarity is defined in frequency domain.In the proposed NRSS algorithm,we adopt the discrete Fourier transform (DFT) to transform the spectral information into frequency domain,which can be formulated as:
in whichudenotes the frequency;Nis the total number of the spectral bands andnmeans thenth frequency component;F(u)represents the frequency spectrum;f(n)represents the discrete spectral signatures.It is worth noting that after we transform the spectral information into frequency domain,the distributions of the noise and useful signal can be easily distinguished-noise is mainly distributed on high frequency part while useful signal is mainly distributed on low frequency part.Thus,we use a part of low frequency components to define the spectral similaritydz:
in which Φαiand Φαkrepresent the low frequency components of pixeliand cluster centre Rk; the parameterαis defined to control the ratio of the frequency spectrum;SID is the acronym of the spectral information divergence,and SAM denotes the spectral angle mapper.The two widely spectral similarity measures are combined to enhance the discriminability of the proposed spectral similarity [Du,Chang,Ren et al.(2004)].In the NRSS algorithm,the spatial similaritydxyis defined by using Euclidean distance:
Combing the spectral similarity and spatial similarity,the new similarityd(i,k)in NRSS can be formulated as:
in which the parameterλis defined to weigh the relative importance between the spectral similarity and spatial similarity.Based on the novel similarity measure,the assignment process is implemented in a2S× 2Sregion for each cluster center.Then,the mean vector of all the pixels belonging to the cluster is utilized for updating the new center.Finally,the assignment and updating steps are repeated until no pixel’s label changes.
In this experiment,the performance of the superpixel algorithms is evaluated on a synthetic HS image.First,4 spectra are obtained from a real Pushbroom Hyperspectral Imager (PHI) [Zhang,Sun,Shang et al.(2016)] image.The all 124 spectral bands are utilized to generate the synthetic HS image.The spatial size of the synthetic HS image is 200× 200,where Fig.1 shows the 50th band of the synthetic HS image.
Figure1:The 50th spectral band of the synthetic hyperspectral image
In order to evaluate the noise robustness of the superpixel segmentation algorithms,random noise with different intensities is added to the synthetic HS image.In this experiment,the noise is assumed to be Gaussian distributed with zero mean and various variances.The indicator signal-to-noise ratio (SNR) is introduced to set the noise variance in each spectral band.In this experiment,we generate noisy synthetic HS images with SNRequals 15 dB,20 dB,25 dB,30 dB,35 dB,and 40 dB,respectively.For each noisy image,we apply the proposed NRSS and the widely used SLIC to segment the image into superpixels.In the proposed NRSS,we optimize the parameterα=0.2andλ=10-3.Fig.2 shows the superpixel segmentation results on synthetic images with various noise levels and different algorithms.From Fig.2 we can see that with low noise levels,both of the NRSS and SLIC produce accurate superpixel segmentation results.However,the performance of the SLIC decreases rapidly with the increase of the noise levels,whereas the proposed NRSS is more insensitive to the noise.Moreover,the boundary adherence of superpixels generated by the two compared algorithms is quantitatively evaluated by using the measure boundary recall [Levinshtein,Stere,Kutulakos et al.(2009)].Boundary recall measures the fraction of ground truth boundaries correctly recovered by the superpixel boundaries,where a high boundary recall value means that very few true image boundaries are missed.The values of boundary recall of the two compared algorithms are plotted in Fig.3.In this figure,the black curve represents the boundary recall values of the proposed NRSS for images with various noise levels,and red curve denotes the corresponding results of SLIC.Experimental results shown in Fig.3 further demonstrate that the NRSS is more robust to the noise.
Figure3:Boundary recall values of the superpixels generated by the NRSS and SLIC from the synthetic image with various SNR values
In this paper,we propose a noise-resistant superpixel segmentation algorithm for HS images.To make the generated superpixel more robust to noise,the spectral features are extracted in frequency domain,and a novel frequency-based spectral similarity measure is defined for the clustering of superpixels.Experimental results demonstrate that the proposed algorithm is robust to noise.However,the transformation process to frequency domain may increase the computation time.Speeding up the proposed superpixel segmentation algorithm without decreasing the accuracy will be investigated in further works.
Computers Materials&Continua2019年5期