# -*- 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))
from sextante.pymorph.mmorph import regmax, binary output_array=regmax(binary(input_array))
##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))
##threshold=number 1 from sextante.pymorph.mmorph import binary output_array = binary(input_array, threshold)
from sextante.pymorph.mmorph import regmax, binary output_array = regmax(binary(input_array))
##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))
from sextante.pymorph.mmorph import opentransf, binary output_array=opentransf(binary(input_array))
##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)
##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)
from sextante.pymorph.mmorph import patspec, binary output_array = patspec(binary(input_array))
# -*- 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))
from sextante.pymorph.mmorph import regmin, binary output_array=regmin(binary(input_array))
##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))
##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)
# -*- 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)
from sextante.pymorph.mmorph import skelm, binary output_array = skelm(binary(input_array))
# -*- 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))
# -*- 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))
from sextante.pymorph.mmorph import dist, binary output_array = dist(binary(input_array))