Skip to content
Permalink
Browse files

finished adding pymorph algorithms

git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@187 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
  • Loading branch information
volayaf@gmail.com
volayaf@gmail.com committed May 21, 2012
1 parent f97a6b5 commit 36084520be801fa4240f125a3c72a5969a91645e
Empty file.
Empty file.
@@ -0,0 +1,5 @@
##Additional_image=raster
from sextante.pymorph.mmorph import suprec
img2 = gdal.Open(Additional_image)
input_array2 = img2.ReadAsArray()
output_array = suprec(input_array, input_array2)
@@ -0,0 +1,5 @@
##Additional_image=raster
from sextante.pymorph.mmorph import symdiff
img2 = gdal.Open(Additional_image)
input_array2 = img2.ReadAsArray()
output_array = symdiff(input_array, input_array2)
Empty file.
@@ -0,0 +1,3 @@
#iterations=number 1
from sextante.pymorph.mmorph import thick
output_array=thick(input_array, n=iterations)
@@ -0,0 +1,3 @@
#iterations=number 1
from sextante.pymorph.mmorph import thin
output_array=thin(input_array, n=iterations)
Empty file.
@@ -0,0 +1,10 @@
##Additional_image=raster
##Additional_image_2=raster
from sextante.pymorph.mmorph import toggle
img2 = gdal.Open(Additional_image)
input_array2 = img2.ReadAsArray()
img3 = gdal.Open(Additional_image_2)
input_array3 = img2.ReadAsArray()

output_array = toggle(input_array, input_array2, input_array3)

Empty file.
@@ -0,0 +1,2 @@
from sextante.pymorph.mmorph import watershed
output_array=watershed(input_array)

0 comments on commit 3608452

Please sign in to comment.
You can’t perform that action at this time.