Thursday 30 July 2020

More Proof-testing of AstroDMx Capture

This article shows results from AstroDMx Capture for Windows and 

AstroDMx Capture for FreeBSD

In all of these tests the camera was placed at the Cassegrain focus of a Skymax 127 mounted on a Celestron AVX mount.

AstroDMx Capture for Windows and an SV305 camera


A 1000-frame SER file was captured at maximum resolution of 1920 x 1080 of a region of the 51.4% waxing Moon.

Screenshot of AstroDMx Capture for Windows capturing lunar data

The best 90% of the frames captured were aligned and stacked in Autostakkert! The resulting image was wavelet processed in Registax 6 and post processed in the Gimp 2.10.

Processed image

A 2500 frame SER file was captured with a Region of interest (ROI) of 1440 x 1056.

Screenshot of AstroDMx Capture for Windows capturing a ROI and using a reticle

The best 50% of frames were aligned and stacked in Autostakkert!, wavelet processed in Registax 6 and post processed in Affinity Photo and the Gimp 2.10

Processed ROI



AstroDMx Capture for Windows and a QHY 5L-II-M camera


2000 frame SER files were captured of two regions of the 65.3% waxing Moon.

Screenshot of AstroDMx Capture for Windows capturing lunar data

The best 50% of the frames captured were aligned and stacked in Autostakkert!, wavelet processed in Registax 6 and post processed in the Gimp 2.10.

Screenshot of processed image

Screenshot of AstroDMx Capture for Windows capturing data

The best 50% of the frames captured were aligned and stacked in Autostakkert!, wavelet processed in Registax 6 and post processed in the Gimp 2.10.

Processed image




AstroDMx Capture for FreeBSD and a DMK 21AU04.AS camera

2,500 frame SER files were captured of the 54.1% waxing Moon. The best 50% of the frames were stacked in Autostakkert! running in Wine and wavelet processed in Registax 5.1 also running in Wine. The final image was post processed in the Gimp 2.10 running natively.

Screenshot of AstroDMx Capture for FreeBSD capturing data


Processed image


Screenshot of AstroDMx Capture for FreeBSD capturing data

Processed image

These results show that the AstroDMx Capture software is functional on Windows and FreeBSD as well as, we have previously shown, on the original Linux and on MacOS. Nicola is sorting out issues with the single code base that will ultimately make the maintenance of the project code, more manageable.
FreeBSD has been included because it has been possible to implement DSLR cameras as well as the Imaging source DMK and DFK. There are no SDKs available for FreeBSD, but nontheless, the cameras that Nicola has implemented make FreeBSD a viable imaging platform.

AstroDMx Capture for Windows, macOS or Linux (Including Raspberry Pi) can be downloaded freely here:

Saturday 25 July 2020

Scientific Imaging with AstroDMx Capture for Windows

Scientific imaging

When I took early retirement from my main occupation of Senior lecturer in Environmental Biology at Swansea University, my students presented me with a book that they knew would appeal to both the biologist and astronomer in me. The book had only just been published: ‘ Heaven and Earth , unseen by the naked eye’ by the astronomer David Malin, Photographic Scientist at the then Anglo-Australian Observatory, and later, Adjunct Professor of Scientific Photography at the Royal Melbourne Institute of Technology; and Katherin Roucoux, paleoecologist, Research Fellow at the University of Leeds and later, Senior Lecturer at The University of St. Andrews. This book has served to remind me over the years, that the cosmos exists on scales ranging from femtometres to more than 13 billion light years. Over much of this scale range, the objects existing at these scales, are invisible to the human eye for several reasons: they could be for example, too small, too distant, or too dim.

Scientific imaging uses cameras connected to instruments such as telescopes, to observe and image distant and dim objects, and microscopes to observe very small objects. In between these scales, cameras and lenses can be used to observe and record hard to see subjects such as the inhabitants of nest boxes, or shy, nocturnal creatures illuminated by infra-red light. Features such as motion detection can facilitate such recordings. 

Since 2016, Nicola Mackin’s AstroDMx Capture software has developed into a multiplatform scientific imaging capture tool, and various articles in this blog, have seen it used to image objects across the range of scales of interest to scientists.



Nicola has now implemented AstroDMx Capture on 4 platforms: Linux (including the Raspberry Pi), Windows, MacOS, and FreeBSD. They are now, all close to release. FreeBSD has limited camera support, but that is due to the lack of SDKs for the platform.



This article explores the Windows version of AstroDMx Capture, running on a low spec laptop (Lenovo 11.6”, Celeron, 4GB RAM, 64GB SSD + 128GB fast micro SD), working with an SVBONY SV305 camera coupled with a Skymax 127 Maksutov telescope; a dissecting microscope, or a research grade transmission microscope. It was important that all of the imaging and image processing was done on this low spec machine.

The aim was to look at the capabilities of the system for scientific imaging of large and distant astronomical objects, as well as small and microscopic objects; specifically using AstroDMx Capture for Windows as the imaging platform.

Deep Sky astronomical imaging

A Skymax 127 Maksutov telescope was mounted on a Celestron AVX mount. An SV305 camera was placed at the Cassegrain focus of the telescope.

Fifteen x 50s exposures were captured as 16-bit Tiffs, with matching dark-frames. The frames were stacked in Deep Sky Stacker and post processed in the Gimp 2.10.

Screenshot of AstroDMx Capture for Windows capturing M27 data


Final image of M27

A Short Mogg adapter with a 0.5 x Focal reducer was attached to the camera and data were captured on M57.

Screenshot of AstroDMx Capture for Windows capturing M57 data

18 x 45s exposures were stacked with matching dark frames in Autostakkert! The final image was post processed in the Gimp 2.10.

Final M57 image


Medium magnification, top-illumination microscopy imaging

An SV305 camera was mounted on a monocular dissection microscope



Bark with crustose lichen, and also bryophyte samples were examined and imaged under the microscope.

Screenshot of AstroDMx Capture for Windows streaming data of the surface of the lichen

The snapshot function of AstroDMx Capture for Windows was used to capture high quality Tiff images of the samples.

Captured snapshot of the lichen surface

Screenshot of AstroDMx Capture for Windows streaming data of the bryophyte sample

Four snapshots were taken with focus at different levels and then Affinity Photo was used to focus stack the images to bring all levels into focus.

Focus stack image of the bryophyte sample


High magnification, transmission microscopy imaging

An SV305 camera was mounted on a trinocular microscope.


A Thin transverse section of a plant stem was placed on the microscope slide

Screenshot of AstroDMx Capture for Windows streaming data on part of the
stem transverse section


High quality snapshot


Screenshot of AstroDMx Capture for Windows streaming data on another part of 
the transverse section

High quality snapshot


We have demonstrated here that AstroDMx Capture for Windows, in combination with a low spec computer and a good, low cost camera, the SVBONY SV305, is a very capable system for Scientific imaging for both astronomy and microscopy. However, these results could just as readily have been obtained by the Linux or MacOS versions of AstroDMx Capture. The FreeBSD version, however, is currently restricted to imaging with supported Nikon and Canon DSLR cameras and DMK/DFK/DBK cameras. However, it is also intended to implement UVC cameras for the FreeBSD version.

Scientific imaging at any scale is intended to produce images of scientific value, reflecting as accurately as possible the object being imaged. However, something that becomes evident when you use scientific imaging on a regular basis, is that at all scales of objects in the universe there can be profound beauty. As the writers of ‘Heaven and Earth...’ point out, there can be beauty at some level, even in the intrinsically grotesque.

Academia recognises the fact that art can derive from scientific research. In fact, Swansea University holds an annual competition entitled ‘Research as Art’. Researchers must distil their research down to one picture and a 150-word description. 'Research as Art is less about the stunning picture, and more about the story. It's about what goes on behind the research; what it means to be a researcher.'

AstroDMx Capture has features that enable the scientific imager to obtain images by means appropriate to the object being imaged. Nicola will maintain and continue to develop the software for this purpose on all four platforms. As there are now four OS platforms, the release cycle has been longer than when there was just one, but we are now very close!

AstroDMx Capture for Windows, macOS or Linux (Including Raspberry Pi) can be downloaded freely here:

Friday 17 July 2020

Windows, WindowsFx, Linuxfx, WinFx, Lindows, Winux... What’s in a name?

Take a look at the screenshot below and you could be forgiven for thinking that you are looking at a Windows10 desktop. 
 Desktop Screenshot

In fact, it is Linux from Brazil!

There are more Linux computers coming on the market, so it is possible to buy a laptop, even a relatively low-cost laptop that is pre-installed with a Linux distribution. This is good because it means that Linux is gaining traction in the desktop OS space. Linux dominates the cloud, servers, hadron colliders, major astronomical telescope observatories and supercomputers. There is no reason why Linux should not play a bigger role in desktop computing currently dominated by Microsoft and Apple, and Chrome OS (based on the Linux Kernel plus Crostini (Linux virtual system) with Android, also based on the Linux Kernel, and all in one system) gaining some traction as an alternative to Windows and MacOS. However, full-blown Linux is very secure and very powerful and is growing in use as a desktop computing operating system and is just as easy to use as Windows or MacOS.

There are Linux distributions that have been made to ease the movement from Windows 7 over to Linux, by making the user interface more familiar to a Windows 7 user. Linux Lite is one such distribution, but there are others as well. What all these distributions do is to choose a desktop environment that can be configured to be reminiscent of Windows 7. Unlike Windows, which has just one desktop environment, take it or leave it; Linux has a selection of desktop environments that will suit any user’s requirements.

There is, however, a Linux distribution that has taken this approach to the extreme. It is a Brazillian distribution, variously called Windowsfx, Linuxfx or WinFx. This distribution is based on Ubuntu with an XFCE desktop environment configured to look and behave as much like Windows10 as possible. This similarity goes as far as using Windows style icons and even a Windows wallpaper. As you can see from the screenshot above, the resemblance is very convincing.

The experience of using Windowsfx is about as close to the experience of using Windows10 as is possible. The experience is just as good and should convince any Windows user who is thinking of moving over to Linux, to give it a try. It comes with a full gamut of software such as Libre Office, the Gimp, VLC Media Player, Rhythmbox and a plethora of other programs. Windowsfx comes with pre-installed Wine, so that a multitude of Windows programs can be run. It also comes with pre-installed Steam for those inclined towards games activity.

Screenshot of the Start menu
It can be seen that the Start menu is similar to, but by no means identical to, the Windows10 Start menu. It is, nevertheless, completely intuitive and arguably better than the Windows version.
Virtual desktops are accessed using the same icon on the taskbar as they are in Windows10, they are presented in a way very similar to the virtual workspaces in Windows10.

Screenshot of virtual desktops (Workspaces) in Windowsfx

 
As stated earlier, Windowsfx comes with Wine (The Windows compatibility layer). It has a nice way of launching a Windows program by a curve of progressing coloured circles.

Screenshot showing the launching of a Windows program.

 
The Windows programs that we installed as astronomers, were, Deep Sky Stacker, Autostakkert!, Registax 5.1, FastStone Viewer and Fitswork.
Of course, of most importance to us was the fact that AstroDMx Capture for Linux installs and runs perfectly.

Screenshot of AstroDMx Capture for Linux, launching in Windowsfx

 
We have found, so far, no problems with Windowsfx and running the software that we wish to run.
However, what’s in a name?

You might think that the Windowsfx distribution is pushing its luck with its choice of name. It could draw lawsuits from Microsoft, but I personally doubt this.
My reasons for thinking this are based on several things: 

First, the name seems to be an obfuscating melange of Windowsfx, Linuxfx and Winfx. The last two letters of the names ‘fx’ are an accepted abbreviation of ‘effects’ so the name really means Windows effects where ‘Windows’ doesn’t necessarily refer to the Windows OS, but more to the common use of the word ‘windows’ in computing.

Second, and related to this is historical. Back in 2001 a distribution of Linux was produced by Lindows Inc., that was named ‘Lindows’. In 2002 Lindows Inc. was sued by Microsoft who claimed that the name was an infringement of its Windows trademark. Microsoft’s claim was rejected on the grounds that the term ‘windows’ was a term used to describe windowing techniques developed by Xerox and Apple, long before Microsoft released its Windows Operating system. Microsoft sought a retrial, which may not have been the wisest thing to do because there was always the possibility that failure in court again might undermine their trademark. In 2004 the retrial was postponed, and Microsoft settled out of court. Microsoft agreed to pay an estimated $20 million, and  Lindows Inc. Transferred the Lindows trademark to Microsoft and renamed itself, Linspire Inc. It may be best if Microsoft doesn’t re-open this can of worms and possibly live to regret it.

Third, there have been other daring uses of Windows-like names, such a Winux, a system that never really got off the ground and was never a  threat to Microsoft.

Fourth, it is probably not worth Microsoft bothering with, as the whole multitude of Linux distributions only takes a relatively small proportion of the potential desktop market share.

Windowsfx has been implemented well and would, without doubt smooth the way for a person to move from using Windows to using Linux.

We are looking forward to testing this Linux distribution, Windowsfx, as a scientific, astronomical imaging platform.

AstroDMx Capture for Windows, macOS or Linux (Including Raspberry Pi) can be downloaded freely here:

Monday 13 July 2020

The SVBONY SV305 camera, AstroDMx Capture and the Raspberry Pi

Nicola has been working on implementing the ARM SDKs for the SVBONY SV305 and SV305 Pro cameras.

Although the Raspberry Pi 4B has a 64 bit ARM SOC, the default Rasbian Operating system for the Pi has been 32 bit. There is now available an advanced Beta 64 bit Rasbian operating system.

Nicola compiled AstroDMx Capture for the Raspberry Pi for 64 bit ARM architecture and tests done so far indicate that it works fine. However, this only for the SV305. There are issues with the SDK and the SV305 Pro. There are also issues with the 32 bit ARM SDK and a 32 bit Pi OS. The issues will be documented and reported to the SVBONY developers.

In the absence of clear skies, the SV305 camera was coupled with a dissecting microscope.

Click on an image to get a closer view.

The SV305 connected to a dissecting microscope with a tiny snail on the stage

The raspberry Pi station with dual screens and an SSD drive for storing results, the SV305 camera and a microscope, using AstroDMx Capture for the Raspberry Pi.
The snail shell can be seen on the left hand monitor, with capture controls on the right hand monitor

Screenshot, incorporating both of the screens, showing the main preview windows of AstroDMx Capture for the Raspberry Pi, and the camera controls on the right hand screen

The snapshot feature was used to capture high-quality, uncompressed Tiff images

Snapshot of the snail shell

Screenshot showing one of the snail's eyes

Snapshot of the snail's eye

The camera worked perfectly in this test and was also used to capture SER files as well as long exposures. When we get clear skies, we shall test short and long exposure astronomical images with the SV305 and the Raspberry Pi.

It will not be long before there is a release of a 64 bit version of AstroDMx Capture for the Raspberry Pi supporting the SV305 camera.
Meanwhile testing will continue to explore some apparent issues with the 32 bit version of the SDK.

Now that an SV305 Pro is in our possession, it is clear that the SDK has issues at both 64 bit and 32 bit versions, both for the Pi and X86. It is early days, and there has to be more work done to resolve the issues. However, it can be considered progress in the sense that the SV305 works with a 64 bit  Raspberry Pi OS.

AstroDMx Capture for Windows, macOS or Linux (Including Raspberry Pi) can be downloaded freely here:

Saturday 11 July 2020

AstroDMx Capture running on FreeBSD... because it is there.

FreeBSD is a UNIX-like Operating system that has been continually developed since 1993. It powers servers, desktops and embedded platforms.

It differs from Linux in a number of respects and Like most Linux distributions, is UNIX in all but registered name. It is POSIX compliant and has its roots in the Berkley System Distribution UNIX variant. Much of the FreeBSD codebase is incorporated into the Darwin operating system, the basis for MacOS. 

Linux is also POSIX compliant but does not contain any UNIX code. Linux was written from scratch to be UNIX-like and so it is not surprising that there are many similarities between FreeBSD and Linux.
FreeBSD is probably the most secure operating system in existence with Linux being virtually as secure.

Nicola has compiled AstroDMx Capture for FreeBSD. She has implemented the same DSLR USB tethered cameras as in the Linux, Windows and MacOS versions of AstroDMx Capture. She has also implemented the DMK 21AU04.AS and the DFK 21AU04.AS astronomy cameras.

A Celestron Omni XLT 150 f/5 Newtonian with a direct attachment for a DSLR camera and a motor focuser was mounted on a Celestron AVX mount. A USB-tethered Canon 4000D DSLR camera was attached to the scope.

AstroDMx Capture for FreeBSD was used to capture 45 x 45s exposures of M27 with matching darkframes. The software was running on FreeBSD with the XFCE desktop environment.

Screenshot of AstroDMx Capture gathering data on M27

The best 42 images were dark-frame corrected and stacked in Autostakkert! running in Wine. The final image was then post processed in the Gimp 2.10.

Screenshot of The FreeBSD desktop and an M27 image being displayed in an image viewer

Final image of M27

It was important for this experiment that the image capture and the image processing were all done on the FreeBSD computer.
The capture system is working properly as is software running in Wine.
AstroDMx Capture will likely never support the range of cameras that are supported by the versions for the other three operating systems because there are no SDKs available for the cameras on FreeBSD. Nevertheless, the ability to control supported DSLR cameras with USB tethering and the bonus of the DMk and DFK cameras, means that an eventual release of AstroDMx Capture for FreeBSD may be worthwhile.

In the meantime, Nicola is working on the Linux, MacOS and Windows versions before they are released.

AstroDMx Capture for Windows, macOS or Linux (Including Raspberry Pi) can be downloaded freely here: