# mrcImageBilateralFilter

## Usage

    Usage: mrcImageBilateralFilter
    Options:
        [-i[nput]            In                  (NULL      )] :Essential :InputDataFile
        [-o[utput]           Out                 (NULL      )] :Essential :OutputDataFile
        [-s[igma]D[ensity]   SigmaDensity        (2.0       )] :Optional  :SigmaDensity
        [-k[ernal]T[type]D[ensity]KernelTypeDensity   (0         )] :Optional  :KernelTypeForDensity
        [-s[igma]S[pace]     SigmaSpace          (1.0       )] :Optional  :SigmaSpace
        [-s[igma]S[pace]3    SigmaSpaceX         (1.0       )SigmaSpaceY         (1.0       )SigmaSpaceZ         (1.0       )] :Optional  :SigmaSpace(3D)
        [-k[ernel]T[ype]S[pace]KernelTypeSpace     (0         )] :Optional  :KernelTypeForSpace
        [-k[ernel]S[ize]     KernelSize          (5         )] :Optional  :KernelSize
        [-k[ernel]S[ize]3    KernelSizeX         (5         )KernelSizeY         (5         )KernelSizeZ         (5         )] :Optional  :KernelSize(3D)
        [-c[onfig]           configFile          (NULL      )] :Optional  :ConfigurationFile
        [-m[ode]             mode                (0         )] :Optional  :Mode
    ----- Additional Usage -----
    Bilateral Filter
        by Tomashi and Manduchi
        C. Tomasi and R. Manduchi, Bilateral Filtering for Gray and Color Images, Proceedings of the 1998 IEEE International Conference on Computer Vision, Bombay, India
     fi = Sigma_j(W(i,j)*Ij)/ Sigma_j(Wj)
       ,where W(i,j)=W_x(xi,xj)*W_I(Ii,Ij)
    ------- linfo.mode : 0
                     W_x(xi,xj) = exp(-|xi-xj|^2/2 sigmaSpace^2  )
                     W_I(Ii,Ij) = exp(-|Ii-Ij|^2/2 sigmaDensity^2)
    ------- linfo.mode : 1
                     W_x(xi,xj) = 1/(1+|xi-xj|^2/sigmaSpace^2  )
                     W_I(Ii,Ij) = 1/(1+|Ii-Ij|^2/sigmaDensity^2)