Skip to content

Commit

Permalink
Otsu label back again
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Apr 16, 2024
1 parent bc047ec commit 07ada15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/detect/uv_led_detect_adaptive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ std::vector<cv::Point> UVDARLedDetectAdaptive::applyAdaptiveThreshold(const cv::
//Print the adaptive method
std::cout << "[UVDARLedDetectAdaptive]: ADAPTIVE METHOD: " << adaptive_method_ << std::endl;

if( adaptive_method_ == "otsu"){
if( adaptive_method_ == "Otsu"){
//Apply Otsu's thresholding with the enhanced ROI
int thresholdValue= cv::threshold(enhancedImage, binaryRoi, 0, 255, cv::THRESH_BINARY | cv::THRESH_OTSU); // Apply Otsu's thresholding
thresholdValue_ = thresholdValue;
Expand Down

0 comments on commit 07ada15

Please sign in to comment.