detectBlur: Detect type of blur

Description Usage Arguments Details

View source: R/functions.R


Detect the form of the input blur matrix, G





The input blur matrix to be analysed and checked whether it corresponds to direct blur or blur.


Detects if the input blur matrix, G, has uniform structure in being of direct blur type everywhere or type everywhere. In those cases, it will return a character string 'direct' or '' respectively, otherwise it returns 'smooth'. This is done in the direct blur case by checking that the mvfft(G) is equal to 1 everywhere (complex part is zero everywhere) and in the case by checking that each column has two unique values, a zero and positive value. If the blur type is not identified to be direct or, the string 'smooth' is returned.

mwaved documentation built on July 13, 2017, 5:03 p.m.