Add patcher file

This commit is contained in:
daleclack 2022-08-21 13:24:45 +08:00
parent fbce06d5a1
commit a8628655bb
2 changed files with 17 additions and 1 deletions

View File

@ -42,7 +42,7 @@ int main(int argc, char **argv)
meanStdDev(image, mean, stddev); meanStdDev(image, mean, stddev);
std::cout << "mean:" << std::endl << mean << std::endl; std::cout << "mean:" << std::endl << mean << std::endl;
std::cout << "stddev" << std::endl << stddev << std::endl; std::cout << "stddev" << std::endl << stddev << std::endl;
inRange(hsv_image, Scalar(100, 43, 46), Scalar(124, 255, 255), mask); inRange(hsv_image, Scalar(0, 0, 221), Scalar(180, 30, 255), mask);
namedWindow("Image Mask", WINDOW_NORMAL); namedWindow("Image Mask", WINDOW_NORMAL);
imshow("Image Mask", mask); imshow("Image Mask", mask);

16
cpp/mydock_patcher.cpp Normal file
View File

@ -0,0 +1,16 @@
#include <windows.h>
#include <iostream>
#define INI_PATH "Y:\\test.ini"
int main(int argc, char **argv){
char tmp1[30]={}, tmp2[30]={};
GetPrivateProfileString("iconame", "explorer", "", tmp1, sizeof(tmp1), INI_PATH);
GetPrivateProfileString("menu", "newfinderwindow", "", tmp2, sizeof(tmp2), INI_PATH);
std::cout << tmp1 << std::endl;
std::cout << tmp2 << std::endl;
WritePrivateProfileString("iconame", "explorer", "访达", INI_PATH);
WritePrivateProfileString("menu", "newfinderwindow", "新建访达窗口", INI_PATH);
system("pause");
return 0;
}