mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-12-29 15:41:18 +01:00
fixed no interpolation mode for moench (#1263)
Co-authored-by: Anna Bergamaschi <anna.bergamaschi@psi.ch>
This commit is contained in:
@@ -48,8 +48,9 @@ add_executable(moench03Interpolation moench03Interpolation.cpp)
|
||||
#no compile defs
|
||||
list(APPEND MOENCH_EXECUTABLES moench03Interpolation)
|
||||
|
||||
add_executable(moench03NoInterpolation moench03NoInterpolation.cpp)
|
||||
add_executable(moench03NoInterpolation moench03Interpolation.cpp)
|
||||
#no compile defs
|
||||
target_compile_definitions(moench03NoInterpolation PRIVATE NOINTERPOLATION)
|
||||
list(APPEND MOENCH_EXECUTABLES moench03NoInterpolation)
|
||||
|
||||
|
||||
@@ -87,4 +88,4 @@ foreach(exe ${MOENCH_EXECUTABLES})
|
||||
|
||||
endforeach(exe ${MOENCH_EXECUTABLES})
|
||||
|
||||
install(TARGETS ${MOENCH_EXECUTABLES} DESTINATION bin)
|
||||
install(TARGETS ${MOENCH_EXECUTABLES} DESTINATION bin)
|
||||
|
||||
@@ -126,11 +126,11 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
int quad;
|
||||
#ifndef FF
|
||||
double int_x, int_y;
|
||||
int *img;
|
||||
#ifndef NOINTERPOLATION
|
||||
char fname[10000];
|
||||
int ok;
|
||||
double int_x, int_y;
|
||||
int *img;
|
||||
cout << "read ff " << argv[2] << endl;
|
||||
sprintf(fname, "%s", argv[2]);
|
||||
interp->readFlatField(fname);
|
||||
|
||||
Reference in New Issue
Block a user