Skip to content
Snippets Groups Projects
Commit ecd7a59c authored by Cyrille Valladeau's avatar Cyrille Valladeau
Browse files

ADD: addition in python

parent 0abf10ae
No related branches found
No related tags found
No related merge requests found
......@@ -15,4 +15,10 @@ add_test( NAME pyTvRescale
${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/PythonRescaleTest.py
${OTB_DATA_ROOT}/Input/ToulouseExtract_WithGeom.tif
${TEMP}/pyTvRescale)
\ No newline at end of file
add_test( NAME pyTvAddition
COMMAND ${TEST_DRIVER} Execute
${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/PythonAdditionTest.py
89
57
)
\ No newline at end of file
# -*- coding: utf-8 -*-
#
# Example on the use of the Smoothing
#
from sys import argv
import otbApplication as otb
print "Available applications : " + str(otb.Registry.GetAvailableApplications())
app = otb.Registry.CreateApplication("Addition")
print app.GetParametersKeys()
app.SetParameterFloat("a", float(argv[1]))
app.SetParameterFloat("b", float(argv[2]))
app.Execute()
print dir(app)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment