From bf082ee5c9c9dee1323fd6fb03334ee7433cdd30 Mon Sep 17 00:00:00 2001
From: Guillaume HEUSCH <guillaume.heusch@idiap.ch>
Date: Thu, 28 Jun 2018 10:33:17 +0200
Subject: [PATCH] [base] added the min and max frequency of the bandpass
 filteri as parameters

---
 bob/rppg/base/utils.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/bob/rppg/base/utils.py b/bob/rppg/base/utils.py
index 9250c42..0d3d4fd 100644
--- a/bob/rppg/base/utils.py
+++ b/bob/rppg/base/utils.py
@@ -57,7 +57,7 @@ def crop_face(image, bbx, facewidth):
   return face
 
 
-def build_bandpass_filter(fs, order, plot=False):
+def build_bandpass_filter(fs, order, min_freq=0.7, max_freq=4.0, plot=False):
   """builds a butterworth bandpass filter.
   
   Parameters
@@ -66,6 +66,10 @@ def build_bandpass_filter(fs, order, plot=False):
     sampling frequency of the signal (i.e. framerate).
   order: int
     The order of the filter (the higher, the sharper).
+  min_freq: int
+    The order of the filter (the higher, the sharper).
+  order: int
+    The order of the filter (the higher, the sharper).
   plot: bool
     Plots the frequency response of the filter.
   
-- 
GitLab