23 #ifndef _SEFRAMEWORK_IMAGE_FUNCTIONALIMAGE_H
24 #define _SEFRAMEWORK_IMAGE_FUNCTIONALIMAGE_H
42 template<
typename T,
typename I = T>
55 template<
typename ...Args>
65 return m_img->getWidth();
69 return m_img->getHeight();
73 auto in_chunk =
m_img->getChunk(
x,
y, width, height);
75 for (
int iy = 0; iy < height; ++iy) {
76 for (
int ix = 0; ix < width; ++ix) {
77 chunk->at(ix, iy) =
m_functor(ix +
x, iy +
y, in_chunk->getValue(ix, iy));
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > x
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > y