Musings on Lunar Mosaics

Discussions of using SharpCap for Solar or Lunar Imaging
Post Reply
User avatar
turfpit
Posts: 2286
Joined: Mon Feb 13, 2017 8:13 pm
Location: UK
Contact:

Musings on Lunar Mosaics

#1

Post by turfpit »

Introduction
In the UK, May is recognised as one of the best times to carry out lunar imaging (the other being Autumn). This is due to the moon reaching an elevation of 65°, plus hopefully steady weather conditions. This post looks at some of the figures involved with recent capture of 0.5Tb of data; considers processing of the panels required to create lunar mosaics; documents some of the challenges encountered during processing. Relevant recent posts in the Gallery are:

viewtopic.php?t=8681
viewtopic.php?t=8699
viewtopic.php?t=8696

Previous mosaic efforts have been in mono using cameras with 1280x960 (3.75µm pixel) capture area. This is my second excursion into colour mosaics, viewtopic.php?t=5421 see post #10 & #15

This image, a 7-panel mosaic (each panel ~100Mb, completed mosaic ~350Mb, 8400x8800), was produced using the workflow described below:

7-panel_scaled-down-50-percent_v2.jpg
7-panel_scaled-down-50-percent_v2.jpg (553.37 KiB) Viewed 3847 times


Capture Hardware
  • Celestron AVX Mount
  • Celestron C8 SCT
  • Celestron f6.3 reducer/flattener
  • JMI Motorised Focuser (hands-off focusing)
  • Altair 183C and 183M CMOS cameras
  • Celestron/Skyris manual filter wheel
  • Filters - UV/IR cut, IR685 pass, Wratten #25
Capture Laptop
  • Toshiba C50 (circa 2015)
  • CPU i3, 2.4GHz
  • 8Gb memory
  • SATA3 500Gb drive**
  • 2x USB3 & 1 USB2 ports
** due to the sometimes erratic transfer rates of SSD drives (when not trimmed), I prefer the more consistent performance of the SATA3 for capturing SER files

Processing Workstation
  • HP Z220 (from Windows 7 era circa 2010)
  • Intel Xeon E3-1240, 4 core 3.4GHz
  • 16Gb memory
  • System drive - WD500Gb SATA3 @ 10,000rpm
  • Image processing 1 - SSD, 1Tb
  • Image processing 2 - SSD, 250Gb
  • External USB3 1 - 2Tb, FileHistory, archive
  • External USB3 2 - 4Tb, astro capture data storage
Software
  • SharpCap 4.1, data capture only
  • Autostakkert!4, stacking SER files
  • Registax6, processing stacks (wavelet sharpening, RGB balance, contrast, brightness, gamma)
  • waveSharp2, (wavelet sharpening, RGB balance, contrast, gamma)
  • Microsoft Image Composite Editor (ICE), mosaic stitching software, no longer supported but can be found via the Wayback Machine
  • PixInsight, processing panels/mosaics (ColourCalibration, Deconvolution, MMT sharpening, Curves/Saturation)
  • GIMP, final processing (gamma, curves, unsharp mask, contrast, brightness)
  • Virtual Moon Atlas (planning sessions, reference for features & such as crater names & sizes)
Software Comments
  • Autostakkert!4 - the automated anchor point is useful for bulk stacking of multiple mosaic panels (drag and drop all panels, set Alignment Point on first run and leave to process). Seems to make greater effort at image stabilisation compared to previous versions. Drizzle15 caused 100% CPU and system disk utilisation which could be down to my hardware (lack of memory and lack of AVX2 support in CPU). Will retest when new hardware in place.
  • Registax6 - has a limit of 6216x6216 for file size. Software >10 years old and 32-bit so not unreasonable.
  • waveSharp2 - struggled with large mosaics (this could be lack of memory in my workstation) but handled via batch processing facility - process 3 panels in batch gives identical processing for each panel then stitch.
  • GIMP/PixInsight - handled large files (e.g. 350Mb) with ease.
The following gives some idea of the figures involved in mosaic construction.

Data (Capture)
  • 1st - 9th May 2025 for data capture
  • Captured 550Gb of lunar data, ~240 files (data and settings) created by SharpCap
  • In 2 sessions, 182Gb and 202Gb of data captured, the sessions were each around 1.5h duration
  • The image processing drive currently has ~350Gb of files in various stages
  • 183C/183M (5440x3648, 2.4µm pixel size), 8-bit SER, 500 frames @ 4fps = 2m and produces a 9Gb SER video, exposure 5 - 10ms, black_level =0, gain 150-250
  • 8-bit MONO 1920x1200 35fps
  • 8-bit RAW8 5440x3648 4fps
Data (Process)
  • 30% illumination gave a 3-panel mosaic, 160Mb stitched was 5800x8800, each stacked panel ~100Mb
  • 60% illumination gave an 8-panel mosaic, 250Mb stitched was 8400x9000, 8 panels totalled ~850Mb
Problems Encountered (Challenges Overcome)
During one of the panel stitching processes, I encountered a stitching artefact (a line on a seam). This was resolved by panel inspection and building the mosaic starting with stitching 2 panels, then adding a third panel, stitching and repeat. It turned out I had an extra panel which resulted in too much overlaying. Removing the extra panel resolved the stitching artefact issue.

stacking_artefact.JPG
stacking_artefact.JPG (80.01 KiB) Viewed 3847 times


With all the mosaic builds I never had the dreaded 'black rectangle in the middle of the mosaic' problem.

The major problem was establishing the best order of workflow. The 2 options were:
  • stack all panels > stitch all panels > process a single mosaic
  • stack all panels > process the individual panels > stitch all processed panels > final process

Of consideration was the large file sizes of the mosaics. Also I was concerned about applying exactly the same processing to each of the individual panels - would the panels be consistent enough to stitch successfully in ICE?

The answer I came up with for consistent processing of the mosaic panels was to use the Image Container, Process Container & History Explorer functionality in PixInsight (PI). These are the steps (diagram below):

Step 1 (Create Image Container)
  • Create a folder (eg called Container) somewhere on disk and load with the mosaic panels to be processed
  • In PI, right click on the workspace & select Image Container, a window will open
  • Complete the in/out folder paths and add the files stored in the Container folder
  • Drag and drop the New Instance icon (blue triangle) onto the workspace, an Image Container icon will be created
  • Close the window, the Image Container icon will remain in the workspace


Step 2 (Process 1 Mosaic Panel)
  • Load one of the mosaic panels and carry out the processing steps e.g. ColorCalibration, Deconvolution, MMT sharpening, Histogram Stretch, Curves/Saturation
  • The steps above will be recorded in the History Explorer
Step 3 (Create Process Container)
  • In History Explorer, drag and drop the New Instance icon (blue triangle) onto the workspace
  • A Process Container icon is created
Step 4 (Execute)
  • Drag and drop the Process Container icon onto the Image Container icon
  • All the processing steps recorded will be applied to all the files in the container folder (takes about 20m on my PC for 8 panels to complete)
  • The resulting processed panels can now be stitched
[Note: the process and container icons can be saved to disk for future use as PSM files.]

PI_containers.JPG
PI_containers.JPG (284.26 KiB) Viewed 3847 times


Deconvolution (undoing blurring caused by atmospheric distortion) turned out to be beneficial. There is no way to calculate the parameters when there are no stars present (as far as I know), which makes for a 'try some numbers and inspect the outcome' strategy. Iterations seem to be key.

This was the workflow for processing a single pane:
ColourCalibration.JPG
ColourCalibration.JPG (92.65 KiB) Viewed 3847 times
deconvolution.JPG
deconvolution.JPG (54.95 KiB) Viewed 3847 times
MultiscaleMedianTransform.JPG
MultiscaleMedianTransform.JPG (44.38 KiB) Viewed 3847 times
Followed by repeated application of Curves/Saturation.

Conclusions
  • Using the f6.3 reducer for a high % illumation moon looks to be beneficial.
  • Workflow = stack all panels > process all panels > stitch > process final mosaic, seems to work.
  • A new PC with at least 32Mb memory and NVMe system drive needs to be implemented in order to further evaluate Autostakkert!4 and waveSharp2. Just awaiting management sanction for a 1Tb NVMe drive and extra 32Gb RAM.
  • Some reading has indicated that the use of the IR cut filter with a colour camera may not be the best combination as regards to colour. Next lunar session will test that out.
Next Steps
  • Have a look at SharpCap's Lunar Mosaic Tool.
Thanks for reading ......

Dave
User avatar
admin
Site Admin
Posts: 17595
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Musings on Lunar Mosaics

#2

Post by admin »

Hi Dave,

thanks for sharing such a detailed analysis of the mosaic process - I'm sure it will be useful to a lot of people.

If I understand correctly, your approach with the PI container was to ensure that the identical processing steps and parameters were used to process each panel and thus avoid any issue with mismatch when trying to stitch the mosaic from differing treatments of contrast, sharpening, etc. Not an approach I had considered feasible (because I didn't know about that functionality in PI!) I have usually done the stitching on images straight out of AutoStakkert (or PlanetarySystemStacker, or whatever), and then done processing on the stitched mosaic :)

cheers,

Robin
User avatar
turfpit
Posts: 2286
Joined: Mon Feb 13, 2017 8:13 pm
Location: UK
Contact:

Re: Musings on Lunar Mosaics

#3

Post by turfpit »

Robin
approach with the PI container was to ensure that the identical processing steps and parameters were used to process each panel and thus avoid any issue with mismatch when trying to stitch the mosaic from differing treatments of contrast, sharpening
Correct.

I was doing stack -> stitch > process but ran into some problems, see viewtopic.php?t=5421&start=10 post #10.

With the way I processed with containers, a green caste crept back in when saturation was repeatedly applied. It was easily dealt with by SCNR.

The container way enforces consistency across panels and because the process history can be saved, the same steps/parameters can be applied in future image processing. The method will be useful with a smaller sensor which could have many panels to process.

A lot of the parameters I used had very small values - that seems to be the trick as heavy handed application of values leads to poor results.

The 183C camera did well when capturing @ 4fps and 500 frames seems to be enough to produce a decent stack.

I have had a very productive few days with the lunar imaging this month - progress made. Same equipment as in 2017 but getting more results now and starting to get to grips with PixInsight as well.

Dave
User avatar
turfpit
Posts: 2286
Joined: Mon Feb 13, 2017 8:13 pm
Location: UK
Contact:

Re: Musings on Lunar Mosaics

#4

Post by turfpit »

Using the PixInsight container process, I have been able to reprocess all 7 panels with ease. This looks like my final version. The 3 panels below the full image are screen crops with the image displayed at 12.5% in GIMP. The final stitched TIFF was 194Mb, measuring 8492x8857. After scaling down to 40% of original and saving as a JPG with 75% quality, the size is 979Kb, measuring 2790x3326.

7-panel_lunar_mosaic.jpg
7-panel_lunar_mosaic.jpg (979.74 KiB) Viewed 3782 times


These are 3 screen crops from GIMP with the mosaic displayed at 12.5% size.

1.JPG
1.JPG (108.32 KiB) Viewed 3782 times
2.JPG
2.JPG (136.42 KiB) Viewed 3782 times
3.JPG
3.JPG (120.05 KiB) Viewed 3782 times


Dave
User avatar
turfpit
Posts: 2286
Joined: Mon Feb 13, 2017 8:13 pm
Location: UK
Contact:

Re: Musings on Lunar Mosaics

#5

Post by turfpit »

I still have some way to go yet https://lunarworldrecord.org/record.php - 288 mosaic panes on a single night.

Dave
Post Reply