Spectroheliograph Construction Details
Part 7: Image Processing:
The final step in my SHG journey is image processing. There are a lot of valid ways to process images, but for solar SHG, the general process is to:
- Create sun images from scans
- Stack a certain number of sun images for better S/N ratio.
- Sharpen the stacked image
So, how do I do all those things? Here's how:
Step 1:
Assuming all your scan videos are in a single folder......create a second folder. Move every other scan to this second folder. That segregates your N-S scans from your S-N scans.
Step 2:
Create sun images from the spectral line videos using Doug Smith's "TheSmiths" software (yes, that's really the name). The software has a "folder input mode". Select it so you can batch process your videos. Then, select the first folder your N-S videos are in. I check the boxes as follows:
- TheSmiths software
- TheSmiths software.jpg (123.33 KiB) Viewed 7108 times
Of course, you can play with the options of checking different boxes to familiarize yourself with it. Doug recommends using the lowest transversalium line correction you can (on the slider bar) and still eliminate these lines. I am very fortunate that I can use a 1.0 value. Other folks will have to use a higher value. It all depends on how much dust or other defects are on your slit. Doug also recommends setting the ellipse fit shift to 10.
Then, watch the software chug! Keep an eye on "Y/X" values and "unrotation angle theta". Unrotation should be less than 1 degree. Zero is perfect. You may also select "de-vignette" to see if it gives you a better image.
When the software has completed the processing, select the second folder. Process through "TheSmiths" the exact same way....EXCEPT....check the "Mirror X" option box. After the second folder has finished processing, move the contents of that folder back to the original folder. All your constructed sun images should be oriented the same.
Step 3:
The next step is stacking. Stack your images using Autostakkert software. I set the boxes and options like this:
- Autostakkert
- Autostakkert.jpg (130.03 KiB) Viewed 7108 times
The sun image will be huge! Place your stabilization anchor box around some strong features. Click "Analyze". After the software is finished analyzing, it will rate the "quality" of each image, and the sharpest image will be displayed.
Then, I set up the Autostakkert imaging box like this:
- Autostakkert Image Box
- AS Image Box.jpg (27.04 KiB) Viewed 7108 times
Click "Place AP grid". Over 10,000 alignment boxes will be auto-placed on the image! Scroll around the limb of the sun and manually click on dimmer prominence areas the software may have missed. This places alignment boxes around them.
Choose the number of frames to stack, and then click "Stack". The software stacks them by highest quality. Solar imagers know that the sun boils and flexes, so Autostakkert works stacking miracles by stacking alignment boxes separately, and then recombines them into the finished stack.
Now you have a very high signal-to-noise ratio stacked image saved as a 16-bit TIF file.
Step 4:
The next step is sharpening. I like IMPPG software. This free software uses both Lucy-Richardson and unsharp masking to sharpen. Open the stacked 16-bit TIFF file. It's huge! Although there are many ways to set up the option box, I set it up like so:
- IMPPG Option Box
- IMPPG option box.jpg (31.81 KiB) Viewed 7108 times
When you are satisfied with the image sharpness of the small selection square, make sure and click the "process the whole image" icon. The entire image is sharpened with your selected options. Move different sliders up and down to see how the finished image responds. Sharpen it to your liking and save the sharpened image as a 16-bit TIF file.
Step 5:
Repeat after me:
"I will never, EVER over-process a solar image. The best processed image looks as though it was never even processed".
We have all seen over-processed solar images. How do you know if an image is too sharp or over-processed? I just looks "unnatural" (too noisy, too mottled, too much contrast, too sharp, etc.). There is no particular definition, but after some experience, you will "know it when you see it"! Save the processed image as a 16-bit TIF file.
Step 6:
The final step is using your favorite image software to crop some of the black border out if it is too thick, add some descriptive text if you wish, tweak the brightness. contrast, or curves if you wish......and save the final result as a minimum compression jpeg file. I am not a fan of adding fake orange color to an h-alpha image. So, I just leave my images B&W mono.
I hope you liked my summary of building an SHG, mounting it, adjusting it, imaging with it, and processing the final solar image. I thank Doug Smith, my SHG mentor, for adding some valuable comments.
As an aside, these instruments are just too cool, and they are not hard to build and use. You will have an instrument that can provide an ultra narrow-band solar image that is narrower bandpass than any filter can provide. You will gain enormous "street-cred" in your astronomy club!
And, most importantly, you will have the pleasure of resurrecting the original solar narrow-band imaging technique that George Ellery Hale himself invented in his 1890 Physics bachelor's degree thesis at MIT (it was also independently invented by Deslandres in 1892 and refined by McMath in 1932).
Here is Hale's thesis in his own handwriting from MIT's database:
https://dspace.mit.edu/handle/1721.1/43574
So, enjoy! I know I do.
Rick Schrantz