22 #include "PixelData.hpp"
23 #include "ValueType.hpp"
28 namespace FotoSHOCKcore {
37 template <
typename Format>
42 if (color ==
"white") {
44 for (
int i = 0; i < format.
numOfBands(); i++) {
46 #define FORMAT_DO_STH(T,U) m_color[i] = ValueTypeInfo<T>::max();
53 else if (color ==
"black") {
55 for (
int i = 0; i < format.
numOfBands(); i++) {
57 #define FORMAT_DO_STH(T,U) m_color[i] = ValueTypeInfo<T>::min();
67 std::memcpy(m_color, other.m_color, m_format.
numOfBands() *
sizeof(Format));
74 void operator()(Format* , Format* out) {
75 for (
int i = 0; i < m_format.
numOfBands(); i++) {