|
| 1 | +% Produce a movie from SPT results. |
| 2 | +% |
| 3 | +TrackingResults = 'NEEDS_TO_BE_SET!'; |
| 4 | +RawData = 'NEEDS_TO_BE_SET!' |
| 5 | + |
| 6 | +% Load SMITE processed tracking results: SMF, SMD, TR. |
| 7 | +load(TrackingResults); |
| 8 | +% Load raw blinking data. |
| 9 | +load(RawData); |
| 10 | + |
| 11 | +%sliceViewer(Channel_1); |
| 12 | + |
| 13 | +GM = smi_vis.GenerateMovies(); |
| 14 | +GM.SMF = SMF; |
| 15 | +GM.SMD = SMD; |
| 16 | +GM.TR = TR; |
| 17 | +GM.RawData = Channel_1; |
| 18 | + |
| 19 | +% Set some parameters; see smi_vis.GenerateMovies.prepDefaults for a full list, |
| 20 | +% |
| 21 | +% Place the indicated marker on each localization given in GM.SMD |
| 22 | +%GM.Params.SMDMarker = 'x'; |
| 23 | +% Maximum number of points of a given trajectory that will be plotted. |
| 24 | +GM.Params.MaxTrajLength = 5; |
| 25 | +% Choose a ROI to examine (default is entire image): |
| 26 | +%raw_size = size(GM.RawData); |
| 27 | +%GM.Params.XPixels = [0, raw_size(1) - 1]; |
| 28 | +%GM.Params.YPixels = [0, raw_size(2) - 1]; |
| 29 | +GM.Params.XPixels = [64, 127]; |
| 30 | +GM.Params.YPixels = [64, 127]; |
| 31 | + |
| 32 | +%sliceViewer(Channel_1); |
| 33 | + |
| 34 | +GM = smi_vis.GenerateMovies(); |
| 35 | +GM.SMF = SMF; |
| 36 | +GM.SMD = SMD; |
| 37 | +GM.TR = TR; |
| 38 | +GM.RawData = Channel_1; |
| 39 | +% Set some parameters; see smi_vis,GenerateMovies.prepDefaults for a full list, |
| 40 | +% |
| 41 | +% Place the indicated marker on each localization given in GM.SMD |
| 42 | +%GM.Params.SMDMarker = 'x'; |
| 43 | +% Maximum number of points of a given trajectory that will be plotted. |
| 44 | +GM.Params.MaxTrajLength = 5; |
| 45 | +% Choose a ROI to examine (default is entire image): |
| 46 | +%raw_size = size(GM.RawData); |
| 47 | +%GM.Params.XPixels = [0, raw_size(1) - 1]; |
| 48 | +%GM.Params.YPixels = [0, raw_size(2) - 1]; |
| 49 | +GM.Params.XPixels = [64, 127]; |
| 50 | +GM.Params.YPixels = [64, 127]; |
| 51 | +% Choose from which range of frames to display trajectories (default is all). |
| 52 | +%GM.Params.ZFrames = [1, raw_size(3)]; |
| 53 | +GM.Params.ZFrames = [1, 100]; |
| 54 | +GM.gui(); |
0 commit comments