mirror of
https://github.com/Karllzy/cotton_color.git
synced 2025-11-08 18:53:53 +00:00
添加黑色识别函数
添加黑色识别函数
This commit is contained in:
parent
44c38dbbd2
commit
afba01b708
@ -54,6 +54,11 @@ void vibrantColorDetection(const Mat& inputImage, Mat& outputImage, const map<st
|
||||
}
|
||||
|
||||
|
||||
void blackColorDetection(const Mat& inputImage, Mat& outputImage, const map<string, int>& params)
|
||||
{
|
||||
outputImage = Mat::zeros(inputImage.size(), CV_8UC1);
|
||||
}
|
||||
|
||||
string openFileDialog() {
|
||||
// 初始化文件选择对话框
|
||||
OPENFILENAME ofn; // 文件对话框结构
|
||||
|
||||
Loading…
Reference in New Issue
Block a user