Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Main Repositories
otb
Commits
f659666e
Commit
f659666e
authored
Nov 08, 2013
by
Julien Malik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ENH: more and more logs in OrthoRectification application
parent
a486e95a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
Applications/Projections/otbOrthoRectification.cxx
Applications/Projections/otbOrthoRectification.cxx
+6
-1
No files found.
Applications/Projections/otbOrthoRectification.cxx
View file @
f659666e
...
@@ -604,7 +604,8 @@ private:
...
@@ -604,7 +604,8 @@ private:
if
(
IsParameterEnabled
(
"opt.rpc"
))
if
(
IsParameterEnabled
(
"opt.rpc"
))
{
{
m_ResampleFilter
->
EstimateInputRpcModelOn
();
m_ResampleFilter
->
EstimateInputRpcModelOn
();
m_ResampleFilter
->
SetInputRpcGridSize
(
GetParameterInt
(
"opt.rpc"
));
m_ResampleFilter
->
SetInputRpcGridSize
(
GetParameterInt
(
"opt.rpc"
)
);
otbAppLogINFO
(
"Generating RPC modeling with "
<<
GetParameterInt
(
"opt.rpc"
)
<<
" points per axis"
);
}
}
// Set Output information
// Set Output information
...
@@ -612,22 +613,26 @@ private:
...
@@ -612,22 +613,26 @@ private:
size
[
0
]
=
GetParameterInt
(
"outputs.sizex"
);
size
[
0
]
=
GetParameterInt
(
"outputs.sizex"
);
size
[
1
]
=
GetParameterInt
(
"outputs.sizey"
);
size
[
1
]
=
GetParameterInt
(
"outputs.sizey"
);
m_ResampleFilter
->
SetOutputSize
(
size
);
m_ResampleFilter
->
SetOutputSize
(
size
);
otbAppLogINFO
(
"Generating output with size = "
<<
size
);
ResampleFilterType
::
SpacingType
spacing
;
ResampleFilterType
::
SpacingType
spacing
;
spacing
[
0
]
=
GetParameterFloat
(
"outputs.spacingx"
);
spacing
[
0
]
=
GetParameterFloat
(
"outputs.spacingx"
);
spacing
[
1
]
=
GetParameterFloat
(
"outputs.spacingy"
);
spacing
[
1
]
=
GetParameterFloat
(
"outputs.spacingy"
);
m_ResampleFilter
->
SetOutputSpacing
(
spacing
);
m_ResampleFilter
->
SetOutputSpacing
(
spacing
);
otbAppLogINFO
(
"Generating output with pixel spacing = "
<<
spacing
);
ResampleFilterType
::
OriginType
ul
;
ResampleFilterType
::
OriginType
ul
;
ul
[
0
]
=
GetParameterFloat
(
"outputs.ulx"
);
ul
[
0
]
=
GetParameterFloat
(
"outputs.ulx"
);
ul
[
1
]
=
GetParameterFloat
(
"outputs.uly"
);
ul
[
1
]
=
GetParameterFloat
(
"outputs.uly"
);
m_ResampleFilter
->
SetOutputOrigin
(
ul
);
m_ResampleFilter
->
SetOutputOrigin
(
ul
);
otbAppLogINFO
(
"Generating output with origin = "
<<
ul
);
// Build the default pixel
// Build the default pixel
FloatVectorImageType
::
PixelType
defaultValue
;
FloatVectorImageType
::
PixelType
defaultValue
;
defaultValue
.
SetSize
(
inImage
->
GetNumberOfComponentsPerPixel
());
defaultValue
.
SetSize
(
inImage
->
GetNumberOfComponentsPerPixel
());
defaultValue
.
Fill
(
GetParameterFloat
(
"outputs.default"
));
defaultValue
.
Fill
(
GetParameterFloat
(
"outputs.default"
));
m_ResampleFilter
->
SetEdgePaddingValue
(
defaultValue
);
m_ResampleFilter
->
SetEdgePaddingValue
(
defaultValue
);
otbAppLogINFO
(
"Area outside input image bounds will have a pixel value of "
<<
defaultValue
);
// Deformation Field spacing
// Deformation Field spacing
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment