Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Main Repositories
otb
Commits
71e2dcd1
Commit
71e2dcd1
authored
Jan 26, 2021
by
Cédric Traizet
Browse files
BUG: fix various bugs in RPCSolver
parent
4a2911e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Modules/Filtering/Projection/src/otbRPCSolver.cxx
View file @
71e2dcd1
...
...
@@ -184,7 +184,7 @@ void computeCoefficients(const std::vector<PrecisionType> & f,
// compute the residual
auto
residual
=
M
.
transpose
()
*
w2
*
(
M
*
coeffs
-
r
);
auto
residualValue
=
inner_product
(
residual
,
residual
);
res
=
inner_product
(
residual
,
residual
);
}
outCoeffs
.
assign
(
coeffs
.
begin
(),
coeffs
.
end
());
...
...
@@ -266,7 +266,7 @@ void RPCSolver::Solve(const GCPsContainerType& gcpContainer, PrecisionType& rmsE
{
const
auto
&
imagePoint
=
gcp
.
first
;
minc
=
std
::
min
(
imagePoint
[
0
],
min
l
);
minc
=
std
::
min
(
imagePoint
[
0
],
min
c
);
maxc
=
std
::
max
(
imagePoint
[
0
],
maxc
);
minl
=
std
::
min
(
imagePoint
[
1
],
minl
);
...
...
@@ -385,7 +385,7 @@ void RPCSolver::Solve(const GCPsContainerType& gcpContainer, PrecisionType& rmsE
+
(
gcp
.
first
[
1
]
-
outPoint
[
1
])
*
(
gcp
.
first
[
1
]
-
outPoint
[
1
]);
}
rmsError
=
std
::
sqrt
(
rmseAcc
)
/
numberOfPoints
;
rmsError
=
std
::
sqrt
(
rmseAcc
/
numberOfPoints
)
;
}
}
\ No newline at end of file
Write
Preview
Supports
Markdown
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