Zdobienie

AutoStakkert! and Lucky Imaging: The Mathematical Battle Against Atmosphere

Zdobienie

AutoStakkert! and Lucky Imaging: The Mathematical Battle Against Atmosphere

AutoStakkert 2

Learn the best settings and a step-by-step process to stack your Lunar light frames in AutoStakkert and achieve sharper, high-resolution Moon images.

The Seeing Problem

Why is a single DSLR photo of the Moon rarely perfectly sharp? The culprit is Earth’s atmosphere. Air masses of different temperatures mix, creating turbulence that acts like lenses with varying focal lengths. This phenomenon is called seeing. In classical photography (long exposures), seeing blurs details. The engineering solution is the Lucky Imaging technique.

Mechanism: Statistics and Video

Instead of a single photo, we record thousands of video frames with very short exposure times (milliseconds). Statistically, within a second, there are moments when the atmosphere “freezes” for a fraction of a time and becomes perfectly transparent. The role of AutoStakkert! is to analyze each of the thousands of frames, grade their quality (sharpness), and select only the “lucky” ones (e.g., the best 10-20%).

At first impression, the AutoStakkert user interface does not seem easy to use. However, after getting to know the key options and understanding how the program works, its interface not more to be a secret. We will go through the stacking procedure, processing sample of Moon light frames, which I collected in the early spring of this year.

The AutoStakkert version that I use in this description, cannot support .CR2 (Canon) RAW files, so I had to convert all .CR2 files to the .TIFF (16-bit) type before that AutoStakkert could “see” them. I will mention that AutoStakkert cannot handle 32-bit float files of any type. You must convert files to at most 16-bit.

Below you can see the EXIF parameters of the light frames has been taken.

Photo of the camera in the given optical configuration.

Light frames:

  • Lights: 114 x ISO 12.800, 0,00025[s]
  • Files of .CR2 RAW converted to .TIFF (16-bit) type, 5488×3662 [px]

I will focus only on those options that I need to use. Description of the other options you can find in the manual, which is available on the AutoStakkert page.

Lets start processing the collected light frames.

 

Loading files and determining the brightness level

Click to 1) Open

In the file selection window, set Files of type to Image files and select the files that you want to load and stack. To select all files, select the first file, scroll to the bottom of the list, hold down the Shift key and click on the last file. Confirm by clicking the Open button.

The preview window will be resized itself too much. We need to use the Zoom slider and set the right size, to have a visible whole picture on screen.

Let’s set the amount of Core available to the AutoStakkert program. It is a good practice to leave something for the operating system, so that during tedious and very demanding data counting, the system can maintain its responsiveness to user. From the total number of available Cores, it is good to subtract 2 or ultimately 1. This should be enough.

Image Stabilization

In the case of the moon, it is recommended to use the Surface option. Additional options will appear, turn on Improve Tracking and select Expand.

Quality Estimator

AutoStakkert Noise Robust setting for Moon

Noise Robust – here you have to rely on your own rate of the collected light frames. The criterion is the noise level and visibility. If the collected material is heavily noisy or the visibility of the object is poor, set the value between 4 and 8 rated how poor the quality of the light frames are. If the image material is of good quality, set it between 2 and 4. I’ve set 5. The image material is of medium quality in my own rate.

Multi-Point Alignment (MAP) and Isoplanatic Patches This is the software’s most critical feature. The atmosphere does not distort the image uniformly. The left edge of a crater might be sharp while the right side is “swimming.” Areas with uniform distortion are called isoplanatic patches. AutoStakkert! applies a grid of Alignment Points (AP) over the image. Each of these points (squares) is analyzed and aligned independently of the others. Effectively, the software cuts the image into hundreds of pieces, aligns each one individually, and then stitches them back into a perfect mosaic. This is something no simple graphic software can achieve.

Local (AP) – quality is determined based on each Alignment Point, each AP uses a different set of light frames.

Global (Frame) – quality is determined by the entire light frame, each AP uses the same set of light frames to stack.

Let’s get to the analysis.

 

2) Analyse

Reference Frame

This is our first stack, so choose Auto size (quality based). Explained both options are below and when to use them.

Last Stack is Reference – the program will use the last file of the ready stack, that was created if a given set of photo files had already been used.

Auto size (quality based) – The reference frame is created automatically from the best set of light frames, that the first time you work with a set of images. If you want a little more control, you can uncheck this box and manually choose the number of light frames to use, for the reference frame. Using more frames will slightly better represent the true form of the stacking target, but will also blur the reference frame, which is more difficult to align.

Click on 2) Analyse button

Stack Options – Fighting Noise (SNR)

The second goal of stacking is sensor noise reduction. Selecting the best frames is only half the battle. Stacking (averaging) them allows for an increase in the Signal-to-Noise Ratio (SNR). The gain in SNR is proportional to the square root of the number of frames (). Stacking 100 frames improves image quality 10 times compared to a single frame, allowing for aggressive sharpening (e.g., wavelets in RegiStax) without degrading the image with grain.

It is a good idea, to save the result of stack in a file with non-lossy type. We need to choose the .TIFF or .PNG or .FIT type. I’ve chosed .TIFF

AutoStakkert is suggesting a default setting with 50% of the best quality light frames that will be used, for the stacking process. We do not change this value. Of course you can experiment if you want.

Sharpened – turn on and set Blend RAW in for with 30%, with this option we will get two stacks. Both will be sharpened, but the second will additionaly have a 30% of blend intensity.

Save in Folders – enabled, enter Prefix which will be added, to the beginning of the directory name and output files. I’ve entered AS_

Drizzle: When to Use?

The Drizzle (1.5x / 3.0x) option, famous from the Hubble Telescope, makes sense in only one case: when our optical system is undersampled—meaning the telescope’s resolution is higher than the camera sensor’s resolution. Enabling Drizzle allows for the recovery of sub-pixel details. In most amateur cases, the 1.5x option is the sweet spot; 3.0x often generates only empty magnification and artifacts.

Preview window

We need to specify and apply alignment points. With arrows help (Size of alignment point to add) set the value to 400. Click the Place AP grid button.

In the preview window, a number of squares will appear on the moon photo. These are our alignment points. WARNING! A large number of alignment points, consumes a lot of RAM, which may run out during the stacking process. In my experience, the number of alignment points should not exceed 40 for my amount of light frames. Remember that the limit number of alignment points may be different, for your amount of light frames. You have to try and experiment, to find the limit with quantity. NOTE: in most cases of collected light frames, the more alignment points the better.

The AutoStakkert generated 116 of AP. We need to reduce the number of AP by right clicking on the squares. We need to try, to reduce the squares in such a way, that their quantity has a fairly even distribution throughout the entire object (moon) in the picture. It is good, when the squares slightly overlap. I left 38 AP, should be enough.

Lets move to stacking process.

 

Advanced Settings

We don’t change anything here this time. Drizzle is recommended for very small objects, e.g. Mars, Pluto, Neptune and other small objects.

 

3) Stack

The only thing left to do is to click on 3) Stack button and going for coffee / beer / orangeade / tea …. not needed to delete. Depending on the amount and type of photographic material, as well as the computing power of the computer at the program’s disposal, it will take longer or less of time.

The stacking result can be followed in the main program window. Each completed process, change its status to a green “V” in turn. If everything went correctly, the program will announce it with Done! status. As in the example image below.

The directory with source files, will contain two stack of files created. Note that the directory name contains the prefix, that was entered in the main program window and a number describing the percentage of how many frames the stack was made from. This is quite useful information, if you do, for example, 20 different stacks, the catalog descriptions help you figure out how many frames (in percent) of a given stack file. File names contain similar information. The file that contains the word “conv” in the name is a file without “blend”.

 

An example of the result of the stack

AutoStakkert - Stack of Moon
AutoStakkert – Stack of Moon

 

Result image after processing in RawTherapee + Gimp software.

Księżyc / Moon (C) Dariusz Krzempek

 

Support my work on Ko-fi

Did this guide help you?

I create these guides and projects as a hobby. If I helped you save time or money, consider supporting my work with a coffee. It keeps the energy flowing for future projects.

Categories
Newest articles

iOptron CEM 25P

iOptron CEM 25P RA axle bearings replacement

iOptron CEM 25P RA axle bearings replacement. Instructions for how to replace faulty RA-axis bearings (6907) in the iOptron CEM 25P mount yourself. Eliminate friction and improve tracking accuracy. Do…

Support

Was description useful? Consider to support author, it prevents to post annoying ads for you. All you just could do is once a year, sponsor for me a coffee. The currency, amount, doesn’t matter to me. Matter to me, that you want!

Read

Similar Articles

SynScan controller firmware update

SynScan controller firmware update – NEQ6Pro

WARNING – the author of this manual accepts no responsibility, for any damages that may occur as a result of following this manual. All actions described in this manual are undertaken at your own risk. SynScan controller firmware update – Introduction   Starting from version 3.0, users can independently update the firmware of SynScan controllers for NEQ mounts. Simply download the latest software version from the Sky-Watcher website and perform the update following the instructions provided here. Requirements SynScan™ Hand Control of version 3.0 or later. Windows 8.1 or later An available RS-232C communication port on the PC RS232-USB hardware converter in case of missing DB9 COM port in your laptop / PC PC link cable that comes with the SynScan™ hand control DC power supply with 12~14V/1A output. Power plug should be 2.1mm diameter, tip positive.      Preparation for update Create a directory called SynScan, preferably on your C: drive. Visit the Support Page of the Sky-Watcher website at https://www.skywatcher.com/download/software/ Download and save two files, follow with example: Windows program: SynScan Firmware Loader, Version 3.5 – click with Download button. you’ll save a file with name: synscan_verXXXXXX_firmware_release.zip where XXXXXX – is a version nr Next download Firmware: SynScan V4/V5 Hand Controller For All GO-TO Mounts, Version 4.39.21 – click on Download button you’ll save a file with name: synscanfirmwareloader_verXX.zip where XX – is version nr Connecting devices Connect the USB-COM (RS232) adapter to the computer’s USB port.   Connect the male COM plug of the adapter to the female COM plug of the SynScan controller cable.   Connect the RJ-11 plug of the controller’s COM cable to the RJ-11 port on the controller. Ensure that the plug is securely inserted—you should hear a distinct “click” as the plug snaps firmly into place in the controller’s socket.   Connect the controller to the mount using the dedicated cable – RJ45 plug to the COM port on the mount. Ensure the cable is securely connected to both the controller and the mount for proper communication during operation. We now have the following connection setup – example:   Firmware update the SynScan™ Hand Control On the controller, simultaneously press and hold the buttons “0” and “8.” Turn on the mount’s power as shown in below photo. The controller will emit a “beep” sound during startup and then display the message “SynScan Update Ver….” as shown in the image. The controller has now been set to firmware update mode. This indicates that the device is ready for the next steps in the firmware update process. On your computer, run the Computer Manager and find the COM port which will be used for update. With this example it is COM5. Check the COM port number on your system. Open Computer Management and locate the COM port. To do this on a Windows system: Press Win + X and select Computer Management from the menu. In the Computer Management window, navigate to Device Manager. Expand the section labeled Ports (COM & LPT). Here, you will see a list of available COM ports along with their assigned numbers (e.g., COM1, COM2). With this example it is COM5. Run the SynScanFirmwareLoader.exe software on your PC. Once the program is launched, you should see a window SynScan Firmware Loader , make sure the “Auto-detect COM Port” checkbox has been unchecked. Set the COM port. Click the HC Version button. The program will attempt to connect to the controller and retrieve information about the hardware version, firmware, and the celestial object database. You will see the version numbers at the bottom of the Firmware Loader as shown on below picture. If the program is unable to communicate with the controller, enable the Auto-detect COM Port option and click the HC Version button again. If the Loader program cannot detect an available COM port, check the connection between the controller and the computer. Click Browse to select the SynScanVXXXX.ssf file in the SynScan folder. It is recommended to enable the – Enforce database update – option and then click the Update button to start the update procedure. This ensures that the entire database is refreshed during the update process, reducing the risk of any errors or omissions. The update status can be monitored under the Update and HC. Version buttons. Update Complete. Click on the HC. Version button and check if the controller has reported a new Firmware version. The update was fully successful. Close the Loader program and turn off mount power suppl. Turn the mount’s power back on and check whether the controller displays the new firmware version. Check if the mount and H.C. works properly. As you can see, the firmware update process for the SynScan V4 controller is not overly complicated, but it does require careful attention. It’s crucial to follow all the steps outlined in this guide in the correct sequence, with focus and precision. I hope the description provided could be at least somewhat helpful.   It’s worth mentioning that the mount performs excellently in the field when used with the PERUN II power bank.

Read more...