@hypn0tik, yea, gaussians make the math easy, but i have personally never seen a gaussian process. Maybe my field is weird that way.
@Cyclo, ok more info. This process is literally all over the place. There is no parametric equation that will satisfy me. Maybe famlies of them, but i have to do *millions* of comparisons and there is no optimization known to man that can do that in sufficient time. More info, these joint densities are concerned with delta orientation as a function of distance for a 3D shape (not going to say more than that, getting scooped sucks). I have derived the prior for sphere and flat, but everything in between is not systematic enough. The priors are a separate analysis though, not at all related to the comparison of joint densities. If youre curious, the dumb thing im doing is the normalized covariance. I also looked into mutual information. Comparing nonparametric joint densities is a unique area of statistics that i lack.

My buddy that just died would know though.

x2
Is this laser guided, or image guided focus. Sounds like the latter. Im not sure if i totally understand, but if you know your image and it has sharp edges, just do the fourier transform and look at the energy in the high harmonics. My first postdoc was in engineering and i fully characterized and simulated a professional 12-bit camera. However, optics were not an issue since we used strictly small apertures.
Rethinking your question. Is this a color sensor? If so, then yes you can determine focus by looking at the chromaitc abberation. Short wavelengths will abberate much more than medium or long. However, the problem you have here is based on optics. Depending on the lens and focal length different wavelengths will abberate at different magnitudes. Fortunately the math is straight forward. You can find what you need in a grad level optics book.
edit: But yes, my phd is in visual neuroscience, so this does cover a lot of optics. Sorry i guess i neglected that when talking about my first postdoc.