double MaxY::operator()(Blob &blob) const { const Rectangle& rect = blob.bounding_rect(); return static_cast<double>(rect.origin().y() + rect.height()); }
double MinY::operator()(Blob &blob) const { return static_cast<double>(blob.bounding_rect().origin().y()); }