Get Contrast out from an image
Feb 12 2019 | 10:03 pm
Hi everyone, jit.rgb2hsl + jit.3m give me a lot of infos BUT contrast. In a forum I found <<go over all the pixels, add all the brightness values, then divide by the number of pixels to calculate the average brightness of the image. Then go over each pixel again, calculate the difference between the brightness and the avg. brightness. square the result. Add the values for all pixels. Then divide by the number of pixels. I think that's pretty much the formula.>> I tried to make a jit.gen object but without success. Did Anyone find a solution? Thanks in advance.