I'd like to understand
Fourier in image transform

I have learnt in my school that
F(x,y)=f(x,y)=C*(long summation)

Given an image 16x16, and its pixel data after read are stored in imgData of (BYTE*imgData)

What is x,y and how can I apply F for imgData ?

Thank you