Commit 3b1b1970 authored by Julien Michel's avatar Julien Michel
Browse files

BUG: Small error (invert of baseline ratio)

parent 63143fac
......@@ -193,7 +193,7 @@ private:
SetParameterRole("epi.rectsizey", Role_Output);
AddParameter(ParameterType_Float,"epi.baseline","Mean baseline ratio");
SetParameterDescription("epi.baseline","This parameter is the mean value, in meters, of the baseline to sensor altitude ratio. It can be used to convert disparities to physical elevation, since a disparity of one pixel will corresspond to an elevation offset of this value with respect to the mean elevation.");
SetParameterDescription("epi.baseline","This parameter is the mean value, in pixels.meters^-1, of the baseline to sensor altitude ratio. It can be used to convert disparities to physical elevation, since a disparity of one pixel will correspond to an elevation offset of the invert of this value with respect to the mean elevation.");
SetParameterRole("epi.baseline", Role_Output);
AddParameter(ParameterType_Group,"inverse","Write inverse fields");
......
......@@ -428,11 +428,11 @@ StereorectificationDeformationFieldSource<TInputImage, TOutputImage>
endLine1 = m_RightToLeftTransform->TransformPoint(epiPoint2);
// Estimate the local baseline ratio
double localBaselineRatio = 2*m_ElevationOffset
/ vcl_sqrt((endLine1[0] - startLine1[0])
double localBaselineRatio = vcl_sqrt((endLine1[0] - startLine1[0])
* (endLine1[0] - startLine1[0])
+ (endLine1[1] - startLine1[1])
* (endLine1[1] - startLine1[1]));
* (endLine1[1] - startLine1[1]))
/ (2 * m_ElevationOffset);
m_MeanBaselineRatio+=localBaselineRatio;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment