24 #ifndef SEFRAMEWORK_SEFRAMEWORK_IMAGE_MASKEDIMAGE_H_
25 #define SEFRAMEWORK_SEFRAMEWORK_IMAGE_MASKEDIMAGE_H_
44 template<
typename T,
typename M,
template <
typename>
class Operator =
std::bit_and>
76 T replacement, M mask_flag = 0x01) {
77 assert(image->getWidth() == mask->getWidth() && image->getHeight() == mask->getHeight());
95 auto mask_chunk =
m_mask->getChunk(
x,
y, width, height);
96 for (
int iy = 0; iy < height; ++iy) {
97 for (
int ix = 0; ix < width; ++ix) {
109 #endif // SEFRAMEWORK_SEFRAMEWORK_IMAGE_MASKEDIMAGE_H_