18 #ifndef _SEFRAMEWORK_IMAGE_SCALEDIMAGESOURCE_H
19 #define _SEFRAMEWORK_IMAGE_SCALEDIMAGESOURCE_H
60 switch (interp_type) {
71 for (
size_t i = 0; i < y_coords.
size(); ++i) {
83 for (
int x = 0;
x < image->getWidth(); ++
x) {
85 for (
int y = 0;
y < image->getHeight(); ++
y) {
121 for (
int off_y = 0; off_y < height; ++off_y) {
125 v[ix] = fy(
y + off_y);
128 for (
int off_x = 0; off_x < width; ++off_x) {
129 tile->setValue(
x + off_x,
y + off_y, T((*fx)(
x + off_x)));
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > x
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > y
T emplace_back(T... args)
ELEMENTS_API std::unique_ptr< Function > interpolate(const std::vector< double > &x, const std::vector< double > &y, InterpolationType type, bool extrapolate=false)