Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 8a4e6358 authored by Martin Genet's avatar Martin Genet
Browse files

finish eval function of generated image expression

parent 8478d5a6
No related branches found
No related tags found
No related merge requests found
......@@ -92,12 +92,26 @@ public:
{'''+('''
std::cout << "X = " << X.str(1) << std::endl;''')*(verbose)+'''
interpolator->Interpolate(X.data(), expr.data());'''+('''
std::cout << "expr = " << expr.str(1) << std::endl;''')*(verbose)+'''
expr[0] /= static_scaling;'''+('''
U->eval(UX, X);'''+('''
std::cout << "UX = " << UX.str(1) << std::endl;''')*(verbose)+('''
x[0] = X[0] + UX[0];
x[1] = X[1] + UX[1];''')*(im_dim==2)+('''
x[0] = X[0] + UX[0];
x[1] = X[1] + UX[1];
x[2] = X[2] + UX[2];''')*(im_dim==3)+('''
std::cout << "x = " << x.str(1) << std::endl;''')*(verbose)+'''
interpolator->Interpolate(x.data(), expr.data());'''+('''
std::cout << "expr = " << expr.str(1) << std::endl;''')*(verbose)+('''
expr[0] /= static_scaling;''')*(im_type=="im")+('''
expr[0] /= static_scaling;
expr[1] /= static_scaling;''')*(im_type=="grad")*(im_dim==2)+('''
expr[0] /= static_scaling;
expr[1] /= static_scaling;
expr[2] /= static_scaling;''')*(im_type=="grad")*(im_dim==3)+('''
std::cout << "expr = " << expr.str(1) << std::endl;''')*(verbose)+'''
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment