Hi everyone, I'm using python bindings to connect OTB applications in
memory and I've an issue due to python operations (core dump).
The solution is simple, this post is to help others facing this issue.
One of my python function connects OTB applications together throught
bindings and returns the last OTB application.
Ex :
def MyFunction(...)
App1 = otb...CreateApplication("
someApp")
...
App1.Execute()
App2 = otb...CreateApplication("someApp")
App2.AddImageToParameterInputImageList("il",App1.GetParameterOutputImage("out"))
...
return App2
otbApplication = MyFunction(...)
otbApplication.ExecuteAndWriteOutput()
-> Core dump
the solution :
def MyFunction(...)
App1 = otb...CreateApplication("someApp")
...
App1.Execute()
App2 = otb...CreateApplication("someApp")
App2.AddImageToParameterInputImageList("il",App1.GetParameterOutputImage("out"))
...
return App2,App1
otbApplication,others = MyFunction(...)
otbApplication.ExecuteAndWriteOutput()
we need to return all connected applications. Python does not save internal
object even if they are connected.
--
--
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html
You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
---
You received this message because you are subscribed to the Google Groups
"otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.