toolkit.filtering.whitening
Whiten a natural image.
Natural images have a power spectrum well approximated by 1 / f**2. This function flattens that spectrum to facilitate further processing. The algorithm is from Bruno Olshausen:
http://redwood.berkeley.edu/bruno/npb261b/lab2/lab2.html
XXX A bug in normalized convolution must be fixed for this to work correctly.
Image to be whitened
Whitened image.
Whiten a natural image.
Natural images have a power spectrum well approximated by 1 / f**2. This function flattens that spectrum to facilitate further processing. The algorithm is from Bruno Olshausen:
http://redwood.berkeley.edu/bruno/npb261b/lab2/lab2.html