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
6707d9b5
Commit
6707d9b5
authored
12 years ago
by
OTB Bot
Browse files
Options
Downloads
Patches
Plain Diff
STYLE
parent
3f4c3da5
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Code/DisparityMap/otbStereorectificationDeformationFieldSource.txx
+5
-5
5 additions, 5 deletions
...arityMap/otbStereorectificationDeformationFieldSource.txx
Code/Learning/otbNeighborhoodMajorityVotingImageFilter.h
+0
-1
0 additions, 1 deletion
Code/Learning/otbNeighborhoodMajorityVotingImageFilter.h
with
5 additions
and
6 deletions
Code/DisparityMap/otbStereorectificationDeformationFieldSource.txx
+
5
−
5
View file @
6707d9b5
...
...
@@ -153,7 +153,7 @@ StereorectificationDeformationFieldSource<TInputImage, TOutputImage>
// stereo-rectified images, as well as the position of the origin in
// the left image
// First, spacing : choose a square spacing,
// First, spacing : choose a square spacing,
SpacingType outputSpacing;
outputSpacing.Fill(m_Scale * m_GridStep);
double mean_spacing=0.5*(vcl_abs(m_LeftImage->GetSpacing()[0])+vcl_abs(m_LeftImage->GetSpacing()[1]));
...
...
@@ -493,7 +493,7 @@ StereorectificationDeformationFieldSource<TInputImage, TOutputImage>
// We want to move m_Scale pixels away in the epipolar line of the
// first image
// Take into account height direction
// Take into account height direction
//double alpha1 = otb::CONST_PI - vcl_atan(a1);
double deltax1 = m_Scale * m_GridStep * mean_spacing * vcl_cos(alpha1);
double deltay1 = m_Scale * m_GridStep * mean_spacing * vcl_sin(alpha1);
...
...
@@ -501,7 +501,7 @@ StereorectificationDeformationFieldSource<TInputImage, TOutputImage>
// // 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);
...
...
@@ -524,14 +524,14 @@ StereorectificationDeformationFieldSource<TInputImage, TOutputImage>
// 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;
...
...
This diff is collapsed.
Click to expand it.
Code/Learning/otbNeighborhoodMajorityVotingImageFilter.h
+
0
−
1
View file @
6707d9b5
...
...
@@ -113,7 +113,6 @@ public:
#endif
//Creates a SetNoDataValue method
virtual
void
SetNoDataValue
(
const
PixelType
_arg
)
{
...
...
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