5 #include <SimoxUtility/algorithm/string.h>
20 if (p1 !=
nullptr && p2 !=
nullptr)
39 std::vector<unsigned char> first_image = p1->getDataAsVector();
40 std::vector<unsigned char> second_image = p2->getDataAsVector();
41 int size = first_image.size();
48 int rolling_number = 1;
50 for (
int i = 0; i < int(first_image.size()); i += rolling_number)
53 sum += std::pow(first_image.at(i) - second_image.at(i), 2);