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
Container Registry
Model registry
Operate
Environments
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
Antoine Belvire
otb
Commits
0166c476
Commit
0166c476
authored
15 years ago
by
Emmanuel Christophe
Browse files
Options
Downloads
Patches
Plain Diff
ENH: add accessors
parent
2fe708da
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/BasicFilters/otbHillShadingFunctor.h
+35
-4
35 additions, 4 deletions
Code/BasicFilters/otbHillShadingFunctor.h
with
35 additions
and
4 deletions
Code/BasicFilters/otbHillShadingFunctor.h
+
35
−
4
View file @
0166c476
...
...
@@ -51,6 +51,36 @@ public:
}
~
HillShadingFunctor
()
{}
double
GetXRes
()
const
{
return
m_XRes
;
}
double
GetYRes
()
const
{
return
m_YRes
;
}
void
SetXRes
(
double
res
)
{
m_XRes
=
vcl_abs
(
res
);
}
void
SetYRes
(
double
res
)
{
m_YRes
=
vcl_abs
(
res
);
}
double
GetScale
()
const
{
return
m_Scale
;
}
void
SetScale
(
double
scale
)
{
m_Scale
=
scale
;
}
inline
TOutput
operator
()(
const
TNeighIter
&
it
)
const
{
const
typename
IteratorType
::
OffsetType
LEFT
=
{{
-
1
,
0
}};
...
...
@@ -83,12 +113,13 @@ private:
HillShadingFunctor
(
const
Self
&
);
//purposely not implemented
void
operator
=
(
const
Self
&
);
//purposely not implemented
double
m_AzimuthLight
;
double
m_ElevationLight
;
double
m_XRes
;
double
m_YRes
;
double
m_AzimuthLight
;
// in radian
double
m_ElevationLight
;
// in radian
double
m_XRes
;
// assumed to be positive provided in m
double
m_YRes
;
// assumed to be positive provided in m
double
m_Scale
;
// precomputed parameters to avoid the sin() cos() call for each pixel
double
m_SinElev
;
double
m_CosElev
;
double
m_SinAz
;
...
...
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