Hello.
I'm trying to scale an image into 4x4 pixels by this code:
Mat image4x4;
vector<int> compression_params;
compression_params.push_back(CV_IMWRITE_PNG_COMPRESSION);
compression_params.push_back(9);
resize(imageFromFile, image4x4, Size(4,4), INTER_CUBIC);
imwrite("/Users/macuser/Desktop/4x4/"+names.at(i), image4x4, compression_params);
The result is this:
but if I do it with GIMP (in 'cubic' as well), the result is:
I don't know what factor I'm not considering when scaling... do you have any clue?
Thank you very much. Regards.