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
411e8216
Commit
411e8216
authored
14 years ago
by
Otmane Lahlou
Browse files
Options
Downloads
Patches
Plain Diff
ENH : add the use of the dem in the gcp2sensor model & TYPO
parent
c5b04fb7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Code/Projections/otbGenericRSResampleImageFilter.h
+2
-0
2 additions, 0 deletions
Code/Projections/otbGenericRSResampleImageFilter.h
Code/Projections/otbGenericRSResampleImageFilter.txx
+6
-4
6 additions, 4 deletions
Code/Projections/otbGenericRSResampleImageFilter.txx
with
8 additions
and
4 deletions
Code/Projections/otbGenericRSResampleImageFilter.h
+
2
−
0
View file @
411e8216
...
...
@@ -187,6 +187,8 @@ public:
void
SetDEMDirectory
(
const
std
::
string
&
dem
)
{
m_Transform
->
SetDEMDirectory
(
dem
);
m_InputRpcEstimator
->
SetDEMDirectory
(
dem
);
m_OutputRpcEstimator
->
SetDEMDirectory
(
dem
);
this
->
Modified
();
}
otbGetObjectMemberConstMacro
(
Transform
,
DEMDirectory
,
std
::
string
);
...
...
This diff is collapsed.
Click to expand it.
Code/Projections/otbGenericRSResampleImageFilter.txx
+
6
−
4
View file @
411e8216
...
...
@@ -83,7 +83,7 @@ GenericRSResampleImageFilter<TInputImage, TOutputImage, TDeformationField>
// Get the Output MetaData Dictionary
itk::MetaDataDictionary& dict = outputPtr->GetMetaDataDictionary();
// Encapsulate the
output
metadata
// Encapsulate the metadata
set by the user
itk::EncapsulateMetaData<std::string>(dict, MetaDataKey::ProjectionRefKey,
this->GetOutputProjectionRef());
...
...
@@ -93,7 +93,7 @@ GenericRSResampleImageFilter<TInputImage, TOutputImage, TDeformationField>
this->GetOutputKeywordList());
}
// Estimate the rpc Model
// Estimate the
output
rpc Model
if needed
if (m_EstimateOutputRpcModel)
this->EstimateOutputRpcModel();
}
...
...
@@ -174,7 +174,7 @@ GenericRSResampleImageFilter<TInputImage, TOutputImage, TDeformationField>
// Retrieve output requested region
RegionType requestedRegion = outputPtr->GetRequestedRegion();
//
Generate input requested region
//
Estimate the input rpc model if it is needed
if (m_EstimateInputRpcModel && !m_rpcEstimationUpdated)
{
this->EstimateInputRpcModel();
...
...
@@ -182,6 +182,8 @@ GenericRSResampleImageFilter<TInputImage, TOutputImage, TDeformationField>
// Instanciate the RS transform
this->UpdateTransform();
// Generate input requested region
m_Resampler->SetInput(this->GetInput());
m_Resampler->SetTransform(m_Transform);
m_Resampler->SetDeformationFieldSpacing(this->GetDeformationFieldSpacing());
...
...
@@ -214,7 +216,7 @@ GenericRSResampleImageFilter<TInputImage, TOutputImage, TDeformationField>
itk::EncapsulateMetaData<ImageKeywordlist>(tempDict, MetaDataKey::OSSIMKeywordlistKey,
this->GetInputKeywordList());
// Estimate the rpc model
from
the temp image
// Estimate the rpc model
with
the temp image
m_InputRpcEstimator->SetInput(tempPtr);
m_InputRpcEstimator->GenerateOutputInformation();
...
...
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