optical coherence tomography ( oct ) is an optical signal acquisition and processing method that captures 3d images from within optical scattering media such as biological tissues [ 14 ] . for example , in ophthalmology , oct is used to obtain detailed images from within the retina . similar to other optical tomographic techniques , oct suffers from speckle noise that reduces the ability of image interpretation . so , noise reduction is an essential part of oct image processing systems . until now , initial methods perform in complex domain , that is , before producing magnitude of oct interference signal , while most introduced despeckling methods are applied after an oct image is formed [ 614 ] . these methods , which usually suppose multiplicative noise for speckled data , also can be categorized into image domain and transform domain methods . as an example for image domain techniques , in   the rotating kernel transform ( rkt ) filters are applied on an image with a set of oriented kernels and keep the largest filter output for each pixel . other image domain methods based on enhanced lee filter , median filter , symmetric nearest neighbor filter , and adaptive wiener filter , and i - divergence regularization   and pde - based nonlinear diffusion methods   have been reported in the literature . transform domain techniques typically outperform the image domain techniques because incorporating speckle statistics in the despeckling process would be facilitated in sparse domains . such techniques apply a sparse transform ( such as wavelet and curvelet transforms ) [ 712 , 18 ] directly on data ( viz . , nonhomomorphic methods ) or on log - transformed data ( viz . , homomorphic methods ) , and suppose that in the sparse domain noise is converted to additive white gaussian noise ( awgn )   or other models which can be removed using an appropriate shrinkage function . for example , in , a spatially adaptive wavelet thresholding method is used for speckle suppression in log - transformed domain . since actual signal in oct images consists of horizontal edges arising from reflections at the layer boundaries , most of the edge information is in  low - pass-high - pass  ( lh ) subbands ( and some of it in hh subbands ) . therefore , an increased threshold in the vertical subbands using a constant multiplier ( k = 4 ) is chosen to decrease further noise with a minimal effect on the edge sharpness . other transform domain methods based on hard thresholding in 3d curvelet domain , soft thresholding in discrete complex wavelet transform ( dcwt ) domain , and temporal and spatial wavelet - based filtering   have been reported in other literatures . in fact denoising is the problem of obtaining the noise - free data from noisy data observation , which may be solved in a deterministic or probabilistic framework . in the first case , each voxel is considered as an unknown deterministic variable , and non - bayesian techniques are employed to solve this problem . in the second case , the data is modeled as a random field , and bayesian methods are used for the estimation of clean data from the noisy environment . therefore , the proposed prior probability distributions for noise - free data and noise ( i.e. , proposed as speckle for oct data ) play a key role in the noise reduction problem . description of the statistical properties of natural signals can be facilitated in the wavelet domain   due to sparseness and decorrelation properties of wavelets . the sparseness property states that the marginal pdf of wavelet coefficients in each subband has a large peak at zero and its tails fall to zero slower than the gaussian pdf ( leptokurtic ) . on this base , some long - tailed pdfs such as generalized gaussian distribution ( ggd ) [ 21 , 22 ] , -stable distributions , bessel k form densities [ 24 , 25 ] , and mixture pdfs [ 2631 ] although the decorrelation property of wavelets states that coefficients at the same positions in the adjacent scales are uncorrelated , it does not mean that they are independent . the interscale dependency of wavelet states that large / small values of wavelet coefficients tend to propagate across scales . some researchers have proposed hidden markov models ( hmms )   and markov random fields ( mrfs )   to model the interscale dependency . recently , it has been shown that some non - gaussian bivariate joint pdfs for each coefficient and its parent , such as circular symmetric laplacian pdf , bivariate cauchy distribution , ( multivariate ) gaussian scale mixture ( gsm ) model [ 27 , 38 , 39 ] , and bivariate laplacian mixture models   are able to capture this property easily and produce better denoising results with lower computational complexity . the dependencies between wavelet coefficients are not restricted to the interscale dependency . there is another dependency between spatial adjacent coefficients in each subband , namely , intrascale dependency . this dependency states that if a particular wavelet coefficient is large / small , then the spatial adjacent coefficients are likely to be large / small too . usually this property is captured using local parameters for pdfs , and it has been shown that denoising algorithms using this property for statistical modeling of wavelets are able to improve the denoising results [ 4345 ] . for example , mihak   employs local variance for gaussian pdf to model intrascale dependency . in , a mixture of two laplace pdf with local parameters is proposed for simultaneously capturing heavy - tailed nature and intrascale dependency . reference , using local variance for proposed model in , improves the results for noise reduction application because this local pdf models both interscale and intrascale dependencies . in this paper , we extend the proposed pdf in   based on a mixture of bivariate gaussian pdfs with local parameters for noise - free wavelet coefficients . since the empirically observed distribution of wavelet coefficient pairs in adjacent scales have elliptical symmetry , we use different variances for marginal pdfs that lead to an elliptical symmetric bivariate pdf instead of circular symmetric pdf . recently , it has been shown that using anisotropic window instead of square window can improve the denoising results . based on the special structure of oct data , we choose an anisotropic windowing procedure for local parameters estimation that results in visual quality improvement . the wavelet based image denoising consists of the following steps.signal transformation of the noisy observation.modification of the noisy wavelet coefficients based on some criteria.inverse signal transformation of modified coefficients . as explained earlier , the second step depends on the type of estimator and for a minimum mean square error ( mmse ) estimator , the proposed model for signal and noise ( which we propose as a multiplicative model ) , the proposed pdf of noise - free wavelet coefficients ( modeled , in this paper , as a mixture of bivariate gaussian pdfs with local parameters ) , and the proposed pdf for noise ( with which we test both gaussian and two - sided rayleigh distributions ) define the performance of the algorithm . however , for the first and last steps of wavelet - based denoising algorithm , the type of transformation plays a key role . in this paper , we use dcwt   instead of ordinary discrete wavelet transform ( dwt ) . despite dwt being a sparse representation that outperforms many signal processing approaches , it does not lead to an optimum performance in all applications and suffers from several fundamental shortcomings ( especially in high - dimensional cases ) , which dcwt avoids them . in contrast , the magnitudes of dcwt coefficients are more directly related to their adjacency to the edge . the main reason of this phenomenon is using bandpass filters that produce dwt coefficients which oscillate positively and negatively around the singularities , and this subject complicates wavelet - based processing.dwt is not shift invariant . it means that a small shift in the input signal of dwt makes the total energy of wavelet coefficients in subband completely differ . this shift greatly perturbs oscillation pattern around singularities of the dwt coefficient which complicates wavelet - domain processing . since the dwt coefficients in each subband are produced via critical sampling after using nonideal low - pass and high - pass filters , substantial aliasing would be produced . if the wavelet coefficients are not changed , the inverse dwt cancels this aliasing . applying any processing method on wavelet coefficients ( such as thresholding ) disarranges this balance between the forward and inverse transforms which leads to artifacts in the reconstructed signal.the directional selectivity of 2d dcwt has been explained in appendix a. similar to the 2d case , the standard 3d data transforms , which are separable multiplication of 1d tensors , do not provide useful representations with good energy compaction property for 3d data . for example , the multi - dimensional standard separable dwt mixes orientations and motions in its subbands and produces the checkerboard artifacts ( figure 1 ) . in contrast , since the spectrum of the ( approximately ) analytic 1d wavelet is supported on only one side of the frequency axis , the spectrum of the dcwt in 3d domain is supported in only 1/27 of the 3d frequency plane . so , instead of 3d dwt , usually oriented transforms such as 3d dcwt are proposed for 3d data processing [ 41 , 4852 ] . figure 1 shows a comparison between subbands of 3d dwt and 3d dcwt . in the neighborhood of an edge in contrast , the magnitudes of dcwt coefficients are more directly related to their adjacency to the edge . the main reason of this phenomenon is using bandpass filters that produce dwt coefficients which oscillate positively and negatively around the singularities , and this subject complicates wavelet - based processing . it means that a small shift in the input signal of dwt makes the total energy of wavelet coefficients in subband completely differ . this shift greatly perturbs oscillation pattern around singularities of the dwt coefficient which complicates wavelet - domain processing .   since the dwt coefficients in each subband are produced via critical sampling after using nonideal low - pass and high - pass filters , substantial aliasing would be produced . if the wavelet coefficients are not changed , the inverse dwt cancels this aliasing . applying any processing method on wavelet coefficients ( such as thresholding ) disarranges this balance between the forward and inverse transforms which leads to artifacts in the reconstructed signal . the directional selectivity of 2d dcwt has been explained in appendix a. similar to the 2d case , the standard 3d data transforms , which are separable multiplication of 1d tensors , do not provide useful representations with good energy compaction property for 3d data . for example , the multi - dimensional standard separable dwt mixes orientations and motions in its subbands and produces the checkerboard artifacts ( figure 1 ) . in contrast , since the spectrum of the ( approximately ) analytic 1d wavelet is supported on only one side of the frequency axis , the spectrum of the dcwt in 3d domain is supported in only 1/27 of the 3d frequency plane . so , instead of 3d dwt , usually oriented transforms such as 3d dcwt are proposed for 3d data processing [ 41 , 4852 ] . figure 1 shows a comparison between subbands of 3d dwt and 3d dcwt . in section 2 , we explain our proposed pdf for noise - free 3d dcwt coefficients , that is , a mixture of bivariate gaussian distributions with local parameters . in section 3 , at first we obtain a local thresholding function supposing a priori distribution as a bivariate gaussian pdf with local variance , and then in a bayesian framework we produce our new shrinkage functions derived from the proposed pdf and using gaussian / two - sided rayleigh noise distribution and homomorphic / non - homomorphic model . in section 4 , we explain the proposed anisotropic window selection procedure for local parameter estimation based on special structure of oct data . in section 5 , finally , in section 6 , we summarize this paper and suggest some future work . this property means that the marginal distributions of wavelet coefficients are highly kurtotic , and so long - tailed distributions are suitable models for marginal pdf . a zero - mean mixture model could have a large peak at zero and would be long tailed . for example , in [ 22 , 26 , 29 , 31 ] a mixture of gaussian distributions is proposed to model the heavy - tailed nature of wavelet coefficients . figure 2 shows this model that consists of two zero - mean gaussian distributions with two different variances . the gaussian pdf with low variance can model the large peak at zero and the gaussian pdf with high variance can model tails of distribution . the clustering property , that is called intrascale dependency , states that if a particular wavelet coefficient is large / small , then adjacent coefficients are very likely to also be large / small , and usually local pdfs are able to model this property . the persistence property , that is called the interscale dependency , states that large / small values of wavelet coefficients tend to propagate across scales . as an example , figure 3 illustrates the empirical joint parent - child histogram of wavelet coefficients computed from the 200 , 512  512 images from the corel image database . usually this property can be modeled using proper bivariate pdfs . in this paper , we assume a pdf as a mixture of two bivariate gaussian pdfs with local parameters in order to model the distribution of wavelet coefficients of images as follows : 
 ( 1)pw(k)(w(k))=a(k)p1(w(k))+(1a(k))p2(w(k))=a(k)e(w12(k)/2112(k))(w22(k)/2122(k))211(k)12(k )  + ( 1a(k))e(w12(k)/2212(k))(w22(k)/2222(k))221(k)22(k ) , 
 where a(k )  ,  11(k ) ,  12(k ) ,  21(k ) ,  22(k ) are the mixture model parameters . for each random bivariable , the second component is the parent of the first component ; for example , w2(k ) represent , the parent of w1(k ) at the same spatial position as the kth wavelet coefficient w1(k ) and at the next coarser scale . our proposed model in this paper , that is a mixture of bivariate gaussian pdfs with local parameters , is mixture , bivariate and local . therefore , it is able to simultaneously capture the heavy - tailed property and inter- and intrascale dependencies . after substitution of mixture model in the definition of e(w1(k)w2(k ) ) , we can see that this pdf represents two uncorrelated random variables as follows : 
 ( 2)e(w1(k)w2(k ) )  = w1(k)w2(k)pw(k)(w(k))dw(k )  = ( 1a(k ) )  w1(k)w2(k)p2(w(k))dw1(k)dw2(k )  + a(k)w1(k)w2(k)p1(w(k))dw1(k)dw2(k )  = 0 . interestingly , the marginal pdf of wi(k ) for i = 1 , 2 is the mixture of two univariate gaussian pdf with local parameters , 
 ( 3)pw1(k)(w1(k))=pw(k)(w(k))dw2(k)=a(k)exp(w12(k)/2112(k))11(k)2  + ( 1a(k))exp(w12(k)/2212(k))21(k)2. it is easy to see that w1(k ) , w2(k ) are not independent ; that is , 
 ( 4)pw(k)(w(k))pw1(k)(w1(k))pw2(k)(w2(k ) ) . see appendix b for more explanation . to characterize the parameters in ( 1 ) , it is necessary to have the parameters 11(k ) ,  21(k ) , 12(k ) , 22(k ) , and a(k ) . for this mixture model , we use an iterative numerical algorithm to estimate these parameters . the expectation maximization ( em ) usually , the em algorithm for mixture models employs all data in each subband to obtain the parameters . using this global em algorithm , equal parameters are obtained for all data in each subband . however , to model the intrascale dependency , we must incorporate the local statistics and need to have different parameters for each voxel in each subband . this local em algorithm is able to obtain separate parameters for each voxel by the implementation of em algorithm in each window n(k ) centered at w(k ) . this iterative algorithm has two steps . assuming that the observed data w-(k ) for k = 1 ,  , n , the e - step calculates the responsibility factors for each data as follows : 
 ( 5)r1(k)a(k)p1(w(k))a(k)p1(w(k))+(1a(k))p2(w(k)),r2(k)1r1(k ) . the m - step updates the parameters a(k ) ,  11(k ) ,  12(k ) ,  21(k ) ,  and  22(k ) . a(k ) is computed by 
 ( 6)a(k)1mjn(k)r1(j ) , 
 where m is the number of coefficients in the square window n(k ) centered at w(k ) . the variances 11(k ) ,  12(k ) ,  21(k ) ,  and  22(k ) are computed by : 
 ( 7)im2(k)jn(k)ri(j)wm2(k)jn(k)ri(j ) ,  i , m=1,2 . we assume that dominant noise in oct data is speckle . in this case as a common model , we propose multiplicative model as follows : 
 ( 8)x(i)=s(i)g(i ) , 
 where i is the index of voxel and is between 1 and number of voxels .   as explained in introduction , reported transform - based oct noise reduction methods in the literatures [ 712 , 18 ] usually at first transform data into log domain , and suppose that noise in log domain is awgn : 
 ( 9)w(logx(i))=w(logs(i))+w(logg(i ) ) , 
 where in this paper w shows 3d dcwt operator . so , we can write 
 ( 10)y(k)=w(k)+n(k ) , 
 where w(k ) , y(k ) , and n(k ) are , respectively , the kth noise - free 3d dcwt coefficients , noisy 3d dcwt coefficients , and noise in the 3d dcwt domain . recently , it has been reported [ 5659 ] that non - homomorphic techniques that do not use this nonlinear operation and apply wavelet transform directly on speckled data lead to unbiased estimation of the data and decrease the computational complexity . on this base after applying 3d dcwt ( directly ) on data , we would have 
 ( 11)w(x(i))=w(s(i)g(i))=w(s(i)+s(i)(g(i)1))=w(s(i))+w(s(i)(g(i)1 ) ) . again we can write 
 ( 12)y(k)=w(k)+n(k ) , 
 where w(k ) ,  y(k ) , and n(k ) are , respectively , the kth noise - free 3d dcwt coefficients , noisy 3d dcwt coefficients , and noise in the 3d dcwt domain . since speckle noise g can be modeled as a unit - mean random process independent of the noise - free data , we would have e[w(s(g  1 ) ) ] = 0 , and also it can be easily shown   that e[w(s)w(s(g  1 ) ) ] = 0 which means that w(k ) and n(k ) are zero - mean uncorrelated random variables . if wp(k ) , yp(k ) , and np(k ) show the parent coefficients of w(k ) , y(k ) , and n(k ) , respectively , we can write 
 ( 13)yp(k)=wp(k)+np(k ) . based on the persistence property , we need to have a bivariate model based on parent - child pairs . so , we can propose the following bivariate model : 
 ( 14)y(k)=w(k)+n(k ) , 
 where w-(k)=(w(k),wp(k ) ) , y-(k)=(y(k),yp(k ) ) , and n-(k)=(n(k),np(k ) ) are , respectively , the kth parent - child pairs of noise - free 3d dcwt coefficients , noisy 3d dcwt coefficients , and additive noise in the 3d dcwt domain . in the literature , several models such as k - distribution , rayleigh , weibull , log - normal , and nakagami distributions have been proposed [ 57 , 58 , 6063 ] for speckle in image domain . in this paper , we test both awgn and two - sided rayleigh model for noise in wavelet domain as follows : 
 ( 15)pn(n(k))=12n2exp(n12(k)+n22(k)2n2),(16)pn(n(k))=|n1(k)n2(k)|44exp(n12(k)+n22(k)22 ) , 
 where n = 2 shows the noise variance . now our goal is the estimation of w-(k ) from y-(k)=w-(k)+n-(k ) , where n-(k ) is a gaussian or two - sided rayleigh according to some criteria . if we employ the mmse estimator for the estimation problem , we get the posterior mean as an optimal solution : ( 17)w^(k)=w(k)pw(k )    y(k)(w(k )    y(k))dw(k)=w(k)py(k )    w(k)(y(k )    w(k))pw(k)(w(k))py(k)(y(k))dw(k)=w(k)py(k )    w(k)(y(k )    w(k))pw(k)(w(k))dw(k)py(k)(y(k))=w(k)py(k )    w(k)(y(k )    w(k))pw(k)(w(k))dw(k)py(k ) w(k)(y(k )    w(k))pw(k)(w(k))dw(k)=w(k)pn(y(k)w(k))pw(k)(w(k))dw(k)pn(y(k)w(k))pw(k)(w(k))dw(k ) . in order to solve ( 17 ) , we must know the prior distribution of 3d dcwt coefficients , that is , pw-(k)(w-(k ) ) . defining gauss(x,):=exp(-x2/(22))/(2 ) , if we suppose that w(k ) , wp(k ) are independent gaussian pdf with variances 1(k ) and 2(k ) , the following bivariate gaussian pdf with local variances can be proposed for the noise - free wavelet coefficients : 
 ( 18)pw(k)(w(k))=pw(k)(w(k))pwp(k)(wp(k))=gauss(w(k),(k))gauss(wp(k),p(k))pw(k)(w(k))=exp[w2(k)22(k)wp2(k)2p2(k ) ]  (2(k)p(k))1 . in this case , w(k ) and wp(k ) are uncorrelated and independent , and therefore the mmse estimator of w(k ) , wp(k ) yields the shrinkage function corresponding to univariate gaussian pdf , that is , wiener filter   as follows : 
 ( 19)w^(k)=w(k)pn(y(k)w(k))pw(k)(w(k))dw(k)pn(y(k)w(k))pw(k)(w(k))dw(k)=y(k)2(k)2(k)+n2 . and so we can write 
 ( 20)w^(k)=(y(k)2(k)2(k)+n2 ,  yp(k)p2(k)p2(k)+n2 ) . similarly , if we choose two - sided rayleigh pdf for noise distribution , the following estimator is obtained : 
 ( 21)w^(k)=2z(k)2(22(k)2)+2(122(k)z2(k)2 )  (erfcx(z(k))erfcx(z(k ) ) )  (12 + 12(k)(2+z(k)erfcx(z(k ) )  z(k)erfcx(z(k))))1 , 
 where 
 ( 22)z(k)=y(k)2(k)12/2 + 2/2(k),erfcx(u)=20et22tudt . and so we can write 
 ( 23)w^(k)=((2z(k)2(22(k)2 )  + 2(12(k)z2(k)2 )  (erfcx(z(k))erfcx(z(k ) ) ) )  (12 + 12(k )  (2+z(k)erfcx(z(k ) )  z(k)erfcx(z(k))))1 ,  ( 2z(k)2(2p2(k)2)+2(1p2(k)z2(k)2)(erfcx(zp(k))erfcx(zp(k ) ) ) )  (12 + 1p2(k)(2+zp(k)erfcx(zp(k ) )  zp(k)erfcx(zp(k))))1 ) . to implement ( 20 ) or ( 23 ) , we must know the parameter of the prior (k ) ( suppose that (k ) = p(k ) ) . mihak et al .   showed that using local variance ( instead of global variance ) for wiener filter leads to a substantial improvement in denoising results ( using local variance allows incorporating the local statistics of image into the proposed prior ) . it has been shown in the literature that the correctness of estimation of variance is an impact factor for denoising [ 23 , 27 , 34 , 4246 ] . thus , the proposed criteria for estimation of the variance , such as the involved data for estimation ( e.g. , in some approaches the coarser scales are used as a source of prior ) , the type of estimator , and the shape and size of the proposed window for the local estimation of the variance , play key roles in the performance of denoising procedure . for example , in   a recurrence equation using a local gaussian pdf is used for estimation of (k ) or in   the variable size of the locally adaptive window is obtained using a region - based approach . however , for each data point y-(k ) , a simple estimation of (k ) can be formed based on a local neighborhood n(k ) . in simplest case , we can use a square window n(k ) centered at y-(k ) and suppose that in this window the variance is approximately constant . then , an empirical estimate for (k ) can be obtained as follows : 
 ( 24)^2(k)=12mjn(k)(y2(j)+yp2(j))n2 , 
 where m is the number of coefficients in n(k ) and n can be estimated by   n = median{|noisy wavelet coefficients in finest scale|}/0.6745 . in this estimation , we propose the coarser scale as a source of prior , but another estimate can be obtained using only spatial adjacent in the same scale . it has been shown   that the local features in the edges of images are not isotropic and so can be better modeled in a shape - adaptive window selection manner . we explain in this regard in section 4 and try to improve the denoising results by using anisotropic window instead of square window for the estimation of local parameters ( such as variance in ( 24 ) ) . a nonlinear shrinkage function for wavelet - based denoising , which is derived by assuming that the noise - free wavelet coefficients follow a bivariate gaussian mixture model with local parameters given by ( 1 ) , is introduced in this section . substituting ( 1 ) in ( 17 ) , we can write 
 ( 25)w^(k)=(w(k)pn(y(k)w(k))[a(k)p1(w(k))+(1a(k))p2(w(k))]dw(k ) )  (pn(y(k)w(k))[a(k)p1(w(k))+(1a(k))p2(w(k))]dw(k))1=a(k)w(k)pn(y(k)w(k))p1(w(k))dw(k)a(k)g1(y(k))+(1a(k))g2(y(k ) )  + ( ( 1a(k))w(k)pn(y(k)w(k))p2(w(k))dw(k ) )  (a(k)g1(y(k))+(1a(k))g2(y(k)))1 , 
 where 
 ( 26)gi(y(k))=pn(y(k)w(k))pi(w(k))dw(k),i=1,2 . gi(y-(k ) ) is the 2d convolution of the pdf of pn- ( defined in ( 15 ) or ( 16 ) ) and pi ( defined in ( 1 ) ) . using ( 15 ) as proposed model for noise , both pn- and pi are bivariate gaussian pdfs . so , we obtain 
 ( 27)gi(y(k))=exp((1/2)(y2(k)/(n2+i12(k))+yp2(k)/(n2+i22(k ) ) ) )  (2(n2+i12(k))(n2+i22(k)))1i=1,2 . for two - sided rayleigh noise ( 16 ) , , the final formula would be 
 ( 28)gi(y(k ) )  = exp(y2(k)/2i12(k)yp2(k)/2i22(k))8(1+i12(k)/2)(1+i22(k)/2)i1(k)i2(k )  (2+zi(k)erfcx(zi(k ) )  zi(k)erfcx(zi(k ) ) )  (2+zip(k)erfcx(zip(k ) )  zip(k)erfcx(zip(k ) ) ) ,  i=1,2 , 
 where 
 ( 29)zi(k)=y(k)i12(k)12/2+(2/i12(k ) ) ,  i=1,2,zip(k)=yp(k)i22(k)12/2+(2/i22(k ) ) ,  i=1,2 . using ( 19 ) , we can obtain numerators of ( 25 ) , and finally ( 25 ) for awgn can be written as 
 ( 30)w^(k)=(112(k)/(112(k)+n2)+r(y(k))(212(k)/(212(k)+n2 ) ) )  (1+r(y(k)))1y(k ) , 
 where 
 ( 31)r(y(k))=(((1a(k ) )  exp(12  (y2(k)n2+212(k)+yp2(k)n2+222(k ) ) ) )  ((n2+212(k))(n2+222(k)))1 )  ((a(k)exp(12(y2(k)n2+112(k)+yp2(k)n2+122(k ) ) ) )  ((n2+112(k))(n2+122(k)))1)1 . figure 4 shows this shrinkage function with sample constant parameters . similarly , using ( 21 ) , we can obtain numerators of ( 25 ) , and finally ( 25 ) for two - sided rayleigh noise is obtained as 
 ( 32)w^(k)=11+r(y(k ) )  (2z1(k)2(2112(k)2)+2(1112(k)z12(k)2)(erfcx(z1(k))erfcx(z1(k))))(12 + 1112(k)(2+z1(k)erfcx(z1(k ) )  z1(k)erfcx(z1(k))))1  + r(y(k))1+r(y(k ) )  (2z2(k)2(2212(k)2)+2(1212(k)z22(k)2)(erfcx(z2(k))erfcx(z2(k))))(12 + 1212(k)(2+z2(k)erfcx(z2(k ) )  z2(k)erfcx(z2(k))))1 , 
 where 
 ( 33)r(y(k ) )  = 1a(k)a(k ) (1+112(k)/2)(1+122(k)/2)11(k)12(k)(1+212(k)/2)(1+222(k)/2)2i1(k)22(k )  exp(y2(k)/2212(k)yp2(k)/2222(k))exp(y2(k)/2112(k)yp2(k)/2122(k ) )  ((2+z2(k)erfcx(z2(k))z2(k)erfcx(z2(k ) ) )  (2+z2p(k)erfcx(z2p(k ) )  z2p(k)erfcx(z2p(k ) ) ) )  ((2+z1(k)erfcx(z1(k))z1(k)erfcx(z1(k ) ) )  (2+z1p(k)erfcx(z1p(k ) )  z1p(k)erfcx(z1p(k))))1 . figure 5 shows this shrinkage function with sample constant parameters . for implementation of our denoising algorithm , we must estimate the parameters ij(k ) for i , j = 1,2 , and a(k ) ( that are for noise - free data ) from noisy observation . for awgn , the noisy observation would be a gaussian mixture model with parameters a(k),n2+ij2(k ) for i , j = 1,2 . so , the following local em algorithm is used to obtain the parameters . 
 e - step 
 ( 34)r1(k)a(k)g1(y(k))a(k)g1(y(k))+(1a(k))g2(y(k)),r2(k)1r1(k ) . m - step 
 ( 35)a(k)1mjn(k)r1(j ) , 
 ( 36)1m2(k)jn(k)ri(j)y2(k)jn(k)ri(j )  n2 ,  m=1,2 , 
 ( 37)2m2(k)jn(k)ri(j)yp2(k)jn(k)ri(j)n2 ,  m=1,2 , 
 where m is the number of coefficients in the window n(k ) centered at y-(k ) . as discussed in the literatures , for non - gaussian mixture models , which is a case for two - sided rayleigh noise , using ( 34)(36 ) it has been shown that using anisotropic and shape adaptive window for local parameter estimation can extremely improve the modeling and processing results . for example , in   a new image denoising is introduced that proposes an anisotropic window around each pixel of image and obtains the denoised pixel just by using the located data in the window . comparing with the denoising methods that are based on proposing isotropic window around each pixel ( e.g. , [ 23 , 27 , 34 , 4246 ] ) , the proposed method in   is able to segment the image to rather smoothed regions before denoising due to anisotropic window selection that leads to improvement of denoising results . as explained before , the mixture model parameters in each subbands are estimated locally using an isotropic window around each voxel . in this section at first we explain the structure of macular oct then we introduce 3d  linear polynomial approximation - intersection confidence interval ( lpa - ici ) method for applying shape adaptive window selection around each voxel in 3d dcwt domain . so we will try the despeckling results in 3d dcwt domain by choosing an anisotropic window ( instead of isotropic ) for estimating the parameters of mixture model in each subband locally . to select the shape - adaptive window , we must take a look at the special structure of oct data . in ophthalmology , the automated analysis of oct images can be used for the image - guided retinal therapy . every year , many people become blind as a result of age - related macular degeneration ( amd ) due to affecting the central retina where our central vision is perceived . the most sight - threatening form of amd is called exudative or wet amd . choroidal neovascularization ( cnv ) is a common symptom of the degenerative maculopathy wet amd . a wealth of powerful new treatments for cnv , especially anti - vegf agents , have become available very recently to restore normal visual function . the risk of ocular adverse events , including the devastating intraocular infection , endophthalmitis , increases with repeated intravitreal treatment injections , and the effects of chronic treatment with anti - vegf agents on the retina are unknown . ideally a more cost - effective , patient - specific dosing strategy with the minimally necessary number of anti - vegf injections is required . with all the promise , these novel treatments will only reach their full potential when objective and early indices of treatment response are developed . prior to the introduction of retinal oct imaging , clinical assessment of whether the preservation or restoration of visual function is successful , which indeed is the ultimate goal of treatment , could only be obtained by measuring visual function . unfortunately , visual function lags structural response and is cumbersome and noisy , and its reproducibility is limited . two - dimensional oct imaging of the retina was introduced several years ago , and was rapidly adopted , among others , to qualitatively measure macular structure as an indicator of amd treatment response and for guidance of retreatment in cnv recurrence . it is now becoming clear that these simplified structural measures though leading indicators of visual function are inadequate , as they are based on simplified interpretation of single transverse slices of the macula , some patients do not recover visual function even though their total macular thickness has become normally thin after treatment , and others paradoxically gain visual acuity while their macula is still thickened . true 3d spectral oct imaging , that became available in 2007 is fast ( 1.5  s per volume scan ) , allows full 3d retinal coverage at a much higher resolution and offers improved imaging of subtle differences in retinal structure . in the recent years [ 65 , 66 ] , 3d analysis of 3d oct as an improved measure of subtle macular structure has been proposed motivated by various hypotheses as follows : a model of retinal response to initial anti - vegf treatment for cnv , based on quantitative 3d oct - derived measures , can predict the timing of retreatment . on this base , developing analysis methods and approaches for 3d spectral oct image analysis in the presence of wet amd pathology ( symptomatic exudate associated derangements or seads , also known as amd - related cysts , vessel leakages , etc . ) and assessing their performance by comparison to expert analyses are of utmost interest . another interesting subject is determining how well the quantitative sead- and layer - derived measures from 3d oct predict the patient - specific outcome parameters in response to postinduction anti - vegf treatment in patients with cnv in order to predict the timing of retreatment . figure 6 shows several sample macular octs and detected seads by an expert as the region of interest ( roi ) . as we can see in this figure , the most important information of oct data ( about retina layers ) , a new image denoising based on using an anisotropic window around each pixel of image is introduced . to select the anisotropic window , the linear directional filters gh, that are obtained using local polynomial approximation ( lpa ) are employed . the  indicates the direction of filter that is a member of countable set { 1 , 2 ,  , l } , where l is the number of directions . a common choice for l is l = 8 that results in the set { 0 , 45 , 90 , 135 , 180 , 225 , 270 , 315}. for each  , the length of proposed window is selected from the countable and increasing set { h1 , h2 , , hj}. so , for the noisy observation y(k ) , we would have the following estimate : 
 ( 38)xh,est(k)=gh,(k)y(k ) . for each  and k , an appropriate value of h called h is estimated using the nonlinear intersection of confidence intervals ( ici ) rule . h is the largest h from the h1 < h2 < <hj provided that the estimated data using h does not have noticeable difference with the estimated data with smaller h 's . for this reason , the following confidence intervals are defined : 
 ( 39)cs=[xhs,est(k)rxhs,est(k ) ,  xhs,est(k)+rxhs,est(k ) ] , 
 where r is the smoothing parameter and xhs,(k ) shows the variance of xhs,(k ) and is obtained as follows : 
 ( 40)xhs,est(k)2=pxhs,est(k)(f)df=py(f)gh,(f)df , 
 where p( ) shows the power spectral density function and gh,(f ) is the fourier transform of gh, , and for a white random process , ( 40 ) is simplified to 
 ( 41)xhs,est(k)2=n2gh,(f)df=n2gh,(k ) . according to the ici rule , ds is defined using the following formula : 
 ( 42)ds=i=1sci . the largest s that leads to a nonempty value is called s , and finally h(k ,  ) is obtained using h(k ,  ) = hs . figure 7 shows an example of mentioned anisotropic window selection for a sead . since applying lpa - ici in each subband is a time consuming process , a fast version of the mentioned algorithm can be based on only applying lpa - ici to low - pass subbands using l = 12 with an offset of 15 that results in the set { 15 , 45 , 75 , 105 , 135 , 165 , 195 , 225 , 255 , 285 , 315 , 345 } in a 2d case . since , in this case , each subband is extracting the information concentrated in a specific direction corresponding to { 15 ( 195 ) , 45 ( 225 ) , 75 ( 255 ) , 105 ( 285 ) , 135 ( 315 ) , 165 ( 345 ) } , the extracted h(k ,  ) = hs that results from applying lpa - ici to corresponding low - pass subband is used for obtaining the local parameters of kth pixel . for example , suppose that dcwt is used for 3 scales and we want to calculate the local parameters of coarsest scale for the oriented real subband around 45 ( 225 ) . for this reason , h(k , 45 ) and h(k , 225 ) are extracted from the results of applying lpa - ici on the ll subband of real part ( or imaginary part ) of dcwt . then , if we are in the jth scale , only 2h(k , 45 ) pixel in direction of 45 and 2h(k , 225 ) pixel in direction of 225 are used to extract the local parameters of kth pixel in this subband ( figure 8) . however , instead of using 2d direction i , we use 3d direction ( i , i ) . as shown in figure 9 , in 2d case we use a circular sector for each direction while for 3d case a conical body is produced for direction ( i , i ) , and the sphere is covered ( partly ) using these cones . similar to 2d case gh,, , is defined and for each ( i , i ) the best h called h(k , i , i ) is obtained using ici rule . note that in order to incorporate the anisotropic window selection for each dcwt coefficient in our oct denoising algorithm explained in algorithm 1 , instead of using a square window for parameter estimation , an anisotropic window is obtained for each coefficient k using the explained lpa - ici method in this section , and only available data in this window are used for estimating a(k ) and 11(k ) ,  12(k ) ,  21(k ) , and 22(k ) . in this section , we apply the proposed despeckling algorithm to oct image noise reduction . for this reason , we use 20 three - dimensional oct datasets in the presence of wet amd pathology ( sead ) and use mean signal - to - noise ratio ( msnr ) and contrast - to - noise ratio ( cnr ) as two quality measurements for oct data . to calculate these measurements the base msnr and cnr are defined as follows : 
 ( 43)msnrroi=roi,cnr=|msnrroi1msnrroi2| , 
 where roi shows the mean of roi and  indicates the standard deviation of a large region outside the roi ( noise roi in figure 10 ) . table 1 shows the results of msnr and cnr for proposed rois in oct data using our algorithm . as discussed in section 3 , various shrinkage functions can be obtained using our algorithm based on applying log transformation before applying 3d dcwt ( we use homomorphic prefix for this method and non - homomorphic when we do not use log transformation ) and proposing awgn or two - sided rayleigh pdf for modeling noise in 3d dcwt domain ( we name them bigaussmixshrinkl and bigaussraymixshrinkl , resp . ) . figures 11 and 12 , respectively , show the results of applying non - homomorphic and homomorphic methods for ( a slice of ) depicted oct image in figure 10 . in this figure , also in table 1 , we compare the results of nonlocal version of methods to show the effect of using anisotropic window selection technique . in order to show the snr improvements , cnr curves for 156 selected rois another way for evaluating the effect of our despeckling algorithm is the investigation of the intralayer segmentation results . figure 14 shows a comparison between the segmented layers of a 650  512  128 topcon 3d oct-1000 imaging system using proposed method in . in this paper , we introduced a new noise reduction algorithm for 3d oct data . we found new shrinkage functions employing a mixture of bivariate gaussian for modeling wavelet coefficients in each subband of complex wavelets . the parameters of this mixture model are estimated locally using a shape - adaptive manner based on the special structure of oct data . experiments show that our model has better results than other methods visually and in terms of psnr especially for the crowded images . in this paper , we suppose that the parameters of em algorithm , in extracted windows are constant . it is possible to improve the em algorithm , for example , by using recurrence equations . it is possible that we only propose the main section of data ( between the first and last layers ) containing retina layer information and apply our algorithm on the selected data to improve the speed and performance of denoising process . using 3d dcwt instead of other transforms such as , it has been shown that other kinds of oriented transforms such as steerable pyramid decomposition can produce better denoising results . however , for 3d case , 3d transforms that are applied on whole 3d data ( not slice by slice ) such as surfacelet   and 3d discrete curvelet   can be investigated .
in this paper , mmse estimator is employed for noise - free 3d oct data recovery in 3d complex wavelet domain . since the proposed distribution for noise - free data plays a key role in the performance of mmse estimator , a priori distribution for the pdf of noise - free 3d complex wavelet coefficients 
 is proposed which is able to model the main statistical properties of wavelets . 
 we model the coefficients with a mixture of two bivariate gaussian pdfs with local parameters which are able to capture the heavy - tailed property and inter- and intrascale dependencies of coefficients . 
 in addition , based on the special structure of oct images , we use an anisotropic windowing procedure for local parameters estimation that results in visual quality improvement . on this base , 
 several oct despeckling algorithms are obtained based on using gaussian / two - sided rayleigh noise distribution and homomorphic / nonhomomorphic model . in order to evaluate the performance of the proposed algorithm 
 , we use 156 selected rois from 650  512  128 oct dataset in the presence of wet amd pathology . 
 our simulations show that the best mmse estimator using local bivariate mixture prior is for the nonhomomorphic model in the presence of gaussian noise which results in an improvement of 7.8  1.7 in cnr .