Flow chart for two dimensional anisotropic diffusion. In this figure, the flow of anisotropic diffusion is presented. A diffusion function has to be chosen, followed by determining a constant, κ. This constant is essential to define the edges and homogenous area; hence, different diffusion intensity is imposed on them. Subsequently, number of directions is to be chosen: either four directions or eight directions, as common practice. Then, the choice of integration constant, Δt: the effect of Δt can be viewed as an approximation for continuous case in integration for discrete implementation. Eventually, stopping criterion is to be determined: the maximum number of iteration.