Changes

Jump to: navigation, search

GPU621/Group 3

21 bytes added, 19:09, 9 April 2023
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">
72
edits

Navigation menu