Image downscaling algorithm
问题 Could you help me find the right algorithm for image resizing? I have an image of a number. The maximum size is 200x200, I need to get an image with size 15x15 or even less. The image is monochrome (black and white) and the result should be the same. That's the info about my task. I've already tried one algorithm, here it is // xscale, yscale - decrease/increase rate for (int f = 0; f<=49; f++) { for (int g = 0; g<=49; g++)//49+1 - final size { xpos = (int)f * xscale; ypos = (int)g * yscale;