Skip to content

Commit

Permalink
fix:修复split_type命名错误
Browse files Browse the repository at this point in the history
  • Loading branch information
GengGode committed Dec 6, 2023
1 parent 160090d commit 04e1a47
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/algorithms/container/container.set.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,19 @@ namespace tianli::algorithms::container
auto split_center = cv::Point2d(parent->rect.width / 4.0, parent->rect.height / 4.0);
switch (split_type)
{
case SplitType::top_left:
case split_type::top_left:
rect = cv::Rect2d(parent->rect.tl(), split_size);
center = rect.tl() + split_center;
break;
case SplitType::top_right:
case split_type::top_right:
rect = cv::Rect2d(parent->rect.tl() + cv::Point2d(parent->rect.width / 2, 0), split_size);
center = rect.tl() + split_center;
break;
case SplitType::bottom_left:
case split_type::bottom_left:
rect = cv::Rect2d(parent->rect.tl() + cv::Point2d(0, parent->rect.height / 2), split_size);
center = rect.tl() + split_center;
break;
case SplitType::bottom_right:
case split_type::bottom_right:
rect = cv::Rect2d(parent->rect.tl() + cv::Point2d(parent->rect.width / 2, parent->rect.height / 2), split_size);
center = rect.tl() + split_center;
break;
Expand Down

0 comments on commit 04e1a47

Please sign in to comment.