diff --git a/Modules/Wrappers/ApplicationEngine/include/otbWrapperOutputImageParameter.h b/Modules/Wrappers/ApplicationEngine/include/otbWrapperOutputImageParameter.h index 7bcb5fdb3318a784b7a4672c7a06b6ca61b2e8ee..c2b072724045d8828992bc753ab51a0ccf939317 100644 --- a/Modules/Wrappers/ApplicationEngine/include/otbWrapperOutputImageParameter.h +++ b/Modules/Wrappers/ApplicationEngine/include/otbWrapperOutputImageParameter.h @@ -122,14 +122,14 @@ protected: template <class TInputImageType> void SwitchImageWrite(); - template <class TInputImageType> - void SwitchCImageWrite(); + // template <class TInputImageType> + // void SwitchCImageWrite(); template <class TInputVectorImageType> void SwitchVectorImageWrite(); - template <class TInputVectorImageType> - void SwitchVectorCImageWrite(); + // template <class TInputVectorImageType> + // void SwitchVectorCImageWrite(); template <class TInputVectorImageType> void SwitchRGBImageWrite(); diff --git a/Modules/Wrappers/ApplicationEngine/src/otbWrapperOutputImageParameter.cxx b/Modules/Wrappers/ApplicationEngine/src/otbWrapperOutputImageParameter.cxx index 57d29cf633571ca6fdb2c36c885de41c771df11e..07cb49864b7cb08ff6ee28221ed7c56eabb002d6 100644 --- a/Modules/Wrappers/ApplicationEngine/src/otbWrapperOutputImageParameter.cxx +++ b/Modules/Wrappers/ApplicationEngine/src/otbWrapperOutputImageParameter.cxx @@ -356,17 +356,6 @@ OutputImageParameter::SwitchImageWrite() m_RAMValue ); break; } - default: - break; - } -} - -template <class TInput> -void -OutputImageParameter::SwitchCImageWrite() -{ - switch(m_PixelType ) - { case ImagePixelType_cfloat: { ClampAndWriteImage< TInput , ComplexFloatImageType >( @@ -390,6 +379,35 @@ OutputImageParameter::SwitchCImageWrite() } } +// template <class TInput> +// void +// OutputImageParameter::SwitchCImageWrite() +// { +// switch(m_PixelType ) +// { +// case ImagePixelType_cfloat: +// { +// ClampAndWriteImage< TInput , ComplexFloatImageType >( +// m_Image , +// m_ComplexFloatWriter , +// m_FileName , +// m_RAMValue ); +// break; +// } +// case ImagePixelType_cdouble: +// { +// ClampAndWriteImage< TInput , ComplexDoubleImageType >( +// m_Image , +// m_ComplexDoubleWriter , +// m_FileName , +// m_RAMValue ); +// break; +// } +// default: +// break; +// } +// } + template <class TInput> void @@ -483,34 +501,34 @@ OutputImageParameter::SwitchVectorImageWrite() } } -template <class TInput> -void -OutputImageParameter::SwitchVectorCImageWrite() -{ - switch(m_PixelType ) - { - case ImagePixelType_cfloat: - { - ClampAndWriteImage< TInput , ComplexFloatVectorImageType >( - m_Image , - m_ComplexVectorFloatWriter , - m_FileName , - m_RAMValue ); - break; - } - case ImagePixelType_cdouble: - { - ClampAndWriteImage< TInput , ComplexDoubleVectorImageType >( - m_Image , - m_ComplexVectorDoubleWriter , - m_FileName , - m_RAMValue ); - break; - } - default: - break; - } -} +// template <class TInput> +// void +// OutputImageParameter::SwitchVectorCImageWrite() +// { +// switch(m_PixelType ) +// { +// case ImagePixelType_cfloat: +// { +// ClampAndWriteImage< TInput , ComplexFloatVectorImageType >( +// m_Image , +// m_ComplexVectorFloatWriter , +// m_FileName , +// m_RAMValue ); +// break; +// } +// case ImagePixelType_cdouble: +// { +// ClampAndWriteImage< TInput , ComplexDoubleVectorImageType >( +// m_Image , +// m_ComplexVectorDoubleWriter , +// m_FileName , +// m_RAMValue ); +// break; +// } +// default: +// break; +// } +// } template <class TInputRGBAImageType> void @@ -577,11 +595,11 @@ OutputImageParameter::Write() } else if (dynamic_cast<ComplexFloatImageType*>(m_Image.GetPointer()) ) { - SwitchCImageWrite<ComplexFloatImageType>(); + SwitchImageWrite<ComplexFloatImageType>(); } else if (dynamic_cast<ComplexDoubleImageType*>(m_Image.GetPointer()) ) { - SwitchCImageWrite<ComplexDoubleImageType>(); + SwitchImageWrite<ComplexDoubleImageType>(); } else if (dynamic_cast<UInt8VectorImageType*>(m_Image.GetPointer())) { @@ -621,11 +639,11 @@ OutputImageParameter::Write() } else if (dynamic_cast<ComplexFloatVectorImageType*>(m_Image.GetPointer())) { - SwitchVectorCImageWrite<ComplexFloatVectorImageType>(); + SwitchVectorImageWrite<ComplexFloatVectorImageType>(); } else if (dynamic_cast<ComplexDoubleVectorImageType*>(m_Image.GetPointer())) { - SwitchVectorCImageWrite<ComplexDoubleVectorImageType>(); + SwitchVectorImageWrite<ComplexDoubleVectorImageType>(); } else {