![]() |
aimsalgo 6.0.0
Neuroimaging image processing
|
The class of Finite Impulse Response filters. More...
#include <aims/signalfilter/firfilter.h>

Public Member Functions | |
Constructor and Destructor | |
| AimsFIRFilter (float fs, float fc, float deltaf, float deltap, float deltas, int type) | |
| Constructor dedicated to lowpass filters or highpass filters. | |
| AimsFIRFilter (float fs, float fl, float fh, float deltaf, float deltap, float deltas, int type) | |
| Constructor dedicated to stopband filters or passband filters. | |
| virtual | ~AimsFIRFilter () |
| Destructor free the impulse response. | |
Material and methods | |
| float | fSampling () const |
| Return the sampling frequency. | |
| float | fCut () const |
| Return the cut frequency (highpass or lowpass) | |
| float | fLow () const |
| Return the low cut frequency (bandpass or bandstop) | |
| float | fHigh () const |
| Return the high cut frequency (bandpass or bandstop) | |
| float | deltaF () const |
| Return the frequency step. | |
| float | deltaP () const |
| Return the passband ripple. | |
| float | deltaS () const |
| Return the stopband ripple. | |
| int | type () const |
| Return the type of the filter. | |
| carto::VolumeRef< float > | process (const carto::rc_ptr< carto::Volume< float > > &data, AimsDirectionAxis dir=AIMS_X_DIRECTION) |
| Send a filter processing on a data according to a direction. | |
Protected Member Functions | |
Methods | |
| void | numberOfFIRFilterCoef () |
| Process the number of coefficients. | |
| carto::VolumeRef< float > | kaiserWindow () |
| Return a Kaiser window. | |
| carto::VolumeRef< float > | idealImpulseResponse () |
| Return the ideal impulse response of the F.I.R. filter. | |
| carto::VolumeRef< float > | impulseResponse () |
| Return the modified impulse response of the F.I.R. filter. | |
| void | initialize () |
| send the process which evaluate the coefficients | |
Protected Attributes | |
| float | _fSampling |
| Sampling frequency. | |
| float | _fCut |
| Cut frequency. | |
| float | _fLow |
| Low cut frequency. | |
| float | _fHigh |
| High cut frequency. | |
| float | _deltaF |
| Frequency resolution. | |
| float | _deltaP |
| Residual ondulation in pass-band. | |
| float | _deltaS |
| Residual ondulation in stop-band. | |
| float | _beta |
| Beta parameter. | |
| int | _type |
| Type of the filter. | |
| int | _nCoef |
| Number of coefficients. | |
| carto::VolumeRef< float > * | _impulseResponse |
| Impulse response. | |
The class of Finite Impulse Response filters.
Definition at line 77 of file firfilter.h.
| AimsFIRFilter::AimsFIRFilter | ( | float | fs, |
| float | fc, | ||
| float | deltaf, | ||
| float | deltap, | ||
| float | deltas, | ||
| int | type ) |
Constructor dedicated to lowpass filters or highpass filters.
| fs | sampling frequency |
| fc | cutting frequency |
| deltaf | frequency resolution or step |
| deltap | residual ripple in pass band |
| deltas | residual ripple in stop band |
| type | type of the FIR filter (AIMS_FIR_LOWPASS,AIMS_FIR_HIGHPASS) |
References type().
| AimsFIRFilter::AimsFIRFilter | ( | float | fs, |
| float | fl, | ||
| float | fh, | ||
| float | deltaf, | ||
| float | deltap, | ||
| float | deltas, | ||
| int | type ) |
Constructor dedicated to stopband filters or passband filters.
| fs | sampling frequency |
| fl | lower cutting frequency |
| fh | higher cutting frequency |
| deltaf | frequency resolution or step |
| deltap | residual ripple in pass band |
| deltas | residual ripple in stop band |
| type | type of the FIR filter (AIMS_FIR_BANDPASS,AIMS_FIR_BANDSTOP) |
References type().
|
virtual |
Destructor free the impulse response.
| float AimsFIRFilter::deltaF | ( | ) | const |
Return the frequency step.
| float AimsFIRFilter::deltaP | ( | ) | const |
Return the passband ripple.
| float AimsFIRFilter::deltaS | ( | ) | const |
Return the stopband ripple.
| float AimsFIRFilter::fCut | ( | ) | const |
Return the cut frequency (highpass or lowpass)
| float AimsFIRFilter::fHigh | ( | ) | const |
Return the high cut frequency (bandpass or bandstop)
| float AimsFIRFilter::fLow | ( | ) | const |
Return the low cut frequency (bandpass or bandstop)
| float AimsFIRFilter::fSampling | ( | ) | const |
Return the sampling frequency.
|
protected |
Return the ideal impulse response of the F.I.R. filter.
|
protected |
Return the modified impulse response of the F.I.R. filter.
|
protected |
send the process which evaluate the coefficients
|
protected |
Return a Kaiser window.
|
protected |
Process the number of coefficients.
| carto::VolumeRef< float > AimsFIRFilter::process | ( | const carto::rc_ptr< carto::Volume< float > > & | data, |
| AimsDirectionAxis | dir = AIMS_X_DIRECTION ) |
Send a filter processing on a data according to a direction.
| data | 1D/2D/3D or 4D data const reference to process |
| dir | direction of filtering (AIMS_X_DIRECTION, AIMS_Y_DIRECTION,.) |
References AIMS_X_DIRECTION.
| int AimsFIRFilter::type | ( | ) | const |
Return the type of the filter.
Referenced by AimsFIRFilter(), and AimsFIRFilter().
|
protected |
Beta parameter.
Definition at line 94 of file firfilter.h.
|
protected |
Frequency resolution.
Definition at line 88 of file firfilter.h.
|
protected |
Residual ondulation in pass-band.
Definition at line 90 of file firfilter.h.
|
protected |
Residual ondulation in stop-band.
Definition at line 92 of file firfilter.h.
|
protected |
Cut frequency.
Definition at line 82 of file firfilter.h.
|
protected |
High cut frequency.
Definition at line 86 of file firfilter.h.
|
protected |
Low cut frequency.
Definition at line 84 of file firfilter.h.
|
protected |
Sampling frequency.
Definition at line 80 of file firfilter.h.
|
protected |
Impulse response.
Definition at line 100 of file firfilter.h.
|
protected |
Number of coefficients.
Definition at line 98 of file firfilter.h.
|
protected |
Type of the filter.
Definition at line 96 of file firfilter.h.