21 #ifndef otbWrapperInputImageParameter_h
22 #define otbWrapperInputImageParameter_h
29 #include "itkImageBase.h"
60 itk::Object::Pointer
app;
66 bool SetFromFileName(std::string filename);
67 itkGetConstReferenceMacro(FileName, std::string);
72 m_Connection = std::move(c);
82 m_Connection.isMem = isMem;
123 template <
class TImageType>
124 TImageType* GetImage();
131 template <
class TInputImage,
class TOutputImage>
132 TOutputImage* CastImage();
134 bool HasValue()
const override;
135 void ClearValue()
override;
138 std::string ToString()
const override;
139 void FromString(
const std::string& value)
override;
150 void operator=(
const Parameter&) =
delete;
153 itk::ProcessObject::Pointer m_Reader =
nullptr;
155 ImageBaseType::Pointer m_Image =
nullptr;
157 itk::ProcessObject::Pointer m_OutputCaster =
nullptr;
158 itk::DataObject::Pointer m_OutputCasted =
nullptr;
162 template <
typename TOutputImage,
typename TInputImage>
163 TOutputImage* Cast(TInputImage*);
169 bool m_UseFilename =
true;
178 #ifndef OTB_MANUAL_INSTANTIATION