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

BUG: use sys.argv instead of argv when using import sys

parent 85040d8d
No related branches found
No related tags found
No related merge requests found
...@@ -15,8 +15,8 @@ import otbApplication ...@@ -15,8 +15,8 @@ import otbApplication
#from PIL import Image as PILImage #from PIL import Image as PILImage
inFile = sys.argv[1] inFile = sys.argv[1]
prefix = sys.argv[2] outFile = sys.argv[2]
# pilimage = PILImage.open(inFile) # pilimage = PILImage.open(inFile)
# npimage = np.asarray(pilimage) # npimage = np.asarray(pilimage)
# print npimage.dtype # print npimage.dtype
...@@ -60,5 +60,5 @@ Smoothing = otbApplication.Registry.CreateApplication("Smoothing") ...@@ -60,5 +60,5 @@ Smoothing = otbApplication.Registry.CreateApplication("Smoothing")
#take numpy output from Convert application and feed into Smoothing #take numpy output from Convert application and feed into Smoothing
Smoothing.SetVectorImageFromNumpyArray("in", ConvertOut) Smoothing.SetVectorImageFromNumpyArray("in", ConvertOut)
Smoothing.SetParameterString("type", 'anidif') Smoothing.SetParameterString("type", 'anidif')
Smoothing.SetParameterString("out", argv[2]) Smoothing.SetParameterString("out", outFile)
Smoothing.ExecuteAndWriteOutput() Smoothing.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