detectBlur: Detect type of blur

Description Usage Arguments Details

View source: R/functions.R

Description

Detect the form of the input blur matrix, G

Usage

1

Arguments

G

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

Details

Detects if the input blur matrix, G, has uniform structure in being of direct blur type everywhere or box.car type everywhere. In those cases, it will return a character string 'direct' or 'box.car' 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 box.car 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 box.car, the string 'smooth' is returned.


jrwishart/mwaved documentation built on Oct. 31, 2021, 6:16 p.m.