Skip to content

Commit

Permalink
[FIX] Fixed segfault when creating CHT using path towards JSON file
Browse files Browse the repository at this point in the history
  • Loading branch information
LAGNEAU Romain committed Nov 5, 2024
1 parent e295b25 commit aed02ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/imgproc/src/vpCircleHoughTransform_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ vpCircleHoughTransform::~vpCircleHoughTransform()
using json = nlohmann::json;

vpCircleHoughTransform::vpCircleHoughTransform(const std::string &jsonPath)
: mp_mask(nullptr)
{
initFromJSON(jsonPath);
}
Expand Down Expand Up @@ -413,6 +414,7 @@ std::ostream &
operator<<(std::ostream &os, const vpCircleHoughTransform &detector)
{
os << detector.toString();
std::cout << "\tUse mask: " << (detector.mp_mask == nullptr ? "false" : "true") << std::endl;
return os;
}

Expand Down

0 comments on commit aed02ab

Please sign in to comment.