Esempio n. 1
0
# -*- coding: utf-8 -*-

"""
***************************************************************************
    regmin.py
    ---------------------
    Date                 : August 2012
    Copyright            : (C) 2012 by Victor Olaya
    Email                : volayaf at gmail dot com
***************************************************************************
*                                                                         *
*   This program is free software; you can redistribute it and/or modify  *
*   it under the terms of the GNU General Public License as published by  *
*   the Free Software Foundation; either version 2 of the License, or     *
*   (at your option) any later version.                                   *
*                                                                         *
***************************************************************************
"""

__author__ = 'Victor Olaya'
__date__ = 'August 2012'
__copyright__ = '(C) 2012, Victor Olaya'
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'

from sextante.pymorph.mmorph import regmin, binary
output_array=regmin(binary(input_array))
Esempio n. 2
0
from sextante.pymorph.mmorph import regmax, binary
output_array=regmax(binary(input_array))
Esempio n. 3
0
##Conditioning_image=raster
from sextante.pymorph.mmorph import cthick, binary
img2 = gdal.Open(Conditioning_image)
input_array2 = img2.ReadAsArray()
output_array=cthick(binary(input_array), binary(input_array2))
Esempio n. 4
0
##threshold=number 1
from sextante.pymorph.mmorph import binary

output_array = binary(input_array, threshold)
Esempio n. 5
0
from sextante.pymorph.mmorph import regmax, binary
output_array = regmax(binary(input_array))
Esempio n. 6
0
##Conditioning_image=raster
from sextante.pymorph.mmorph import cthick, binary
img2 = gdal.Open(Conditioning_image)
input_array2 = img2.ReadAsArray()
output_array = cthick(binary(input_array), binary(input_array2))
Esempio n. 7
0
from sextante.pymorph.mmorph import opentransf, binary
output_array=opentransf(binary(input_array))
Esempio n. 8
0
##Binary_marker_image=raster
from sextante.pymorph.mmorph import inpos, binary

img2 = gdal.Open(Binary_marker_image)
input_array2 = img2.ReadAsArray()
output_array = inpos(binary(input_array2), input_array)
Esempio n. 9
0
##Binary_marker_image=raster
from sextante.pymorph.mmorph import inpos, binary
img2 = gdal.Open(Binary_marker_image)
input_array2 = img2.ReadAsArray()
output_array=inpos(binary(input_array2), input_array)
Esempio n. 10
0
from sextante.pymorph.mmorph import patspec, binary

output_array = patspec(binary(input_array))
Esempio n. 11
0
# -*- coding: utf-8 -*-

"""
***************************************************************************
    dist.py
    ---------------------
    Date                 : August 2012
    Copyright            : (C) 2012 by Victor Olaya
    Email                : volayaf at gmail dot com
***************************************************************************
*                                                                         *
*   This program is free software; you can redistribute it and/or modify  *
*   it under the terms of the GNU General Public License as published by  *
*   the Free Software Foundation; either version 2 of the License, or     *
*   (at your option) any later version.                                   *
*                                                                         *
***************************************************************************
"""

__author__ = 'Victor Olaya'
__date__ = 'August 2012'
__copyright__ = '(C) 2012, Victor Olaya'
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'

from sextante.pymorph.mmorph import dist, binary
output_array=dist(binary(input_array))
Esempio n. 12
0
from sextante.pymorph.mmorph import patspec, binary
output_array = patspec(binary(input_array))
Esempio n. 13
0
from sextante.pymorph.mmorph import regmin, binary
output_array=regmin(binary(input_array))
Esempio n. 14
0
##Conditioning_image=raster
from sextante.pymorph.mmorph import cthin, binary
img2 = gdal.Open(Conditioning_image)
input_array2 = img2.ReadAsArray()
output_arrary = cthin(binary(input_array), binary(input_array2))
Esempio n. 15
0
##Conditioning_image=raster
##iterations=number 1
from sextante.pymorph.mmorph import cdilate, binary
img2 = gdal.Open(Conditioning_image)
input_array2 = img2.ReadAsArray()
output_array = cdilate(binary(input_array), binary(input_array2), n=iterations)
Esempio n. 16
0
# -*- coding: utf-8 -*-

"""
***************************************************************************
    binary.py
    ---------------------
    Date                 : August 2012
    Copyright            : (C) 2012 by Victor Olaya
    Email                : volayaf at gmail dot com
***************************************************************************
*                                                                         *
*   This program is free software; you can redistribute it and/or modify  *
*   it under the terms of the GNU General Public License as published by  *
*   the Free Software Foundation; either version 2 of the License, or     *
*   (at your option) any later version.                                   *
*                                                                         *
***************************************************************************
"""

__author__ = 'Victor Olaya'
__date__ = 'August 2012'
__copyright__ = '(C) 2012, Victor Olaya'
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'

##threshold=number 1
from sextante.pymorph.mmorph import binary
output_array=binary(input_array,threshold)
Esempio n. 17
0
from sextante.pymorph.mmorph import skelm, binary
output_array = skelm(binary(input_array))
Esempio n. 18
0
# -*- coding: utf-8 -*-

"""
***************************************************************************
    skelm.py
    ---------------------
    Date                 : August 2012
    Copyright            : (C) 2012 by Victor Olaya
    Email                : volayaf at gmail dot com
***************************************************************************
*                                                                         *
*   This program is free software; you can redistribute it and/or modify  *
*   it under the terms of the GNU General Public License as published by  *
*   the Free Software Foundation; either version 2 of the License, or     *
*   (at your option) any later version.                                   *
*                                                                         *
***************************************************************************
"""

__author__ = 'Victor Olaya'
__date__ = 'August 2012'
__copyright__ = '(C) 2012, Victor Olaya'
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'

from sextante.pymorph.mmorph import skelm, binary
output_array=skelm(binary(input_array))
Esempio n. 19
0
# -*- coding: utf-8 -*-

"""
***************************************************************************
    cthin.py
    ---------------------
    Date                 : August 2012
    Copyright            : (C) 2012 by Victor Olaya
    Email                : volayaf at gmail dot com
***************************************************************************
*                                                                         *
*   This program is free software; you can redistribute it and/or modify  *
*   it under the terms of the GNU General Public License as published by  *
*   the Free Software Foundation; either version 2 of the License, or     *
*   (at your option) any later version.                                   *
*                                                                         *
***************************************************************************
"""

__author__ = 'Victor Olaya'
__date__ = 'August 2012'
__copyright__ = '(C) 2012, Victor Olaya'
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'

##Conditioning_image=raster
from sextante.pymorph.mmorph import cthin, binary
img2 = gdal.Open(Conditioning_image)
input_array2 = img2.ReadAsArray()
output_arrary=cthin(binary(input_array), binary(input_array2))
Esempio n. 20
0
from sextante.pymorph.mmorph import dist, binary
output_array = dist(binary(input_array))