-
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.
- Loading branch information
Victor Genty
committed
May 2, 2016
1 parent
50421dd
commit c18babe
Showing
7 changed files
with
131 additions
and
34 deletions.
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
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
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,15 @@ | ||
from cv2selection import CV2Selection | ||
|
||
class CV2Add(CV2Selection): | ||
def __init__(self): | ||
super(CV2Add,self).__init__() | ||
|
||
self.name = "CV2Add" | ||
self.options['add'] = int(0) | ||
self.types['add'] = int | ||
|
||
def __description__(self): | ||
return "No description provided!" | ||
|
||
def __implement__(self,image): | ||
return self.options['add'] + image |
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
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,15 @@ | ||
from cv2selection import CV2Selection | ||
|
||
class CV2Multiply(CV2Selection): | ||
def __init__(self): | ||
super(CV2Multiply,self).__init__() | ||
|
||
self.name = "CV2Multiply" | ||
self.options['multiply'] = float(1) | ||
self.types['multiply'] = float | ||
|
||
def __description__(self): | ||
return "No description provided!" | ||
|
||
def __implement__(self,image): | ||
return self.options['multiply'] * image |
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
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