Add function and test for computing a feature from an array of images