#include <peak_icv/pipeline/detail/peak_icv_unpack_module.hpp>

Public Member Functions | |
| UnpackModule () | |
| Creates an instance of class UnpackModule. | |
| ~UnpackModule () override | |
| UnpackModule (const UnpackModule &other)=delete | |
| Copy constructor for class UnpackModule is deleted. | |
| UnpackModule (UnpackModule &&other) noexcept | |
| UnpackModule & | operator= (const UnpackModule &other)=delete |
| Copy assignment for class UnpackModule is deleted. | |
| UnpackModule & | operator= (UnpackModule &&other) noexcept |
| void | Serialize (peak::common::serialization::IArchive &archive) const override |
| This function has no effect on the Unpack module. | |
| void | Deserialize (const peak::common::serialization::IArchive &archive) override |
| This function has no effect on the unpack module. | |
| void | SetEnabled (bool enable) override |
| This property cannot be changed. | |
| bool | IsEnabled () const override |
| Indicates whether the unpack module is enabled. | |
| const char * | GetType () const override |
| Returns the type of the module for serialization purposes. | |
| void | ResetToDefault () override |
| Resets all module settings. | |
| void | SetTargetBitDepth (size_t bitDepth) |
| Set the target bit depth for image processing. | |
| size_t | GetTargetBitDepth () const |
| Get the target bit depth used during image processing. | |
| void | SetProcessingPolicy (ProcessingPolicy policy) |
| Set the processing policy. | |
| ProcessingPolicy | GetProcessingPolicy () const |
| Get the currently configured processing policy. | |
| peak::icv::Image | Process (const peak::icv::Image &input) const |
| Converts a packed pixel format image into an unpacked Bayer or monochrome format. | |
| peak::common::Any | Process (const peak::common::Any &input) const override |
| Converts a packed pixel format image into an unpacked Bayer or mono format. | |
| void | ReleaseBuffers () const |
| Frees unused internal buffers. | |
Unpack is an image pipeline module that converts packed pixel formats into corresponding unpacked Bayer or mono formats.
The unpack module is always enabled and cannot be disabled. It converts input images with packed pixel formats into their corresponding unpacked Bayer or monochrome formats. The output bit depth depends on the applied processing policy and the specified target bit depth.
Default configuration:
|
inline |
Creates an instance of class UnpackModule.
|
inlineoverride |
|
delete |
Copy constructor for class UnpackModule is deleted.
|
inlinenoexcept |
|
inlineoverridevirtual |
|
inline |
Get the currently configured processing policy.
|
inline |
Get the target bit depth used during image processing.
This value specifies the bit depth the module will aim for when unpacking packed pixel formats. The actual output bit depth depends on the selected ProcessingPolicy.
|
inlineoverridevirtual |
Returns the type of the module for serialization purposes.
Implements IModule.
|
inlineoverridevirtual |
Indicates whether the unpack module is enabled.
This property always returns true.
Implements IModule.
|
delete |
Copy assignment for class UnpackModule is deleted.
|
inlinenoexcept |
|
inlineoverridevirtual |
Converts a packed pixel format image into an unpacked Bayer or mono format.
This function unpacks the input image from a packed format to its corresponding unpacked Bayer or monochrome format.
| input | The packed input image to unpack. |
| peak::common::InvalidCastException | If the input cast to peak::icv::Image failed. |
Implements IModule.
|
inline |
Converts a packed pixel format image into an unpacked Bayer or monochrome format.
This function unpacks the input image from a packed format to its corresponding unpacked Bayer or monochrome format.
| input | The packed input image to unpack. |
|
inline |
Frees unused internal buffers.
This module uses pre-allocated internal buffers to accelerate conversions. When the image size or pixel format changes, new buffers are allocated, which may cause the internal buffer pool to grow over time. This function can be used to release unused buffers and reduce memory usage.
|
inlineoverridevirtual |
Resets all module settings.
Resets the target bit depth to 8 and the processing policy to ProcessingPolicy::Fast
Implements IModule.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
This property cannot be changed.
The module remains enabled to guarantee correct operation of following modules.
Implements IModule.
|
inline |
Set the processing policy.
Defines how the bit depth is handled during image processing — whether it is increased, decreased, or preserved.
| policy | The desired processing policy. |
|
inline |
Set the target bit depth for image processing.
The target bit depth acts as a reference when deciding how to unpack packed pixel formats. The actual resulting bit depth depends on the selected ProcessingPolicy:
This allows you to downsample, preserve, or enhance bit depth depending on your use case.
| bitDepth | The desired target bit depth (e.g., 8, 10, 12). |