Skip to content

Latest commit

 

History

History

README.md

C++ Examples – IDS peak Generic SDK

This directory contains C++ example programs demonstrating how to use the IDS peak Generic SDK from C++.

Requirements

  • 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.md of the example to verify)

Some examples offer Visual Studio Projects, though it is recommended to use CMake for building the examples.

Build Instructions

CMake

  1. Run CMake to configure using the current directory (.) as source and build as the build directory:
cmake -B build .
  1. Build into the build directory:
cmake --build build

Or in a single command block:

cmake -B build .
cmake --build build

Visual Studio

Open the Visual Studio Project and build it.

General Notes

  • These examples are intentionally minimal and focused on API usage (enumeration, opening devices, acquisition, basic parameter setting).
  • A .clang-format file is provided at the repository root for consistent formatting.
  • Use clang-tidy for static analysis where appropriate.

Included Examples

  • 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 Nion camera and IDS 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.