Provides classes and utilities for acquiring, managing, and interpreting image and data buffers from devices. This includes access to data streams, buffer handling, and convenient conversions of raw or structured buffer contents into usable image representations.
More...
|
| enum class | peak::core::BufferPayloadType {
peak::core::BufferPayloadType::Unknown
,
peak::core::BufferPayloadType::Image
,
peak::core::BufferPayloadType::RawData
,
peak::core::BufferPayloadType::File
,
peak::core::BufferPayloadType::Chunk
,
peak::core::BufferPayloadType::JPEG
,
peak::core::BufferPayloadType::JPEG2000
,
peak::core::BufferPayloadType::H264
,
peak::core::BufferPayloadType::ChunkOnly
,
peak::core::BufferPayloadType::DeviceSpecific
,
peak::core::BufferPayloadType::MultiPart
,
peak::core::BufferPayloadType::Custom = 1000
} |
| | Payload type of buffer. More...
|
| enum class | peak::core::PixelFormatNamespace {
peak::core::PixelFormatNamespace::GEV = 1
,
peak::core::PixelFormatNamespace::IIDC
,
peak::core::PixelFormatNamespace::PFNC16Bit
,
peak::core::PixelFormatNamespace::PFNC32Bit
,
peak::core::PixelFormatNamespace::Custom = 1000
} |
| | The namespace needed to interpret the pixel format value of the buffer. More...
|
| enum class | peak::core::BufferPartType {
peak::core::BufferPartType::Unknown
,
peak::core::BufferPartType::Image2D
,
peak::core::BufferPartType::PlaneBiPlanar2D
,
peak::core::BufferPartType::PlaneTriPlanar2D
,
peak::core::BufferPartType::PlaneQuadPlanar2D
,
peak::core::BufferPartType::Image3D
,
peak::core::BufferPartType::PlaneBiPlanar3D
,
peak::core::BufferPartType::PlaneTriPlanar3D
,
peak::core::BufferPartType::PlaneQuadPlanar3D
,
peak::core::BufferPartType::ConfidenceMap
,
peak::core::BufferPartType::Custom = 1000
} |
| | Data type of the buffer part. More...
|
Provides classes and utilities for acquiring, managing, and interpreting image and data buffers from devices. This includes access to data streams, buffer handling, and convenient conversions of raw or structured buffer contents into usable image representations.
◆ BufferPartType
Data type of the buffer part.
See GenTL PARTDATATYPE_IDS.
| Enumerator |
|---|
| Unknown | |
| Image2D | |
| PlaneBiPlanar2D | |
| PlaneTriPlanar2D | |
| PlaneQuadPlanar2D | |
| Image3D | |
| PlaneBiPlanar3D | |
| PlaneTriPlanar3D | |
| PlaneQuadPlanar3D | |
| ConfidenceMap | |
| Custom | |
◆ BufferPayloadType
Payload type of buffer.
See GenTL PAYLOADTYPE_INFO_IDS.
| Enumerator |
|---|
| Unknown | |
| Image | |
| RawData | |
| File | |
| Chunk | |
| JPEG | |
| JPEG2000 | |
| H264 | |
| ChunkOnly | |
| DeviceSpecific | |
| MultiPart | |
| Custom | |
◆ PixelFormatNamespace
The namespace needed to interpret the pixel format value of the buffer.
See GenTL PIXELFORMAT_NAMESPACE_IDS.
| Enumerator |
|---|
| GEV | |
| IIDC | |
| PFNC16Bit | |
| PFNC32Bit | |
| Custom | |
◆ BufferPartTo() [1/2]
Converts a core::BufferPart into a different type.
This function converts the buffer part into the format requested as template argument. Implement a template specialization for your custom data type yourself. For an example, have a look at the implementation to convert the buffer part to a peak::ipl::Image, i.e. see file converters/peak_bufferpart_converter_ipl.hpp.
Usage:
peak::icv::Image BufferPartTo(const std::shared_ptr< peak::core::BufferPart > &part)
Converts a core::BufferPart into a peak::ipl::Image.
Definition peak_bufferpart_converter_icv.hpp:44
- Parameters
-
- Returns
- Image data in the requested image container/class.
- Since
- 1.8
- Exceptions
-
| InvalidArgumentException | The given buffer part is invalid. |
| InvalidCastException | The given buffer part can not be casted to the requested OutType. |
| InternalErrorException | An internal error has occurred. |
◆ BufferPartTo() [2/2]
Converts a core::BufferPart into a peak::ipl::Image.
This creates a peak::ipl::Image as a shallow copy of the buffer (i.e. using the same memory).
- Parameters
-
| [in] | part | The buffer part to convert |
- Returns
- The buffer part converted to an Image.
- Since
- 1.8
- Note
- To use this method, this file needs to be included explicitly:
◆ BufferTo()
Converts a core::Buffer into a different type.
This function converts the buffer into the format requested as template argument. Implement a template specialization for your custom data type yourself. For an example, have a look at the implementation to convert the buffer to a peak::ipl::Image, i.e. see file converters/peak_buffer_converter_ipl.hpp.
Usage:
OutType BufferTo(const std::shared_ptr< peak::core::Buffer > &buffer)
Converts a core::Buffer into a different type.
Definition peak_buffer_converter.hpp:44
- Parameters
-
- Returns
- Image data in the requested image container/class.
- Since
- 1.0
- Exceptions
-
| InvalidArgumentException | The given buffer is invalid. |
| InternalErrorException | An internal error has occurred. |
◆ BufferTo< peak::icv::Image >()
Converts a core::Buffer into a peak::icv::Image.
This creates a peak::icv::Image as a shallow copy of the buffer (i.e. using the same memory).
- Parameters
-
| [in] | buffer | The buffer to convert |
- Returns
- The buffer converted to an Image.
- Since
- 1.12
- Note
- To use this method, this file needs to be included explicitly:
◆ BufferTo< peak::ipl::Image >()
Converts a core::Buffer into a peak::ipl::Image.
This creates a peak::ipl::Image as a shallow copy of the buffer (i.e. using the same memory).
- Parameters
-
| [in] | buffer | The buffer to convert |
- Returns
- The buffer converted to an Image.
- Note
- To use this method, this file needs to be included explicitly: