Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi committed Aug 29, 2023
0 parents commit ec77d7d
Show file tree
Hide file tree
Showing 74 changed files with 6,437 additions and 0 deletions.
364 changes: 364 additions & 0 deletions assets/TILTED_METHOD_verynarrow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
977 changes: 977 additions & 0 deletions assets/TILTED_method.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2,840 changes: 2,840 additions & 0 deletions assets/TILTED_method_narrow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/TILTED_method_v5.pdf
Binary file not shown.
Binary file added assets/aligned_giannini_norm.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/aligned_giannini_norm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/aligned_giannini_pca.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/aligned_giannini_pca.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/aligned_giannini_rgb.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/aligned_giannini_rgb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/aligned_kitchen_norm.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/aligned_kitchen_norm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/aligned_kitchen_pca.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/aligned_kitchen_pca.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/aligned_kitchen_rgb.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/aligned_kitchen_rgb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/aligned_storefront_norm.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/aligned_storefront_norm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/aligned_storefront_pca.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/aligned_storefront_pca.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/aligned_storefront_rgb.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/aligned_storefront_rgb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/aligned_stump_norm.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/aligned_stump_norm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/aligned_stump_pca.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/aligned_stump_pca.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/aligned_stump_rgb.jpg
Binary file added assets/aligned_stump_rgb.png
444 changes: 444 additions & 0 deletions assets/diamond.svg

Large diffs are not rendered by default.

Binary file added assets/diamond_16_slow.gif
Binary file added assets/diamond_alignment.gif
Binary file added assets/diamond_slow.gif
Binary file added assets/fox_alignment.gif
Binary file added assets/fox_alignment_smaller.gif
Binary file added assets/sdf_aligned.jpg
Binary file added assets/sdf_aligned.png
Binary file added assets/sdf_tilted.jpg
Binary file added assets/sdf_tilted.png
399 changes: 399 additions & 0 deletions assets/square.svg

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions assets/tikz/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Compiling figure sources on MacOS (MacTex 2023):

1. Convert to .dvi:

latex <source_file>.tex

2. Run dvisvgm with options:

dvisvgm -e --no-fonts <source_file>.dvi
89 changes: 89 additions & 0 deletions assets/tikz/diamond.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
\documentclass[border=0in]{standalone}

\usepackage[T1]{fontenc}
\usepackage{opensans}
\usepackage{bm}
\usepackage{mathrsfs}

\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{xcolor}
\usepackage{newtxsf}

\usepgfplotslibrary{fillbetween}

\definecolor{c0}{HTML}{f0f9e8}
\definecolor{c1}{HTML}{bae4bc}
\definecolor{c2}{HTML}{7bccc4}
\definecolor{c3}{HTML}{43a2ca}
\definecolor{c4}{HTML}{0868ac}
\definecolor{lightgray}{HTML}{d3d3d3}
\newcommand{\grtr}{\natural}


\setcounter{MaxMatrixCols}{20}


\begin{document}

\begin{tikzpicture}

% bounding box
\draw[black, fill=white, line width=1pt] (-2.2,-2.2) rectangle (2.2,2.2); % Adjust the dimensions as needed

% Black Square
\fill[black, rotate=45] (-1.2,-1.2) rectangle (1.2,1.2); % Adjust the coordinates to position the square

% first approx sign
\node [anchor=center] at (2.97, 0) {{\Huge $\approx$ }};


% discretized matrix
\node [anchor=center] at (6.25, 0) {
\Large
$\begin{bmatrix}
\textcolor{lightgray}{0} &\hspace{-0.45em}& \textcolor{lightgray}{0} &\hspace{-0.45em}& \textcolor{lightgray}{0} &\hspace{-0.45em}& \textcolor{lightgray}{0} &\hspace{-0.45em}& \textcolor{lightgray}{0} &\hspace{-0.45em}& \textcolor{lightgray}{0} &\hspace{-0.45em}& \textcolor{lightgray}{0} \\
\textcolor{lightgray}{0} &\hspace{-0.45em}& \textcolor{lightgray}{0} &\hspace{-0.45em}& \textcolor{lightgray}{0} &\hspace{-0.45em}& \textcolor{black}{1} &\hspace{-0.45em}& \textcolor{lightgray}{0} &\hspace{-0.45em}& \textcolor{lightgray}{0} &\hspace{-0.45em}& \textcolor{lightgray}{0} \\
\textcolor{lightgray}{0} &\hspace{-0.45em}& \textcolor{lightgray}{0} &\hspace{-0.45em}& \textcolor{black}{1} &\hspace{-0.45em}& \textcolor{black}{1} &\hspace{-0.45em}& \textcolor{black}{1} &\hspace{-0.45em}& \textcolor{lightgray}{0} &\hspace{-0.45em}& \textcolor{lightgray}{0} \\
\textcolor{lightgray}{0} &\hspace{-0.45em}& \textcolor{black}{1} &\hspace{-0.45em}& \textcolor{black}{1} &\hspace{-0.45em}&
\textcolor{black}{1} &\hspace{-0.45em}& \textcolor{black}{1} &\hspace{-0.45em}& \textcolor{black}{1} &\hspace{-0.45em}&
\textcolor{lightgray}{0} \\
\textcolor{lightgray}{0} &\hspace{-0.45em}& \textcolor{lightgray}{0} &\hspace{-0.45em}& \textcolor{black}{1} &\hspace{-0.45em}& \textcolor{black}{1} &\hspace{-0.45em}& \textcolor{black}{1} &\hspace{-0.45em}& \textcolor{lightgray}{0} &\hspace{-0.45em}& \textcolor{lightgray}{0} \\
\textcolor{lightgray}{0} &\hspace{-0.45em}& \textcolor{lightgray}{0} &\hspace{-0.45em}& \textcolor{lightgray}{0} &\hspace{-0.45em}& \textcolor{black}{1} &\hspace{-0.45em}& \textcolor{lightgray}{0} &\hspace{-0.45em}& \textcolor{lightgray}{0} &\hspace{-0.45em}& \textcolor{lightgray}{0} \\
\textcolor{lightgray}{0} &\hspace{-0.45em}& \textcolor{lightgray}{0} &\hspace{-0.45em}& \textcolor{lightgray}{0} &\hspace{-0.45em}& \textcolor{lightgray}{0} &\hspace{-0.45em}& \textcolor{lightgray}{0} &\hspace{-0.45em}& \textcolor{lightgray}{0} &\hspace{-0.45em}& \textcolor{lightgray}{0} \\
\end{bmatrix}$};

% second approx sign
\node [anchor=center] at (9.5, 0) {{\Huge $\approx$ }};


% discretized matrix 2
\node [anchor=center] at (12.75, 0) {
\large
$\begin{bmatrix}
\textcolor{lightgray}{0} & \textcolor{lightgray}{0} & \textcolor{lightgray}{0} & \textcolor{lightgray}{0} & \textcolor{lightgray}{0} & \textcolor{lightgray}{0} & \textcolor{lightgray}{0} & \textcolor{lightgray}{0} & \textcolor{lightgray}{0} \\
\textcolor{lightgray}{0} & \textcolor{lightgray}{0} & \textcolor{lightgray}{0} & \textcolor{lightgray}{0} & \textcolor{black}{1} & \textcolor{lightgray}{0} & \textcolor{lightgray}{0} & \textcolor{lightgray}{0} & \textcolor{lightgray}{0} \\
\textcolor{lightgray}{0} & \textcolor{lightgray}{0} & \textcolor{lightgray}{0} & \textcolor{black}{1} & \textcolor{black}{1} & \textcolor{black}{1} & \textcolor{lightgray}{0} & \textcolor{lightgray}{0} & \textcolor{lightgray}{0} \\
\textcolor{lightgray}{0} & \textcolor{lightgray}{0} & \textcolor{black}{1} & \textcolor{black}{1} & \textcolor{black}{1} & \textcolor{black}{1} & \textcolor{black}{1} & \textcolor{lightgray}{0} & \textcolor{lightgray}{0} \\
\textcolor{lightgray}{0} & \textcolor{black}{1} & \textcolor{black}{1} & \textcolor{black}{1} & \textcolor{black}{1} & \textcolor{black}{1} & \textcolor{black}{1} & \textcolor{black}{1} & \textcolor{lightgray}{0} \\
\textcolor{lightgray}{0} & \textcolor{lightgray}{0} & \textcolor{black}{1} & \textcolor{black}{1} & \textcolor{black}{1} & \textcolor{black}{1} & \textcolor{black}{1} & \textcolor{lightgray}{0} & \textcolor{lightgray}{0} \\
\textcolor{lightgray}{0} & \textcolor{lightgray}{0} &
\textcolor{lightgray}{0} & \textcolor{black}{1} & \textcolor{black}{1} &
\textcolor{black}{1} & \textcolor{lightgray}{0} & \textcolor{lightgray}{0} & \textcolor{lightgray}{0} \\
\textcolor{lightgray}{0} & \textcolor{lightgray}{0} &
\textcolor{lightgray}{0} & \textcolor{lightgray}{0} & \textcolor{black}{1} &
\textcolor{lightgray}{0} & \textcolor{lightgray}{0} & \textcolor{lightgray}{0} & \textcolor{lightgray}{0} \\
\textcolor{lightgray}{0} & \textcolor{lightgray}{0} &
\textcolor{lightgray}{0} & \textcolor{lightgray}{0} &
\textcolor{lightgray}{0} & \textcolor{lightgray}{0} & \textcolor{lightgray}{0} & \textcolor{lightgray}{0} & \textcolor{lightgray}{0} \\
\end{bmatrix}$};
% \node [anchor=center] at (6, 0) {$abcd$};


\end{tikzpicture}

\end{document}
151 changes: 151 additions & 0 deletions assets/tikz/square.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
\documentclass[border=0in]{standalone}

\usepackage[T1]{fontenc}
\usepackage{opensans}
\usepackage{bm}
\usepackage{mathrsfs}

\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{xcolor}
\usepackage{newtxsf}

\usepgfplotslibrary{fillbetween}

\definecolor{c0}{HTML}{f0f9e8}
\definecolor{c1}{HTML}{bae4bc}
\definecolor{c2}{HTML}{7bccc4}
\definecolor{c3}{HTML}{43a2ca}
\definecolor{c4}{HTML}{0868ac}
\definecolor{lightgray}{HTML}{d3d3d3}
\newcommand{\grtr}{\natural}


\begin{document}

\begin{tikzpicture}

% bounding box
\draw[black, fill=white, line width=1pt] (-2.2,-2.2) rectangle (2.2,2.2); % Adjust the dimensions as needed

% Black Square
\fill[black] (-1.2,-1.2) rectangle (1.2,1.2); % Adjust the coordinates to position the square

% first approx sign
\node [anchor=center] at (2.97, 0) {{\Huge $\approx$ }};


% discretized matrix
\node [anchor=center] at (6.25, 0) {{\huge $\begin{bmatrix}
{\color{lightgray} 0} && {\color{lightgray} 0} && {\color{lightgray}
0} && {\color{lightgray} 0} && {\color{lightgray} 0} \\
{\color{lightgray} 0} && 1 && 1 && 1 && {\color{lightgray} 0} \\
{\color{lightgray} 0} && 1 && 1 && 1 && {\color{lightgray} 0} \\
{\color{lightgray} 0} && 1 && 1 && 1 && {\color{lightgray} 0} \\
{\color{lightgray} 0} && {\color{lightgray} 0} && {\color{lightgray}
0} && {\color{lightgray} 0} && {\color{lightgray} 0}
\end{bmatrix}$}};


% second approx sign
\node [anchor=center] at (9.5, 0) {{\Huge $\approx$ }};


% discretized matrix 2
\node [anchor=center] at (12.75, 0) { $\begin{bmatrix}
\begin{matrix}
\color{lightgray} 0 & \color{lightgray} 0 \\
\color{lightgray} 0 & \color{lightgray} 0 \\
\end{matrix} & \begin{matrix}
\color{lightgray} 0 & \color{lightgray} 0 \\
\color{lightgray} 0 & \color{lightgray} 0 \\
\end{matrix} & \begin{matrix}
\color{lightgray} 0 & \color{lightgray} 0 \\
\color{lightgray} 0 & \color{lightgray} 0 \\
\end{matrix} & \begin{matrix}
\color{lightgray} 0 & \color{lightgray} 0 \\
\color{lightgray} 0 & \color{lightgray} 0 \\
\end{matrix} & \begin{matrix}
\color{lightgray} 0 & \color{lightgray} 0 \\
\color{lightgray} 0 & \color{lightgray} 0 \\
\end{matrix} \\
\begin{matrix}
\color{lightgray} 0 & \color{lightgray} 0 \\
\color{lightgray} 0 & \color{lightgray} 0 \\
\end{matrix} & \begin{matrix}
1 & 1 \\
1 & 1 \\
\end{matrix} & \begin{matrix}
1 & 1 \\
1 & 1 \\
\end{matrix} & \begin{matrix}
1 & 1 \\
1 & 1 \\
\end{matrix} & \begin{matrix}
\color{lightgray} 0 & \color{lightgray} 0 \\
\color{lightgray} 0 & \color{lightgray} 0 \\
\end{matrix} \\
\begin{matrix}
\color{lightgray} 0 & \color{lightgray} 0 \\
\color{lightgray} 0 & \color{lightgray} 0 \\
\end{matrix} & \begin{matrix}
1 & 1 \\
1 & 1 \\
\end{matrix} & \begin{matrix}
1 & 1 \\
1 & 1 \\
\end{matrix} & \begin{matrix}
1 & 1 \\
1 & 1 \\
\end{matrix} & \begin{matrix}
\color{lightgray} 0 & \color{lightgray} 0 \\
\color{lightgray} 0 & \color{lightgray} 0 \\
\end{matrix} \\
\begin{matrix}
\color{lightgray} 0 & \color{lightgray} 0 \\
\color{lightgray} 0 & \color{lightgray} 0 \\
\end{matrix} & \begin{matrix}
1 & 1 \\
1 & 1 \\
\end{matrix} & \begin{matrix}
1 & 1 \\
1 & 1 \\
\end{matrix} & \begin{matrix}
1 & 1 \\
1 & 1 \\
\end{matrix} & \begin{matrix}
\color{lightgray} 0 & \color{lightgray} 0 \\
\color{lightgray} 0 & \color{lightgray} 0 \\
\end{matrix} \\
\begin{matrix}
\color{lightgray} 0 & \color{lightgray} 0 \\
\color{lightgray} 0 & \color{lightgray} 0 \\
\end{matrix} & \begin{matrix}
\color{lightgray} 0 & \color{lightgray} 0 \\
\color{lightgray} 0 & \color{lightgray} 0 \\
\end{matrix} & \begin{matrix}
\color{lightgray} 0 & \color{lightgray} 0 \\
\color{lightgray} 0 & \color{lightgray} 0 \\
\end{matrix} & \begin{matrix}
\color{lightgray} 0 & \color{lightgray} 0 \\
\color{lightgray} 0 & \color{lightgray} 0 \\
\end{matrix} & \begin{matrix}
\color{lightgray} 0 & \color{lightgray} 0 \\
\color{lightgray} 0 & \color{lightgray} 0 \\
\end{matrix}
\end{bmatrix}$};

% \node [anchor=center] at (6, 0) {$abcd$};


\end{tikzpicture}

\end{document}
Binary file added assets/tilted_gianini_pca.jpg
Binary file added assets/tilted_gianini_pca.png
Binary file added assets/tilted_giannini_norm.jpg
Binary file added assets/tilted_giannini_norm.png
Binary file added assets/tilted_giannini_pca.jpg
Binary file added assets/tilted_giannini_pca.png
Binary file added assets/tilted_giannini_rgb.jpg
Binary file added assets/tilted_giannini_rgb.png
Binary file added assets/tilted_kitchen_norm.jpg
Binary file added assets/tilted_kitchen_norm.png
Binary file added assets/tilted_kitchen_pca.jpg
Binary file added assets/tilted_kitchen_pca.png
Binary file added assets/tilted_kitchen_rgb.jpg
Binary file added assets/tilted_kitchen_rgb.png
Binary file added assets/tilted_storefront.jpg
Binary file added assets/tilted_storefront.png
Binary file added assets/tilted_storefront_norm.jpg
Binary file added assets/tilted_storefront_norm.png
Binary file added assets/tilted_storefront_pca.jpg
Binary file added assets/tilted_storefront_pca.png
Binary file added assets/tilted_storefront_rgb.jpg
Binary file added assets/tilted_storefront_rgb.png
Binary file added assets/tilted_stump_norm.jpg
Binary file added assets/tilted_stump_norm.png
Binary file added assets/tilted_stump_pca.jpg
Binary file added assets/tilted_stump_pca.png
Binary file added assets/tilted_stump_rgb.jpg
Binary file added assets/tilted_stump_rgb.png
Loading

0 comments on commit ec77d7d

Please sign in to comment.