13#include <peak_common_c/detail/peak_common_defines.h>
16#include <unordered_map>
58 const auto layoutStr = std::to_string(
static_cast<int>(layout));
87 static const std::unordered_map<std::string, DebayerChannelLayout> channelLayoutMap{ {
"RGB",
DebayerChannelLayout::RGB },
90 auto it = channelLayoutMap.find(layout);
91 if (it == channelLayoutMap.end())
Thrown when a requested operation is not implemented or supported.
DebayerChannelLayout
Specifies the desired channel layout of the output image.
@ BGR
Blue-Green-Red format with 3 channels.
@ BGRA
Blue-Green-Red-Alpha format with 4 channels.
@ RGB
Red-Green-Blue format with 3 channels.
@ RGBA
Red-Green-Blue-Alpha format with 4 channels.
DebayerChannelLayout ToDebayerChannelLayout(const std::string &layout)
Converts a string representation to a DebayerChannelLayout enum value.
std::string ToString(BinningMode mode)
Converts a BinningMode enum value to its string representation.
std::ostream & operator<<(std::ostream &os, BinningMode mode)
Stream output operator for BinningMode enum.