Skip to content
Snippets Groups Projects
Commit 460c75e4 authored by Olivier Bertrand's avatar Olivier Bertrand
Browse files

Scene is now a member of database and doc has been formatted for it

parent 3a0cf7f1
No related branches found
No related tags found
No related merge requests found
import matplotlib.pyplot as plt
from navipy.database import DataBaseLoad
import navipy.processing as processing
import os
import pkg_resources
# 1) Connect to the database
mydb_filename = os.path.abspath('../database.db')
mydb_filename = pkg_resources.resource_filename(
'navipy', 'resources/database.db')
mydb = DataBaseLoad(mydb_filename)
# 2) Define the position-orinetation at which
# we want the image
rowid = 12
my_scene = processing.scene(mydb, rowid=rowid)
my_skyline = processing.skyline(my_scene)
my_scene = mydb.scene(rowid=rowid)
my_skyline = processing.pcode.skyline(my_scene)
f, axarr = plt.subplots(1, 2, figsize=(15, 4))
for chan_i, chan_n in enumerate(mydb.channels):
......
......@@ -5,9 +5,6 @@ Processing a scene
Place code
----------
Scene
~~~~~
.. autofunction:: navipy.processing.pcode.scene
Skyline
~~~~~~~
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment