Updated function names[Robert's Edge Detection]

This commit is contained in:
root
2013-04-22 15:29:25 -07:00
parent 27026cea87
commit f417a45a97
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ from .lpi_filter import *
from .ctmf import median_filter
from ._canny import canny
from .edges import (sobel, hsobel, vsobel, scharr, hscharr, vscharr, prewitt,
hprewitt, vprewitt, roberts , pdroberts, ndroberts)
hprewitt, vprewitt, roberts , roberts_positive_diagonal, roberts_negative_diagonal)
from ._denoise import denoise_tv_chambolle, tv_denoise
from ._denoise_cy import denoise_bilateral, denoise_tv_bregman
from ._rank_order import rank_order
+3 -3
View File
@@ -357,10 +357,10 @@ def roberts(image, mask=None):
output : ndarray
The Roberts' Cross edge map.
"""
return np.sqrt(pdroberts(image, mask)**2 + ndroberts(image, mask)**2)
return np.sqrt(roberts_positive_diagonal(image, mask)**2 + roberts_negative_diagonal(image, mask)**2)
def pdroberts(image, mask=None):
def roberts_positive_diagonal(image, mask=None):
"""Find the cross edges of an image using the Roberts' Cross operator.
The kernel is applied to the input image, to produce separate measurements
@@ -396,7 +396,7 @@ def pdroberts(image, mask=None):
return _mask_filter_result(result, mask)
def ndroberts(image, mask=None):
def roberts_negative_diagonal(image, mask=None):
"""Find the cross edges of an image using the Roberts' Cross operator.
The kernel is applied to the input image, to produce separate measurements
of the gradient component one orientation.