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
David Youssefi
otb
Commits
18db2664
Commit
18db2664
authored
13 years ago
by
Otmane Lahlou
Browse files
Options
Downloads
Patches
Plain Diff
ENH: add SarRadiometricCalibration application
parent
2e539ed1
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
Applications/Radiometry/CMakeLists.txt
+4
-0
4 additions, 0 deletions
Applications/Radiometry/CMakeLists.txt
Applications/Radiometry/otbSarRadiometricCalibration.cxx
+90
-0
90 additions, 0 deletions
Applications/Radiometry/otbSarRadiometricCalibration.cxx
with
94 additions
and
0 deletions
Applications/Radiometry/CMakeLists.txt
+
4
−
0
View file @
18db2664
...
...
@@ -2,3 +2,7 @@
OTB_CREATE_APPLICATION
(
NAME OpticalCalibration
SOURCES otbOpticalCalibration.cxx
LINK_LIBRARIES OTBIO;OTBRadiometry
)
OTB_CREATE_APPLICATION
(
NAME SarRadiometricCalibration
SOURCES otbSarRadiometricCalibration.cxx
LINK_LIBRARIES OTBIO;OTBRadiometry
)
This diff is collapsed.
Click to expand it.
Applications/Radiometry/otbSarRadiometricCalibration.cxx
0 → 100644
+
90
−
0
View file @
18db2664
/*=========================================================================
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.
=========================================================================*/
#include
"otbWrapperApplication.h"
#include
"otbWrapperApplicationFactory.h"
#include
"otbSarRadiometricCalibrationToImageFilter.h"
namespace
otb
{
namespace
Wrapper
{
class
SarRadiometricCalibration
:
public
Application
{
public:
/** Standard class typedefs. */
typedef
SarRadiometricCalibration
Self
;
typedef
Application
Superclass
;
typedef
itk
::
SmartPointer
<
Self
>
Pointer
;
typedef
itk
::
SmartPointer
<
const
Self
>
ConstPointer
;
/** Standard macro */
itkNewMacro
(
Self
);
itkTypeMacro
(
SarRadiometricCalibration
,
otb
::
Application
);
typedef
otb
::
SarRadiometricCalibrationToImageFilter
<
ComplexFloatImageType
,
ComplexFloatImageType
>
CalibrationFilterType
;
private:
SarRadiometricCalibration
()
{
SetName
(
"SarRadiometricCalibration"
);
SetDescription
(
"Perform SAR calibration on input complex images"
);
}
virtual
~
SarRadiometricCalibration
()
{
}
void
DoCreateParameters
()
{
AddParameter
(
ParameterType_ComplexInputImage
,
"cin"
,
"Input Complex Image"
);
AddParameter
(
ParameterType_ComplexOutputImage
,
"out"
,
"Output Image"
);
AddParameter
(
ParameterType_Empty
,
"noise"
,
"Disable Noise"
);
MandatoryOff
(
"noise"
);
}
void
DoUpdateParameters
()
{
}
void
DoExecute
()
{
// Get the input complex image
ComplexFloatImageType
*
floatComplexImage
=
GetParameterComplexFloatImage
(
"cin"
);
// Set the filer input
m_CalibrationFilter
=
CalibrationFilterType
::
New
();
m_CalibrationFilter
->
SetInput
(
floatComplexImage
);
if
(
IsParameterEnabled
(
"noise"
))
{
m_CalibrationFilter
->
SetEnableNoise
(
false
);
}
// Set the output image
SetParameterComplexOutputImage
(
"out"
,
m_CalibrationFilter
->
GetOutput
());
}
CalibrationFilterType
::
Pointer
m_CalibrationFilter
;
};
}
}
OTB_APPLICATION_EXPORT
(
otb
::
Wrapper
::
SarRadiometricCalibration
)
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