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
73b05cb3
Commit
73b05cb3
authored
9 years ago
by
Julien Michel
Browse files
Options
Downloads
Patches
Plain Diff
DOC: Adding doxygen documentation for new functions
parent
3dc5c2a1
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Modules/Core/ImageBase/include/otbNoDataHelper.h
+16
-0
16 additions, 0 deletions
Modules/Core/ImageBase/include/otbNoDataHelper.h
with
16 additions
and
0 deletions
Modules/Core/ImageBase/include/otbNoDataHelper.h
+
16
−
0
View file @
73b05cb3
...
...
@@ -53,6 +53,18 @@ std::vector<bool> & flags, const std::vector<double> & values) {
}
/**
* Reads a pixel and change the no data value if it is found. No data
* value is changed either if the pixel value is NaN or if the pixel
* value equals the no data value and flag is true.
*
* \param pixel The pixel to process \param flags A vector of size > 1
* containing a flag per band to indicate if a no data value is
* available for this band
* \param values A vector of size > 1 corresponding to the current no data
* value for each band. If flag is 0, the value will be ignored.
* \param newValues A vector of size > 1 corresponding to the new no data
* value for each band. If flag is 0, the value will be ignored.
*
*/
template
<
typename
T
>
T
ChangeNoData
(
const
T
&
pixel
,
const
std
::
vector
<
bool
>
&
flags
,
...
...
@@ -99,6 +111,10 @@ template <typename T> bool IsNoData(const itk::VariableLengthVector<T> & pixel,
return
false
;
}
/**
* Specialization of ChangeNoData function to handle itk::VariableLengthVector
*/
template
<
typename
T
>
itk
::
VariableLengthVector
<
T
>
ChangeNoData
(
const
itk
::
VariableLengthVector
<
T
>
&
pixel
,
const
std
::
vector
<
bool
>
&
flags
,
const
std
::
vector
<
double
>
&
values
,
...
...
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