-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gaussian blur from cv2 goes in.........
- Loading branch information
Victor Genty
committed
May 2, 2016
1 parent
c18babe
commit c01e18c
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from cv2selection import CV2Selection | ||
import cv2 | ||
|
||
class CV2GausBlur(CV2Selection): | ||
def __init__(self): | ||
super(CV2GausBlur,self).__init__() | ||
|
||
self.name = "CV2GausBlur" | ||
|
||
# default options | ||
self.options['ksize'] = (5,5) | ||
self.options['sigmaX'] = 1.0 | ||
self.options['sigmaY'] = 1.0 | ||
|
||
self.types['ksize'] = tuple | ||
self.types['sigmaX'] = float | ||
self.types['sigmaY'] = float | ||
|
||
def __description__(self): | ||
return "No description provided!" | ||
|
||
def __implement__(self,image): | ||
return cv2.GaussianBlur(image,**self.options) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters