21 #ifndef otbGenericRSResampleImageFilter_h
22 #define otbGenericRSResampleImageFilter_h
55 template <
class TInputImage,
class TOutputImage>
61 typedef itk::ImageToImageFilter<TInputImage, TOutputImage>
Superclass;
114 m_Resampler->SetOutputOrigin(origin);
138 m_Resampler->SetInterpolator(interpolator);
156 m_Transform->SetOutputProjectionRef(ref);
163 return m_Transform->GetOutputProjectionRef();
168 m_Transform->SetInputProjectionRef(ref);
174 return m_Transform->GetInputProjectionRef();
181 m_Transform->SetOutputImageMetadata(imd);
188 return m_Transform->GetOutputImageMetadata();
195 m_Transform->SetInputImageMetadata(imd);
202 return m_Transform->GetInputImageMetadata();
206 void SetOutputParametersFromImage(
const ImageBaseType* image);
211 template <
class TImageType>
212 void SetOutputParametersFromImage(
const TImageType* image);
217 void SetOutputParametersFromMap(
const std::string& map,
const SpacingType& spacing);
222 void SetOutputParametersFromMap(
const std::string& projectionRef);
227 m_InputRpcEstimator->SetGridSize(gridSize);
234 m_InputRpcEstimator->SetGridSize(gridSize);
241 return m_InputRpcEstimator->GetGridSize();
245 itkSetMacro(EstimateInputRpcModel,
bool);
246 itkGetMacro(EstimateInputRpcModel,
bool);
247 itkBooleanMacro(EstimateInputRpcModel);
253 m_OutputRpcEstimator->SetGridSize(gridSize);
260 m_OutputRpcEstimator->SetGridSize(gridSize);
267 return m_OutputRpcEstimator->GetGridSize();
271 itkSetMacro(EstimateOutputRpcModel,
bool);
272 itkGetMacro(EstimateOutputRpcModel,
bool);
273 itkBooleanMacro(EstimateOutputRpcModel);
279 m_Resampler->SetDisplacementFilterNumberOfThreads(nbThread);
283 void PropagateRequestedRegion(itk::DataObject* output)
override;
290 void GenerateData()
override;
292 void GenerateOutputInformation()
override;
294 virtual void UpdateTransform();
296 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
300 void operator=(
const Self&) =
delete;
303 void EstimateOutputRpcModel();
304 void EstimateInputRpcModel();
320 #ifndef OTB_MANUAL_INSTANTIATION