Skip to content
Snippets Groups Projects
Commit 654c9d7c authored by Otmane Lahlou's avatar Otmane Lahlou
Browse files

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
...@@ -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; InputRpcModelEstimatorPointerType m_InputRpcEstimator;
RpcModelEstimatorPointerType m_OutputRpcEstimator; OutputRpcModelEstimatorPointerType m_OutputRpcEstimator;
GenericRSTransformPointerType m_Transform; GenericRSTransformPointerType m_Transform;
}; };
} // namespace otb } // namespace otb
......
...@@ -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 = InputRpcModelEstimatorType::New();
m_OutputRpcEstimator= RpcModelEstimatorType::New(); m_OutputRpcEstimator= OutputRpcModelEstimatorType::New();
m_Transform = GenericRSTransformType::New(); m_Transform = GenericRSTransformType::New();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment