9 #include "compositer.hpp"
26 offsetX -= _outputRoi.left;
27 offsetY -= _outputRoi.top;
29 for (
int i = 0; i < color.
height(); i++)
32 if (y < 0 || y >= _outputRoi.height)
35 for (
int j = 0; j < color.
width(); j++)
38 if (x < 0 || x >= _outputRoi.width)
46 float wc = inputWeights(i, j);
48 _panorama(y, x).r() += wc * color(i, j).r();
49 _panorama(y, x).g() += wc * color(i, j).g();
50 _panorama(y, x).b() += wc * color(i, j).b();
51 _panorama(y, x).a() += wc;
58 virtual bool terminate()
60 for (
int i = 0; i < _panorama.height(); i++)
62 for (
int j = 0; j < _panorama.width(); j++)
76 r.
r() = c.
r() / c.
a();
77 r.
g() = c.
g() / c.
a();
78 r.
b() = c.
b() / c.
a();