Hi everybody
New upgrade of the source code and Win 64 release (if asked, I'll upload other versions... w32 and linux 32/64).
Changes:
- I decided to remove the automatic sky determination. The algorithm was not working right, and I feel that this problem needs a dedicated solution. So, once you determine the sky background value, you have to send it to the StarStatistics class. Another option, of course, is to extract the PSF on a background substracted image...
- The intensity calculation has been completely reworked. I was using a least squares approach from the predicted function, to find the best fit of the data. Because I had accuracy issues with sigma values, this yielded very poor estimations. Now I'm calculating it from statistical properties of the sample. I'm comparing the samples flux and total square flux per pixel to the truncated normal bivariate distribution's <f> and <f^2>.
New results are much more accurate.
- After a momentum research of the truncated normal bivariate distribution, I found a correction factor that is applied to the data's variance to find the complete distribution's standard deviation. Also I'm applying a bias correction factor. Both corrections yields a much better sigma value, still lower than the theoretical value for poorly resolved stars. I believe that this difference appears from the discretization of values, while I modeled the problem with continual functions. I'll try to fix that, but I think that I'm getting close to the inherent statistical error.
I have not checked the asymmetric outputs carefully (i.e., make sure that the angle calculation is right, and that the max and min sigmas have not been switched in any case
). Also I forgot to change the displayed angle value from radians to degrees. This will be done in the next release. From now on I'll try to focus more on the process itself, than in the starstatistics class.
Oh, almost forgot to mention that the threshold parameter have become very critical. It should be high enough, so that it rejects more pixels than the radius (I need to redesign the boundary modelation of the truncated normal bivariate function), but low enough to include as much samples as possible. In my tests I found that a 0.1 value usually yields the better results. This may not be the case with real data...
Please, compare the results with the ones generated by other softwares. Also, it would be nice if you may provide me a pair of sample images (good real data, with known fwhm measurements [in pixels]).
PS: Any help with the code is highly wellcome