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
2395cf56
Commit
2395cf56
authored
14 years ago
by
Manuel Grizonnet
Browse files
Options
Downloads
Patches
Plain Diff
revert pan+xs fusion
parent
9ac0f605
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
Projections/otbOrthoRectification.cxx
+9
-27
9 additions, 27 deletions
Projections/otbOrthoRectification.cxx
with
9 additions
and
27 deletions
Projections/otbOrthoRectification.cxx
+
9
−
27
View file @
2395cf56
...
@@ -46,17 +46,17 @@ int generic_main(otb::ApplicationOptionsResult* parseResult,
...
@@ -46,17 +46,17 @@ int generic_main(otb::ApplicationOptionsResult* parseResult,
{
{
try
try
{
{
typedef
otb
::
VectorImage
<
double
,
2
>
ImageType
;
typedef
otb
::
VectorImage
<
double
,
2
>
ImageType
;
typedef
otb
::
ImageFileReader
<
ImageType
>
ReaderType
;
typedef
otb
::
ImageFileReader
<
ImageType
>
ReaderType
;
typedef
otb
::
StreamingImageFileWriter
<
ImageType
>
WriterType
;
typedef
otb
::
StreamingImageFileWriter
<
ImageType
>
WriterType
;
typedef
TMapProjection
MapProjectionType
;
typedef
TMapProjection
MapProjectionType
;
typedef
otb
::
OrthoRectificationFilter
<
ImageType
,
ImageType
,
MapProjectionType
>
OrthorectifFilterType
;
typedef
otb
::
OrthoRectificationFilter
<
ImageType
,
ImageType
,
MapProjectionType
>
OrthorectifFilterType
;
typedef
otb
::
GenericRSResampleImageFilter
<
ImageType
,
ImageType
>
ResampleFilterType
;
typedef
itk
::
LinearInterpolateImageFunction
<
ImageType
,
double
>
LinearInterpolationType
;
typedef
itk
::
LinearInterpolateImageFunction
<
ImageType
,
double
>
LinearInterpolationType
;
typedef
itk
::
NearestNeighborInterpolateImageFunction
<
ImageType
,
double
>
NearestNeighborInterpolationType
;
typedef
itk
::
NearestNeighborInterpolateImageFunction
<
ImageType
,
double
>
NearestNeighborInterpolationType
;
typedef
otb
::
BCOInterpolateImageFunction
<
ImageType
>
BCOInterpolationType
;
typedef
otb
::
BCOInterpolateImageFunction
<
ImageType
>
BCOInterpolationType
;
typedef
otb
::
PipelineMemoryPrintCalculator
MemoryCalculatorType
;
typedef
otb
::
PipelineMemoryPrintCalculator
MemoryCalculatorType
;
// Read input image information
// Read input image information
ReaderType
::
Pointer
reader
=
ReaderType
::
New
();
ReaderType
::
Pointer
reader
=
ReaderType
::
New
();
...
@@ -198,24 +198,7 @@ int generic_main(otb::ApplicationOptionsResult* parseResult,
...
@@ -198,24 +198,7 @@ int generic_main(otb::ApplicationOptionsResult* parseResult,
itkGenericExceptionMacro
(
<<
"Interpolator type not recognized, choose one with (parameters) : BCO(0/1), NEARESTNEIGHBOR(0), LINEAR(0)"
);
itkGenericExceptionMacro
(
<<
"Interpolator type not recognized, choose one with (parameters) : BCO(0/1), NEARESTNEIGHBOR(0), LINEAR(0)"
);
}
}
}
}
//Resample xs on pan
if
(
parseResult
->
IsOptionPresent
(
"XS"
)
)
{
ReaderType
::
Pointer
xsreader
=
ReaderType
::
New
();
xsreader
->
SetFileName
(
parseResult
->
GetParameterString
(
"XS"
));
xsreader
->
GenerateOutputInformation
();
//TODO manage calibration case here
//resample result
ResampleFilterType
::
Pointer
resampler
=
ResampleFilterType
::
New
();
resampler
->
SetInput
(
xsreader
->
GetOutput
());
orthofilter
->
UpdateOutputInformation
();
resampler
->
SetOutputParametersFromImage
(
orthofilter
->
GetOutput
());
//Add PAN+XS fusion
}
//Instantiate the writer
//Instantiate the writer
WriterType
::
Pointer
writer
=
WriterType
::
New
();
WriterType
::
Pointer
writer
=
WriterType
::
New
();
writer
->
SetFileName
(
parseResult
->
GetOutputImage
());
writer
->
SetFileName
(
parseResult
->
GetOutputImage
());
...
@@ -277,7 +260,6 @@ int OrthoRectification::Describe(ApplicationDescriptor* descriptor)
...
@@ -277,7 +260,6 @@ int OrthoRectification::Describe(ApplicationDescriptor* descriptor)
descriptor
->
SetName
(
"FastOrthoRectif"
);
descriptor
->
SetName
(
"FastOrthoRectif"
);
descriptor
->
SetDescription
(
"Using available image metadata to determine the sensor model, computes a cartographic projection of the image"
);
descriptor
->
SetDescription
(
"Using available image metadata to determine the sensor model, computes a cartographic projection of the image"
);
descriptor
->
AddInputImage
();
descriptor
->
AddInputImage
();
descriptor
->
AddOption
(
"XS"
,
"The input multi-spectral image (will perform orthofusion"
,
"xs"
,
1
,
false
,
otb
::
ApplicationDescriptor
::
InputImage
);
descriptor
->
AddOutputImage
();
descriptor
->
AddOutputImage
();
descriptor
->
AddOption
(
"UpperLeft"
,
"Cartographic X/Y coordinate of upper left corner "
,
"ul"
,
2
,
false
,
otb
::
ApplicationDescriptor
::
Real
);
descriptor
->
AddOption
(
"UpperLeft"
,
"Cartographic X/Y coordinate of upper left corner "
,
"ul"
,
2
,
false
,
otb
::
ApplicationDescriptor
::
Real
);
descriptor
->
AddOption
(
"OutputSize"
,
"Size of result image in X/Y"
,
"size"
,
2
,
false
,
otb
::
ApplicationDescriptor
::
Integer
);
descriptor
->
AddOption
(
"OutputSize"
,
"Size of result image in X/Y"
,
"size"
,
2
,
false
,
otb
::
ApplicationDescriptor
::
Integer
);
...
...
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