35 #ifndef AIMS_SIGNALFILTER_FIRFILTER_H
36 #define AIMS_SIGNALFILTER_FIRFILTER_H
43 template <
class T>
class Volume;
44 template <
class T>
class VolumeRef;
139 float deltas,
int type);
The class of Finite Impulse Response filters.
float fCut() const
Return the cut frequency (highpass or lowpass)
carto::VolumeRef< float > * _impulseResponse
Impulse response.
carto::VolumeRef< float > impulseResponse()
Return the modified impulse response of the F.I.R. 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.
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 > kaiserWindow()
Return a Kaiser window.
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.
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.
int _nCoef
Number of coefficients.
float _fCut
Cut frequency.
carto::VolumeRef< float > idealImpulseResponse()
Return the ideal impulse response of the F.I.R. filter.
float deltaF() const
Return the frequency step.
AimsDirectionAxis
The 4 dimensions.
AimsFirFilterType
The different types of finite impulse response filters.