I have the following piece of code for image processing, using the library CImg.
for (int y = 0; y < height; y++)
for (int x = 0; x < width; x++) {
width = in.
float weight = strength*x*(xmax-x)*y*(ymax-y)/(xmax*xmax)/(ymax*ymax);
int new_x = (int) ((1-weight)*x + weight* y * xmax/ymax);
int new_y = (int) ((1-weight)*y + weight*(xmax-x)* ymax/xmax);
out(x,y) = in(new_x,new_y);
}
What does it mean the following line at the start of the cycle?
width = in.
'width' and 'in' are respectively an int and a CImg object declared before.
Thank you.