Skip to content
Snippets Groups Projects
Commit 4e57a273 authored by Julien Michel's avatar Julien Michel
Browse files

ENH: Fixing baseline ratio estimation

parent 73c5a087
No related branches found
No related tags found
No related merge requests found
......@@ -342,11 +342,11 @@ StereorectificationDeformationFieldSource<TInputImage, TOutputImage>
endLine1 = m_RightToLeftTransform->TransformPoint(epiPoint2);
// Estimate the local baseline ratio
double localBaselineRatio = ((endLine1[0] - startLine1[0])
* (endLine1[0] - startLine1[0])
+ (endLine1[1] - startLine1[1])
* (endLine1[1] - startLine1[1]))
/ 2*m_AverageElevation;
double localBaselineRatio = 2*m_ElevationOffset
/ vcl_sqrt((endLine1[0] - startLine1[0])
* (endLine1[0] - startLine1[0])
+ (endLine1[1] - startLine1[1])
* (endLine1[1] - startLine1[1]));
m_MeanBaselineRatio+=localBaselineRatio;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment