{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": { "nbsphinx": "hidden" }, "outputs": [], "source": [ "import open3d as o3d\n", "import numpy as np\n", "import os\n", "import sys\n", "\n", "# monkey patches visualization and provides helpers to load geometries\n", "sys.path.append('..')\n", "import open3d_tutorial as o3dtut\n", "# change to True if you want to interact with the visualization windows\n", "o3dtut.interactive = not \"CI\" in os.environ" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# RGBD Odometry\n", "An RGBD odometry finds the camera movement between two consecutive RGBD image pairs. The input are two instances of `RGBDImage`. The output is the motion in the form of a rigid body transformation. Open3D implements the method of [\\[Steinbrucker2011\\]](../reference.html#steinbrucker2011) and [\\[Park2017\\]](../reference.html#park2017)." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Read camera intrinsic\n", "We first read the camera intrinsic matrix from a json file." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "pinhole_camera_intrinsic = o3d.io.read_pinhole_camera_intrinsic(\n", " \"../../TestData/camera_primesense.json\")\n", "print(pinhole_camera_intrinsic.intrinsic_matrix)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "