Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/ninshiki_cpp/utils/rect.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Rect

public:
Rect(const cv::Rect & rect);
const cv::Mat & get_binary_mat(const cv::Size & mat_size, int line_size = cv::FILLED) const;
const cv::Mat get_binary_mat(const cv::Size & mat_size, int line_size = cv::FILLED) const;

const cv::Point2f & get_center() const;
};
Expand Down
2 changes: 1 addition & 1 deletion src/ninshiki_cpp/utils/rect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace ninshiki_cpp::utils

Rect::Rect(const cv::Rect & rect) : rect(rect) {}

const cv::Mat & Rect::get_binary_mat(const cv::Size & mat_size, int line_size) const
const cv::Mat Rect::get_binary_mat(const cv::Size & mat_size, int line_size) const
{
cv::Mat binary_mat(mat_size, CV_8UC1, cv::Scalar(0));

Expand Down
Loading