18 #ifndef _SEFRAMEWORK_IMAGE_PROCESSEDIMAGE_H_
19 #define _SEFRAMEWORK_IMAGE_PROCESSEDIMAGE_H_
28 namespace SourceXtractor {
36 template <
typename T,
typename P>
83 auto a_chunk =
m_image_a->getChunk(x, y, width, height);
84 auto b_chunk =
m_image_b->getChunk(x, y, width, height);
85 for (
int iy = 0; iy < height; ++iy) {
86 for (
int ix = 0; ix < width; ++ix) {
87 new_chunk_data->at(ix, iy) = P::process(a_chunk->getValue(ix,iy), b_chunk->getValue(ix,iy));
103 static T
process(
const T& a,
const T& b) {
return a - b; }
112 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