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
e069384c
Commit
e069384c
authored
11 years ago
by
Jonathan Guinet
Browse files
Options
Downloads
Patches
Plain Diff
ENH: masked disparity values are filled with no data value in DisparitiesTranslate filter.
parent
e612c19e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Code/DisparityMap/otbDisparityTranslateFilter.h
+6
-0
6 additions, 0 deletions
Code/DisparityMap/otbDisparityTranslateFilter.h
Code/DisparityMap/otbDisparityTranslateFilter.txx
+3
-2
3 additions, 2 deletions
Code/DisparityMap/otbDisparityTranslateFilter.txx
with
9 additions
and
2 deletions
Code/DisparityMap/otbDisparityTranslateFilter.h
+
6
−
0
View file @
e069384c
...
@@ -63,6 +63,7 @@ public:
...
@@ -63,6 +63,7 @@ public:
typedef
TMaskImage
MaskType
;
typedef
TMaskImage
MaskType
;
typedef
TSensorImage
SensorType
;
typedef
TSensorImage
SensorType
;
typedef
typename
DispMapType
::
PixelType
PixelType
;
typedef
typename
DispMapType
::
RegionType
RegionType
;
typedef
typename
DispMapType
::
RegionType
RegionType
;
typedef
typename
DispMapType
::
SizeType
SizeType
;
typedef
typename
DispMapType
::
SizeType
SizeType
;
typedef
typename
DispMapType
::
IndexType
IndexType
;
typedef
typename
DispMapType
::
IndexType
IndexType
;
...
@@ -71,6 +72,10 @@ public:
...
@@ -71,6 +72,10 @@ public:
typedef
typename
GridType
::
RegionType
GridRegionType
;
typedef
typename
GridType
::
RegionType
GridRegionType
;
/** Set/Get macro for NoDataValue */
itkSetMacro
(
NoDataValue
,
PixelType
);
itkGetConstReferenceMacro
(
NoDataValue
,
PixelType
);
/** Set the horizontal disparity map */
/** Set the horizontal disparity map */
void
SetHorizontalDisparityMapInput
(
const
TDisparityImage
*
hmap
);
void
SetHorizontalDisparityMapInput
(
const
TDisparityImage
*
hmap
);
...
@@ -123,6 +128,7 @@ private:
...
@@ -123,6 +128,7 @@ private:
DisparityTranslateFilter
(
const
Self
&
);
//purposely not implemented
DisparityTranslateFilter
(
const
Self
&
);
//purposely not implemented
void
operator
=
(
const
Self
&
);
//purposely not implemented
void
operator
=
(
const
Self
&
);
//purposely not implemented
PixelType
m_NoDataValue
;
};
};
}
// end namespace otb
}
// end namespace otb
...
...
This diff is collapsed.
Click to expand it.
Code/DisparityMap/otbDisparityTranslateFilter.txx
+
3
−
2
View file @
e069384c
...
@@ -30,6 +30,7 @@ template <class TDisparityImage, class TGridImage, class TSensorImage, class TMa
...
@@ -30,6 +30,7 @@ template <class TDisparityImage, class TGridImage, class TSensorImage, class TMa
DisparityTranslateFilter<TDisparityImage,TGridImage,TSensorImage,TMaskImage>
DisparityTranslateFilter<TDisparityImage,TGridImage,TSensorImage,TMaskImage>
::DisparityTranslateFilter()
::DisparityTranslateFilter()
{
{
m_NoDataValue = -32768;
// Set the number of inputs (1 moving image by default -> 3 inputs)
// Set the number of inputs (1 moving image by default -> 3 inputs)
this->SetNumberOfInputs(6);
this->SetNumberOfInputs(6);
this->SetNumberOfRequiredInputs(1);
this->SetNumberOfRequiredInputs(1);
...
@@ -452,8 +453,8 @@ DisparityTranslateFilter<TDisparityImage,TGridImage,TSensorImage,TMaskImage>
...
@@ -452,8 +453,8 @@ DisparityTranslateFilter<TDisparityImage,TGridImage,TSensorImage,TMaskImage>
}
}
else
else
{
{
horizIter.Set(
0
);
horizIter.Set(
m_NoDataValue
);
vertiIter.Set(
0
);
vertiIter.Set(
m_NoDataValue
);
}
}
++horizIter;
++horizIter;
...
...
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