implemented filterRectangles
integrated rectangle filtering and strip pose estimation