![]() |
IDS peak ICV v1.1.0
|
#include <peak_icv/pipeline/detail/peak_icv_debayer_module.hpp>

Public Member Functions | |
| DebayerModule () | |
| Creates an instance of class DebayerModule with default settings. | |
| ~DebayerModule () override | |
| DebayerModule (const DebayerModule &other)=delete | |
| Copy constructor for class DebayerModule is deleted. | |
| DebayerModule (DebayerModule &&other) noexcept | |
| DebayerModule & | operator= (const DebayerModule &other)=delete |
| Copy assignment for class DebayerModule is deleted. | |
| DebayerModule & | operator= (DebayerModule &&other) noexcept |
| void | Serialize (peak::common::serialization::IArchive &archive) const override |
| Serializes the object's internal state into the provided archive. | |
| void | Deserialize (const peak::common::serialization::IArchive &archive) override |
| Restores the object's state from the provided archive. | |
| void | SetEnabled (bool enabled) override |
| Sets the enabled state of this module. | |
| bool | IsEnabled () const override |
| Checks if the module is currently enabled. | |
| const char * | GetType () const override |
| Returns the type of the module for serialization purposes. | |
| void | ResetToDefault () override |
| Resets the channel layout and the conversion policy to the default settings. | |
| void | SetChannelLayout (DebayerChannelLayout layout) |
| Sets the desired channel layout for the output image. | |
| DebayerChannelLayout | GetChannelLayout () const |
| Gets the current channel layout setting. | |
| void | SetConversionPolicy (DebayerConversionPolicy policy) |
| Sets the conversion policy for the Debayer module. | |
| DebayerConversionPolicy | GetConversionPolicy () const |
| Retrieves the current conversion policy. | |
| void | SetTargetBitDepth (size_t bitDepth) |
| Set the target bit depth. | |
| void | SetProcessingPolicy (ProcessingPolicy policy) |
| Set the processing policy. | |
| peak::icv::Image | Process (const peak::icv::Image &input) const |
| Converts a Bayer or mono image to a color image, or passes through unmodified images. | |
| peak::common::Any | Process (const peak::common::Any &input) const override |
| Converts a Bayer or mono image to a color image, or passes through unmodified images. | |
| void | ReleaseBuffers () const |
| Frees unused internal buffers. | |
Debayer is an image pipeline module that converts Bayer RAW images into standard color formats.
Debayer is an image pipeline module that performs demosaicing on Bayer-pattern RAW images, converting them into full-color images using configurable channel layouts such as RGB, BGR, RGBA, or BGRA. The bit depth of the output image is automatically inferred from the input.
The module can also be configured to convert Bayer or monochrome images, while passing through other image types unchanged.
Definition at line 97 of file peak_icv_debayer_module.hpp.
|
inline |
Creates an instance of class DebayerModule with default settings.
Definition at line 358 of file peak_icv_debayer_module.hpp.
|
inlineoverride |
Definition at line 365 of file peak_icv_debayer_module.hpp.
|
delete |
Copy constructor for class DebayerModule is deleted.
|
inlinenoexcept |
Definition at line 373 of file peak_icv_debayer_module.hpp.
|
inlineoverridevirtual |
Restores the object's state from the provided archive.
This function reads and applies all necessary parameters from the given archive to reconstruct the internal state of the object. It ensures that the object is restored to a valid and consistent state.
| archive | The source archive containing the serialized parameters. |
| CorruptedException | If Archive is malformed, misses keys or the values are invalid |
| NotSupportedException | If the 'Version' entry indicates an unsupported version. |
Implements ISerializable.
Definition at line 404 of file peak_icv_debayer_module.hpp.
|
inline |
Gets the current channel layout setting.
Definition at line 441 of file peak_icv_debayer_module.hpp.
|
inline |
Retrieves the current conversion policy.
Definition at line 452 of file peak_icv_debayer_module.hpp.
|
inlineoverridevirtual |
Returns the type of the module for serialization purposes.
Implements IModule.
Definition at line 430 of file peak_icv_debayer_module.hpp.
|
inlineoverridevirtual |
Checks if the module is currently enabled.
Implements IModule.
Definition at line 425 of file peak_icv_debayer_module.hpp.
|
delete |
Copy assignment for class DebayerModule is deleted.
|
inlinenoexcept |
Definition at line 382 of file peak_icv_debayer_module.hpp.
|
inlineoverridevirtual |
Converts a Bayer or mono image to a color image, or passes through unmodified images.
This function applies a demosaicing algorithm to the input image if required, depending on the configured conversion policy. If conversion is not applicable, the image is returned unchanged.
| input | The input image (Bayer, mono, or already-color). |
| peak::common::InvalidCastException | If the input cast to peak::icv::Image failed. |
Implements IModule.
Definition at line 569 of file peak_icv_debayer_module.hpp.
|
inline |
Converts a Bayer or mono image to a color image, or passes through unmodified images.
This function applies a demosaicing algorithm to the input image if required, depending on the configured conversion policy. If conversion is not applicable, the image is returned unchanged.
| input | The input image (Bayer, mono, or already-color). |
Definition at line 564 of file peak_icv_debayer_module.hpp.
|
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.
Definition at line 597 of file peak_icv_debayer_module.hpp.
|
inlineoverridevirtual |
Resets the channel layout and the conversion policy to the default settings.
Implements IModule.
Definition at line 414 of file peak_icv_debayer_module.hpp.
|
inlineoverridevirtual |
Serializes the object's internal state into the provided archive.
This function populates the given archive with all parameters required to fully represent the current state of the object. It ensures that the object can be reconstructed or transmitted accurately by saving all relevant data members in a consistent and structured format.
| archive | The target archive that will store the serialized parameters. |
Implements ISerializable.
Definition at line 395 of file peak_icv_debayer_module.hpp.
|
inline |
Sets the desired channel layout for the output image.
This controls the order and number of color channels in the converted image. The bit depth is automatically inherited from the input Bayer image.
| layout | The channel layout to use (e.g., RGB, BGRA). |
Definition at line 435 of file peak_icv_debayer_module.hpp.
|
inline |
Sets the conversion policy for the Debayer module.
This policy determines which types of input images will be converted. All other image types are passed through unchanged.
| policy | The conversion policy to apply. |
Definition at line 446 of file peak_icv_debayer_module.hpp.
|
inlineoverridevirtual |
Sets the enabled state of this module.
| enabled | If true, the module is enabled; otherwise, it is disabled. |
Implements IModule.
Definition at line 420 of file peak_icv_debayer_module.hpp.
|
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 |
Definition at line 559 of file peak_icv_debayer_module.hpp.
|
inline |
Set the target bit depth.
Specifies the desired bit depth for image processing. Whether the actual bit depth is increased, decreased, or preserved depends on the selected processing policy and the bit depth of the input image.
| bitDepth | The target bit depth to use during processing. |
Definition at line 264 of file peak_icv_debayer_module.hpp.