Hi guys,
I have been following this discussion about star shaping with great interest.....I can never get perfectly round stars! :cry:
Question 1: I have tried the various methods above with some success, but its usually quite variable. The first question is about the use of the Morphological erosion filter. On one of my images all the stars were slightly sqashed in the vertical direction looking a bit like a rugby ball lying on its side. I tried the erosion filter with different structure elements with limited success....until I used a 9x9 structure and actually painted on some extra squares to make it look the same shape and orientation as the shape of the stars. Hey presto, a few iterations and the stars were smaller, rounder (very close to true circles) and brighter...close to being ideal.
However, I've tried it since with nothing like the same success. Was I just lucky the first time, or is this how the structure element works? If so, then is there a way to automate it (sample a standard star in the image?). If this was just luck, then how do I know what shape element to pick?
Question 2: I have been heavily processing some images of M42 to try and bring out some very very faint nebulocity inspired by seeing Wade's Halpha image on the gallery (what a picture!!!). My pictures (3 x 5min subs) were taken with a very cheap Tamron 500mm F8 mirror lens on a Canon 400D, so bringing out any of the faint nebulocity was quite a challenge. At one point I overdid the processing on some of the regions and washed out some of the small faint stars. I had lost the history, (d'oh) so rather than start again I created a star mask of the original. I think I used Growth and Comp = 1 (or 0?) to stop the stars from growing. This gave me nice pinpoint, circular stars....but they were white, obviously no colour information in a starmask. So I then used pixelmaths to give me a new image (the original multiplied by the starmask) which resulted in sharp coloured stars. I could then use Pixelmaths again with an iif statement to put the new stars on the final image only where they had been lost.
Now this is really a fiddle as far as I am concerned. The stars are totally (well almost) fabricated. However, the result was very nice.
.
So I was wondering if this could give any ideas as to an elegant way of automatically improving star shape, effectively by using some of the features of the starmask...i.e. lovely circular stars with the right relative intensity, size, cross-section and position.
Just a thought.
Cheers
Simon