-
Notifications
You must be signed in to change notification settings - Fork 0
Home
- $ git clone [email protected]:svenwanner/pylibs.git
- add to .bashrc: export PYTHONPATH=$PYTHONPATH:/home/where/you/cloned/pylibs
if the PYTHONPATH is added to your .bashrc, install dreampie or IPython and ensure that the following is executed when the interpreter is started in a console (In dreampie go to Edit -> Preferences. In the Tab Shell paste the code below and press CTRL+F6 or restart the interpreter):
# This import some other useful modules necessary packages are
# vigra, numpy, scipy and matplotlib
import vigra
import sys,os
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 from pylib so you
# can use all defined structures immediately within the interpreter
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
from mypy.lightfield import io as lfio
from mypy.visualization.imshow import epishow
lf3dh = lfio.load_3d(path_to_image_sequence)
epishow(lf3dh, position=100, direction='h', shift=0)
examples can be found in: workflows/examples/structureTensor2D_example.py
if you've set the PYTHONPATH you can copy the script, adapt the
parameter to your needs and execute it from everywhere in a terminal via
$ python my_example.py