ExtractROI application yields wrong size through python bindings
Mantis Issue 1339, reported by jinglada, assigned to sdinot, created: 2017-01-18
Region extraction using the python bindings for ExtractROI produces an image with the wrong size. It seems that starx and starty parameters are not used. The CLI version works OK with the same parameters.
1484743524 - LudovicError confirmed.
Problem come from UserValue not set to True when calling python SetParameter* command.
Quick fix if you need it to perform the function :
[...] roiApp.SetParameterInt("sizex",int(sys.argv[5])) roiApp.SetParameterInt("sizey",int(sys.argv[6])) roiApp.SetParameterUserValue("sizex", True) roiApp.SetParameterUserValue("sizey", True) roiApp.ExecuteAndWriteOutput() [...]
1485161946 - gpaseroTODO :modify default value for SetParameretInt/Float/String(key, val, flagUserValue = true)
- Remove function declaration with (key,value)
- Change the calls in all OTB Application
- Update some tests
- Modify launchers (call to SetParameterUserFlag() not needed anymore).