void masking()

in inference_pkg/src/image_process.cpp [98:108]


    void masking(cv::Mat &retImg, int rowStopIdx, int maskValue) {
        if (rowStopIdx > retImg.rows) {
            RCLCPP_ERROR(rclcpp::get_logger("rclcpp"), "Invalid mask range");
            return;
        }
        for(int j = 0; j < rowStopIdx; j++) {
            for (int i = 0; i < retImg.cols; i++) {
                retImg.at<uchar>(j,i) = maskValue;
            }
        }
    }