Applications in - memory connection in python not working with SARCalibration
Mantis Issue 1433, reported by sdinot, assigned to gpasero, created: 2017-06-20
When using the following code : "SARCalibration.SetParameterInputImage("in", RoiExtraction.GetParameterOutputImage("out"))" we get an "itk::ERROR: SARCalibration(005E3160): inparameter can't be casted to InputImageParameter"
Probably identical with Linux, not tested
1499678014 - gpaseroThe in-memory connection for complex images is not (yet) implemented.
1505494133 - gpaseroI can reproduce the bug. First of all: the parameter "in" of SARCalibration is a ComplexInputImage, whereas parameter "out" of ExtractROI is an OutputImage. There is no method (yet) to plug an OutputImage into a ComplexInputImage.
I ran some tests, the connection should rather be : cal.SetParameterComplexInputImage("in",roi.GetParameterOutputImage("out"))
Then I got a different error, but after a small modification of Python wrapping, it is possible to achieve this connection. The problem happens after, during execute : RuntimeError: Exception thrown in otbApplication Application_ExecuteAndWriteOutput: /home/gpasero/Projet_OTB/src/OTB/Modules/Wrappers/ApplicationEngine/include/otbWrapperComplexInputImageParameter.txx:119: itk::ERROR: ComplexInputImageParameter(0x31958a0): Unknown image type
This is what we expected : the ComplexInputImage doesn't handle non-complex images. Conc