Skip to content
Snippets Groups Projects
Commit 65ae20d7 authored by Rashad Kanavath's avatar Rashad Kanavath
Browse files

TEST: do not execute OrthoRectification. use Smoothing application instead

parent 2266a667
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,11 @@ def cm_assert(a,b):
app = otb.Registry.CreateApplication('OrthoRectification')
#test GetParameterTypeAsString() method in python.
print app.GetParameterTypeAsString(otb.ParameterType_InputImage)
print app.GetParameterTypeAsString(otb.ParameterType_String)
print app.GetParameterTypeAsString(otb.ParameterType_Empty)
# one test for each parameter type (string, float, int, ...)
# # parameter group io.in
......@@ -110,5 +115,13 @@ cm_assert(app.IsParameterEnabled('outputs.isotropic'), True)
app.DisableParameter('outputs.isotropic')
cm_assert(False, app.OUTPUTS.ISOTROPIC)
#Do not execute. we need LARGEINPUT. so we tried a small application
#app.Execute()
app = None
# #app.ExecuteAndWriteOutput()
app = otb.Registry.CreateApplication('Smoothing')
app.IN = argv[1]
app.TYPE='anidif'
app.OUT = argv[2]
app.ExecuteAndWriteOutput()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment