FloatImg sources upgraded to version 148
This commit is contained in:
1 parent
4b57a41705
commit
2342a9e2a8
3 files changed
+21
-5
No files matched your search
+3
-2
@@ -319,15 +319,16 @@ class FloatImg:
|
||||
"""return a new image with minimum pixel values per channel between current and parameter"""
|
||||
res = self.clone(False)
|
||||
# C code inverts comparison
|
||||
assert c_fimg_maximum(self.c_img_p, img.c_img_p, res.c_img_p) == 0
|
||||
assert c_fimg_minimum(self.c_img_p, img.c_img_p, res.c_img_p) == 0
|
||||
return res
|
||||
|
||||
|
||||
#######################################################################################################
|
||||
def max(self, img):
|
||||
"""return a new image with maximum pixel values per channel between current and parameter"""
|
||||
res = self.clone(False)
|
||||
# C code inverts comparison
|
||||
assert c_fimg_minimum(self.c_img_p, img.c_img_p, res.c_img_p) == 0
|
||||
assert c_fimg_maximum(self.c_img_p, img.c_img_p, res.c_img_p) == 0
|
||||
return res
|
||||
|
||||
#######################################################################################################
|
||||
|
||||
Reference in new issue
Block a user