-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHAWKProcessingConstants.m
More file actions
31 lines (26 loc) · 928 Bytes
/
HAWKProcessingConstants.m
File metadata and controls
31 lines (26 loc) · 928 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
% Parameters for determining the
%Percentage of body length average to use as threshold for filtering
%frames.
BODY_LENGTH_PERCENT_THRESHOLD = 0.85;
PHASE_SHIFT_RESIDUAL_LIMIT = 10^-2;
WIDTH_AT_TARGET_LIMIT = 125;
FRAME_SCORE_THRESHOLD = 1;
metricWeights = [0.6; 0.8; 1];%; 0.6];
%Trial scoring parameters:
DROPPED_FRAMES_DURING_STIMULUS = 5;
PERCENT_DOWN_BODY_DIFFERENCE = 10;
PERCENT_ACROSS_BODY_DIFFERENCE = 25;
%Number of points to use for spline in curvature determination:
NUMCURVPTS = 50;
% NUMCURVPTS = 75;
%How much to filter the skeleton before fitting the smooth spline:
CURVATURE_FILTERING_SIGMA = 1;
%The different in speed to determine changes in response.
SPEED_THRESHOLD_PAUSE = 0.4;
SPEED_THRESHOLD_SPEEDUP = 1.2;
PRE_STIM_FRAMES = 15;
POST_STIM_FRAMES = ceil(11*2.5);
POST_STIM_FRAMES2 = ceil(11*2.5);
POST_STIM_TIME = 2.1; %seconds
POST_STIM_TIME2 = 1.5; %seconds
ACCELERATION_THRESHOLD = 400; % um/s^2