Hi folks,
The star colours above might be a bit of a shock to some so I thought it might be useful to rustle up a few line plots. To prepare them I used the RGB "FITS" file, as generated by PixInsight, which had had some preliminary white balancing but, of course, the white balance tweaks I applied later on in Photoshop won't be reflected in the data you are about to view. First I'll set the scene:
This crop is from the final image that left Photoshop and serves purely to show the stars that were sampled. The RGB "FITS" file was passed through my Repaired HSV Separation Script with "Clip Shadows" set at 0.00206 and the "Max Repair Radius" set at 16. The "Repair Level" was set at a very aggressive 0.21685 - in other words I was telling the script that if at any pixel any of the red, green or blue values exceeded that value then the script should attempt to use the colour information from surrounding pixels which were less exposed. On the line plots 0.21685 corresponds roughly to a pixel value of only 14,000!
Here is the result at Line A, quite a blue star:
As with all these plots the vertical scale for the two halves differs. There is something odd going on with my original data at pixels 10 and 11 with the red rather under-represented but with the "Repair Level" set to a pixel value equivalent on the plot of 14,000 the script has looked further out. The relative RGB intensities at pixels 10 and 11 in the repaired plot are much closer to those at pixels 8, 9 and 13 in the original so the script has done its job.
One further point when interpreting these plots. The line plots are just a one dimensional snapshot across various stars so while looking at the relative RGB intensities below the 14,000 cutoff is useful please bear in mind that the script attempts to sample suitable values in a circular search pattern up to, but usually not as far as, the "Max Repair Radius", and doesn't just sample along a one dimensional line.
Now for Line B. This is an orange star on my final JPEG:
It's brighter than the star sampled at Line A so pixels 9, 10 and 11 have all fallen foul of that 14,000 cutoff as can be seen on the "original" section of the plot. On the "repaired" section of the plot it can be seen that the script has again successfully used the RGB proportions further away from the over-exposed core. That has had the effect of reducing both the green and blue values near the core but that is exactly what is intended as it is quite obvious that the sensor is becoming saturated in the original.
Now for the star at Line C:
The same behaviour from the script is evident, with the outlying colour successfully replacing that of the over-exposed core.
Now to the brightest star in the field. Here is the plot for Line D:
The plot from the original data shows just how overexposed the star was. But again I'd argue that the script has done a good job in using a sample of the relative RGB intensities away from the overexposed core. This plot also shows the effect of the script's attempt to repair the intensity (Repaired V). The intensity is only a little more peaked than with the original data but I would rather that than create on obviously artificial result. That intensity repair process also explains why the vertical scales on the two line plots for each star differ as the small increase in luminance for the bright stars results, after the image has been rescaled, in everything else getting a little dimmer.
Finally a couple of "two for the price of one" plots:
Line E is unremarkable except that the same red deficiency that the star at Line A suffered from appears to be evident in the brighter of the two stars and has been corrected. Line F crosses a very red star and the loss of colour at the core of that star has successfully been corrected in the repaired image. It does look very red in that final image but the relative RGB values at pixel 6 (and pixel 9 although that would have been rejected by the script) suggest that the redness is genuine and not an artefact.
I hope this has been useful for those trying to understand what the Repaired HSV Separation Script is all about. I've certainly benefited from preparing the plots.
Bob.
The plots were prepared using an evaluation copy of <Edited by moderator: Advertising of competing software products is not allowed>Edit: When I published this post earlier today the star identified as Line C had been incorrectly annotated in the opening JPEG. That error has now been corrected and the text updated.