forked from sjtug/SJTUThesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflow_chart.tex
64 lines (58 loc) · 1.74 KB
/
flow_chart.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
% 定义流程图节点
\tikzstyle{startstop} = [
rectangle,
rounded corners,
minimum width=4em,
text centered,
inner sep=1.5ex,
draw
]
\tikzstyle{io} = [
trapezium,
trapezium left angle=75,
trapezium right angle=105,
minimum width=4em,
text centered,
inner sep=1.5ex,
draw
]
\tikzstyle{process} = [
rectangle,
minimum width=4em,
text centered,
inner sep=1.5ex,
draw
]
\tikzstyle{decision} = [
diamond,
minimum width=4em,
aspect=2,
text centered,
draw
]
\tikzstyle{arrow} = [-{LaTeX}]
\begin{tikzpicture}[node distance=1.5cm, every node/.style={font=\footnotesize}]
% 设置节点
\node[startstop] (pic) {待测图片};
\node[io, below of=pic] (bg) {读取背景};
\node[process, below of=bg] (pair) {匹配特征点对};
\node[decision, below of=pair, yshift=-2ex] (threshold) {多于阈值};
\node[decision, right of=threshold, xshift=3cm] (clear) {清晰?};
\node[process, right of=pair, xshift=3cm] (capture) {重采};
\node[process, below of=threshold, yshift=-2ex] (matrix_p) {透视变换矩阵};
\node[process, right of=matrix_p, xshift=3cm] (matrix_a) {仿射变换矩阵};
\node[process, below of=matrix_p] (reg) {图像修正};
\node[startstop, below of=reg] (return) {配准结果};
% 连接节点
\draw[arrow] (pic) -- (bg);
\draw[arrow] (bg) -- (pair);
\draw[arrow] (pair) -- (threshold);
\draw[arrow] (threshold) -- node[above] {否} (clear);
\draw[arrow] (clear) -- node[right] {否} (capture);
\draw[arrow] (capture) |- (pic);
\draw[arrow] (clear) -- node[right] {是} (matrix_a);
\draw[arrow] (matrix_a) |- (reg);
\draw[arrow] (threshold) -- node[left] {是} (matrix_p);
\draw[arrow] (matrix_p) -- (reg);
\draw[arrow] (reg) -- (return);
\end{tikzpicture}