Pattern and object recognition with COSFIRE