diff --git a/Applications/Util/otbRescale.cxx b/Applications/Util/otbRescale.cxx index 1d103c2f6a7c635529c29e5e5428ead496e54fd5..10ca7afbe696dd761a4f14a560189e9d4621482e 100644 --- a/Applications/Util/otbRescale.cxx +++ b/Applications/Util/otbRescale.cxx @@ -71,6 +71,8 @@ private: SetParameterDescription( "outmin", "Minimum value of the output image." ); SetParameterFloat("outmax", 255); SetParameterDescription( "outmax", "Maximum value of the output image." ); + + MandatoryOff("outmin"); } void DoUpdateParameters() diff --git a/Code/ApplicationEngine/otbWrapperOutputImageParameter.cxx b/Code/ApplicationEngine/otbWrapperOutputImageParameter.cxx index 2f025c2bf51151bbbdf9689df765594499cb5bc1..95873b741889e659d0ee25ae0f6ada29e94b373d 100644 --- a/Code/ApplicationEngine/otbWrapperOutputImageParameter.cxx +++ b/Code/ApplicationEngine/otbWrapperOutputImageParameter.cxx @@ -17,7 +17,7 @@ =========================================================================*/ #include "otbWrapperOutputImageParameter.h" #include "itkCastImageFilter.h" - +#include "otbStandardFilterWatcher.h" namespace otb { namespace Wrapper @@ -113,6 +113,7 @@ OutputImageParameter::Write( ) { m_FloatWriter->SetFileName( this->GetFileName() ); m_FloatWriter->SetInput(this->GetImage()); + //StandardFilterWatcher watch(static_cast<itk::ProcessObject*>(m_FloatWriter), "oss.str()"); m_FloatWriter->Update(); } break; diff --git a/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx b/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx index 852ba28ec0ba80431487cc469279831d33167a72..c3f6016436a4185c39032bf566309d81330e53a0 100644 --- a/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx +++ b/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx @@ -334,7 +334,6 @@ CommandLineLauncher::LoadParameters() void CommandLineLauncher::LinkWatchers() { - /* m_FilterWatcherList.clear(); m_WriterWatcherList.clear(); // Link internall filters watcher @@ -361,18 +360,17 @@ CommandLineLauncher::LinkWatchers() std::cout<<"----++++"<<std::endl; std::cout<<"----++++: "<<outputParam->GetWriter()<<std::endl; - std::cout<<"----++++"<<std::endl; + std::cout<<"----++++"<<std::endl; //typedef otb::StreamingImageFileWriter<FloatVectorImageType> FloatWriterType; //StandardWriterWatcher watch(static_cast<FloatWriterType::Pointer>(static_cast<FloatWriterType *>(outputParam->GetWriter())), "write that"); //StandardWriterWatcher watch(outputParam->GetWriter(), "write that"); //m_WriterWatcherList.push_back( watch ); - StandardFilterWatcher watch(outputParam->GetWriter(), oss.str()); - m_FilterWatcherList.push_back( watch ); + //StandardFilterWatcher watch(outputParam->GetWriter(), oss.str()); + //m_FilterWatcherList.push_back( watch ); } } std::cout<<"BRRRRRRRRRRRRRRR fin"<<std::endl; - */ } void