Implemented vertical and horizontal projection histogram