Color extraction from a part of an image

Using Palette API ( can you add a method to extract colours from a specific part of an image? For example, extract the colour from the lower half of an image, or from the edges of an image.

This would be really really useful, please add this @frankmonza