Ejemplo 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))
Ejemplo n.º 2
0
from sextante.pymorph.mmorph import regmax, binary
output_array=regmax(binary(input_array))
Ejemplo 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))
Ejemplo n.º 4
0
##threshold=number 1
from sextante.pymorph.mmorph import binary

output_array = binary(input_array, threshold)
Ejemplo n.º 5
0
from sextante.pymorph.mmorph import regmax, binary
output_array = regmax(binary(input_array))
Ejemplo 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))
Ejemplo n.º 7
0
from sextante.pymorph.mmorph import opentransf, binary
output_array=opentransf(binary(input_array))
Ejemplo 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)
Ejemplo 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)
Ejemplo n.º 10
0
from sextante.pymorph.mmorph import patspec, binary

output_array = patspec(binary(input_array))
Ejemplo 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))
Ejemplo n.º 12
0
from sextante.pymorph.mmorph import patspec, binary
output_array = patspec(binary(input_array))
Ejemplo n.º 13
0
from sextante.pymorph.mmorph import regmin, binary
output_array=regmin(binary(input_array))
Ejemplo 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))
Ejemplo 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)
Ejemplo 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)
Ejemplo n.º 17
0
from sextante.pymorph.mmorph import skelm, binary
output_array = skelm(binary(input_array))
Ejemplo 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))
Ejemplo 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))
Ejemplo n.º 20
0
from sextante.pymorph.mmorph import dist, binary
output_array = dist(binary(input_array))