Giter Club home page Giter Club logo

kontiki's Introduction

Kontiki - the continuous time toolkit

Kontiki is a toolkit for continuous-time structure from motion. In short, it can estimate a trajectory (and 3D structure) from a set of measurements.

The documentation is available at https://hovren.github.io/kontiki/.

Example: Visual-inertial structure from motion

import numpy as np
import itertools
from kontiki import trajectories, sensors, TrajectoryEstimator
import kontiki.measurements as M

views, landmarks = load_my_sfm_data()

trajectory = trajectories.UniformSE3SplineTrajectory()
trajectory.extend_to(some_max_time, np.eye(4))

imu = sensors.BasicImu()

camera = sensors.PinholeCamera(720, 1280, 0.03, my_camera_matrix)

gyro_meas = [M.GyroscopeMeasurement(imu, t, x)
             for t, x in my_gyro_data]
acc_meas = [M.AccelerometerMeasurement(imu, t, x)
            for t, x in my_acc_data]
im_meas = [M.StaticRsCameraMeasurement(camera, obs)
           for v in view for obs in v.observations]

estimator = TrajectoryEstimator(trajectory)
for m in itertools.chain(gyro_meas, acc_meas, im_meas):
    estimator.add_measurement(m)

summary = estimator.solve()

Installation

See the documentation at https://hovren.github.io/kontiki/users/install.html.

kontiki's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.