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
c5efc778
Commit
c5efc778
authored
10 years ago
by
Mickael Savinaud
Browse files
Options
Downloads
Patches
Plain Diff
ENH: use FLoat Image type as input type instead of Double
for information in prevous version it is UInt16
parent
f673e1b9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Applications/Radiometry/otbOpticalCalibration.cxx
+4
-5
4 additions, 5 deletions
Applications/Radiometry/otbOpticalCalibration.cxx
with
4 additions
and
5 deletions
Applications/Radiometry/otbOpticalCalibration.cxx
+
4
−
5
View file @
c5efc778
...
...
@@ -73,7 +73,7 @@ public:
itkTypeMacro
(
OpticalCalibration
,
Application
);
typedef
ImageToLuminanceImageFilter
<
Double
VectorImageType
,
typedef
ImageToLuminanceImageFilter
<
Float
VectorImageType
,
DoubleVectorImageType
>
ImageToLuminanceImageFilterType
;
typedef
LuminanceToReflectanceImageFilter
<
DoubleVectorImageType
,
...
...
@@ -82,7 +82,7 @@ public:
typedef
LuminanceToImageImageFilter
<
DoubleVectorImageType
,
DoubleVectorImageType
>
LuminanceToImageImageFilterType
;
typedef
ReflectanceToLuminanceImageFilter
<
Double
VectorImageType
,
typedef
ReflectanceToLuminanceImageFilter
<
Float
VectorImageType
,
DoubleVectorImageType
>
ReflectanceToLuminanceImageFilterType
;
typedef
otb
::
MultiplyByScalarImageFilter
<
DoubleVectorImageType
,
...
...
@@ -318,7 +318,7 @@ private:
ossOutput
<<
std
::
endl
<<
"File: "
<<
m_inImageName
<<
std
::
endl
;
//Check if valid metadata informations are available to compute ImageToLuminance and LuminanceToReflectance
Double
VectorImageType
::
Pointer
inImage
=
GetParameter
Double
VectorImage
(
"in"
);
Float
VectorImageType
::
Pointer
inImage
=
GetParameter
Float
VectorImage
(
"in"
);
itk
::
MetaDataDictionary
dict
=
inImage
->
GetMetaDataDictionary
();
OpticalImageMetadataInterface
::
Pointer
lImageMetadataInterface
=
OpticalImageMetadataInterfaceFactory
::
CreateIMI
(
dict
);
...
...
@@ -440,7 +440,7 @@ private:
m_ScaleFilter
->
InPlaceOn
();
m_ClampFilter
=
ClampFilterType
::
New
();
Double
VectorImageType
::
Pointer
inImage
=
GetParameter
Double
VectorImage
(
"in"
);
Float
VectorImageType
::
Pointer
inImage
=
GetParameter
Float
VectorImage
(
"in"
);
// Set (Date and Day) OR FluxNormalizationCoef to corresponding filters
if
(
!
IsParameterEnabled
(
"acquisition.fluxnormalizationcoefficient"
)
)
...
...
@@ -532,7 +532,6 @@ private:
itkExceptionMacro
(
<<
"Please, provide a type of sensor supported by OTB for automatic metadata extraction! "
);
}
// Set Solar Illumination to corresponding filters
if
(
HasValue
(
"acquisition.solarilluminations"
))
{
...
...
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