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

Public Member Functions | |
| MonoConversionModule () | |
| Creates an instance of class MonoConversion. | |
| ~MonoConversionModule () override | |
| MonoConversionModule (const MonoConversionModule &other)=delete | |
| Copy constructor for class MonoConversionModule is deleted. | |
| MonoConversionModule (MonoConversionModule &&other) noexcept | |
| MonoConversionModule & | operator= (const MonoConversionModule &other)=delete |
| Copy assignment for class MonoConversionModule is deleted. | |
| MonoConversionModule & | operator= (MonoConversionModule &&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 |
| Does nothing for the mono conversion module. | |
| peak::icv::Image | Process (const peak::icv::Image &input) const |
| Processes the input image, performing mono conversion if enabled. | |
| peak::common::Any | Process (const peak::common::Any &input) const override |
| Processes the input image, performing mono conversion if enabled. | |
| void | ReleaseBuffers () const |
| Frees unused internal buffers. | |
Mono conversion is an image pipeline module that converts images to a monochrome format.
The mono conversion module performs a mono (grayscale) conversion on input images. When enabled, it converts the input image to a mono format while preserving the input bit depth. If disabled, the input image is passed through unchanged.
Definition at line 36 of file peak_icv_mono_conversion_module.hpp.
|
inline |
Creates an instance of class MonoConversion.
Definition at line 210 of file peak_icv_mono_conversion_module.hpp.
|
inlineoverride |
Definition at line 217 of file peak_icv_mono_conversion_module.hpp.
|
delete |
Copy constructor for class MonoConversionModule is deleted.
|
inlinenoexcept |
Definition at line 225 of file peak_icv_mono_conversion_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 248 of file peak_icv_mono_conversion_module.hpp.
|
inlineoverridevirtual |
Returns the type of the module for serialization purposes.
Implements IModule.
Definition at line 266 of file peak_icv_mono_conversion_module.hpp.
|
inlineoverridevirtual |
Checks if the module is currently enabled.
Implements IModule.
Definition at line 261 of file peak_icv_mono_conversion_module.hpp.
|
delete |
Copy assignment for class MonoConversionModule is deleted.
|
inlinenoexcept |
Definition at line 231 of file peak_icv_mono_conversion_module.hpp.
|
inlineoverridevirtual |
Processes the input image, performing mono conversion if enabled.
This function converts the input image to a monochrome format if the module is enabled. The output image preserves the bit depth of the input. If the module is disabled, the input image is returned unchanged.
| input | The input image to process. |
| peak::common::InvalidCastException | If the input cast to peak::icv::Image failed. |
Implements IModule.
Definition at line 302 of file peak_icv_mono_conversion_module.hpp.
|
inline |
Processes the input image, performing mono conversion if enabled.
This function converts the input image to a monochrome format if the module is enabled. The output image preserves the bit depth of the input. If the module is disabled, the input image is returned unchanged.
| input | The input image to process. |
Definition at line 297 of file peak_icv_mono_conversion_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 330 of file peak_icv_mono_conversion_module.hpp.
|
inlineoverridevirtual |
Does nothing for the mono conversion module.
Implements IModule.
Definition at line 148 of file peak_icv_mono_conversion_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 242 of file peak_icv_mono_conversion_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 256 of file peak_icv_mono_conversion_module.hpp.