explain chaikin(3)
This commit is contained in:
parent
0131ef85d1
commit
0fddb49a8c
@ -48,17 +48,18 @@ db/.chaikin_$(1)_$(2)_%: db/.faux_$(1)_$(2)_% chaikin.sql
|
|||||||
$(1)_$(2)_%.pdf: layer2img.py db/.faux_$(1)_$(2)_%
|
$(1)_$(2)_%.pdf: layer2img.py db/.faux_$(1)_$(2)_%
|
||||||
./layer2img.py --group2-table=$(1)_$(2)_$$* --size=$(3) --outfile $$@
|
./layer2img.py --group2-table=$(1)_$(2)_$$* --size=$(3) --outfile $$@
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define algo2overlay
|
define algo2overlay
|
||||||
overlaid_$(1)_$(2)_%.pdf: layer2img.py db/.faux_$(1)_$(2)_%
|
overlaid_$(1)_$(2)_%.pdf: layer2img.py db/.faux_$(1)_$(2)_%
|
||||||
./layer2img.py $(3) --group1-table=$(1) --group2-table=$(1)_$(2)_$$* \
|
./layer2img.py $(3) --group1-table=$(1) --group2-table=$(1)_$(2)_$$* \
|
||||||
--outfile $$@
|
--outfile $$@
|
||||||
chaikin_overlaid_$(1)_$(2)_$(3)_%.pdf: layer2img.py db/.chaikin_$(1)_$(2)_%
|
overlaid_chaikin_$(1)_$(2)_%.pdf: layer2img.py db/.chaikin_$(1)_$(2)_%
|
||||||
./layer2img.py $(3) \
|
./layer2img.py $(3) \
|
||||||
--group1-table=$(1) \
|
--group1-table=$(1) \
|
||||||
--group2-table=$(1)_$(2)_$$* \
|
--group2-table=chaikin_$(1)_$(2)_$$* \
|
||||||
--group3-table=chaikin_$(1)_$(2)_$$* \
|
|
||||||
--outfile $$@
|
--outfile $$@
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define gpkg2pdf
|
define gpkg2pdf
|
||||||
$(1): $(2) ./layer2img.py
|
$(1): $(2) ./layer2img.py
|
||||||
./layer2img.py $(3) --group1-infile=$$< --outfile $(1)
|
./layer2img.py $(3) --group1-infile=$$< --outfile $(1)
|
||||||
|
@ -287,24 +287,24 @@ table~\ref{tab:comparison-crossing} on page~\pageref{tab:comparison-crossing}.
|
|||||||
\end{figure}
|
\end{figure}
|
||||||
|
|
||||||
As the reader may observe, the output lines, especially with higher tolerances,
|
As the reader may observe, the output lines, especially with higher tolerances,
|
||||||
are jaggy. Higher-tolerance jaggy outputs from {\VW} and {\DP}, passed through Chaikin,
|
are jaggy. Higher-tolerance jaggy outputs from {\VW} and {\DP}, passed through
|
||||||
are displayed in table~\ref{tab:chaikin-crossing} on
|
Chaikin with 3 iterations, are displayed in table~\ref{tab:chaikin-crossing} on
|
||||||
page~\page{tab:chaikin-crossing}.
|
page~\pageref{tab:chaikin-crossing}.
|
||||||
|
|
||||||
\begin{figure}[h]
|
\begin{figure}[h]
|
||||||
\renewcommand{\tabularxcolumn}[1]{>{\center\small}m{#1}}
|
\renewcommand{\tabularxcolumn}[1]{>{\center\small}m{#1}}
|
||||||
\begin{tabularx}{\textwidth}{ p{2.1cm} | X | X | }
|
\begin{tabularx}{\textwidth}{ p{2.1cm} | X | X | }
|
||||||
Tolerance DP/VW &
|
Tolerance DP/VW &
|
||||||
Douglas \& Peucker &
|
Douglas \& Peucker + Chaikin(3) &
|
||||||
Visvalingam-Whyatt \tabularnewline \hline
|
Visvalingam-Whyatt + Chaikin(3) \tabularnewline \hline
|
||||||
|
|
||||||
128/16384 &
|
128/16384 &
|
||||||
\includegraphics[width=\linewidth]{chaikin_overlaid_zeimena_douglas_128} &
|
\includegraphics[width=\linewidth]{overlaid_chaikin_zeimena_douglas_128} &
|
||||||
\includegraphics[width=\linewidth]{chaikin_overlaid_zeimena_visvalingam_128} \tabularnewline \hline
|
\includegraphics[width=\linewidth]{overlaid_chaikin_zeimena_visvalingam_128} \tabularnewline \hline
|
||||||
|
|
||||||
256/65536 &
|
256/65536 &
|
||||||
\includegraphics[width=\linewidth]{chaikin_overlaid_zeimena_douglas_256} &
|
\includegraphics[width=\linewidth]{overlaid_chaikin_zeimena_douglas_256} &
|
||||||
\includegraphics[width=\linewidth]{chaikin_overlaid_zeimena_visvalingam_256} \tabularnewline \hline
|
\includegraphics[width=\linewidth]{overlaid_chaikin_zeimena_visvalingam_256} \tabularnewline \hline
|
||||||
|
|
||||||
\end{tabularx}
|
\end{tabularx}
|
||||||
\caption{Chaikin-smoothened {\DP} and {\VW} on river crossing area}
|
\caption{Chaikin-smoothened {\DP} and {\VW} on river crossing area}
|
||||||
|
Loading…
Reference in New Issue
Block a user