diff --git a/README.md b/README.md index e3fc194..f431c6c 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ new_img = img.clone() new_img = img.clone(True) ``` -### Basic pixel manipulation +### Basic pixel operations ```python # Get pixel value @@ -65,7 +65,7 @@ img.clear() img.copy_data(another_img) ``` -### File manipulation +### File operations #### Raw dump files @@ -135,3 +135,18 @@ Ensure `floatimg` containing path is in the `PYTHONPATH`, this will run the test pytest --cov=floatimg tests/* ``` +### Status + +The goal is not to bind all the functions but essential ones too build a front-end with python-tkinter. + +#### Done + + - lib/fimg-core.c + - lib/fimg-file.c + - lib/operator.c + - funcs/exporter.c + - funcs/fimg-png.c + +#### Partial + + - lib/fimg-math.c \ No newline at end of file diff --git a/floatimg/image.py b/floatimg/image.py index 9b0022f..248001e 100644 --- a/floatimg/image.py +++ b/floatimg/image.py @@ -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 ####################################################################################################### diff --git a/tests/maths.py b/tests/maths.py index c5b1c15..2c288c8 100644 --- a/tests/maths.py +++ b/tests/maths.py @@ -9,4 +9,4 @@ def test_maxvaalue(): img = floatimg.create_rgb(width, height) color = (255.0, 255.0, 255.0) img.put(2,2, color) - assert img.maxvalue() == 255.0ls + assert img.maxvalue() == 255.0