Average Color within Mask Area



Returns the average color of the input image or from the masked area(and/or it's inversion) when using a mask.
Works both with Color and Grayscale images.

16bit usage is recommended, as it lacks in accuracy at 8bit.

Based on the method by fmw42: https://stackoverflow.com/questions/46907736/how-to-find-out-the-average-color-rgb-of-masked-area-of-an-image

PS: In case you require only the average color of an image and care about every ounce of performance, set it's output size to 1 pixel and you are done.

Uploaded: over 3 years ago
Updated: over 3 years ago
Version: 1
File Name: average_color_rw.zip
Size: 32.4 KB


Be the first to comment!