Inverse Deconvolution. More...
Functions | |
AFAPI array | inverseDeconv (const array &in, const array &psf, const float gamma, const inverseDeconvAlgo algo) |
C++ Interface for Tikhonov deconvolution algorithm. More... | |
AFAPI af_err | af_inverse_deconv (af_array *out, const af_array in, const af_array psf, const float gamma, const af_inverse_deconv_algo algo) |
C Interface for Tikhonov deconvolution algorithm. More... | |
Inverse Deconvolution.
Inverse deconvolution is an linear algorithm i.e. they are non-iterative in nature and usually faster than iterative deconvolution algorithms.
Depending on the values passed on to the enum af_inverse_deconv_algo, different equations are used to compute the final result.
The update equation for this algorithm is as follows:
\[ \hat{I}_{\omega} = \frac{ I_{\omega} * P^{*}_{\omega} } { |P_{\omega}|^2 + \gamma } \]
where
Inverse deconvolution function excepts af::array of the following types only:
AFAPI af_err af_inverse_deconv | ( | af_array * | out, |
const af_array | in, | ||
const af_array | psf, | ||
const float | gamma, | ||
const af_inverse_deconv_algo | algo | ||
) |
C Interface for Tikhonov deconvolution algorithm.
[out] | out | is the sharp estimate generated from the blurred input |
[in] | in | is the blurred input image |
[in] | psf | is the kernel(point spread function) known to have caused the blur in the system |
[in] | gamma | takes different meaning depending on the algorithm chosen. If algo is AF_INVERSE_DECONV_TIKHONOV, then gamma is a user defined regularization constant. |
[in] | algo | takes value of type enum af_inverse_deconv_algo indicating the inverse deconvolution algorithm to be used |
AFAPI array inverseDeconv | ( | const array & | in, |
const array & | psf, | ||
const float | gamma, | ||
const inverseDeconvAlgo | algo | ||
) |
C++ Interface for Tikhonov deconvolution algorithm.
[in] | in | is the blurred input image |
[in] | psf | is the kernel(point spread function) known to have caused the blur in the system |
[in] | gamma | is a user defined regularization constant |
[in] | algo | takes different meaning depending on the algorithm chosen. If algo is AF_INVERSE_DECONV_TIKHONOV, then gamma is a user defined regularization constant. |