I am trying to detect patterns in a raw image file where each pixel has an intensity. I can imagine fitting a 2D surface to the image (or to a portion of it) using a chi2, but for that, I need the intensity fluctuations in each pixel. How does one generally obtain those?
I have thought of taking a picture of a uniform field and looking at the distribution of intensities, assuming that the distribution of intensities between pixels is the same as the distribution in a pixel. A drawback of this method is that it would become complicated if the fluctuations depend on the intensity level itself (ie Poisson noise).
I should add that in practice I am working with data that have R, G and B info for each pixel, so I might be carrying out a fit on each color.