Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Julien Cabieces
otb
Commits
c76d4eba
Commit
c76d4eba
authored
12 years ago
by
Julien Michel
Browse files
Options
Downloads
Patches
Plain Diff
COMP: Fixing variable set but not used warnings
parent
deca2cda
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/DisparityMap/otbStereorectificationDeformationFieldSource.txx
+1
-51
1 addition, 51 deletions
...arityMap/otbStereorectificationDeformationFieldSource.txx
with
1 addition
and
51 deletions
Code/DisparityMap/otbStereorectificationDeformationFieldSource.txx
+
1
−
51
View file @
c76d4eba
...
@@ -399,7 +399,7 @@ StereorectificationDeformationFieldSource<TInputImage, TOutputImage>
...
@@ -399,7 +399,7 @@ StereorectificationDeformationFieldSource<TInputImage, TOutputImage>
// 3 - Next, we will compute epipolar lines direction in both
// 3 - Next, we will compute epipolar lines direction in both
// images
// images
double a1
,a2
;
double a1;
// First, for image 1
// First, for image 1
...
@@ -463,32 +463,6 @@ StereorectificationDeformationFieldSource<TInputImage, TOutputImage>
...
@@ -463,32 +463,6 @@ StereorectificationDeformationFieldSource<TInputImage, TOutputImage>
epiPoint1[2] = localElevation + m_ElevationOffset;
epiPoint1[2] = localElevation + m_ElevationOffset;
endLine2 = m_LeftToRightTransform->TransformPoint(epiPoint1);
endLine2 = m_LeftToRightTransform->TransformPoint(epiPoint1);
// Compute angle in right image
double alpha2 = 0;
if (endLine2[0] == startLine2[0])
{
if (endLine2[1] > startLine2[1])
{
alpha2 = 0.5*otb::CONST_PI;
}
else
{
alpha2 = -0.5*otb::CONST_PI;
}
}
else
{
a2 = (endLine2[1] - startLine2[1]) / (endLine2[0] - startLine2[0]);
if (endLine2[0] > startLine2[0])
{
alpha2 = vcl_atan(a1);
}
else
{
alpha2 = otb::CONST_PI + vcl_atan(a1);
}
}
// 4 - Determine position of next points
// 4 - Determine position of next points
// We want to move m_Scale pixels away in the epipolar line of the
// We want to move m_Scale pixels away in the epipolar line of the
...
@@ -498,13 +472,6 @@ StereorectificationDeformationFieldSource<TInputImage, TOutputImage>
...
@@ -498,13 +472,6 @@ StereorectificationDeformationFieldSource<TInputImage, TOutputImage>
double deltax1 = m_Scale * m_GridStep * mean_spacing * vcl_cos(alpha1);
double deltax1 = m_Scale * m_GridStep * mean_spacing * vcl_cos(alpha1);
double deltay1 = m_Scale * m_GridStep * mean_spacing * vcl_sin(alpha1);
double deltay1 = m_Scale * m_GridStep * mean_spacing * vcl_sin(alpha1);
// // Before moving currentPoint1, we will store its image by the
// // left to right transform at the m_AverageElevation, to compute
// // the equivalent displacement in right image
//
// currentPoint1[2] = localElevation;
// startLine2 = m_LeftToRightTransform->TransformPoint(currentPoint1);
// Now we move currentPoint1
// Now we move currentPoint1
currentPoint1[0]+=deltax1;
currentPoint1[0]+=deltax1;
currentPoint1[1]+=deltay1;
currentPoint1[1]+=deltay1;
...
@@ -520,23 +487,6 @@ StereorectificationDeformationFieldSource<TInputImage, TOutputImage>
...
@@ -520,23 +487,6 @@ StereorectificationDeformationFieldSource<TInputImage, TOutputImage>
// And we compute the equivalent displacement in right image
// And we compute the equivalent displacement in right image
currentPoint2 = m_LeftToRightTransform->TransformPoint(currentPoint1);
currentPoint2 = m_LeftToRightTransform->TransformPoint(currentPoint1);
// double iscale = vcl_sqrt((endLine2[0]-startLine2[0])*(endLine2[0]-startLine2[0])
// +
// (endLine2[1]-startLine2[1])*(endLine2[1]-startLine2[1]));
//
// // Now, we compute the displacement in right image. The iscale
// // factor already account for m_GridStep and scale, no need to use
// // them again
// //double alpha2 = otb::CONST_PI - vcl_atan(a2);
// double deltax2 = iscale * vcl_cos(alpha2);
// double deltay2 = iscale * vcl_sin(alpha2);
//
// // We can now move currentPoint2
// currentPoint2[0] += deltax2;
// currentPoint2[1] += deltay2;
// currentPoint2[2] = localElevation;
// 5 - Finally, we have to handle a special case for beginning of
// 5 - Finally, we have to handle a special case for beginning of
// line, since at this position we are able to compute the
// line, since at this position we are able to compute the
// position of the beginning of next line
// position of the beginning of next line
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment