forked from CamachoDejay/polymer3D
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmainTrackingExp.m
More file actions
68 lines (47 loc) · 1.43 KB
/
mainTrackingExp.m
File metadata and controls
68 lines (47 loc) · 1.43 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
clc
clear
close all;
%calibration info
path2ZCal = [];
path2SRCal = '';
%file info
file.path = 'D:\Documents\2025 - Data\05 - Mai\Steven\';
file.ext = '.ome.tif';
path2Cal = [];
dimension = '3D';
%detection parameter
detectParam.delta = 6;
detectParam.chi2 = 25;
detectParam.consThresh = 6;
%tracking parameter
trackParam.radius = 2000;%nm
trackParam.memory = 3;
%% Storing info about the file
info.type = 'normal'; %normal or transmission
info.runMethod = 'load'; % load or run
info.frame2Load = 'all'; % 'all' or a range of number e.g. 1:100
info.fitMethod = 'Phasor'; %Phasor or Gauss (need to be the same as ZCal if using PSFE
info.zMethod = 'Intensity'; %Intensity, 3DFit or PSFE
info.detectionMethod = 'Intensity'; %MaxLR (for maximum likehood ratio) %Intensity
info.calibrate = false; %true to recalibrate;
%% create experiments
trackingExp = Core.TrackingExperiment(file,path2Cal,info,path2SRCal,path2ZCal);
%% get Movies
trackingExp.retrieveMovies;
%% test detection parameters
frame =10;
testMov = trackingExp.trackMovies.mov1;
testMov.findCandidatePos(detectParam,frame);
testMov.showCandidate(frame);
%% get TrackingData
val2Use = 'bestFocus';
trackingExp.retrieveTrackData(detectParam,trackParam);
traces = trackingExp.getTraces3D;
%% Get Intensity
[int,SNR] = trackingExp.getAvgIntensity;
%% Get MSD
%[MSD,~] = trackingExp.getMSD(dimension);
%% show traces
trackingExp.showTraces(1);
%% save Data
trackingExp.saveData;