This directory contains C++ example programs demonstrating how to use the IDS peak Generic SDK from C++.
- IDS peak Setup (development headers and libraries) for building examples
- C++14-compatible compiler (GCC, Clang, or MSVC)
- CMake 3.10+
- Qt5 or Qt6 for graphical examples (See
README.mdof the example to verify)
Some examples offer Visual Studio Projects, though it is recommended to use CMake for building the examples.
- Run CMake to configure using the current directory (
.) as source andbuildas the build directory:
cmake -B build .- Build into the
builddirectory:
cmake --build buildOr in a single command block:
cmake -B build .
cmake --build build
Open the Visual Studio Project and build it.
- These examples are intentionally minimal and focused on API usage (enumeration, opening devices, acquisition, basic parameter setting).
- A
.clang-formatfile is provided at the repository root for consistent formatting. - Use
clang-tidyfor static analysis where appropriate.
- Calibration From File Shows how to perform a camera calibration using
IDS peak ICV. - Code Reader From File Shows how to read a data matrix code from an image using
IDS peak ICV. - Get First Pixel This example demonstrates how to acquire an image and print the value of the first pixel.
- HDR Demonstrates how to acquire multiple images with different exposure times using an IDS camera and combine them into a single High Dynamic Range (HDR) image.
- HDR from file Shows how to create an HDR image and apply tone mapping for visual appearance using
IDS peak ICV. - Image Region From File Shows what image regions are and how to use them in
IDS peak ICV. - Morphology Shows how to use region morphology using
IDS peak ICV. - Nion Point Cloud Shows how to calculate the depth Map and point cloud using the
IDS Nioncamera andIDS peak ICV. - Open Camera This application demonstrates how to use the device manager to open a camera.
- Point Cloud From File Shows how to create a point cloud with mapped Mono data using
IDS peak ICV. - System Timestamp Shows how to use the system timestamp feature in order to get a wall-clock time corresponding to an arbitrary device timestamp.
- Threshold From File Shows how to apply a threshold using
IDS peak ICV. - Undistortion From File Shows how to apply an undistortion using
IDS peak ICV. - Workspace Calibration From File Shows how to calibrate and apply a new workspace
using
IDS peak ICV.