jjil.algorithm
Class WienerDeconv

java.lang.Object
  extended by jjil.core.PipelineStage
      extended by jjil.algorithm.WienerDeconv

public class WienerDeconv
extends PipelineStage

Wiener deconvolution of input Gray8Image. You specify a point spread function as a Gray8Image and a noise level. See PsfGray8 for point spread function generating methods. The computation is done in the Fourier domain. The output is of type Complex32Image.

Author:
webb

Constructor Summary
WienerDeconv(Gray8Image psf, int nNoise)
          Creates a new instance of WienerDeconv.
 
Method Summary
 void push(Image im)
          Compute the deconvolution of the input Gray8Image, producing a Complex32Image.
 
Methods inherited from class jjil.core.PipelineStage
getFront, isEmpty
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WienerDeconv

public WienerDeconv(Gray8Image psf,
                    int nNoise)
             throws Error
Creates a new instance of WienerDeconv.

Parameters:
psf - the input point spread function. This is the expected blur window, for example a disk or rectangle.
nNoise - the noise level.
Throws:
Error - if the input point spread function is not a Gray8Image or not square.
Method Detail

push

public void push(Image im)
          throws Error
Compute the deconvolution of the input Gray8Image, producing a Complex32Image.

Specified by:
push in class PipelineStage
Parameters:
im - the input Gray8Image.
Throws:
Error - if the input image is not a Gray8Image or not square.