In attached files, you find an image and a program that I wrote to explain my problem
Can you tell me why the results of image.statistics (i, j, 1,1) are not equivalent to the image.rgb_to_lab () conversion function?
Why are not the circles drawn in blue on the test image?
The image.statistics function works perfectly in (sensor.GRAYSCALE)
MP doesn’t really handle telling you you’re passing arguments to the function incorrectly. Currently, the stats function in your code is ignoring all arguments.
Please pay attention to the keyword arguments. If you don’t explicitly say the keyword then the argument is ignored.
We can actually make the function forgiving us this in the firmware, but, it gets rather tricky when you have multiple keyword arguments, etc. In the future I suppose the firmware will be built to be more forgiving.