18 #ifndef _SEFRAMEWORK_IMAGE_SCALEDIMAGESOURCE_H 19 #define _SEFRAMEWORK_IMAGE_SCALEDIMAGESOURCE_H 57 switch (interp_type) {
68 for (
size_t i = 0; i < y_coords.size(); ++i) {
80 for (
int x = 0;
x < image->getWidth(); ++
x) {
82 for (
int y = 0;
y < image->getHeight(); ++
y) {
83 values[
y] = image->getValue(
x,
y);
116 auto tile = std::make_shared<ImageTile<T>>(
x,
y, width, height);
118 for (
int off_y = 0; off_y < height; ++off_y) {
122 v[ix] = fy(
y + off_y);
125 for (
int off_x = 0; off_x < width; ++off_x) {
126 tile->setValue(
x + off_x,
y + off_y, (*fx)(
x + off_x));
164 #endif // _SEFRAMEWORK_IMAGE_SCALEDIMAGESOURCE_H
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > x
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > y
ELEMENTS_API std::unique_ptr< Function > interpolate(const std::vector< double > &x, const std::vector< double > &y, InterpolationType type, bool extrapolate=false)
T emplace_back(T... args)