explain chaikin(3)

This commit is contained in:
Motiejus Jakštys 2020-06-18 10:46:42 +03:00
parent 0131ef85d1
commit 0fddb49a8c
2 changed files with 13 additions and 12 deletions

View File

@ -48,17 +48,18 @@ db/.chaikin_$(1)_$(2)_%: db/.faux_$(1)_$(2)_% chaikin.sql
$(1)_$(2)_%.pdf: layer2img.py db/.faux_$(1)_$(2)_%
./layer2img.py --group2-table=$(1)_$(2)_$$* --size=$(3) --outfile $$@
endef
define algo2overlay
overlaid_$(1)_$(2)_%.pdf: layer2img.py db/.faux_$(1)_$(2)_%
./layer2img.py $(3) --group1-table=$(1) --group2-table=$(1)_$(2)_$$* \
--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) \
--group1-table=$(1) \
--group2-table=$(1)_$(2)_$$* \
--group3-table=chaikin_$(1)_$(2)_$$* \
--group2-table=chaikin_$(1)_$(2)_$$* \
--outfile $$@
endef
define gpkg2pdf
$(1): $(2) ./layer2img.py
./layer2img.py $(3) --group1-infile=$$< --outfile $(1)

View File

@ -287,24 +287,24 @@ table~\ref{tab:comparison-crossing} on page~\pageref{tab:comparison-crossing}.
\end{figure}
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 displayed in table~\ref{tab:chaikin-crossing} on
page~\page{tab:chaikin-crossing}.
are jaggy. Higher-tolerance jaggy outputs from {\VW} and {\DP}, passed through
Chaikin with 3 iterations, are displayed in table~\ref{tab:chaikin-crossing} on
page~\pageref{tab:chaikin-crossing}.
\begin{figure}[h]
\renewcommand{\tabularxcolumn}[1]{>{\center\small}m{#1}}
\begin{tabularx}{\textwidth}{ p{2.1cm} | X | X | }
Tolerance DP/VW &
Douglas \& Peucker &
Visvalingam-Whyatt \tabularnewline \hline
Douglas \& Peucker + Chaikin(3) &
Visvalingam-Whyatt + Chaikin(3) \tabularnewline \hline
128/16384 &
\includegraphics[width=\linewidth]{chaikin_overlaid_zeimena_douglas_128} &
\includegraphics[width=\linewidth]{chaikin_overlaid_zeimena_visvalingam_128} \tabularnewline \hline
\includegraphics[width=\linewidth]{overlaid_chaikin_zeimena_douglas_128} &
\includegraphics[width=\linewidth]{overlaid_chaikin_zeimena_visvalingam_128} \tabularnewline \hline
256/65536 &
\includegraphics[width=\linewidth]{chaikin_overlaid_zeimena_douglas_256} &
\includegraphics[width=\linewidth]{chaikin_overlaid_zeimena_visvalingam_256} \tabularnewline \hline
\includegraphics[width=\linewidth]{overlaid_chaikin_zeimena_douglas_256} &
\includegraphics[width=\linewidth]{overlaid_chaikin_zeimena_visvalingam_256} \tabularnewline \hline
\end{tabularx}
\caption{Chaikin-smoothened {\DP} and {\VW} on river crossing area}