set up code for computing detector based features