pano.py
Go to the documentation of this file.
00001 #! /usr/bin/env python
00002 import roslib; roslib.load_manifest('pano_py')
00003 import rospy
00004 import os
00005 import pano_opencv as cv
00006 from pano_opencv import Mat,Size
00007 import pano_py as pano
00008 
00009 K = Mat(3,3,cv.CV_32FC1)
00010 K.fromarray([620.2,0,320,0,620.2,240,0,0,1])
00011 D = Mat()
00012 camera = pano.Camera()
00013 camera.setCameraIntrinsics(K,D,Size(640,480))
00014 camera.write("camera.yml")
00015 
00016 options = pano.Options()
00017 options.directory = "/temp/pano"
00018 options.image_names.assign(["image.1.jpg","image.2"])
00019 
00020 params = options.fitter_params
00021 params.error_thresh = 6;
00022 params.inliers_thresh = 15;
00023 params.maxiters = 100;
00024 params.nNeeded = 2;
00025 
00026 options.stitch_name = "/temp/pano/stitched.jpg"


pano_py
Author(s): Ethan Rublee
autogenerated on Mon Mar 14 2016 10:57:00