void threshold()

in inference_pkg/src/image_process.cpp [113:120]


    void threshold(cv::Mat &retImg, int thresh, int maxValue) {
        try {
            cv::threshold(retImg, retImg, thresh, maxValue, cv::THRESH_BINARY + cv::THRESH_OTSU);
        }
        catch (...) {
            RCLCPP_ERROR(rclcpp::get_logger("rclcpp"), "Threshold failed");
        }
    }