35#ifndef AIMS_SIGNALFILTER_FIRFILTER_H
36#define AIMS_SIGNALFILTER_FIRFILTER_H
39#include <aims/def/general.h>
43 template <
class T>
class Volume;
139 float deltas,
int type);
float fCut() const
Return the cut frequency (highpass or lowpass)
carto::VolumeRef< float > * _impulseResponse
Impulse response.
float _deltaP
Residual ondulation in pass-band.
float _fHigh
High cut frequency.
float fSampling() const
Return the sampling frequency.
int _type
Type of the filter.
float _beta
Beta parameter.
void numberOfFIRFilterCoef()
Process the number of coefficients.
float _deltaF
Frequency resolution.
carto::VolumeRef< float > idealImpulseResponse()
Return the ideal impulse response of the F.I.R. filter.
float _fLow
Low cut frequency.
float fLow() const
Return the low cut frequency (bandpass or bandstop)
float deltaS() const
Return the stopband ripple.
float deltaP() const
Return the passband ripple.
float _deltaS
Residual ondulation in stop-band.
carto::VolumeRef< float > impulseResponse()
Return the modified impulse response of the F.I.R. filter.
carto::VolumeRef< float > kaiserWindow()
Return a Kaiser window.
void initialize()
send the process which evaluate the coefficients
virtual ~AimsFIRFilter()
Destructor free the impulse response.
AimsFIRFilter(float fs, float fl, float fh, float deltaf, float deltap, float deltas, int type)
Constructor dedicated to stopband filters or passband filters.
float fHigh() const
Return the high cut frequency (bandpass or bandstop)
int type() const
Return the type of the filter.
float _fSampling
Sampling frequency.
AimsFIRFilter(float fs, float fc, float deltaf, float deltap, float deltas, int type)
Constructor dedicated to lowpass filters or highpass filters.
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.
int _nCoef
Number of coefficients.
float _fCut
Cut frequency.
float deltaF() const
Return the frequency step.
AimsDirectionAxis
The 4 dimensions.
AimsFirFilterType
The different types of finite impulse response filters.