18 #ifndef _SEFRAMEWORK_IMAGE_PROCESSEDIMAGE_H_
19 #define _SEFRAMEWORK_IMAGE_PROCESSEDIMAGE_H_
27 namespace SourceXtractor {
35 template <
typename T,
typename P>
77 auto a_chunk =
m_image_a->getChunk(x, y, width, height);
78 auto b_chunk =
m_image_b->getChunk(x, y, width, height);
79 for (
int iy = 0; iy <
height; ++iy) {
80 for (
int ix = 0; ix <
width; ++ix) {
81 new_chunk_data[ix + iy *
width] = P::process(a_chunk->getValue(ix, iy),
82 b_chunk->getValue(ix, iy));
98 static T
process(
const T& a,
const T& b) {
return a - b; }
107 static T
process(
const T& a,
const T& b) {
return a * b; }
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > x
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > y