Skip to content

Commit 2926ddc

Browse files
mend
1 parent d218d54 commit 2926ddc

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/utils.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -221,19 +221,13 @@ void Utils::overlay(std::vector<Ort::Value>& output_tensors, const cv::Mat& iImg
221221
}*/
222222

223223

224-
// Draw mask outline and fill with semi-transparent color
225-
cv::Mat visualized = iImg.clone();
226-
cv::Mat mask_display;
227-
228224
// Find contours of the mask
229225
std::vector<std::vector<cv::Point>> contours;
230226
cv::findContours(finalMask, contours, cv::RETR_EXTERNAL, cv::CHAIN_APPROX_SIMPLE);
231227

232228
// Create a semi-transparent overlay
233229
cv::Mat colorMask = cv::Mat::zeros(iImg.size(), CV_8UC3);
234230
colorMask.setTo(cv::Scalar(0, 200, 0), finalMask); // Green fill
235-
236-
// Apply semi-transparent fill
237231
cv::addWeighted(iImg, 0.7, colorMask, 0.3, 0, iImg);
238232

239233
// Draw contours with a thick, high-contrast outline

0 commit comments

Comments
 (0)