<reponame>risteon/nimble
from __future__ import print_function

import sys

from nimble.sources import KittiOdometrySource
from nimble.sinks import ImageDisplaySink


def main():

    if len(sys.argv) < 2:
        print("Specify the Kitti dataset root folder as argument")
        return

    kitti_data = KittiOdometrySource(sys.argv[1], 3)
    kitti_data.advance()
    kitti_data.seek(42)     # only for seekable sources
    data, label = kitti_data.get_data()

    # print transform matrix
    print("Transform: ")
    print(label)

    # show image
    display = ImageDisplaySink()
    display.set_data(data)


if __name__ == "__main__":
    main()

from __future__ import print_function

import sys

from nimble.sources import KittiOdometrySource
from nimble.sinks import ImageDisplaySink


def main():

    if len(sys.argv) < 2:
        print("Specify the Kitti dataset root folder as argument")
        return

    kitti_data = KittiOdometrySource(sys.argv[1], 3)
    kitti_data.advance()
    kitti_data.seek(42)     # only for seekable sources
    data, label = kitti_data.get_data()

    # print transform matrix
    print("Transform: ")
    print(label)

    # show image
    display = ImageDisplaySink()
    display.set_data(data)


if __name__ == "__main__":
    main()
# only for seekable sources # print transform matrix # show image