The PixelTraq library is a C++ library developed to help users integrate cameras calibrated using the PixelTraq Camera Calibration system into their projects. The library contains ready made camera model implementations and code for common workflows such as image undistortion, 3d reconstruction, and stereo rectification.
PixelTraq Service\ PixelTraq Resources\ Documentation
There are a few different ways to include the library in your project. The following sections outline how to integrate the library into your project.
If you are only interested in running the examples or tools, you can clone the library directly using:
The examples can be built as long as you have cmake installed using the following steps:
Replace –parallel 2 with –parallel <number of cores in your machine>.
To add PixelTraq as a subdirectory, clone the project into your main project folder or add it as a submodule.
Next, add the following line to your project's CMakeLists.txt file
You will also need to target the library to link to your execuatable
Any source files that use the PixelTraq library need to include the entry point header file
Enter the following code block into your cmake file to fetch the pixeltraq github
We have created a number of examples for you to follow in order for you to familiarize yourself with this library.
This example shows how to consume a pixelTraq json file and save out the json file.
This example shows how to manually set up your own Camera model then project points from world frame to camera frame. Then from camera frame to the image plane
This examples showns how to reconstruct 3d points from measurements in 2d stereo images
This method shows how to rectify images captured from the left and right camera of a stereo module.
This example shows how to initialize a remapper which can be used for quickly undistorting an image
This tool can be built as an executable for undistorting an image using a camera model file and an optional target camera model file.
This library is licensed under the Apache License Version 2.0 - see the LICENSE file for details.