void check(string expected, string actual, bool disabled=false) {auto res = cv::imread(actual);auto approved = cv::imread(expected);auto diff = approved - res;auto sum = cv::sum(diff);if(sum[0]+sum[1]+sum[2] > 0.0001 && !disabled) {show("expeced", approved);show("actual", res);show("diff", diff);cv::waitKey(0);exit(1);}exit(0);}
From here: https://dzone.com/articles/the-secrets-of-futureproof-software Self-healing Self-patching, or more broadly, self-updating Backward compatibility Dynamic adaptation/ability to evolve over time Intent-based Made up of reusable futureproof components
Comments
Post a Comment