How to perform 2d deconvolution for the Gaussian kernel and the gradient operator?

56 Views Asked by At

I have an images $u \in R^{M \times N}$, a Gaussian kernel $G$ and the gradient operator $\nabla u_{i,j}=[\nabla_{x} u_{i,j},\nabla_{y} u_{i,j}] \in (R^{2})^{M \times N}$ and I need to perform 2d deconvlotion as $(G \otimes \nabla u)_{i,j}$. Since the gradient operator $\nabla u_{i,j}$ consists of the horizontal component $\nabla_{x} u_{i,j}$ and the vertical component $\nabla_{y} u_{i,j}$, should I perform 2d convolution separately on these two components and the result belongs to $(R^{2})^{M \times N}$? In this case, I have tried as $$ (G \otimes \nabla u)_{i,j} = [\sum_{(m,n)\in \Omega} G(i-m,j-n)\nabla_{x} u_{m,n}~~, \sum_{(m,n)\in \Omega} G(i-m,j-n)\nabla_{y} u_{m,n}]$$ where $\Omega = \{1,...,M\}\times \{1,...,N\}$ and in this case $(G \otimes \nabla u)_{i,j} \in (R^{2})^{M \times N}$ , or I should sum 2d deconvolution over the two components as $$ (G \otimes \nabla u)_{i,j} = \sum_{(m,n)\in \Omega} G(i-m,j-n)\nabla_{x} u_{m,n}~~+ \sum_{(m,n)\in \Omega} G(i-m,j-n)\nabla_{y} u_{m,n}$$ where in this case $(G \otimes \nabla u)_{i,j} \in R^{M \times N}$. I really appreiciate if someone could please help me to solve this problem.