Consider Multidirectional Scratch Detection and Restoration in Digitized Old Images Research Paper.
In section 4.1 (Preprocessing), they gave us a formula of the kernel,
$$ H(u, v) = \frac{1}{1+0.414 \times \left(\sqrt{\frac{u^*}{D_h}+\frac{v^*}{D_v}}\right)^{2n}} $$
Where, \begin{split} t_x & = \mathrm{center} \times \cos(\theta) \\ t_y & = \mathrm{center} \times \sin(\theta) \\ u^* & = \cos(\theta) \times (u+t_x) + \sin(\theta)\times(u+t_y)\\ v^* & = -\sin(\theta) \times (u+t_x) + \cos(\theta)\times(u+t_y)\\ \end{split}
The formula doesn’t look correct to me.
- Why would someone apply $\mathrm{sqrt}()$ and subsequently apply a power of $2n$ as it makes the $\mathrm{sqrt}()$ operation redundant?
- $H(u,v)$ transfer function looks like a high-pass filter rather than a band-pass filter.
- Shouldn’t $\mathrm{center}$ be $\mathrm{center}_x$, and $\mathrm{center}_y?$
- Shouldn’t $(u+t_y)$ be $(v+t_y)$?
1/(1+(a fraction)^2*n)
is very much reminiscent of the Butterworth response and the $cos,sin$ business is just a rotation. So, that should be $u$ to the $cos$ term and $v$ to the $sin$ term. $\endgroup$