-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDissertationDefs.tex
More file actions
145 lines (131 loc) · 6.33 KB
/
Copy pathDissertationDefs.tex
File metadata and controls
145 lines (131 loc) · 6.33 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
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
%% Package to includes to provide additional functionality to the dissertation document
\usepackage{harvard} % Uses harvard style referencing
\usepackage{graphicx} % Permits import of various graphics formats
\usepackage{multicol} % Provides ability to split output into columns
\usepackage{listings} % Provides styled code listings
\usepackage{color} % Set background colours for code listings
\usepackage{float} % Suppresses floating for tables and figures when using "H"
\usepackage{etoolbox} % enable bibliography to be added to the table of contents
\usepackage{comment} % enable block of comments
\usepackage{enumitem} % resume enumerations
\usepackage{amsmath} % align equations
\usepackage{breakurl} % used to break long url links
\usepackage{pdfpages} % include pdfs in the document (used for console output)
\usepackage{multirow} % cell merging in tables
\usepackage{longtable} % span tables through multiple pages. Note: It may be necessary to compile the document several times to get a multi-page table to line up properly
\usepackage[export]{adjustbox} % allows figures to be positioned (left-center-right)
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[inner=4cm,outer=4cm]{geometry} % Set some page size changes from the standard article class
\usepackage[breaklinks]{hyperref} % Provides hyperlinks to sections automatically
%% Offset the thermal binding on odd pages
% \geometry{bindingoffset=1cm}
%% Format definitions for the style
\bibliographystyle{agsm} %{alpha}
\citationstyle{dcu}
\pagestyle{headings}
\fussy
%% Break long urls with the following characters
\def\UrlBreaks{\do\/\do-\do.\do0}
%% New colours defined for the code listings (https://latexcolor.com/)
\definecolor{backcolour}{gray}{0.9}
\definecolor{palatinateblue}{rgb}{0.15, 0.23, 0.89}
\definecolor{airforceblue}{rgb}{0.36, 0.54, 0.66}
\definecolor{dartmouthgreen}{rgb}{0.05, 0.5, 0.06}
\definecolor{davysgrey}{rgb}{0.33, 0.33, 0.33}
\definecolor{cornellred}{rgb}{0.7, 0.11, 0.11}
\definecolor{deepmagenta}{rgb}{0.8, 0.0, 0.8}
%% Custom listing style for Python code
\lstloadlanguages{Python}
\lstdefinestyle{myPythonStyle}{
language=Python,
backgroundcolor=\color{backcolour},
commentstyle=\color{airforceblue},
basicstyle=\footnotesize,
keywordstyle=[1]\color{dartmouthgreen}\bfseries, % Python keywords in bold and blue
keywordstyle=[2]\color{deepmagenta}, % Python functions in magenta
keywordstyle=[3]\color{blue}\bfseries\underbar, % User functions bold/underlined and blue
morekeywords=[1]{self},
morekeywords=[2]{@make_spin},
morekeywords=[3]{main,off_line_colour_based_feature_extraction_phase,on_line_retrieval_phase,database_preprocessing_phase,HistogramGenerator,__init__,generate_video_rgb_histogram,generate_video_greyscale_histogram,generate_video_hsv_histogram,generate_and_store_average_rgb_histogram,generate_and_store_average_greyscale_histogram,generate_and_store_average_hsv_histogram,match_histograms,rgb_histogram_shot_boundary_detection,check_video_capture,destroy_video_capture,get_video_capture,get_current_reference_points,get_results_array,_normalise_histogram,_get_frames_to_process,_get_chosen_model_string,ClickAndDrop,click_and_crop,get_roi,get_reference_points,VideoStabiliser,stabilise_video,get_video_filenames,print_terminal_table,print_finished_training_message,get_video_first_frame,show_final_match,display_results_histogram,get_number_of_frames,get_video_fps,terminal_yes_no_question,video_file_already_stabilised},
numberstyle=\tiny\color{davysgrey},
stringstyle=\color{cornellred}\bfseries,
showspaces=false,
showstringspaces=false,
showtabs=true,
numbers=left,
captionpos=b,
frame=single,
breakatwhitespace=true,
breaklines=true,
keepspaces=true,
numbersep=5pt,
tabsize=4,
postbreak=\mbox{\textcolor{red}{$\hookrightarrow$}\space}
}
\lstset{style=myPythonStyle}
%% Definitions to provide layout in the dissertation title pages
\newenvironment{spaced}[1]
{\begin{minipage}[c]{\textwidth}\vspace{#1}}
{\end{minipage}}
\newenvironment{centrespaced}[2]
{\begin{center}\begin{minipage}[c]{#1}\vspace{#2}}
{\end{minipage}\end{center}}
%% Copyright page
\newcommand{\declaration}[2]{
\thispagestyle{empty}
\begin{spaced}{4em}
\begin{center}
\LARGE\textbf{#1}
\end{center}
\end{spaced}
\begin{spaced}{3em}
\begin{center}
Submitted by: #2
\end{center}
\end{spaced}
\begin{spaced}{5em}
\section*{COPYRIGHT}
Attention is drawn to the fact that copyright of this dissertation rests
with its author. The Intellectual Property Rights of the products
produced as part of the project belong to the author unless otherwise specified
below, in accordance with the University of Bath's policy on intellectual property
(see \url{http://www.bath.ac.uk/ordinances/22.pdf}).
This copy of the dissertation has been supplied on condition that anyone
who consults it is understood to recognise that its copyright rests with its
author and that no quotation from the dissertation and no information
derived from it may be published without the prior written consent of
the author.
\section*{Declaration}
This dissertation is submitted to the University of Bath in accordance
with the requirements of the degree of Bachelor of Science in the
Department of Computer Science. No portion of the work in this dissertation
has been submitted in support of an application for any other degree
or qualification of this or any other university or institution of learning.
Except where specifically acknowledged, it is the work of the author.
\end{spaced}
\begin{spaced}{5em}
Signed:
\end{spaced}
}
\newcommand{\consultation}[1]{%
\thispagestyle{empty}
\begin{centrespaced}{0.8\textwidth}{0.4\textheight}
\ifnum #1 = 0
This dissertation may be made available for consultation within the
University Library and may be photocopied or lent to other libraries
for the purposes of consultation.
\else
This dissertation may not be consulted, photocopied or lent to other
libraries without the permission of the author for #1
\ifnum #1 = 1
year
\else
years
\fi
from the date of submission of the dissertation.
\fi
\vspace{4em}
Signed:
\end{centrespaced}
}