コード例 #1
0
ファイル: regmin.py プロジェクト: carsonfarmer/Quantum-GIS
# -*- 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))
コード例 #2
0
ファイル: regmax.py プロジェクト: mokerjoke/Quantum-GIS
from sextante.pymorph.mmorph import regmax, binary
output_array=regmax(binary(input_array))
コード例 #3
0
ファイル: cthick.py プロジェクト: mokerjoke/Quantum-GIS
##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))
コード例 #4
0
ファイル: binary.py プロジェクト: sdikiy/Quantum-GIS
##threshold=number 1
from sextante.pymorph.mmorph import binary

output_array = binary(input_array, threshold)
コード例 #5
0
from sextante.pymorph.mmorph import regmax, binary
output_array = regmax(binary(input_array))
コード例 #6
0
ファイル: cthick.py プロジェクト: sdikiy/Quantum-GIS
##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))
コード例 #7
0
ファイル: opentransf.py プロジェクト: sdikiy/Quantum-GIS
from sextante.pymorph.mmorph import opentransf, binary
output_array=opentransf(binary(input_array))
コード例 #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)
コード例 #9
0
ファイル: inpos.py プロジェクト: mokerjoke/Quantum-GIS
##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)
コード例 #10
0
from sextante.pymorph.mmorph import patspec, binary

output_array = patspec(binary(input_array))
コード例 #11
0
ファイル: dist.py プロジェクト: carsonfarmer/Quantum-GIS
# -*- 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))
コード例 #12
0
from sextante.pymorph.mmorph import patspec, binary
output_array = patspec(binary(input_array))
コード例 #13
0
ファイル: regmin.py プロジェクト: sdikiy/Quantum-GIS
from sextante.pymorph.mmorph import regmin, binary
output_array=regmin(binary(input_array))
コード例 #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))
コード例 #15
0
ファイル: cdilate.py プロジェクト: sdikiy/Quantum-GIS
##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)
コード例 #16
0
ファイル: binary.py プロジェクト: carsonfarmer/Quantum-GIS
# -*- 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)
コード例 #17
0
ファイル: skelm.py プロジェクト: sdikiy/Quantum-GIS
from sextante.pymorph.mmorph import skelm, binary
output_array = skelm(binary(input_array))
コード例 #18
0
ファイル: skelm.py プロジェクト: carsonfarmer/Quantum-GIS
# -*- 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))
コード例 #19
0
ファイル: cthin.py プロジェクト: carsonfarmer/Quantum-GIS
# -*- 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))
コード例 #20
0
from sextante.pymorph.mmorph import dist, binary
output_array = dist(binary(input_array))