otbPireo crashes when no parameter is set
Mantis Issue 13, reported by jinglada, assigned to cvalladeau, created: 2008-10-21
After launching otbPireo, select 2 images, select display metric values, run registration (without setting registration parameters): segfault
Initial Transform Parameters [] ExceptionObject caught !
itk::ExceptionObject (0x8797af8) Location: "void itk::MultiResolutionImageRegistrationMethod<TFixedImage, TMovingImage>::PreparePyramids() [with TFixedImage = otb::Image<double, 2u>, TMovingImage = otb::Image<double, 2u>]"
File: /opt/stok/src/OTB/Utilities/ITK/Code/Algorithms/itkMultiResolutionImageRegistrationMethod.txx Line: 198 Description: itk::ERROR: MultiResolutionImageRegistrationMethod(0x875cd80): Transform is not present
Final Transform Parameters [0] [1] 25420 segmentation fault ./bin/otbPireo
1231773227 - C ValladeauAdd a control of the parameters list. Launch registration only if param size!=0 else, display a message on the terminal.