Skip to content

Commit

Permalink
remove &
Browse files Browse the repository at this point in the history
  • Loading branch information
Sproc01 committed Jul 21, 2024
1 parent 3d40476 commit b63b75a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/metrics.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ std::vector<std::pair<cv::Rect, Category>> readGroundTruthBboxFile(const std::st
* @return std::vector<double> vector of AP values for each category.
* @throw invalid_argument if the vector of detected balls is empty.
*/
std::vector<double> APDetection(cv::Ptr<std::vector<Ball>> &detectedBalls, const std::string &groundTruthBboxPath, float iouThreshold = MAP_IOU_THRESHOLD);
std::vector<double> APDetection(cv::Ptr<std::vector<Ball>> detectedBalls, const std::string &groundTruthBboxPath, float iouThreshold = MAP_IOU_THRESHOLD);

/**
* @brief Compute the Intersection over Union between the segmented image and the ground truth mask.
Expand Down
2 changes: 1 addition & 1 deletion src/metrics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ vector<pair<Rect, Category>> readGroundTruthBboxFile(const string &filename) {
* @return std::vector<double> vector of AP values for each category.
* @throw invalid_argument if the vector of detected balls is empty.
*/
vector<double> APDetection(Ptr<vector<Ball>> &detectedBalls, const string &groundTruthBboxPath, float iouThreshold /*= MAP_IOU_THRESHOLD*/){
vector<double> APDetection(Ptr<vector<Ball>> detectedBalls, const string &groundTruthBboxPath, float iouThreshold /*= MAP_IOU_THRESHOLD*/){
if(detectedBalls->empty())
throw invalid_argument("Empty detectedBalls");

Expand Down

0 comments on commit b63b75a

Please sign in to comment.