Hi Juan,
Sorry for the delay in replying.
StarDetector and StarAlignment differ on results and performance more than desired.
I will study your code and look for possible improvements.
Data for RC6 Win7 with and without hot pixel filter enabled.
Mike
All runs with the same parameters for both StarDetector and StarAlignment:
var starDetector = new StarDetector(
4, // structureLayers
2, // noiseLayers,
1, // hotPixelFilterRadius
Math.pow(10.0, -1.0), // sensitivity
0.8, // peakResponse
0.5 // maxStarDistortion
);
var stars = starDetector.stars(imageWindow.mainView.image);
Subs are relatively small, 2 megapixels.
StarAlignment:
Sub #1, 1514 stars found, 1.6 seconds
Sub #2, 1632 stars found, 1.5 seconds
StarDetector script, hot pixel filter disabled:
Sub #1, 1108 stars found, 14.3 seconds
Sub #2, 1054 stars found, 13.4 seconds
StarDetector script, hot pixel filter enabled:
Sub #1, 808 stars found, 9.8 seconds
Sub #2, 865 stars found, 9.7 seconds
Note: The StarAlignment performance numbers do not include the time my old script requires to convolve and peak detect the star map (equals 3 seconds on these subs). With this overhead included, StarDetector is about 2-3x slower. This performance is loss is possibly OK, but I need to figure out why fewer stars are detected.