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
654c9d7c
Commit
654c9d7c
authored
14 years ago
by
Otmane Lahlou
Browse files
Options
Downloads
Patches
Plain Diff
ENH : template input & output rpc estimator with right image types
parent
e7c7a734
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Code/Projections/otbGenericRSResampleImageFilter.h
+14
-10
14 additions, 10 deletions
Code/Projections/otbGenericRSResampleImageFilter.h
Code/Projections/otbGenericRSResampleImageFilter.txx
+2
-2
2 additions, 2 deletions
Code/Projections/otbGenericRSResampleImageFilter.txx
with
16 additions
and
12 deletions
Code/Projections/otbGenericRSResampleImageFilter.h
+
14
−
10
View file @
654c9d7c
...
@@ -81,8 +81,12 @@ public:
...
@@ -81,8 +81,12 @@ public:
typedef
typename
ResamplerType
::
InterpolatorType
InterpolatorType
;
typedef
typename
ResamplerType
::
InterpolatorType
InterpolatorType
;
/** Estimate the rpc model */
/** Estimate the rpc model */
typedef
PhysicalToRPCSensorModelImageFilter
<
InputImageType
>
RpcModelEstimatorType
;
typedef
PhysicalToRPCSensorModelImageFilter
<
InputImageType
>
InputRpcModelEstimatorType
;
typedef
typename
RpcModelEstimatorType
::
Pointer
RpcModelEstimatorPointerType
;
typedef
typename
InputRpcModelEstimatorType
::
Pointer
InputRpcModelEstimatorPointerType
;
typedef
PhysicalToRPCSensorModelImageFilter
<
OutputImageType
>
OutputRpcModelEstimatorType
;
typedef
typename
OutputRpcModelEstimatorType
::
Pointer
OutputRpcModelEstimatorPointerType
;
/** Specialisation of OptResampleFilter with a remote
/** Specialisation of OptResampleFilter with a remote
* sensing transform
* sensing transform
...
@@ -185,7 +189,7 @@ public:
...
@@ -185,7 +189,7 @@ public:
this
->
Modified
();
this
->
Modified
();
}
}
const
ImageKeywordlist
&
GetOutputKeywordList
()
const
ImageKeywordlist
GetOutputKeywordList
()
{
{
return
m_Transform
->
GetInputKeywordList
();
return
m_Transform
->
GetInputKeywordList
();
}
}
...
@@ -282,15 +286,15 @@ private:
...
@@ -282,15 +286,15 @@ private:
void
EstimateInputRpcModel
();
void
EstimateInputRpcModel
();
// boolean that allow the estimation of the input rpc model
// boolean that allow the estimation of the input rpc model
bool
m_EstimateInputRpcModel
;
bool
m_EstimateInputRpcModel
;
bool
m_EstimateOutputRpcModel
;
bool
m_EstimateOutputRpcModel
;
bool
m_RpcEstimationUpdated
;
bool
m_RpcEstimationUpdated
;
// Filters pointers
// Filters pointers
ResamplerPointerType
m_Resampler
;
ResamplerPointerType
m_Resampler
;
RpcModelEstimatorPointerType
m_InputRpcEstimator
;
Input
RpcModelEstimatorPointerType
m_InputRpcEstimator
;
RpcModelEstimatorPointerType
m_OutputRpcEstimator
;
Output
RpcModelEstimatorPointerType
m_OutputRpcEstimator
;
GenericRSTransformPointerType
m_Transform
;
GenericRSTransformPointerType
m_Transform
;
};
};
}
// namespace otb
}
// namespace otb
...
...
This diff is collapsed.
Click to expand it.
Code/Projections/otbGenericRSResampleImageFilter.txx
+
2
−
2
View file @
654c9d7c
...
@@ -38,8 +38,8 @@ GenericRSResampleImageFilter<TInputImage, TOutputImage>
...
@@ -38,8 +38,8 @@ GenericRSResampleImageFilter<TInputImage, TOutputImage>
// internal filters instanciation
// internal filters instanciation
m_Resampler = ResamplerType::New();
m_Resampler = ResamplerType::New();
m_InputRpcEstimator = RpcModelEstimatorType::New();
m_InputRpcEstimator =
Input
RpcModelEstimatorType::New();
m_OutputRpcEstimator= RpcModelEstimatorType::New();
m_OutputRpcEstimator=
Output
RpcModelEstimatorType::New();
m_Transform = GenericRSTransformType::New();
m_Transform = GenericRSTransformType::New();
}
}
...
...
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