Please note: I have aboandoned this script in favor of two new scripts that I will share soon in the PCL/PJSR Development Board.
This script is a first cut at PSF estimation for each panel in the mosaic. See the attached images. The input subexposure it did not repost, it is the same as the second post in this thread. Max gets credit for the idea.
I use StarAlignment's star detector to detect stars to fit, DynamicPSF to do the PSF estimation, and a my own scheme for finding robust and reliable estimates of r (aspect ratio) and theta (position angle) parameters.
These parameters are displayed in a second mosaic.
PSF estimation works only for linear, single channel Grayscale images. I expect it to work reasonably well for both uncalibrated and calibrated subexposures.
To use the script you will want to use a more restrictive Log(sensitivity) setting than normal for star detection purposes. I have found that PSF estimation works better when only brighter stars are used. But you need to have at least 10 stars per panel for a reasonable fit, so don't increase Log(sensitivity) too much.
The implementation is fairly involved, but straightforward. I am new to PJSR so I am sure it can be improved. It is also new so don't be surprised if you encounter bugs. I have tested it only on Windows, for other platforms you will have to at least supply an appropriate font name for the text rendering.
I hope this is useful and inspires some brainstorming.
. If not, that is OK too as so far it has been a very interesting learning experience for me.
Thanks,
Mike
Edit: Script updated to version 0.4:
What's new:
- Added generate fitted star map option to output a mosaic with fitted stars marked with a small cross.
- Added eccentricity values to the PSF estimate mosaic.
- Changed theta to azimuth in the PSF estimate window.
- Added support for PSF estimates of RGB images.
- Added support for PSF estimates of nonlinear images.
- Bug fixes.
Edit: Script updated to version 0.6:
- Improved PSF estimation.
- Added support for more star detection parameters.
- Bug fixes.
Edit: Script updated to version 0.7:
- Added AvgDev PSF estimates.
- Bug fixes.
Known bugs:
- If no stars are detected in a panel the script will abort with an error dialog. The active window will be a temporary working image that you may close. Adjust the star detection parameters to more permissive values, close the mosaic window and try again.
see end of this thread for links to new versions