add red channel filter to the sensor code and change the matlab code accordingly