Tools to generate and manipulate Haar-like features