JIGL
v1.6

jigl.signal.ops
Class Convolve

java.lang.Object
  |
  +--jigl.signal.SimpleOperator
        |
        +--jigl.signal.ops.Convolve
All Implemented Interfaces:
Operator

public class Convolve
extends SimpleOperator

Performs convolution on a signal with a supplied SignalKernel. It is always a good idea to normalize the kernel before convolution.

Supports DiscreteSignal, RealSignal.


Field Summary
private  SignalKernel kernel
          Comvolution kernel.
 
Constructor Summary
Convolve(SignalKernel k)
          Constructs a Convolve object from a Signalkerne object k (You'd better normalize k).
 
Method Summary
 RealSignal apply_long(RealSignal signal)
          Performs a convolution on a RealSignal and returns a longer signal.
protected  Signal apply(DiscreteSignal signal)
          Performs a convolution on a DiscreteSignal.
protected  Signal apply(DiscreteSignal signal, ROI roi)
          Performs a convolve on a DiscreteSignal in a region of interest.
protected  Signal apply(RealSignal signal)
          Performs a convolution on a RealSignal.
protected  Signal apply(RealSignal signal, ROI roi)
          Performs a convolve on a RealSignal in a region of interest.
 
Methods inherited from class jigl.signal.SimpleOperator
apply, apply, apply, apply, apply, apply
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

kernel

private SignalKernel kernel
Comvolution kernel.

Constructor Detail

Convolve

public Convolve(SignalKernel k)
Constructs a Convolve object from a Signalkerne object k (You'd better normalize k).

Parameters:
k - kernel to be used with the convolve operation.
Method Detail

apply

protected Signal apply(DiscreteSignal signal)
Performs a convolution on a DiscreteSignal. The center of the kernel is specified at position kernel.length()/2. Returned signal is a DiscreteSignal with the same length as signal. (signal is not modified).

Overrides:
apply in class SimpleOperator
Parameters:
signal - DiscreteSignal to convolve
Returns:
DiscreteSignal

apply

protected Signal apply(DiscreteSignal signal,
                       ROI roi)
Performs a convolve on a DiscreteSignal in a region of interest. The center of the kernel is specified at position kernel.length()/2. Returned signal is a DiscreteSignal with the same length as signal. (signal is not modified).

Overrides:
apply in class SimpleOperator
Parameters:
signal - DiscreteSignal to convolve
roi - Region of Interest of signal
Returns:
DiscreteSignal

apply

protected Signal apply(RealSignal signal)
Performs a convolution on a RealSignal. The center of the kernel is specified at position kernel.length()/2. Returned signal is a RealSignal with the same length as signal. (signal is not modified).

Overrides:
apply in class SimpleOperator
Parameters:
signal - RealSignal to convolve
Returns:
RealSignal

apply

protected Signal apply(RealSignal signal,
                       ROI roi)
Performs a convolve on a RealSignal in a region of interest. The center of the kernel is specified at position kernel.length()/2. Returned signal is a RealSignal with the same length as signal. (signal is not modified).

Overrides:
apply in class SimpleOperator
Parameters:
signal - RealSignal to convolve
roi - Region of Interest of signal
Returns:
RealSignal

apply_long

public RealSignal apply_long(RealSignal signal)
Performs a convolution on a RealSignal and returns a longer signal. Returned signal is a RealSignal with the length specified by signal.length() + kernel.length() - 1. (signal is not modified).

Parameters:
signal - RealSignal to convolve
Returns:
RealSignal

JIGL
v1.6

Submit a bug or feature
Revised in May 2002 by Weiming Liu