72
edits
Changes
no edit summary
std::streambuf* coutbuf = std::cout.rdbuf();
std::cout.rdbuf(nullptr);
//
// Convert the image to grayscale
cv::Mat grayscale;
cv::cvtColor(image, grayscale, cv::COLOR_BGR2GRAY);
//
// Apply the kernel to the grayscale image
//finds areas with quick jumps from dark to light, increases contrast there
}
}
//
//stop supressing
std::cout.rdbuf(coutbuf);
}
</syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">
void openMP_imgProcessor::brightenImg(cv::Mat& image, int brightnessLvl) {
//supressing OpenCV messages
std::cout.rdbuf(coutbuf);
}
</syntaxhighlight lang="cpp">