forked from DeNardoLab/BehaviorDEPOT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makeParamsStruct.m
34 lines (34 loc) · 1.56 KB
/
makeParamsStruct.m
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
32
33
34
function Params = makeParamsStruct(P)
Params.Video = P.Video;
Params.roi_name = P.roi_name;
Params.tracking_fileType = P.tracking_fileType;
Params.video_type = P.video_type;
Params.hampel = P.hmpl;
Params.cutoffThreshold = P.cutoffThreshold;
Params.Smoothing.gapThreshold = P.gapThreshold;
Params.Smoothing.jumpThreshold = P.jumpThreshold;
Params.Smoothing.nanRadius = P.nanRadius;
Params.Smoothing.boxWidth = P.boxWidth;
Params.Freezing.velocityThreshold = P.freezing_velocityThreshold;
Params.Freezing.angleThreshold = P.freezing_angleThreshold;
Params.Freezing.minDuration = P.freezing_minDuration;
Params.Freezing.windowWidth = round(Params.Video.frameRate * P.freezing_windowWidth);
Params.Freezing.countThreshold = Params.Video.frameRate * P.freezing_countThreshold;
Params.do_roi = P.do_ROI;
Params.num_roi = P.number_ROIs;
Params.roi = P.roi_limits;
Params.arena_floor = P.arena_floor;
Params.plotSpace = P.viewSpatialTrajectory;
Params.plotSpaceTime = P.viewSpatioTemporalTrajectory;
Params.plotBeh = P.viewBehaviorLocations;
Params.do_events = P.do_events;
Params.do_wallrearing_classifier = P.do_wallrearing_classifier;
Params.do_freezing_classifier = P.do_freezing_classifier;
Params.do_moving_classifier = P.do_movement_classifier;
Params.px2cm = round(P.px2cm);
Params.Freezing.sensitivityGain = P.freezing_sensitivityGain;
Params.Moving.minSpeed = P.moving_minSpeed;
Params.cueFile = [];
Params.batch = P.batch;
Params.reuse_cue_name = P.reuse_cue_name;
end