cotton_color/Matrox
2024-11-18 19:34:27 +08:00
..
color_range.cpp 添加开闭运算 2024-11-18 19:34:27 +08:00
color_range.h 细微调整 2024-11-18 17:28:48 +08:00
onnx_running.cpp 程序可以执行但是处理结果没有 2024-11-14 17:49:56 +08:00
onnx_running.h 添加模板匹配的matrox实现 2024-11-13 20:19:20 +08:00
README.md 添加开闭运算 2024-11-18 19:34:27 +08:00
template_matching.cpp 添加模板匹配的matrox实现 2024-11-13 20:19:20 +08:00
template_matching.h 确定项目框架 2024-11-12 13:57:12 +08:00
ui.cpp 添加了ui,确认了qt可执行。但opencv出现问题 2024-11-12 14:47:08 +08:00
ui.h 添加了ui,确认了qt可执行。但opencv出现问题 2024-11-12 14:47:08 +08:00
utils.cpp 细微调整 2024-11-18 17:28:48 +08:00
utils.h 细微调整 2024-11-18 17:28:48 +08:00

MIL库环境配置

include_directories(E:/QTexamble/matrox/Include)
将路径修改为你的安装目录 .../Matrox Imaging/MIL/Include

添加 MIL 库的库文件路径

link_directories(E:/QTexamble/matrox/LIB) file(GLOB MIL_LIBS E:/QTexamble/matrox/LIB/*.lib) 同理 将E:/QTexamble/matrox/LIB部分替换为安装目录下的.../Matrox Imaging/MIL/LIB 即可

鲜艳色彩检测功能

对应函数:

void lab_process(const MIL_ID& inputImage, MIL_ID& outputImageLab, const std::map<std::string, int>& params);
// 用法
// std::map<std::string, int> params;
// params["saturation_threshold"] = 150;
// params["saturation_denoising"] = 2;

void hsv_process(const MIL_ID& inputImage, MIL_ID& outputImageHSV, const std::map<std::string, int>& params);
// std::map<std::string, int> params;
// params["green_L_min"] = 68;
// params["green_L_max"] = 125;
// params["green_a_min"] = 101;
// params["green_a_max"] = 120;
// params["green_b_min"] = 130;
// params["green_b_max"] = 140;
//
// params["blue_L_min"] = 45;
// params["blue_L_max"] = 66;
// params["blue_a_min"] = 130;
// params["blue_a_max"] = 145;
// params["blue_b_min"] = 95;
// params["blue_b_max"] = 105;
//
// params["orange_L_min"] = 166;
// params["orange_L_max"] = 191;
// params["orange_a_min"] = 135;
// params["orange_a_max"] = 142;
// params["orange_b_min"] = 160;
// params["orange_b_max"] = 174;
//
// params["black_L_min"] = 0;
// params["black_L_max"] = 21;
// params["black_a_min"] = 127;
// params["black_a_max"] = 133;
// params["black_b_min"] = 126;
// params["black_b_max"] = 134;
//
// params["red_L_min"] = 71;
// params["red_L_max"] = 97;
// params["red_a_min"] = 143;
// params["red_a_max"] = 153;
// params["red_b_min"] = 33;
// params["red_b_max"] = 154;
//
// params["purple_L_min"] = 171;
// params["purple_L_max"] = 197;
// params["purple_a_min"] = 131;
// params["purple_a_max"] = 141;
// params["purple_b_min"] = 108;
// params["purple_b_max"] = 123;
// params["lab_denoising"] = 1;

hsv_denoising = 0 hsv_denoising = 1 hsv_denoising = 2
lab_denoising = 0
lab_denoising = 1 diguandai
lab_denoising = 2