diff --git a/deploy/cpp/src/visualize.cpp b/deploy/cpp/src/visualize.cpp index 3443848c1c56ecea071c70491efecea7d35d06fe..d6efc7f9f5c19c436d9bc32a7a7330a0749b9dd5 100644 --- a/deploy/cpp/src/visualize.cpp +++ b/deploy/cpp/src/visualize.cpp @@ -89,7 +89,7 @@ cv::Mat Visualize(const cv::Mat& img, cv::Mat bin_mask(boxes[i].mask.shape[1], boxes[i].mask.shape[0], CV_32FC1, - boxes[i].mask.data.data()); + mask_data.data()); cv::Mat full_mask = cv::Mat::zeros(vis_img.size(), CV_8UC1); bin_mask.copyTo(full_mask(roi)); cv::Mat mask_ch[3];