FloatImg sources upgraded to version 148

This commit is contained in:
2021-05-16 11:45:00 +02:00
parent 4b57a41705
commit 2342a9e2a8
3 changed files with 21 additions and 5 deletions

View File

@@ -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
#######################################################################################################