3 #include <SimoxUtility/algorithm/string.h>
17 if(p1 !=
nullptr && p2 !=
nullptr){
30 std::vector<unsigned char> first_image = p1->getDataAsVector();
31 std::vector<unsigned char> second_image = p2->getDataAsVector();
32 int size = first_image.size();
39 int rolling_number = 1;
41 for(
int i = 0; i < int(first_image.size()); i+= rolling_number){
43 sum += std::pow(first_image.at(i) - second_image.at(i), 2);