- calibrations/ - contains Tsai calibration files used for different scans
- cleanup_mesh.py - used to isolate a sphere from a mesh with other objects in it
- dumbbell.py - a script to measure the distance between two fitted spheres. Not used yet.
- eliminate_badscans.py - Deletes files according to several criteria (0 vertices, extreme fitted radius, etc.)
- error-grid.py - The interactive visualization. You must provide a folder containing OBJ-files and a calibration folder
- focusmodel.py - Builds a 3d grid of expected errors by fitting a curve from the camera-focus experiment to scans
- generate_report.py - Generates a spreadsheet, or a csv file of measurement data. Needs a folder of OBJ-files
- import.sh - Some internal script used to copy data and clean it for all cameras
- mtf.py - Provided with a mesh with a 90deg edge, calculates the MTF
- plot_grid2d.py - Takes a 3D matrix and averages in one specified axis to view it as a 2d plot
- plot.py - Plots the gaussian- and mean curvature and the fitting error of a sphere mesh
- plot_spherefit.py - Plots points of a sphere mesh plus the fitted center point
- reconstructsh.py - Some attempt to calculate SH frequencies and reconstruct based on them. Not used yet.
- reports - Some older spreadsheets on experiments
- res/ - contains all the meshes
- src/ - commonly used code
- testsh.sh - calculates the sh frequencies for a given sphere mesh
Via apt-get: (use > sudo apt-get install python-numpy)
- python-numpy
- python-scipy
- python-pyqt5
- python-matplotlib
- python-pip
- python-openpyxl
- python-opencv
Via pip: (use > pip install setuptools==12.0.5)
- setuptools==12.0.5
- opendr
Note: If you get an "Failed building wheel for opendr" error during the opendr install with
error: contexts/ctx_mesa.c: No such file or directory
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
try to update the graphics card drivers, for example use the binary nVidia drivers (using Additional Drivers -> Select "Using NVIDA binary drivers - version.... (proprietary, tested)")
custom built:
- VTK7.1+
Option 1)
- Install prebuilt package:
sudo dpkg --i vtk-7.deb
* Go down to common steps
Option 2)
-
Build your own package:
-
Download latest version of vtk
tar -xf VTKDOWNLOAD.tar.gz
cd VTKDOWNLOAD
mkdir build
cd build
cmake ..
ccmake
* Switch VTK_WRAP_PYTHON to ON
-
Press [c] to configure
-
Press [q] to quit
sudo checkinstall --pkgname=vtk-7
* Follow instructions (Should I include files - No)
* Continue with common steps
Common steps:
- Create file (sudo) /etc/ld.so.conf.d/vtk7.conf with content:
/usr/local/lib/
* sudo ldconfig
* Edit file (sudo) /usr/lib/python2.7/sitecustomize.py
* Add this at the bottom:
import sys
sys.path.insert(0, '/usr/local/lib/python2.7/site-packages')