Add function and test tfor computing features from an array of integral images