IDS peak genericC++ v1.12.0
Loading...
Searching...
No Matches
peak::common Namespace Reference

Root namespace for common types and interfaces shared across multiple libraries. More...

Namespaces

namespace  detail
 Namespace for internal implementation details and low-level types.
 
namespace  serialization
 Interfaces for defining serialization and deserialization behavior.
 

Classes

class  Any
 A type-erased container for any copyable value. More...
 
class  BadAllocException
 Thrown when memory allocation fails. More...
 
class  Exception
 Base class for all exceptions thrown by the library. More...
 
class  IImageView
 Interface for viewing image pixel data from arbitrary sources. More...
 
class  InternalErrorException
 Thrown when an unexpected internal error occurs. More...
 
class  InvalidCastException
 Thrown when a cast to an incompatible type is attempted. More...
 
class  InvalidParameterException
 Thrown when a function receives an invalid parameter. More...
 
class  IOException
 Thrown when an input, output, file or device communication error occurs. More...
 
class  LibraryNotInitializedException
 Thrown when the library is used before proper initialization. More...
 
class  Metadata
 Type-safe container for image acquisition metadata. More...
 
class  NotSupportedException
 Thrown when an unsupported operation or feature is used. More...
 
class  OutOfRangeException
 Thrown when a parameter is outside the valid range. More...
 
class  PixelFormatInfo
 Provides information and utility functions for pixel formats. More...
 
class  TimeoutException
 Thrown when an operation exceeds its time limit. More...
 
class  Version
 Represents a structured version identifier with four components: major, minor, subminor, and patch. More...
 

Typedefs

using Point = detail::PointT<int32_t>
 2D point with 32-bit signed integer coordinates.
 
using PointF = detail::PointT<float>
 2D point with single-precision floating-point coordinates.
 
using PointU = detail::PointT<uint32_t>
 2D point with 32-bit unsigned integer coordinates.
 
using Rectangle = detail::RectangleT<int32_t, uint32_t>
 Rectangle with integer coordinates and unsigned dimensions.
 
using RectangleF = detail::RectangleT<float, float>
 Rectangle with floating-point coordinates and dimensions.
 
using Size = detail::SizeT<uint32_t>
 Size with unsigned 32-bit integer dimensions.
 
using SizeF = detail::SizeT<float>
 Size with floating-point dimensions.
 
using VectorF = peak::common::PointF
 Alias for a 2D point with floating point coordinates.
 
using IntervalU = detail::IntervalT<uint32_t>
 Interval with unsigned 32-bit integer boundaries.
 
using Interval = detail::IntervalT<int32_t>
 Interval with signed 32-bit integer boundaries.
 
using IntervalF = detail::IntervalT<float>
 Interval with floating-point boundaries.
 
using RangeU = detail::RangeT<uint32_t>
 Alias for a range of 32-bit unsigned integers.
 
using Range = detail::RangeT<int32_t>
 Alias for a range of 32-bit signed integers.
 
using RangeF = detail::RangeT<float>
 Alias for a range of 32-bit floating-point numbers.
 
using RangeU8 = detail::RangeT<uint8_t>
 Alias for a range of 8-bit unsigned integers.
 

Enumerations

enum class  Channel {
  Channel::Intensity ,
  Channel::Red ,
  Channel::Green ,
  Channel::Blue ,
  Channel::Alpha ,
  Channel::X ,
  Channel::Y ,
  Channel::Z ,
  Channel::Bayer
}
 Represents the various data channels in image or spatial data formats. More...
 
enum class  MetadataKey {
  DeviceTimestamp ,
  DeviceFrameID
}
 Enumerates all compile-time known metadata keys. More...
 
enum class  PixelFormat : uint64_t {
  PixelFormat::BayerGR8 = PEAK_COMMON_PIXEL_FORMAT_BAYER_GR_8 ,
  PixelFormat::BayerGR10 = PEAK_COMMON_PIXEL_FORMAT_BAYER_GR_10 ,
  PixelFormat::BayerGR12 = PEAK_COMMON_PIXEL_FORMAT_BAYER_GR_12 ,
  PixelFormat::BayerRG8 = PEAK_COMMON_PIXEL_FORMAT_BAYER_RG_8 ,
  PixelFormat::BayerRG10 = PEAK_COMMON_PIXEL_FORMAT_BAYER_RG_10 ,
  PixelFormat::BayerRG12 = PEAK_COMMON_PIXEL_FORMAT_BAYER_RG_12 ,
  PixelFormat::BayerGB8 = PEAK_COMMON_PIXEL_FORMAT_BAYER_GB_8 ,
  PixelFormat::BayerGB10 = PEAK_COMMON_PIXEL_FORMAT_BAYER_GB_10 ,
  PixelFormat::BayerGB12 = PEAK_COMMON_PIXEL_FORMAT_BAYER_GB_12 ,
  PixelFormat::BayerBG8 = PEAK_COMMON_PIXEL_FORMAT_BAYER_BG_8 ,
  PixelFormat::BayerBG10 = PEAK_COMMON_PIXEL_FORMAT_BAYER_BG_10 ,
  PixelFormat::BayerBG12 = PEAK_COMMON_PIXEL_FORMAT_BAYER_BG_12 ,
  PixelFormat::Mono8 = PEAK_COMMON_PIXEL_FORMAT_MONO_8 ,
  PixelFormat::Mono10 = PEAK_COMMON_PIXEL_FORMAT_MONO_10 ,
  PixelFormat::Mono12 = PEAK_COMMON_PIXEL_FORMAT_MONO_12 ,
  PixelFormat::Mono16 = PEAK_COMMON_PIXEL_FORMAT_MONO_16 ,
  PixelFormat::Confidence8 = PEAK_COMMON_PIXEL_FORMAT_CONFIDENCE_8 ,
  PixelFormat::Confidence16 = PEAK_COMMON_PIXEL_FORMAT_CONFIDENCE_16 ,
  PixelFormat::Coord3D_C8 = PEAK_COMMON_PIXEL_FORMAT_COORD3D_C8 ,
  PixelFormat::Coord3D_C16 = PEAK_COMMON_PIXEL_FORMAT_COORD3D_C16 ,
  PixelFormat::Coord3D_C32f = PEAK_COMMON_PIXEL_FORMAT_COORD3D_C32F ,
  PixelFormat::Coord3D_ABC32f = PEAK_COMMON_PIXEL_FORMAT_COORD3D_ABC32F ,
  PixelFormat::YUV420_8_YY_UV_SemiplanarIDS = PEAK_COMMON_PIXEL_FORMAT_YUV420_8_YY_UV_SemiplanarIDS ,
  PixelFormat::YUV420_8_YY_VU_SemiplanarIDS = PEAK_COMMON_PIXEL_FORMAT_YUV420_8_YY_VU_SemiplanarIDS ,
  PixelFormat::YUV422_8_UYVY = PEAK_COMMON_PIXEL_FORMAT_YUV422_8_UYVY ,
  PixelFormat::RGB8 = PEAK_COMMON_PIXEL_FORMAT_RGB_8 ,
  PixelFormat::RGB10 = PEAK_COMMON_PIXEL_FORMAT_RGB_10 ,
  PixelFormat::RGB12 = PEAK_COMMON_PIXEL_FORMAT_RGB_12 ,
  PixelFormat::BGR8 = PEAK_COMMON_PIXEL_FORMAT_BGR_8 ,
  PixelFormat::BGR10 = PEAK_COMMON_PIXEL_FORMAT_BGR_10 ,
  PixelFormat::BGR12 = PEAK_COMMON_PIXEL_FORMAT_BGR_12 ,
  PixelFormat::RGBa8 = PEAK_COMMON_PIXEL_FORMAT_RGBA_8 ,
  PixelFormat::RGBa10 = PEAK_COMMON_PIXEL_FORMAT_RGBA_10 ,
  PixelFormat::RGBa12 = PEAK_COMMON_PIXEL_FORMAT_RGBA_12 ,
  PixelFormat::BGRa8 = PEAK_COMMON_PIXEL_FORMAT_BGRA_8 ,
  PixelFormat::BGRa10 = PEAK_COMMON_PIXEL_FORMAT_BGRA_10 ,
  PixelFormat::BGRa12 = PEAK_COMMON_PIXEL_FORMAT_BGRA_12 ,
  PixelFormat::BayerBG10p = PEAK_COMMON_PIXEL_FORMAT_BAYER_BG_10_PACKED ,
  PixelFormat::BayerBG12p = PEAK_COMMON_PIXEL_FORMAT_BAYER_BG_12_PACKED ,
  PixelFormat::BayerGB10p = PEAK_COMMON_PIXEL_FORMAT_BAYER_GB_10_PACKED ,
  PixelFormat::BayerGB12p = PEAK_COMMON_PIXEL_FORMAT_BAYER_GB_12_PACKED ,
  PixelFormat::BayerGR10p = PEAK_COMMON_PIXEL_FORMAT_BAYER_GR_10_PACKED ,
  PixelFormat::BayerGR12p = PEAK_COMMON_PIXEL_FORMAT_BAYER_GR_12_PACKED ,
  PixelFormat::BayerRG10p = PEAK_COMMON_PIXEL_FORMAT_BAYER_RG_10_PACKED ,
  PixelFormat::BayerRG12p = PEAK_COMMON_PIXEL_FORMAT_BAYER_RG_12_PACKED ,
  PixelFormat::Mono10p = PEAK_COMMON_PIXEL_FORMAT_MONO_10_PACKED ,
  PixelFormat::Mono12p = PEAK_COMMON_PIXEL_FORMAT_MONO_12_PACKED ,
  PixelFormat::RGB10p32 = PEAK_COMMON_PIXEL_FORMAT_RGB_10_PACKED_32 ,
  PixelFormat::BGR10p32 = PEAK_COMMON_PIXEL_FORMAT_BGR_10_PACKED_32 ,
  PixelFormat::BayerRG10g40IDS = PEAK_COMMON_PIXEL_FORMAT_BAYER_RG_10_GROUPED_40_IDS ,
  PixelFormat::BayerGB10g40IDS = PEAK_COMMON_PIXEL_FORMAT_BAYER_GB_10_GROUPED_40_IDS ,
  PixelFormat::BayerGR10g40IDS = PEAK_COMMON_PIXEL_FORMAT_BAYER_GR_10_GROUPED_40_IDS ,
  PixelFormat::BayerBG10g40IDS = PEAK_COMMON_PIXEL_FORMAT_BAYER_BG_10_GROUPED_40_IDS ,
  PixelFormat::BayerRG12g24IDS = PEAK_COMMON_PIXEL_FORMAT_BAYER_RG_12_GROUPED_24_IDS ,
  PixelFormat::BayerGB12g24IDS = PEAK_COMMON_PIXEL_FORMAT_BAYER_GB_12_GROUPED_24_IDS ,
  PixelFormat::BayerGR12g24IDS = PEAK_COMMON_PIXEL_FORMAT_BAYER_GR_12_GROUPED_24_IDS ,
  PixelFormat::BayerBG12g24IDS = PEAK_COMMON_PIXEL_FORMAT_BAYER_BG_12_GROUPED_24_IDS ,
  PixelFormat::Mono10g40IDS = PEAK_COMMON_PIXEL_FORMAT_MONO_10_GROUPED_40_IDS ,
  PixelFormat::Mono12g24IDS = PEAK_COMMON_PIXEL_FORMAT_MONO_12_GROUPED_24_IDS
}
 Enum listing all supported pixel formats and their internal IDs. More...
 

Functions

std::ostream & operator<< (std::ostream &os, PixelFormat pixelFormat)
 

Detailed Description

Root namespace for common types and interfaces shared across multiple libraries.

The peak::common namespace contains all publicly available types, constants, enumerations, and interfaces that form the foundation for other libraries and modules.

This namespace is part of the Common Types and Interfaces module and is intended to provide stable, reusable components for general use.

It includes:

  • Core data types and structures
  • Publicly exposed aliases for internal types
  • Interfaces and helper utilities for consistent API design

All components within this namespace are suitable for use in production code and are maintained with a stable API guarantee.

Since
ids_peak_common 1.0

Enumeration Type Documentation

◆ MetadataKey

enum class peak::common::MetadataKey
strong

Enumerates all compile-time known metadata keys.

Since
ids_peak_common 1.0
Enumerator
DeviceTimestamp 

Device-provided image acquisition timestamp in nanoseconds.

The timestamp is expressed in nanoseconds and is relative to an unspecified reference point (t = 0). It does not represent an absolute wall-clock time, but instead the elapsed time since that reference. The difference between timestamps of consecutive images indicates the time interval between their recordings.

Since
ids_peak_common 1.0
DeviceFrameID 

A sequentially incremented identifier for the frame.

The frame ID is a sequentially incremented value that increases by one from one frame to the next. It serves as a means to detect missing or out-of-order frames in a stream. Once the maximum value supported by the underlying technology is reached, the frame ID wraps back to zero. The exact wrap-around point is not fixed and depends on the implementation.

Since
ids_peak_common 1.0

Function Documentation

◆ operator<<()

std::ostream & peak::common::operator<< ( std::ostream & os,
PixelFormat pixelFormat )
inline