forked from zmughal-biblio/orion-ms-thesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpresent.tex
950 lines (874 loc) · 27.4 KB
/
present.tex
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
%% vim:tw=66:spell:wrap:ft=tex:
\ifx \printpresenthandout \undefined
\ifx \printpresentarticle \undefined
% no handout and no article
\documentclass{beamer}
\else
% print article
\documentclass[11pt]{article}
\usepackage{beamerarticle}
\fi
\else
% handout
\documentclass[handout]{beamer}
\fi
% Preamble
\input{preamble/present-helper.tex}
\usepackage{fontawesome}
\colorlet{tbackground}{blue!80}
\colorlet{tobjectives}{red!80}
\colorlet{tmetrics}{green!120}
\ifx \tcolor \undefined
% no color
\newcommand{\tbackground}[1]{#1}
\newcommand{\tobjectives}[1]{#1}
\newcommand{\tmetrics}[1]{#1}
\else
\newcommand{\tbackground}[1]{\textcolor{tbackground}{#1}}
\newcommand{\tobjectives}[1]{\textcolor{tobjectives}{#1}}
\newcommand{\tmetrics}[1]{\textcolor{tmetrics}{#1}}
\fi
%\input{preamble/draftwatermark.tex}
\input{note/seg-fig-pre.tex}
\begin{document}
% meta needs to be in \begin{document} so that tabular works
\input{meta/defense.tex}
%% transitions are made transparent rather than hidden
\setbeamercovered{transparent}
\input{00_front-matter/notation.tex}
% - Title slide.%{{{
\frame{\titlepage}
%}}}
\ifx \tcolor \undefined
\else
The following text is color-coded based on what kind of
information it provides the audience:
\tbackground{background information},
\tobjectives{objectives},
\tmetrics{metrics for completion of objectives}.
\fi
\ifx \printpresentarticle \undefined \else
\tableofcontents
\fi
\section{Background}
\subsection{Neuron reconstruction}
\begin{frame}\frametitle{\subsecname}
\centering
\begin{tabular}{c}
\vertcenterimage{\flipbox{\includegraphics[width=0.8\textwidth]{gfx/present/neuron-vol}}} \\\\
\arrowdown \\\\
\vertcenterimage{\includegraphics[width=0.8\textwidth]{gfx/present/neuron-trace}}
\end{tabular}
\note{%
Data
[\tbackground
{%
what is neuron reconstruction; data acquisition; image analysis; why
automate (i.e., why automated neuron
tracing research is important);
mention ORION
}
]
}
\note{
% TODO more notes
\begin{itemize}
\item
confocal and two-photon microscopy
\item
fluorescent proteins on a single neuron
\item
sampled in 3D
\item
problems with manual tracing
\begin{itemize}
\item
slow: can take up to 24 hours of work by domain expert on a single
neuron
\item
difficult in 3D
\end{itemize}
\item
problems in general
\begin{itemize}
\item
faint intensity
\item
lots of noise
\end{itemize}
\end{itemize}
}
\end{frame}
\subsection{Open science}
\begin{frame}\frametitle{\subsecname}
\centering
\begin{tabular}{p{0.6\textwidth}c}
\begin{minipage}{\linewidth}
\begin{quote}
\begin{fancyquote}
Open science is the idea that scientific knowledge of all kinds
should be openly shared as early as is practical in the discovery
process.
\end{fancyquote}
--- \qauthor{Michael Nielsen}
\end{quote}
\end{minipage}
&
\vertcenterimage{\includegraphics[height=0.3\textheight]{gfx/present/michael-nielsen}}
\end{tabular}
\note{
% TODO more notes
Scientific knowledge
\begin{itemize}
\item
problem definitions
\item
ideas
\item
code
\item
data
\item
methodology
\item
journal articles
\end{itemize}
}
\note{
% TODO more notes
[\tbackground
{%
what it means to be an open-science project (i.e., open release of all
research artifacts as early as possible)
}
]
}
\end{frame}
\subsection{BigNeuron}
\begin{frame}\frametitle{\subsecname}
\centering
\includegraphics[height=0.6\textheight]{gfx/bigneuron-website}
\note{
% TODO more notes
[\tbackground
{%
goal of BigNeuron and purpose of participation in
BigNeuron and how each algorithm must be released under
open-science
}
]
}
\note{
% TODO more notes
\begin{itemize}
\item
Continuing where the DIADEM Challenge left off
\item
Comparing algorithms across large datasets
\item
Stitching multiple neuron reconstructions together
\end{itemize}
}
\end{frame}
\section{Problem}
% - Problem Statement - Goals, objectives, aims. May also include challenges.
% IMPORTANT: State your specific aims clearly - what you plan to achieve and how
% you plan to achieve it. Let your contributions to the field of Computer Science
% be clear.
\begin{frame}\frametitle{\secname}
\Huge
\renewcommand{\arraystretch}{1.5}% Spread rows out...
\begin{tabular}{m{5em}m{1em}m{4em}m{1em}}
BigNeuron & + & \vertcenterimage{\includegraphics[height=2em]{gfx/present/mathworks-logo}} & \textcolor{red}{\xmark} \\[1em]
BigNeuron & + & C/C++ & \textcolor{green}{\cmark}
\end{tabular}
\note{
% TODO more notes
[\tbackground{explain how the ORION code exists in MATLAB form but is difficult to
integrate into BigNeuron}; explain challenges in later slides]
}
\end{frame}
\section{Goal}
% - Motivation - short introduction to your research, pointers to applications, why the research is important.
\begin{frame}\frametitle{\secname}
\centering
\tobjectives{%
The reimplementation of a system
%
for \alert{neuron reconstruction}
%
that is distributed as an \alert{open-science} project
and
%
compatible with the \alert{BigNeuron} project.
%
}
\end{frame}
\subsection{Objectives}
\begin{frame}\frametitle{\subsecname}
\tobjectives{%
% TODO choose icons for each objective to put in the slide
% headers
% - conversion : recycle? \faRecycle
% - integration: gears? \faCogs
% - testing: Erlenmeyer flask (for science)? \faFlask
\begin{enumerate}[<+->]
\setlength\itemsep{1em}
\item convert the ORION algorithm: \faRefresh
\begin{center}
\gls{orionmat} $\rightarrow$ \gls{orionc};
\end{center}
\item integrate \gls{orionc} with Vaa3D; \faCogs{}
and % "and" before last item
\item create a test suite and ensure
reproducible results. \faCheckSquareO % end of sentence
\end{enumerate}
}
\end{frame}
\section{Context}
% - Related Work - a catchy name is “State of the Art”.
% Literature review relevant to specific research. Your committee
% members are expected to already have a general background in your field.
% Concentrate on the details of your specific research area. It is preferable to
% use more recent literature (except for some classical “old” ones). Also avoid
% reviewing standard concepts that have been around for a long time.
\begin{frame}\frametitle{\secname}
\tbackground{%
\begin{itemize}
\item Prior work in \alert{neuron reconstruction}
\item Principles of \alert{open-science}
\item An overview of \alert{BigNeuron}
\end{itemize}
}
\end{frame}
\subsection{Neuron reconstruction}
\begin{frame}\frametitle{\subsecname}
\begin{multicols}{2}
\begin{itemize}
\item<1-> Golgi~staining --- Camillo~Golgi (1873)
\item<2-> Improved by Ram\'on~y~Cajal (1887)
\end{itemize}
\columnbreak
\begin{tikzpicture}[node distance=2cm]
\node (img1)
{{\includegraphics<1->[width=0.3\textwidth]{gfx/present/Golgi_Hippocampus.jpg}}};
\node[below right of=img1] (img2)
{{\includegraphics<2->[width=0.3\textwidth]{gfx/present/cajal-chick-cerebellum.jpg}}};
%\pause
%\node (img3) at (img2.south west) [yshift=1cm] {\includegraphics[height=3cm]{img3}};
\end{tikzpicture}
\end{multicols}
\note{
reticular theory vs. neuron doctrine
[\tbackground{explain the problem of neuron reconstruction; history of
neuron tracing; biological relevance and applications}]
}
\end{frame}
\begin{frame}\frametitle{Digital neuron reconstruction}
\begin{multicols}{2}
\begin{itemize}
\item<1-> The early days (late 1960s): digital acquisition
\item<2-> Manual tracing (1980s -- late 1990s): NeuroLucida
\item<3-> DIADEM (2009 -- 2010)
\end{itemize}
\columnbreak
% TODO image of computer-microscope system
\end{multicols}
\note{
% TODO
}
\end{frame}
\subsubsection{DIADEM Challenge}
\begin{frame}\frametitle{\subsubsecname}
% TODO
\begin{center}
\begin{tabular}{p{0.3\textwidth}p{0.3\textwidth}p{0.3\textwidth}}
\be \begin{center}CF\end{center} & \be \begin{center}CA3\end{center} & \be \begin{center}NL1\end{center} \\
\vertcenterimage{\includegraphics[width=0.3\textwidth]{gfx/vaa3D-DIADEM-1-CF_1-MIP.png}}
& \vertcenterimage{\includegraphics[width=0.3\textwidth]{gfx/vaa3D-DIADEM-2-HCA3-Section-1-MIP.png}}
& \vertcenterimage{\includegraphics[width=0.2\textwidth]{gfx/vaa3D-DIADEM-3-NL1-01-MIP.png}} \\
%
\vertcenterimage{\includegraphics[width=0.2\textwidth]{gfx/vaa3D-DIADEM-1-CF_1-3D.png}}
& \vertcenterimage{\includegraphics[width=0.2\textwidth]{gfx/DIADEM-dataset/x-selection-gray-dt2.png}}
& \vertcenterimage{\includegraphics[width=0.2\textwidth]{gfx/vaa3D-DIADEM-3-NL1-01-3D.png}}
\end{tabular}
\end{center}
\note{
[\tbackground{explain DIADEM Challenge; data sets; outcomes}]
}
\end{frame}
\begin{frame}\frametitle{\subsubsecname}
% TODO
\begin{center}
\begin{tabular}{p{0.3\textwidth}p{0.3\textwidth}p{0.3\textwidth}}
\be \begin{center}NPF\end{center} & \be \begin{center}OP\end{center} & \be \begin{center}CL\end{center} \\
\vertcenterimage{\includegraphics[width=0.2\textwidth]{gfx/DIADEM-dataset/x-selection-default-dt4-im25.png}}
& \vertcenterimage{\includegraphics[width=0.2\textwidth]{gfx/DIADEM-dataset/2d-default-dt5-v2.png}}
& \vertcenterimage{\includegraphics[width=0.2\textwidth]{gfx/DIADEM-dataset/2d-custom-dt6.png}} \\
%
\vertcenterimage{\includegraphics[width=0.2\textwidth]{gfx/DIADEM-dataset/MIP-default-dt4-im25.png}}
& \vertcenterimage{\includegraphics[width=0.2\textwidth]{gfx/DIADEM-dataset/alpha-default-dt5-v2.png}}
& \vertcenterimage{\includegraphics[width=0.2\textwidth]{gfx/DIADEM-dataset/mIP-custom-dt6-v2.png}}
\end{tabular}
\end{center}
\note{
[\tbackground{explain DIADEM Challenge; data sets; outcomes}]
}
\end{frame}
%\subsubsection{Metrics}
%\begin{frame}\frametitle{\subsubsecname}
%% TODO
%\note{
%[\tbackground{Create a table of metrics (e.g., precision, recall,
%DIADEM metric, btmorph, NetMets) and explain how they work}]
%}
%\end{frame}
%\subsubsection{Methods}
%\begin{frame}\frametitle{\subsubsecname}
%% TODO
%[\tbackground{Create a table of methods: what data they work with (2D/3D), modality,
%metrics, what datasets they validated against}]
%\end{frame}
\subsection{Open science}
\begin{frame}\frametitle{\subsecname}
\begin{itemize}
\item Make research as public as much as possible
\item Ensure that software/data can be run again
\item Related: open access publishing, open data
\end{itemize}
\end{frame}
\subsubsection{``Bermuda Principles''}
\begin{frame}\frametitle{\subsubsecname}
Bermuda Principles (1996):
\begin{itemize}
\item data available in 24 hours of sequence assembly
\item immediate publication of annotated sequences
\item all data in the public domain
\end{itemize}
\note{
\begin{itemize}
\item
Human Genome Project: one of the earliest open research projects; 20 institutions from around the world; 13 years
\item
arose after patent of breast cancer gene (BRCA2)
\end{itemize}
}
\note{
% TODO
[\tbackground{explain ``Bermuda Principles'' from Human Genome Project
(early large-scale open research project)}]
}
\end{frame}
\subsubsection{Open science projects}
\begin{frame}\frametitle{\subsubsecname}
\centering
\begin{tabular}{cc}
% Human Genome Project
\includegraphics[height=0.3\textheight]{gfx/present/HGP}
&
% OpenWorm
\includegraphics[height=0.3\textheight]{gfx/present/OpenWormLogo}
\\
% Galaxy Zoo
\includegraphics[height=0.3\textheight]{gfx/present/Galaxyzoo}
&
% Allen Brain Atlas
\includegraphics[height=0.3\textheight]{gfx/present/allen_brain_atlas_screenshot}
\end{tabular}
\note{
\begin{itemize}
\item
Human Genome Project
\item
OpenWorm: \emph{C. elegans} connectome modelling
\item
GalaxyZoo: crowd-source classification of galaxies
\item
Allen Brain Atlas: anatomical atlases of mouse and human brain
\end{itemize}
}
% TODO
\note{
[\tbackground{showcase a few open science projects to show breadth}]
}
\end{frame}
\begin{frame}\frametitle{Reproducibility for computational science}
\begin{itemize}
\item
Much of modern science is computational
\item
SSI survey of researchers:
\begin{itemize}
\item
56\% code
\item
21\% of those: no training in software
\end{itemize}
\item
RETRACTIONS
\item
Unit tests not validation tests
\item
Test many environments
\end{itemize}
\note{
\begin{itemize}
\item Note that the number is lowered since this include
non-STEM fields. The numbers are as high as 85\% in STEM.
\item
Give example of chemistry handedness mistake in protein structure
analysis.
\item
Test step-by-step, not just look to see if the results look right
\end{itemize}
}
\end{frame}
\subsection{BigNeuron}
\begin{frame}\frametitle{\subsecname}
\centering
\includegraphics[height=0.3\textheight]{gfx/present/alleninsitute12}
\note{
% TODO
[\tbackground{explain what BigNeuron is; how it relates to this thesis;
neuron stitching; bench testing}]
}
\end{frame}
\subsubsection{Vaa3D}
\begin{frame}\frametitle{\subsubsecname}
\centering
\includegraphics[height=0.5\textheight]{gfx/present/vaa3d-logo}
\note{
Standardising on Vaa3D image analysis tool
}
\note{
% TODO
[\tbackground{explain how Vaa3D has a plugin architecture and how it
standardizes the BigNeuron project}]
}
\end{frame}
\begin{frame}\frametitle{Vaa3D}
\centering
\includegraphics[height=0.5\textheight]{gfx/present/vaa3d-load-swc}
\note{
This is a neuron tracing loaded into Vaa3D.
}
\end{frame}
\subsection{ORION}
\begin{frame}\frametitle{\subsecname}
\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\item Segmentation
\item Tracing
\end{enumerate}
\end{frame}
\begin{frame}\frametitle{ORION: Segmentation}
Given volume \(\InputVolumeName\) and scales \(\RadiiScalesElem \in \RadiiScalesName\):
\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\item Detect training points
\begin{enumerate}
\def\labelenumii{\arabic{enumii}.}
\item Create a Laplacian filter of scale
\(\LaplacianScalesElem\): \(\LaplacianOutputVolumeElem\)
\item Create a filter from the second
derivatives of a Gaussian of scale
\(\RadiiScalesElem\) to compute
the two largest eigenvalues of the Hessian:
\(\EigSecondElem\) and
\(\EigThirdElem\).
\item For each voxel, find the \(\ScaleIndex^{th}\) scale which has
a maximum response to
\(\LaplacianOutputVolumeElem\).
Assign the two largest eigenvalues
to a feature vector.
\end{enumerate}
\end{enumerate}
\end{frame}
\input{note/seg-fig.tex}
\begin{frame}
\begin{figure}
\centering
\resizebox{0.9\textwidth}{!}{\input{gfx/algorithm/tracing.tex}}
%\caption[Diagram of tracing process]{\textbf{Diagram of tracing process}}\label{fig:proc-tracing}
\end{figure}
\end{frame}
% - Proposed Framework - this is the most important part of your proposal.
% Expect most questions from committee members on this. Put in all your
% best here. Describe the entire framework before separating into work-done and
% work-left. Do not mix framework with results. You may start with a one-slide
% overview of the entire framework before going into details. Make sure committee
% members will be able to understand your work. Relate to previous approaches and
% how your is an extension or a difference. Include mathematical equations that
% will explain your work.
% - Explain the relevance of each equation. Understand the meaning and
% significance of each term in the equation irrespective of whether you define
% them in the slide or not. TIP: Rather than doing your equation twice (for your
% PPT and Latex write-up), you may do it once in your Latex document and copy
% into TexPoint for the PPT.
% - Preliminary Results - if you already have some results, please show it.
% Talk about how you propose to validate your results. Show how your
% results compare with previous results OR how it performs in general, (e.g., in
% how many images it succeeded or in how many it failed). A chart will be useful.
% Any statistical comparison should indicate level of significance.
% - Present status of the proposed framework
% - which aspects are completed, which are in progress, and which have not yet been done at all.
% - It is advisable to include a timeline of future indicating milestones and when you hope to achieve each.
% - Expected Impact - mention specific application areas where you have tried or will try your proposed framework.
% Also, explain how it can be generalized to other areas in Computer
% Science. What is the overall benefit for the community? What is the
% contribution to Computer Science research?
\section{Methods}
\subsection{Conversion}
\begin{frame}\frametitle{\subsecname}
\begin{itemize}
\item<1-> Rewrite vs. Refactor
\item<2-> MATLAB version: \gls{orionmat}
\item<2-> C version: \gls{orionc}
\item<3-> Work function-by-function
\end{itemize}
\end{frame}
\subsubsection{Conversion challenges}
\begin{frame}\frametitle{\subsubsecname}
\begin{itemize}
\item<1-> C is very different from MATLAB
\item<2-> No existing tests
\item<3-> Remove code that is MATLAB specific
\end{itemize}
\note{
[\tbackground{challenges when doing a rewrite from MATLAB to native code}]
}
\end{frame}
\begin{frame}\frametitle{Data handling}
\begin{itemize}[<+->]
\item Caching
\item Subvolume
\end{itemize}
\note{
\begin{itemize}
\item
Original code attempts to speed up subsequent runs by saving
intermediate results.
\item
Breaks up large volumes into small volumes
\item
This is fine, but every part of the codebase uses the same data by
reading from files.
\end{itemize}
}
\end{frame}
\begin{frame}\frametitle{Coupling via cross-cutting concerns}
\begin{figure}[tbp]
\centering
\input{gfx/ccc.tex}
\caption{\textbf{Files accessed by multiple modules}
}\label{fig:ccc}
\end{figure}
\note{
\begin{itemize}
\item
As soon as you make changes in one, you have to change the others.
\item
Imagine changing the file name
\item
Writes to the file-system, so it will needs file locking if run in
parallel
\end{itemize}
}
\end{frame}
\begin{frame}\frametitle{Reducing coupling via indirection}
\begin{figure}[tbp]
\centering
\input{gfx/ccc-dao.tex}
\caption{\textbf{Using a data access object to reduce coupling}
}\label{fig:ccc-dao}
\end{figure}
\note{
\begin{itemize}
\item Any problem in CS can be solved by adding another layer of indirection.
\item Possible solution: Add another layer of indirection via a Data Access Object (DAO)
\item Reduces coupling between business logic and persistence logic
\item Persistence logic can be swapped out
\end{itemize}
}
\end{frame}
\subsection{Roads not taken}
\begin{frame}<1>[label=frost]\frametitle{Roads not taken}
\begin{itemize}
\item<1> MATLAB Engine API
\item<2> MATLAB Compiler Runtime
\note{
}
% TODO describe MATLAB Engine API and MATLAB Compiler Runtime
\end{itemize}
\end{frame}
\subsubsection{Call graph}
\begin{frame}\frametitle{\subsubsecname}
\begin{tabular}{p{0.4\textwidth}c}
\begin{minipage}{\linewidth}
\begin{itemize}
\item<1-> Already existing architecture
\item<2-> Create a graph of function calls
\item<3-> Provides an order to work in
\end{itemize}
\end{minipage}
&
\begin{minipage}{\linewidth}
%\vertcenterimage{\includegraphics[height=0.3\textheight]{gfx-out/matlab-call-graph/segmentation.tex}}
\resizebox{0.6\linewidth}{!}{\input{gfx-out/matlab-call-graph/segmentation.tex}}
\end{minipage}
\end{tabular}
\note{
[\tbackground{analysis of existing codebase; how this informs the new
implementation; why use the call graph instead of
attempting to either do a clean room implementation (i.e.,
by only reading papers) or creating a new architecture
from scratch}]
}
\end{frame}
\subsubsection{Directory structure}
\begin{frame}\frametitle{\subsubsecname}
\begin{itemize}
\item<1-> \computertext{lib/container}: container data structures (e.g., resizable arrays)
\item<2-> \computertext{lib/ndarray}: n-dimensional array and volume processing code (e.g., FFT)
\item<3-> \computertext{lib/numeric}: numeric helper functions (e.g., polynomial calculation)
\item<4-> \computertext{lib/simple-log}: logging code
\end{itemize}
\note{
[ plan for the directory structure (where does each file
go) ]
}
\end{frame}
\begin{frame}\frametitle{\subsubsecname}
\begin{itemize}
\item<1-> \computertext{lib/kitchen-sink}: implementation of functions that match \gls{orionmat} code
\item<2-> \computertext{lib/vaa3d-plugin}: code to integrate with Vaa3D
\item<3-> \computertext{lib/t}: tests for all the above
\end{itemize}
\end{frame}
\subsection{Integration}
\begin{frame}\frametitle{\subsecname}
\begin{itemize}
\item BigNeuron requires working with Vaa3D
\item Use a standard API for all algorithms
\end{itemize}
\note{
[\tbackground{description of Vaa3D}]
}
\end{frame}
\subsubsection{Vaa3D integration}
\begin{frame}\frametitle{\subsubsecname}
\centering
\includegraphics[height=0.3\textheight]{gfx/present/vaa3d-create-neuron-rec-plugin}
\note{
The idea behind contributing an algorithm to
BigNeuron is to create a plugin that will take
data in a standarised form and give back a
reconstruction in a standardised form.
}
\end{frame}
\subsection{Testing and Reproducibility}
\begin{frame}\frametitle{\subsecname}
\begin{itemize}
\item<1-> Write simple tests: simple to read, simple to verify
\item<2-> Sanity checking
\item<3-> Are dependencies working as expected?
\item<4-> Tests can be run by others
\end{itemize}
\note{
[\tmetrics{why testing is important}]
}
\end{frame}
\subsubsection{Testing procedure}
\begin{frame}\frametitle{\subsubsecname}
\begin{itemize}
\item<1-> Analytic solutions
\item<2-> Property testing
\item<3-> Floating point
\item<4-> Integration: test whole pipeline with data
\end{itemize}
\note{
[
testing procedure (TAP harness, floating point
issues); integration testing with Vaa3D
]
}
\end{frame}
\section{Results}
\subsection{Results for Conversion}
\subsubsection{Qualitative results}
\begin{frame}\frametitle{\subsecname}
% TODO
\vertcenterimage{\includegraphics[width=0.8\textwidth]{gfx/present/neuron-trace}}
\note{
[
\tmetrics{%
run code on DIADEM data and show the
visualization
}
]
}
\end{frame}
%\subsubsection{Quantitative Tracing-based comparison}
%\begin{frame}\frametitle{\subsecname}
%% TODO
%[ get all intermediate results from MATLAB code and
%compare to the native code (floating point for volumes,
%tree metrics for the tracings); run on DIADEM data]
%\end{frame}
\subsection{Results for Integration}
\begin{frame}\frametitle{\subsecname}
\begin{itemize}
\item Load TIFF stack into Vaa3D
\item Run plugin code
\end{itemize}
%[\tmetrics{a demonstration video; visual results and metrics from using
%Vaa3D with neuron data from DIADEM; demonstration of any further analysis
%that can be done in Vaa3D}]
\end{frame}
\begin{frame}% TODO title
\begin{figure}[H]
\centering
\includegraphics[width=0.8\textwidth]{gfx/vaa3d_DIADEM-NPF-3-025_3D-view}
\caption{Vaa3D: Visualization of NPF025 TIFF stack}
\end{figure}
\end{frame}
\begin{frame}% TODO title
\begin{figure}[H]
\centering
\includegraphics[width=0.8\textwidth]{gfx/vaa3d_DIADEM-NPF-3-025_APP2-tracing-3D-view}
\caption{Vaa3D: Tracing of NPF025 using Vaa3D plugin}
\end{figure}
\end{frame}
\subsection{Results for Testing and Reproducibility}
\subsubsection{Overview of tests}
\begin{frame}\frametitle{\subsubsecname}
\begin{itemize}
\item<1-> Numeric tests: does factorial work?
\item<2-> I/O tests: can data be read from disk properly?
\item<3-> Library integration: does FFT library work?
\item<4-> Current code coverage by tests: 76.29\%.
\end{itemize}
\note{
[
overview of tests written (grouped by similarity);
list of bugs fixed in ORION due to testing;
code coverage; list of dead code found
]
}
\end{frame}
\begin{frame}\frametitle{\subsubsecname}
\begin{itemize}
\item<1-> Tests fix bugs and anticipate change
\item<2-> Is the filter really isotropic?
\item<3-> ITK Hessian filter and volume spacing changes
\item<3-> Differences in compilers
\end{itemize}
\end{frame}
\subsubsection{Dependency tracking}
\begin{frame}\frametitle{\subsubsecname}
\note{
[dependency tracking by keeping version controlled copies
of dependencies; screenshots of all repos of deps used under the CBL-ORION
namespace on GitHub
]
}
\begin{figure}[tbp]
\centering
\includegraphics[width=1.0\textwidth]{gfx/gh-dep_0}
\end{figure}
\end{frame}
\begin{frame}\frametitle{\subsubsecname}
\begin{figure}[tbp]
\centering
\includegraphics[width=0.9\textwidth]{gfx/gh-dep_1}
\end{figure}
\end{frame}
\subsubsection{Documentation}
\begin{frame}\frametitle{\subsubsecname}
\note{
[ screenshot of documentation ]
}
\begin{figure}[tbp]
\centering
% <https://github.com/CBL-ORION/orion/wiki>
\includegraphics[width=1.0\textwidth]{gfx/doc-dev}
\caption{\textbf{Documentation website}
}\label{fig:doc-wiki}
\end{figure}
\end{frame}
\subsubsection{Continuous integration}
%\note{
%[
%{screenshots of continuous integration}
%]
%}
\begin{frame}\frametitle{\subsecname} \centering\includegraphics[width=1.0\textwidth]{gfx/ci-0} \end{frame}
\begin{frame}\frametitle{\subsecname} \centering\includegraphics[width=1.0\textwidth]{gfx/ci-1} \end{frame}
\begin{frame}\frametitle{\subsecname} \centering\includegraphics[width=1.0\textwidth]{gfx/ci-2} \end{frame}
\begin{frame}\frametitle{\subsecname} \centering\includegraphics[height=0.65\textwidth]{gfx/ci-3} \end{frame}
\begin{frame}\frametitle{Estimating error in stages}
\begin{figure}
% Cases
\definecolor{inputcol}{RGB}{0,0,0}
\definecolor{lgray}{RGB}{192,192,192}
\definecolor{ngray}{RGB}{160,160,160}
\definecolor{dgray}{RGB}{128,128,128}
\definecolor{tcol}{RGB}{255,255,255}
% Cases
\definecolor{lblue}{RGB}{102,102,255}
\definecolor{nblue}{RGB}{51,51,255}
\definecolor{dblue}{RGB}{0,0,255}
\resizebox{0.8\linewidth}{!}{\input{gfx/compare.tex}}
\caption{Full pipeline}
\end{figure}
\end{frame}
\begin{frame}\frametitle{Estimating error in stages}
\begin{itemize}
\item<1-> Set breakpoints at every function start and end
\item<2-> Run the MATLAB code
\item<3-> Save the state of the input and output data at
each breakpoint with stack frame ID
\end{itemize}
\end{frame}
\begin{frame}\frametitle{Estimating error in stages}
\begin{itemize}
\item<1-> Load the MATLAB data
\item<2-> Convert MATLAB to C data structures
\item<3-> Compare the results using an appropriate method
\end{itemize}
\end{frame}
\begin{frame}\frametitle{Estimating error for Makefilter}
\centering
%\input{table/estimating-errors-horizontal.tex}
\begin{tabular}{cc}
\toprule
\be{}Stack ID & \be{} histogram intersection \\
\midrule
1 & 0.999973665203964 \\
2 & 0.999967508148729 \\
3 & 0.999978416844418 \\
4 & 0.999982131154914 \\
5 & 0.999959276433577 \\
\bottomrule
\end{tabular}
\end{frame}
\section{Conclusion}
% - Conclusion slide could be catchy, something they will remember.
% Maybe an animation, video, or terse statement that summarizes it all.
\begin{frame}\frametitle{\secname}
\begin{itemize}
\item<1-> Project set up for future work
\item<2-> Automatic testing for every change
\item<3-> Can be packaged for Vaa3D, NeuroDebian
\end{itemize}
\note{
[
mention future work (e.g., NeuroDebian)
]
}
\end{frame}
\begin{frame}\frametitle{\secname}
\centering\Huge Questions?
\end{frame}
% - Publications - you should list your publications or mention them in relevant sections of the presentation.
\end{document}