#include #include "AutoWWWL.h" #include using namespace std; using namespace cv; using namespace ATWL; vector globroot(String pattern) { vector fn; glob(pattern, fn, false); return fn; } int main() { Mat img = imread(R"(Image_FinalImage.tif)",-1); Mat mask = imread(R"(mask.tif)", -1); int width = img.cols; int height = img.rows; int ww = 0; int wl = 0; int ret = AutoWWWL(img.ptr(), mask.ptr(), width, height, ww, wl); cout << "WW:" << ww << endl; cout << "WL:" << wl << endl; system("pause"); return 0; }