Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lenstool
Lenstool
Commits
97e100de
Commit
97e100de
authored
Jun 05, 2020
by
Johan Richard
Browse files
Corrrected offset in external maps
parent
b421eed6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/interpol.c
View file @
97e100de
...
...
@@ -42,6 +42,9 @@ double interpol(double xx, const double *fxx, const double *fyy, const double *
double
bilinear
(
double
**
map
,
double
x
,
double
y
,
int
xmax
,
int
ymax
)
{
int
x1
,
y1
;
//Difference of wcs2pix reference (starts at 1,1) and map reference (starts at pixel 0,0)
x
=
x
-
1
;
y
=
y
-
1
;
x1
=
(
int
)(
x
-
0
.
5
);
y1
=
(
int
)(
y
-
0
.
5
);
if
(
x1
<
0
)
x1
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment