FloatImg sources upgraded to version 148
This commit is contained in:
@@ -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