Skip to content
Sven Wanner edited this page May 21, 2014 · 37 revisions

Installation:

  • $ git clone [email protected]:svenwanner/pylibs.git
  • add to .bashrc: export PYTHONPATH=$PYTHONPATH:/home/where/you/cloned/pylibs

Recommendation

if the PYTHONPATH is added to your .bashrc, install dreampy or IPython and ensure that the following is executed when the interpreter is started in a console:


This import some usefule modules, ensure that all are installed or comment the uninstalled

import cv2 import vigra import sys,os import traceback import scipy as sp import pylab as plt import numpy as np from scipy import misc from scipy import ndimage as nd

This imports all available modules so you can use all defined structures immediately

import mypy.image.io as imio import mypy.lightfield.io as lfio import mypy.lightfield.helpers as helpers import mypy.utils.filesystem as filesystem import mypy.visualization.imshow as imshow import mypy.pointclouds.depthToCloud as D2Cl import mypy.lightfield.depth.structureTensor2D as st2D import mypy.lightfield.depth.structureTensor3D as st3D import mypy.workflows.StructureTensor2D as st2D_wflow import mypy.workflows.StructureTensor3D as st3D_wflow


Workflows

Structure Tensor 2D workflow

examples can be found in: workflows/examples/structureTensor2D_example.py

copy the script, adapt the parameter and execute it:

$ python my_example.py

Clone this wiki locally