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
d1355788
Commit
d1355788
authored
10 years ago
by
Mickael Savinaud
Browse files
Options
Downloads
Patches
Plain Diff
WIP
parent
e38b7278
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Code/Radiometry/otbAtmosphericCorrectionParameters2.h
+141
-0
141 additions, 0 deletions
Code/Radiometry/otbAtmosphericCorrectionParameters2.h
Code/Radiometry/otbImageMetadataCorrectionParameters.h
+2
-2
2 additions, 2 deletions
Code/Radiometry/otbImageMetadataCorrectionParameters.h
with
143 additions
and
2 deletions
Code/Radiometry/otbAtmosphericCorrectionParameters2.h
0 → 100644
+
141
−
0
View file @
d1355788
/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#ifndef __otbAtmosphericCorrectionParameters2_h
#define __otbAtmosphericCorrectionParameters2_h
#include
"itkObject.h"
#include
"itkObjectFactory.h"
#include
"itkMacro.h"
#include
"itkVariableSizeMatrix.h"
#include
"itkVariableLengthVector.h"
#include
"otbObjectList.h"
#include
"otbFilterFunctionValues.h"
#include
<vector>
#include
<iostream>
namespace
otb
{
/** \class AtmosphericCorrectionParameters2
* \brief This class contains all atmospheric correction parameters.
*
* Each value can be read in the metadata of an image (ex: SPOT5, ...) or directly set by the user.
*
* \ingroup Radiometry
*
*/
class
ITK_EXPORT
AtmosphericCorrectionParameters2
:
public
itk
::
DataObject
{
public:
/** Standard typedefs */
typedef
AtmosphericCorrectionParameters2
Self
;
typedef
itk
::
Object
Superclass
;
typedef
itk
::
SmartPointer
<
Self
>
Pointer
;
typedef
itk
::
SmartPointer
<
const
Self
>
ConstPointer
;
/** Type macro */
itkTypeMacro
(
AtmosphericCorrectionParameters2
,
Object
);
/** Creation through object factory macro */
itkNewMacro
(
Self
);
typedef
enum
{
NO_AEROSOL
=
0
,
CONTINENTAL
=
1
,
MARITIME
=
2
,
URBAN
=
3
,
DESERTIC
=
4
}
AerosolModelType
;
typedef
ObjectList
<
FilterFunctionValues
>
InternalWavelengthSpectralBandVectorType
;
typedef
InternalWavelengthSpectralBandVectorType
::
Pointer
WavelengthSpectralBandVectorType
;
/**
* Set/Get the atmospheric pressure.
*/
itkSetMacro
(
AtmosphericPressure
,
double
);
itkGetMacro
(
AtmosphericPressure
,
double
);
/**
* Set/Get the water vapor amount.
*/
itkSetMacro
(
WaterVaporAmount
,
double
);
itkGetMacro
(
WaterVaporAmount
,
double
);
/**
* Set/Get the ozone amount.
*/
itkSetMacro
(
OzoneAmount
,
double
);
itkGetMacro
(
OzoneAmount
,
double
);
/**
* Set/Get the aerosol model.
*/
itkSetEnumMacro
(
AerosolModel
,
AerosolModelType
);
itkGetEnumMacro
(
AerosolModel
,
AerosolModelType
);
/**
* Set/Get the aerosol optical.
*/
itkSetMacro
(
AerosolOptical
,
double
);
itkGetMacro
(
AerosolOptical
,
double
);
/** Read the aeronet data and extract aerosol optical and water vapor amount. */
void
ReadAeronetData
(
const
std
::
string
&
file
,
int
year
,
int
month
,
int
day
,
int
hour
,
int
minute
,
double
epsi
);
void
UpdateAeronetData
(
const
std
::
string
&
file
,
int
year
,
int
month
,
int
day
,
int
hour
,
int
minute
,
double
epsi
);
void
UpdateAeronetData
(
const
std
::
string
&
file
,
int
year
,
int
month
,
int
day
,
int
hour
,
int
minute
)
{
this
->
UpdateAeronetData
(
file
,
year
,
month
,
day
,
hour
,
minute
,
0.4
);
}
void
UpdateAeronetData
(
const
std
::
string
&
file
,
int
year
,
int
hour
,
int
minute
,
double
epsi
)
{
this
->
UpdateAeronetData
(
file
,
year
,
m_Month
,
m_Day
,
hour
,
minute
,
epsi
);
}
void
UpdateAeronetData
(
const
std
::
string
&
file
,
int
year
,
int
hour
,
int
minute
)
{
this
->
UpdateAeronetData
(
file
,
year
,
m_Month
,
m_Day
,
hour
,
minute
,
0.4
);
}
/** Constructor */
AtmosphericCorrectionParameters2
();
/** Destructor */
~
AtmosphericCorrectionParameters2
()
{}
protected
:
/**PrintSelf method */
void
PrintSelf
(
std
::
ostream
&
os
,
itk
::
Indent
indent
)
const
;
private
:
AtmosphericCorrectionParameters2
(
const
Self
&
);
//purposely not implemented
void
operator
=
(
const
Self
&
);
//purposely not implemented
/** The Atmospheric pressure */
double
m_AtmosphericPressure
;
/** The Water vapor amount (Total water vapor content over vertical atmospheric column) */
double
m_WaterVaporAmount
;
/** The Ozone amount (Stratospheric ozone layer content) */
double
m_OzoneAmount
;
/** The Aerosol model */
AerosolModelType
m_AerosolModel
;
/** The Aerosol optical (radiative impact of aerosol for the reference wavelength 550-nm) */
double
m_AerosolOptical
;
};
}
// end namespace otb
#endif
This diff is collapsed.
Click to expand it.
Code/Radiometry/otbImageMetadataCorrectionParameters.h
+
2
−
2
View file @
d1355788
...
@@ -15,8 +15,8 @@
...
@@ -15,8 +15,8 @@
PURPOSE. See the above copyright notices for more information.
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
=========================================================================*/
#ifndef __otb
Atmospheric
CorrectionParameters_h
#ifndef __otb
ImageMetadata
CorrectionParameters_h
#define __otb
Atmospheric
CorrectionParameters_h
#define __otb
ImageMetadata
CorrectionParameters_h
#include
"itkObject.h"
#include
"itkObject.h"
#include
"itkMacro.h"
#include
"itkMacro.h"
...
...
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