Commit beedf9a5 authored by Richard Torenvliet's avatar Richard Torenvliet

Moved tests and made them work again, added sphinx documentation and...

Moved tests and made them work again, added sphinx documentation and added/updated documentation, #4, #5
parent 2e70ee46
......@@ -17,21 +17,16 @@ data/pca_shape_model.npy:
python src/main.py \
--save_pca_shape \
--files `./scripts/imm_train_set.sh` \
--model_shape_file data/pca_shape_model
--model_shape_file data/pca_shape_model \
--shape_type imm
data/pca_texture_model.npy:
python src/main.py \
--save_pca_texture \
--files `./scripts/imm_train_set.sh` \
--model_texture_file data/pca_texture_model \
--model_shape_file data/pca_shape_model.npy
show_pca:
python src/main.py \
--show_pca \
--model_texture_file data/pca_texture_model.npy \
--model_shape_file data/pca_shape_model.npy
--model_shape_file data/pca_shape_model.npy \
--shape_type imm
test_model:
python src/main.py \
......@@ -47,6 +42,7 @@ show_reconstruction:
--files data/imm_face_db/*.asf \
--model_texture_file data/pca_texture_model.npy \
--model_shape_file data/pca_shape_model.npy \
--shape_type imm \
--n_components 6
profile_reconstruction:
......@@ -55,6 +51,7 @@ profile_reconstruction:
--files data/imm_face_db/*.asf \
--model_texture_file data/pca_texture_model.npy \
--model_shape_file data/pca_shape_model.npy \
--shape_type imm \
--n_components 6
graph_reconstruction:
......@@ -63,6 +60,7 @@ graph_reconstruction:
--files data/imm_face_db/*.asf \
--model_texture_file data/pca_texture_model.npy \
--model_shape_file data/pca_shape_model.npy \
--shape_type imm \
--n_components 6
show_kivy:
......@@ -74,10 +72,7 @@ show_kivy:
--n_components 6
test:
python -m py.test -f src/*_test.py
test_modules:
python -m py.test -f src/*/*_test.py
python -m py.test -f src/test/*_test.py
server:
(cd src/; python -m tornado.autoreload server.py)
......
{
"metadata": {
"name": "",
"signature": "sha256:5555a1bfabe8a1649a14d2623b12e662713734bd51ade79d5fadb9e9c2769528"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "code",
"collapsed": false,
"input": [
"import numpy as np\n",
"import matplotlib.pyplot as plt"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 14
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"x = np.array([8, 2, 11, 6, 5, 4, 12, 9, 6, 1])"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 19
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"xzm = x - x.mean()"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 20
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"y = np.array([3, 10, 3, 6, 8, 12, 1, 4, 9, 14])"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 21
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"yzm = y - y.mean()"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 22
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"xzm"
],
"language": "python",
"metadata": {},
"outputs": [
{
"metadata": {},
"output_type": "pyout",
"prompt_number": 8,
"text": [
"array([ 1.6, -4.4, 4.6, -0.4, -1.4, -2.4, 5.6, 2.6, -0.4, -5.4])"
]
}
],
"prompt_number": 8
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"yzm"
],
"language": "python",
"metadata": {},
"outputs": [
{
"metadata": {},
"output_type": "pyout",
"prompt_number": 9,
"text": [
"array([-4., 3., -4., -1., 1., 5., -6., -3., 2., 7.])"
]
}
],
"prompt_number": 9
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"covXY = np.dot(xzm, yzm.T)\n",
"print covXY"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"-131.0\n"
]
}
],
"prompt_number": 10
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"covXX = np.dot(xzm, xzm.T)\n",
"print covXX"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"118.4\n"
]
}
],
"prompt_number": 11
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"m = covXY / covXX\n",
"print m"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"-1.10641891892\n"
]
}
],
"prompt_number": 12
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"b = y.mean() - m * x.mean()\n",
"print b"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"14.0810810811\n"
]
}
],
"prompt_number": 13
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"plt.clf()"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 24
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"plt.plot(x, y)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"metadata": {},
"output_type": "pyout",
"prompt_number": 25,
"text": [
"[<matplotlib.lines.Line2D at 0x10fb1de50>]"
]
}
],
"prompt_number": 25
},
{
"cell_type": "code",
"collapsed": false,
"input": [],
"language": "python",
"metadata": {},
"outputs": []
}
],
"metadata": {}
}
]
}
\ No newline at end of file
{
"metadata": {
"name": "",
"signature": "sha256:4d1638c5bd5d0bb970509b7736b284687ebe625a76ca590a65d730ddd8f0b58d"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "code",
"collapsed": false,
"input": [
"import numpy as np"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 1
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"U = np.array([[1,2,3]])"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 2
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"s = np.array([4,5,6])"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 3
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"Vt = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 5
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"S = np.diag(s)"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 6
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"Us = np.dot(U, S)"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 10
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"print Us"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"[[ 4 10 18]]\n"
]
}
],
"prompt_number": 11
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"np.dot(Us, Vt)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"metadata": {},
"output_type": "pyout",
"prompt_number": 12,
"text": [
"array([[170, 202, 234]])"
]
}
],
"prompt_number": 12
},
{
"cell_type": "code",
"collapsed": false,
"input": [],
"language": "python",
"metadata": {},
"outputs": []
}
],
"metadata": {}
}
]
}
\ No newline at end of file
{
"metadata": {
"name": "",
"signature": "sha256:d27d22a739b636b950ada4fb7cf213caec94cb5a1741efc7de5ff6ede09615ca"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": []
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import numpy as np\n",
"import matplotlib.pyplot as plt"
],
"language": "python",
"metadata": {},
"outputs": []
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"x = np.array([8, 2, 11, 6, 5, 4, 12, 9, 6, 1])"
],
"language": "python",
"metadata": {},
"outputs": []
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"xzm = x - x.mean()"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 3
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"y = np.array([3, 10, 3, 6, 8, 12, 1, 4, 9, 14])"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 4
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"yzm = y - y.mean()"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 5
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"xzm"
],
"language": "python",
"metadata": {},
"outputs": [
{
"metadata": {},
"output_type": "pyout",
"prompt_number": 12,
"text": [
"array([ 1.6, -4.4, 4.6, -0.4, -1.4, -2.4, 5.6, 2.6, -0.4, -5.4])"
]
}
],
"prompt_number": 12
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"yzm"
],
"language": "python",
"metadata": {},
"outputs": [
{
"metadata": {},
"output_type": "pyout",
"prompt_number": 13,
"text": [
"array([-4., 3., -4., -1., 1., 5., -6., -3., 2., 7.])"
]
}
],
"prompt_number": 13
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"covXY = np.dot(xzm, yzm.T)\n",
"print covXY"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"-131.0\n"
]
}
],
"prompt_number": 14
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"covXX = np.dot(xzm, xzm.T)\n",
"print covXX"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"118.4\n"
]
}
],
"prompt_number": 15
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"m = covXY / covXX\n",
"print m"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"-1.10641891892\n"
]
}
],
"prompt_number": 16
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"b = y.mean() - m * x.mean()\n",
"print b"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"14.0810810811\n"
]
}
],
"prompt_number": 82
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"plt.clf()\n",
"plt.grid()"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 97
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"plt.scatter(x, y)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"metadata": {},
"output_type": "pyout",
"prompt_number": 104,
"text": [
"<matplotlib.collections.PathCollection at 0x1106a3710>"
]
}
],
"prompt_number": 104
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"range_x = np.arange(0, 14, 0.5)\n",
"print range_x"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"[ 0. 0.5 1. 1.5 2. 2.5 3. 3.5 4. 4.5 5. 5.5\n",
" 6. 6.5 7. 7.5 8. 8.5 9. 9.5 10. 10.5 11. 11.5\n",
" 12. 12.5 13. 13.5]\n"
]
}
],
"prompt_number": 105
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"y_lstq = [m * i + b for i in x]\n",
"print y_lstq"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"[5.2297297297297298, 11.868243243243242, 1.9104729729729737, 7.4425675675675675, 8.548986486486486, 9.6554054054054053, 0.80405405405405439, 4.1233108108108105, 7.4425675675675675, 12.974662162162161]\n"
]
}
],
"prompt_number": 106
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"plt.plot(x, y_lstq)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"metadata": {},
"output_type": "pyout",
"prompt_number": 107,
"text": [
"[<matplotlib.lines.Line2D at 0x1106ae150>]"
]
}
],
"prompt_number": 107
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"plt.scatter(x.mean(), y.mean(), marker='s', color='b')"
],
"language": "python",
"metadata": {},
"outputs": [
{
"metadata": {},
"output_type": "pyout",
"prompt_number": 108,
"text": [
"<matplotlib.collections.PathCollection at 0x110659390>"
]
}
],
"prompt_number": 108
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"plt.scatter(xzm, yzm, color='r')"
],
"language": "python",
"metadata": {},
"outputs": [
{
"metadata": {},
"output_type": "pyout",
"prompt_number": 110,
"text": [
"<matplotlib.collections.PathCollection at 0x110b91650>"
]
}
],
"prompt_number": 110
},
{
"cell_type": "code",
"collapsed": false,
"input": [],
"language": "python",
"metadata": {},
"outputs": []
}
],
"metadata": {}
}
]
}
\ No newline at end of file
{
"metadata": {
"name": "",
"signature": "sha256:af47a85b07d8fc08044dd1a67d590e6a134aa886a474ba8bb3a5e92356912e01"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "code",
"collapsed": false,
"input": [
"import numpy as np"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 1
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"U = np.array([1,2,3])"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 20
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"print U"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"[1 2 3]\n"
]
}
],
"prompt_number": 21
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"s = np.array([4,5,6])"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 22
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"Vt = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 23
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"S = np.diag(s)"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 24
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"Us = np.dot(U, S)"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 25
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"print Us"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"[ 4 10 18]\n"
]
}
],
"prompt_number": 26
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"np.dot(Us, Vt)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"metadata": {},
"output_type": "pyout",
"prompt_number": 27,
"text": [
"array([170, 202, 234])"
]
}
],
"prompt_number": 27
},
{
"cell_type": "code",
"collapsed": false,
"input": [],
"language": "python",
"metadata": {},
"outputs": []
}
],
"metadata": {}
}
]
}
\ No newline at end of file
"""
.. module:: active_appearance_model
:platform: Unix, Windows
:synopsis: Contains the aam data format abstraction layer
"""
import logging
import numpy as np
from matplotlib.tri import Triangulation
......@@ -55,11 +62,13 @@ class AAMPoints():
"""
Scale the normalized flattened points list to a scale given by 'shape'.
The x and y values should be scaled to the width and height of the image.
Args:
shape(tuple): (height, width)
rescal(boolean): flag if we should rescale or not because if we
rescale(boolean): flag if we should rescale or not because if we
already scaled, we are not going to do it again by
default.
Returns:
ndarray scaled to 'shape' width and height.
"""
......@@ -106,14 +115,16 @@ class AAMPoints():
#return cv2.boundingRect()
def get_mean(vector):
""" construct a mean from a matrix of x,y values
"""
Construct a mean from a matrix of x,y values
Args:
points(numpy array) that follows the following structure:
Returns:
mean_values (numpy array)
Examples:
Example:
Input observations:
0. [[x_0_0, y_0_0], ... , [x_0_m, y_0_m]],
1. [[x_1_0, y_1_0], ... , [x_1_m, y_1_m]],
......@@ -140,7 +151,13 @@ def get_mean(vector):
def get_triangles(x_vector, y_vector):
""" perform triangulation between two 2d vectors"""
"""
Perform triangulation between two 2d vectors
Args:
x_vector(ndarray): list of x locations
y_vector(ndarray): list of y locations
"""
return Triangulation(x_vector, y_vector).triangles
......@@ -151,9 +168,11 @@ def build_shape_feature_vectors(files, get_points, flattened=False):
Args:
files (list): list files
get_points(function): function that gets the points/landmarks given
a list of files.
return:
list: list of feature vectors
Returns:
list. List of feature vectors
"""
points = get_points(files)
......@@ -166,10 +185,14 @@ def build_shape_feature_vectors(files, get_points, flattened=False):
def sample_from_triangles(src, points2d_src, points2d_dst, triangles, dst):
"""
Get pixels from within the triangles [[p1, p2, p3]_0, .. [p1, p2, p3]_n].
Args:
src(ndarray, dtype=uint8): input image
points2d_src(ndarray, dtype=np.int32): shape array [[x, y], ... [x, y]]
points2d_dst(ndarray, dtype=np.int32): shape array [[x, y], ... [x, y]]
triangles(ndarray, ndim=3, dtype=np.int32): shape array [[p1, p2, p3]_0, .. [p1, p2, p3]_n].
"""
......@@ -233,7 +256,7 @@ def build_texture_feature_vectors(files, get_image_with_points, mean_points, tri
def get_pixel_values(image, points):
""" docstring """
""" deprecated """
h, w, c = image.shape
points[:, 0] = points[:, 0] * w
......
"""
.. module:: datasets
:platform: Unix, Windows
:synopsis: Contains imm dataset abstraction layer
"""
from matplotlib.tri import Triangulation
import cv2
......@@ -30,12 +38,46 @@ class IMMPoints(aam.AAMPoints):
)
def get_points(self):
"""
Get the flattened list of points
Returns:
ndarray. flattened array of points, see AAMPoints for more
information.
"""
return self.normalized_flattened_points_list
def __get_image(self):
"""
Get the image corresponding to the self.image_file
Returns:
ndarray image
"""
assert hasattr(self, 'image_file'), 'image_file name should be set, \
import file must be invoked first'
self.image = cv2.imread(self.image_file)
def get_image(self):
return cv2.imread(self.image_file)
"""
Get the image corresponding to the filename
If filename == image_1.asf, then we read image_1.jpg from disk
and return this to the user.
Returns:
ndarray image
"""
return self.image
def import_file(self, filename):
"""
Import an .asf filename. Load the points into a list of points and
store the relative path to image file.
Returns:
ndarray(float). Numpy array of landmark locations as stated in the
.asf files.
"""
points_list = []
with open(filename, 'r') as f:
......@@ -43,6 +85,7 @@ class IMMPoints(aam.AAMPoints):
data = lines[16:74]
dir_name = os.path.dirname(filename)
self.image_file = "{}/{}".format(dir_name, lines[-1].strip())
self.__get_image()
for d in data:
points_list.append(d.split()[2:4])
......@@ -85,6 +128,16 @@ class IMMPoints(aam.AAMPoints):
def get_imm_points(files):
"""
This function does something.
Args:
files (array): Array of .asf full or relative path to .asf files.
Returns:
ndarray. Array of landmarks.
"""
points = []
for f in files:
......@@ -95,6 +148,15 @@ def get_imm_points(files):
def get_imm_image_with_landmarks(filename):
"""
Get Points with image and landmarks/points
Args:
filename(fullpath): .asf file
Returns:
image, points
"""
imm = IMMPoints(filename=filename)
return imm.get_image(), imm.get_points()
......
# Makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = build
# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
# the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
.PHONY: help
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " html to make standalone HTML files"
@echo " dirhtml to make HTML files named index.html in directories"
@echo " singlehtml to make a single large HTML file"
@echo " pickle to make pickle files"
@echo " json to make JSON files"
@echo " htmlhelp to make HTML files and a HTML help project"
@echo " qthelp to make HTML files and a qthelp project"
@echo " applehelp to make an Apple Help Book"
@echo " devhelp to make HTML files and a Devhelp project"
@echo " epub to make an epub"
@echo " epub3 to make an epub3"
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
@echo " latexpdf to make LaTeX files and run them through pdflatex"
@echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx"
@echo " text to make text files"
@echo " man to make manual pages"
@echo " texinfo to make Texinfo files"
@echo " info to make Texinfo files and run them through makeinfo"
@echo " gettext to make PO message catalogs"
@echo " changes to make an overview of all changed/added/deprecated items"
@echo " xml to make Docutils-native XML files"
@echo " pseudoxml to make pseudoxml-XML files for display purposes"
@echo " linkcheck to check all external links for integrity"
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
@echo " coverage to run coverage check of the documentation (if enabled)"
@echo " dummy to check syntax errors of document sources"
.PHONY: clean
clean:
rm -rf $(BUILDDIR)/*
.PHONY: html
html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
.PHONY: dirhtml
dirhtml:
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
.PHONY: singlehtml
singlehtml:
$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
@echo
@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
.PHONY: pickle
pickle:
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
@echo
@echo "Build finished; now you can process the pickle files."
.PHONY: json
json:
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
@echo
@echo "Build finished; now you can process the JSON files."
.PHONY: htmlhelp
htmlhelp:
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
@echo
@echo "Build finished; now you can run HTML Help Workshop with the" \
".hhp project file in $(BUILDDIR)/htmlhelp."
.PHONY: qthelp
qthelp:
$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
@echo
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/3DFaceReconstruction.qhcp"
@echo "To view the help file:"
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/3DFaceReconstruction.qhc"
.PHONY: applehelp
applehelp:
$(SPHINXBUILD) -b applehelp $(ALLSPHINXOPTS) $(BUILDDIR)/applehelp
@echo
@echo "Build finished. The help book is in $(BUILDDIR)/applehelp."
@echo "N.B. You won't be able to view it unless you put it in" \
"~/Library/Documentation/Help or install it in your application" \
"bundle."
.PHONY: devhelp
devhelp:
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
@echo
@echo "Build finished."
@echo "To view the help file:"
@echo "# mkdir -p $$HOME/.local/share/devhelp/3DFaceReconstruction"
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/3DFaceReconstruction"
@echo "# devhelp"
.PHONY: epub
epub:
$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
@echo
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
.PHONY: epub3
epub3:
$(SPHINXBUILD) -b epub3 $(ALLSPHINXOPTS) $(BUILDDIR)/epub3
@echo
@echo "Build finished. The epub3 file is in $(BUILDDIR)/epub3."
.PHONY: latex
latex:
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
@echo
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
@echo "Run \`make' in that directory to run these through (pdf)latex" \
"(use \`make latexpdf' here to do that automatically)."
.PHONY: latexpdf
latexpdf:
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
@echo "Running LaTeX files through pdflatex..."
$(MAKE) -C $(BUILDDIR)/latex all-pdf
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
.PHONY: latexpdfja
latexpdfja:
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
@echo "Running LaTeX files through platex and dvipdfmx..."
$(MAKE) -C $(BUILDDIR)/latex all-pdf-ja
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
.PHONY: text
text:
$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
@echo
@echo "Build finished. The text files are in $(BUILDDIR)/text."
.PHONY: man
man:
$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
@echo
@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
.PHONY: texinfo
texinfo:
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
@echo
@echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
@echo "Run \`make' in that directory to run these through makeinfo" \
"(use \`make info' here to do that automatically)."
.PHONY: info
info:
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
@echo "Running Texinfo files through makeinfo..."
make -C $(BUILDDIR)/texinfo info
@echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
.PHONY: gettext
gettext:
$(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
@echo
@echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
.PHONY: changes
changes:
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
@echo
@echo "The overview file is in $(BUILDDIR)/changes."
.PHONY: linkcheck
linkcheck:
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
@echo
@echo "Link check complete; look for any errors in the above output " \
"or in $(BUILDDIR)/linkcheck/output.txt."
.PHONY: doctest
doctest:
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
@echo "Testing of doctests in the sources finished, look at the " \
"results in $(BUILDDIR)/doctest/output.txt."
.PHONY: coverage
coverage:
$(SPHINXBUILD) -b coverage $(ALLSPHINXOPTS) $(BUILDDIR)/coverage
@echo "Testing of coverage in the sources finished, look at the " \
"results in $(BUILDDIR)/coverage/python.txt."
.PHONY: xml
xml:
$(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml
@echo
@echo "Build finished. The XML files are in $(BUILDDIR)/xml."
.PHONY: pseudoxml
pseudoxml:
$(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
@echo
@echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."
.PHONY: dummy
dummy:
$(SPHINXBUILD) -b dummy $(ALLSPHINXOPTS) $(BUILDDIR)/dummy
@echo
@echo "Build finished. Dummy builder generates no files."
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 5cb3bb1ca45c047aaa96eb2e455b081b
tags: 645f666f9bcd5a90fca523b33c5a78b7
This diff is collapsed.
This diff is collapsed.
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Overview: module code &mdash; 3D Face Reconstruction 0.1 documentation</title>
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
<link rel="top" title="3D Face Reconstruction 0.1 documentation" href="../index.html"/>
<script src="../_static/js/modernizr.min.js"></script>
</head>
<body class="wy-body-for-nav" role="document">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search">
<a href="../index.html" class="icon icon-home"> 3D Face Reconstruction
</a>
<div class="version">
0.1
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
<p class="caption"><span class="caption-text">Table of Contents</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../datasets.html">Datasets</a></li>
<li class="toctree-l1"><a class="reference internal" href="../aam.html">AAM Module</a></li>
<li class="toctree-l1"><a class="reference internal" href="../pca.html">PCA Module</a></li>
<li class="toctree-l1"><a class="reference internal" href="../reconstruction/reconstruction.html">Reconstruction Module</a></li>
<li class="toctree-l1"><a class="reference internal" href="../reconstruction/texture.html">Texture Module</a></li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../index.html">3D Face Reconstruction</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href="../index.html">Docs</a> &raquo;</li>
<li>Overview: module code</li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">
<h1>All modules for which code is available</h1>
<ul><li><a href="aam.html">aam</a></li>
<li><a href="datasets/imm.html">datasets.imm</a></li>
<li><a href="main.html">main</a></li>
<li><a href="pca.html">pca</a></li>
<li><a href="reconstruction/reconstruction.html">reconstruction.reconstruction</a></li>
<li><a href="reconstruction/texture.html">reconstruction.texture</a></li>
</ul>
</div>
</div>
<footer>
<hr/>
<div role="contentinfo">
<p>
&copy; Copyright 2016, Richard Torenvliet.
</p>
</div>
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'../',
VERSION:'0.1',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="../_static/jquery.js"></script>
<script type="text/javascript" src="../_static/underscore.js"></script>
<script type="text/javascript" src="../_static/doctools.js"></script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script type="text/javascript" src="../_static/js/theme.js"></script>
<script type="text/javascript">
jQuery(function () {
SphinxRtdTheme.StickyNav.enable();
});
</script>
</body>
</html>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
AAM Module
==========
.. automodule:: aam
:members:
Datasets
========
.. automodule:: datasets.imm
:members:
.. 3D Face Reconstruction documentation master file, created by
sphinx-quickstart on Mon Aug 1 16:41:23 2016.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to 3D Face Reconstruction's documentation!
==================================================
.. toctree::
:maxdepth: 2
:caption: Table of Contents
:name: mastertoc
datasets
aam
pca
reconstruction/reconstruction
reconstruction/texture
!!!Work in progress!!!
======================
PCA reconstruction
==================
Principle Component Analysis is one of the most used methods in the field of statistics, it is used for dimension reduction of data and is capable of removing outliers which ultimately improves learning algorithms. In this case we use PCA for both shape and texture reconstruction. Given an image of person's face we would be able to reconstruct it using a PCA Model. The motivation for using PCA is that we can fill in missing data and remove outliers given one image of person. If for some reason the image is very cluttered, we would still be able to 'predict' how this person would look like, given all the faces we have used to train the PCA Model.
For the PCA reconstruction method has a couple of prerequisites are required. First off, the PCA Model itself. For those who are familiar with PCA know that we need to have a flattened feature vector. Both the dimensions and the content of this feature vector may be arbitrary, but have to be exactly the same from subject to subject, (i.e., there can be no difference in the number of annotated landmarks or order, landmark 1 in subject A, is landmark 1 in subject B). In this case we use it for the shape and texture. The shape feature vector contains the following data:
```
[[x_1, y_1], [x_2, y_2], ..., [x_n, y_n]] -> (flattened) [x_1, y_1, x_2, y_2, x_n, y_n]
```
The x,y values are the location of landmarks in an image. Such a cluster of annotated locations in an image construct a shape we call Active Appearance Model(AAM)[1]. For a serie of annotated pictures with landmark location we can build mean AAM. For this particular implementation we started with supporting the Imm Dataset[^imm_dataset], for the simple reason that it is open for usage without any license agreement before hand (make sure we are correct about this). This is what we call the mean face, which is very important for the construction of the PCA Model, any PCA Model for that matter.
The texture PCA data is somewhat more difficult and depends on a given shape. In our case this given shape is the mean AAM that we have built previously. We need to add extra information to this AAM mean shape, namely a unique set of triangles that can be constructed from the set of landmarks. For this we use the Delaunay algorithm which does exactly this. The triangles help us find corresponding pixels in shape A and B. This solves the problem of pixel correspondences and is important for constructing a mean texture for the reasons explained previously about how a feature vector should look like. Pixel 1 in triangle 1 in subject A needs to correspond to exactly the same pixel (relatively) to pixel 1 in triangle 1 in subject B. This of course is sensitive to noise, but the pixels in the nose region must correspond from subject to subject, this prevents that we reconstruct an eye with a nose for instance (Note: remove this last sentence in a serious text).
References
==========
[1]: Cootes, T. F., Edwards, G. J., & Taylor, C. J. (1998, June). Active appearance models. In European conference on computer vision (pp. 484-498). Springer Berlin Heidelberg.
Links
=====
[^imm_dataset]: http://www.imm.dtu.dk/~aam/datasets/datasets.html "Imm dataset"
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
PCA Module
==========
.. automodule:: pca
:members:
Reconstruction Module
=====================
As explained in [PCA Reconstruction](home) we need a flattened feature vector to able to build a PCA Model. This holds for both shape and texture model. Currently we implement the independent AAM model where we keep the feature vector separate. Note that we could also choose to combine the shape and appearance in a single flattened feature vector (TODO: elaborate our choice more about this, if possible).
We use the imm dataset[^imm_dataset] for this. We first need to build the mean shape of the all the images. The dataset has a .asf file and an equally named .jpg file. The .asf file contains the locations of the landmars (normalized by the width and height of the image). In `src/imm_points.py` we find the ImmPoints class that implements all functions needed to read this file.
[^imm_dataset]: http://www.imm.dtu.dk/~aam/datasets/datasets.html "Imm dataset"
.. automodule:: reconstruction.reconstruction
:members:
Texture Module
==============
.. automodule:: reconstruction.texture
:members:
This diff is collapsed.
This diff is collapsed.
.fa:before{-webkit-font-smoothing:antialiased}.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;content:""}.clearfix:after{clear:both}@font-face{font-family:FontAwesome;font-weight:normal;font-style:normal;src:url("../font/fontawesome_webfont.eot");src:url("../font/fontawesome_webfont.eot?#iefix") format("embedded-opentype"),url("../font/fontawesome_webfont.woff") format("woff"),url("../font/fontawesome_webfont.ttf") format("truetype"),url("../font/fontawesome_webfont.svg#FontAwesome") format("svg")}.fa:before{display:inline-block;font-family:FontAwesome;font-style:normal;font-weight:normal;line-height:1;text-decoration:inherit}a .fa{display:inline-block;text-decoration:inherit}li .fa{display:inline-block}li .fa-large:before,li .fa-large:before{width:1.875em}ul.fas{list-style-type:none;margin-left:2em;text-indent:-0.8em}ul.fas li .fa{width:0.8em}ul.fas li .fa-large:before,ul.fas li .fa-large:before{vertical-align:baseline}.fa-book:before{content:""}.icon-book:before{content:""}.fa-caret-down:before{content:""}.icon-caret-down:before{content:""}.fa-caret-up:before{content:""}.icon-caret-up:before{content:""}.fa-caret-left:before{content:""}.icon-caret-left:before{content:""}.fa-caret-right:before{content:""}.icon-caret-right:before{content:""}.rst-versions{position:fixed;bottom:0;left:0;width:300px;color:#fcfcfc;background:#1f1d1d;border-top:solid 10px #343131;font-family:"Lato","proxima-nova","Helvetica Neue",Arial,sans-serif;z-index:400}.rst-versions a{color:#2980B9;text-decoration:none}.rst-versions .rst-badge-small{display:none}.rst-versions .rst-current-version{padding:12px;background-color:#272525;display:block;text-align:right;font-size:90%;cursor:pointer;color:#27AE60;*zoom:1}.rst-versions .rst-current-version:before,.rst-versions .rst-current-version:after{display:table;content:""}.rst-versions .rst-current-version:after{clear:both}.rst-versions .rst-current-version .fa{color:#fcfcfc}.rst-versions .rst-current-version .fa-book{float:left}.rst-versions .rst-current-version .icon-book{float:left}.rst-versions .rst-current-version.rst-out-of-date{background-color:#E74C3C;color:#fff}.rst-versions .rst-current-version.rst-active-old-version{background-color:#F1C40F;color:#000}.rst-versions.shift-up .rst-other-versions{display:block}.rst-versions .rst-other-versions{font-size:90%;padding:12px;color:gray;display:none}.rst-versions .rst-other-versions hr{display:block;height:1px;border:0;margin:20px 0;padding:0;border-top:solid 1px #413d3d}.rst-versions .rst-other-versions dd{display:inline-block;margin:0}.rst-versions .rst-other-versions dd a{display:inline-block;padding:6px;color:#fcfcfc}.rst-versions.rst-badge{width:auto;bottom:20px;right:20px;left:auto;border:none;max-width:300px}.rst-versions.rst-badge .icon-book{float:none}.rst-versions.rst-badge .fa-book{float:none}.rst-versions.rst-badge.shift-up .rst-current-version{text-align:right}.rst-versions.rst-badge.shift-up .rst-current-version .fa-book{float:left}.rst-versions.rst-badge.shift-up .rst-current-version .icon-book{float:left}.rst-versions.rst-badge .rst-current-version{width:auto;height:30px;line-height:30px;padding:0 6px;display:block;text-align:center}@media screen and (max-width: 768px){.rst-versions{width:85%;display:none}.rst-versions.shift{display:block}img{width:100%;height:auto}}
/*# sourceMappingURL=badge_only.css.map */
This source diff could not be displayed because it is too large. You can view the blob instead.
/* This file intentionally left blank. */
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Search.setIndex({envversion:49,filenames:["aam","datasets","index","pca","reconstruction/reconstruction","reconstruction/texture"],objects:{"":{aam:[0,0,0,"-"],active_appearance_model:[0,0,0,"-"],datasets:[1,0,0,"-"],pca:[3,0,0,"-"]},"aam.AAMPoints":{calculate_bounding_box:[0,2,1,""],get_bounding_box:[0,2,1,""],get_scaled_points:[0,2,1,""]},"datasets.imm":{IMMPoints:[1,1,1,""],get_imm_image_with_landmarks:[1,3,1,""],get_imm_points:[1,3,1,""]},"datasets.imm.IMMPoints":{get_image:[1,2,1,""],get_points:[1,2,1,""],import_file:[1,2,1,""],show:[1,2,1,""]},"reconstruction.reconstruction":{barycentric2cartesian:[4,3,1,""],cartesian2barycentric:[4,3,1,""],reconstruct_texture:[4,3,1,""]},"reconstruction.texture":{cartesian2barycentric_slow_test:[5,3,1,""],cartesian2barycentric_test:[5,3,1,""],fill_triangle:[5,3,1,""],fill_triangle_src_dst:[5,3,1,""]},aam:{AAMPoints:[0,1,1,""],build_shape_feature_vectors:[0,3,1,""],build_texture_feature_vectors:[0,3,1,""],get_mean:[0,3,1,""],get_pixel_values:[0,3,1,""],get_triangles:[0,3,1,""],sample_from_triangles:[0,3,1,""]},datasets:{imm:[1,0,0,"-"]},pca:{PcaModel:[3,1,1,""],flatten_feature_vectors:[3,3,1,""],load:[3,3,1,""],pca:[3,3,1,""],reconstruct:[3,3,1,""],save:[3,3,1,""]},reconstruction:{reconstruction:[4,0,0,"-"],texture:[5,0,0,"-"]}},objnames:{"0":["py","module","Python module"],"1":["py","class","Python class"],"2":["py","method","Python method"],"3":["py","function","Python function"]},objtypes:{"0":"py:module","1":"py:class","2":"py:method","3":"py:function"},terms:{"boolean":0,"case":2,"class":[0,1,3,4],"default":0,"float":1,"function":[0,1,4],"import":[1,2],"int":3,"return":[0,1,3,4,5],"true":[],"try":[],aampoint:[0,1,4],abl:[2,4],about:[2,4],abov:3,abstraction:3,accept:1,access:3,active:2,actual_shap:0,add:2,add_parser_opt:[],again:0,agreement:2,algorithm:[2,5],all:[2,3,4],alreadi:0,also:4,analysi:2,ani:2,annot:2,appear:[2,4],appearanc:2,append:0,appli:5,arbitrari:2,arg:[0,1,3,4],around:0,arrai:[0,1,3],asf:[1,3,4],assari:3,attributeerror:[],avail:[],barycentr:[4,5],barycentric2cartesian:4,becaus:0,befor:2,berlin:2,between:0,bool:[],both:[2,4],bound:0,box:0,build:[2,4],build_shape_feature_vector:0,build_texture_feature_vector:0,built:2,calcul:0,calculate_bounding_box:0,call:2,can:[0,1,2],capabl:2,cartes:[4,5],cartesian2barycentr:4,cartesian2barycentric_slow_test:5,cartesian2barycentric_test:5,cartesian:4,choic:4,choos:4,cluster:2,clutter:2,code:[],column:0,combin:4,compon:2,comput:2,confer:2,construct:[0,2],contain:[2,4],containt:0,content:2,convexhul:0,coordin:[4,5],coot:2,correct:2,correspond:[0,1,2],could:4,coupl:2,cours:2,current:4,data:[2,3],datafil:3,datapoint:1,dataset:[],debug:[],decid:5,decomposit:3,delaunai:2,depend:2,deprec:0,diagon:3,differ:2,difficult:2,dim:[3,4,5],dimens:[0,2,3],dimension:3,disk:1,docstr:[],doe:[0,1,2],draw_triangl:[],dst:[0,4],dst_imag:4,dst_point:4,dtu:[2,4],dtype:0,edward:2,elabor:4,empasi:0,equal:4,european:2,exactli:2,exampl:[0,3],explain:[2,4],extra:2,fals:0,familiar:2,featur:[0,2,3,4],feature_vector:3,field:2,file:[0,1,3,4],filenam:[1,3],fill:[2,5],fill_triangl:5,fill_triangle_src_dst:5,find:[2,4],first:[0,2,4],flag:0,flatten:[0,1,2,3,4],flatten_feature_vector:3,folder:[],follow:[0,2,3],form:3,from:[0,1,2,3],full:1,fullpath:1,generate_call_graph:[],get:[0,1],get_bounding_box:0,get_imag:1,get_image_with_point:0,get_imm_image_with_landmark:1,get_imm_point:1,get_mean:0,get_pixel_valu:0,get_point:[0,1],get_scaled_point:0,get_triangl:0,given:[0,2,3,4,5],good:[],great:[],hand:2,have:[2,3],heidelberg:2,height:[0,4],help:2,hold:4,home:4,how:2,html:[2,4],http:[2,4],idea:[],imag:[0,1,2,4],image_1:1,imm:[1,2,4],imm_dataset:[2,4],imm_point:4,immpoint:[1,4],implement:[2,4],import_dataset_modul:[],import_fil:1,improv:2,include:[],independ:4,index:2,inform:[1,2],input:[0,3],insid:[3,5],instanc:2,int32:0,itself:2,jpg:[1,4],june:2,keep:[0,4],keyerror:[],know:2,kwarg:[],lambda_1:5,lambda_2:5,lambda_3:5,landmar:4,landmark:[0,1,2],last:2,later:[],learn:2,licens:2,like:[0,2],list:[0,1],load:[1,3],locat:[0,1,2,4],look:2,mai:2,main:[],make:2,matrix:[0,3],matter:2,mean:[0,2,3,4],mean_point:0,mean_valu:[0,3],method:[2,3],might:[],miss:2,model:[2,3,4],model_fil:3,model_file_textur:[],model_shape_fil:[],modul:[],more:[1,2,4],most:2,motiv:2,move:[],multipli:[],must:2,n_compon:3,n_featur:3,name:[2,4],ndarrai:[0,1,3,4,5],ndim:0,need:[0,2,4],nois:2,none:[0,1,3],normal:[0,4],normalized_flattened_points_list:0,nose:2,note:[2,4],number:2,numpi:[0,1,3],object:0,observ:0,off:2,one:3,open:2,opencv:0,option:[],order:2,our:[2,4],out:0,outlier:2,output:3,outsid:5,page:2,particular:2,path:1,pca:[],pcamodel:3,perform:[0,3],person:2,pictur:2,pixel:[0,2],point:[0,1,4,5],points2d_dst:0,points2d_src:0,points_list:[0,1],possibl:4,predict:2,prerequisit:2,prevent:2,previous:2,principl:2,problem:2,python:[],rais:[],read:[1,4],realli:[],reason:2,reconstruct_textur:4,recontruct:4,rectangl:0,reduc:3,reduct:2,region:2,rel:[1,2],remov:2,requir:2,rescal:0,right:[],same:2,sample_from_triangl:0,save:3,save_pca_model_shap:[],save_pca_model_textur:[],scale:0,search:2,see:[1,3],sensit:2,sentenc:2,separ:4,seper:0,seri:2,seriou:2,set:2,shape:[0,2,3,4],shape_typ:[],should:[0,2,3],show:1,show_on_imag:[],shown:1,simpl:2,singl:4,singlar:3,singular:3,small:0,solv:2,some:2,someth:1,somewhat:2,sourc:[0,1,3,4],span:[4,5],springer:2,src:[0,4],src_imag:4,src_point:4,start:2,state:1,statist:2,still:2,store:[0,1,3],str:[],string:[],structur:0,subject:2,success:[],support:[0,2],sure:2,svd:3,taylor:2,text:2,textur:[],texture_model:4,them:0,thi:[0,1,2,3,4],those:2,three:[4,5],todo:4,togeth:0,train:2,transpar:0,tri:0,triangl:[0,2,3,4,5],triangul:0,tupl:[0,3],two:[0,3],type:[],uint8:0,ultim:2,uniqu:2,usag:2,use:0,user:1,usvtm:3,valu:[0,2,3],variance_percentag:3,vector:[0,2,3,4],veri:2,vision:2,vtm:3,wai:3,weight:[4,5],what:2,where:4,which:[1,2],who:2,width:[0,4],width_height_dimens:0,window_nam:1,within:0,without:2,work:0,would:2,www:[2,4],x_0_0:0,x_0_k:0,x_0_m:0,x_1:[2,5],x_1_0:0,x_1_k:0,x_1_m:0,x_2:[2,5],x_2_0:0,x_2_k:0,x_2_m:0,x_3:5,x_3_0:0,x_3_k:0,x_3_m:0,x_4_0:0,x_mean_0:0,x_mean_n:0,x_n:2,x_n_k:0,x_n_m:0,x_vector:0,y_0_0:0,y_0_k:0,y_0_m:0,y_1:[2,5],y_1_0:0,y_1_k:0,y_1_m:0,y_2:[2,5],y_2_0:0,y_2_k:0,y_2_m:0,y_3:5,y_3_0:0,y_3_k:0,y_3_m:0,y_4_0:0,y_mean_0:0,y_mean_n:0,y_n:2,y_n_k:0,y_n_m:0,y_vector:0,you:[]},titles:["AAM Module","Datasets","Welcome to 3D Face Reconstruction&#8217;s documentation!","PCA Module","Reconstruction Module","Texture Module"],titleterms:{aam:0,dataset:1,document:2,face:2,indice:2,link:2,modul:[0,3,4,5],pca:[2,3],progress:2,reconstruct:[2,4],refer:2,tabl:2,textur:5,welcom:2,work:2}})
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment