I have a frame, and apply it a grayscale and a thresold function, so I finally get an image in black and white.
How could I know the black or white color amount? Any javascript function to do so? I prefer not to include any extra libraries for that task.
Thanks!