Commit 7971a68e authored by Ludovic Hussonnois's avatar Ludovic Hussonnois

BUG : Mantis-1335 : Increase monteverdi stack size and correct Segfault when...

BUG : Mantis-1335 : Increase monteverdi stack size and correct Segfault when rsr parameter is not provided.

Monteverdi stack size is increase in order to use 6s code.
WavelengthSpectralBandVectorType wasn't initialized and result wasn't used.
parent e6977b60
......@@ -823,12 +823,14 @@ private:
{
otbAppLogWARNING("No relative spectral response found, using "
"default response (constant between 0.3 and 1.0µm)");
AcquiCorrectionParametersType::WavelengthSpectralBandVectorType spectralDummy;
AcquiCorrectionParametersType::WavelengthSpectralBandVectorType spectralDummy =
AcquiCorrectionParametersType::InternalWavelengthSpectralBandVectorType::New();
spectralDummy->Clear();
for (unsigned int i = 0; i < inImage->GetNumberOfComponentsPerPixel(); ++i)
{
spectralDummy->PushBack(FilterFunctionValues::New());
}
m_paramAcqui->SetWavelengthSpectralBand(spectralDummy);
}
// Aeronet file
......
......@@ -72,6 +72,14 @@ add_executable( monteverdi
${Monteverdi_App_WIN32_RC_FILE}
${OTBMonteverdi_RESOURCES_RCC}
)
# set monterverdi stack size to 10Mbytes on windows platform because
# the default size with visual compiler it is 1Mbyte
# which is to lower for us (thanks to 6S code).
if (WIN32)
set_linker_stack_size_flag( monteverdi 10000000 )
endif()
target_link_libraries( monteverdi
OTBMonteverdi
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment