Astronomy - Planetary imaging with Iris


 Back to Tutorials Page

This tutorial will help you to process planetary videos with the free astronomy software Iris. You will be able to process videos made by one or several webcams plugged into your telescope, with the LRGB technique (B&W camera for details + color webcam for the colors) or even better with the right RGB (B&W camera for astronomy on which we place the 3 filters, one for each primary color).


The use of an electronically modified webcam or a real astro camera (Lumenera, DMK,...) with a B&W sensor dedicated to astronomy provides significant gains in terms of image resolution.

With the LRGB technique, the image obtained using the B&W webcam will then be combined with a color image, the latter having been achieved with a simple color webcam (or B&W webcam with a set of R G B filters designed for astronomy).

REMARKS

If you shoot the planets with a B&W camera fitted with RGB filters, you will need to repeat the image processing for all 3 Black & White videos (representing the 3 primary colors) separately following the technique described below, before combining the 3 resulting images to get a single beautiful image, in color and well defined. This is not the case with color webcams that offer a poor image resolution.

If you have a single video made with a color webcam, go here (soon available) to view another tutorial!

If you use the LRGB technique (1 B&W video and 1 color video) you can follow this tutorial.



This page is useful to all amateur astronomers and more generally to all kinds of people interested in astronomy! If you have a telescope equipped with an equatorial or an alt-azimuth mount (such as Meade LX200 telescope, Celestron Nexstar,...), and you aren't having problems with traces of dust affecting your astronomical images, you'll get what you're looking for!


The final image in LRGB


Telescope Meade LX200 10"



Luminance (L)   Color (RGB)   LRGB



In order to simplify the tutorial, I begin with the most common case consisting of the amateur astronomer who uses a telescope mounted on an equatorial mount. Telescope users equipped with Alt-Az mounts (such as Meade LX90, LX200, Celestron Nexstar,...) and imagers having problems with dust contamination will be directed to specific pages at the right time, and again redirected back to this main page for further processing.



Last version of Iris used : 5.57

Last modification : October 11, 2009



 Features of the tutorial :
  • Processing the video of a planet (Saturn, Jupiter, Mars,...) or the Moon acquired with a B&W webcam, or any other B&W camera used in astronomy.
  • Processing a set of videos produced by a B&W camera plugged into your telescope and a set of R G B filters.
  • Remove dust specs on videos which spoil your images.
  • Retouch images already processed with Iris by using Photoshop in order to make cosmetic corrections.
  • Improving the final image (levels, contrast,...) of the planet with Photoshop.
 Soon available :
  • Combining the B&W image with a color image (color webcam) to create a more highly detailed planetary image in LRGB.
  • Compensate for field rotation on alt-azimuth telescopes.
Search in the tutorial...
Read the cybernaut's comments









 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 




Things that must be done first in order to get a high resolution image in RGB or LRGB...

1)
You need a webcam or an astronomy camera with a B&W sensor, which will be used to obtain the luminance image (L) of the planet. This image will contain all relevant information (details) and will be associated with a color image (RGB) in order to obtain a beautiful detailed image in color (LRGB) of the planet.

2) You also need a webcam with a color sensor, for example, a Philips ToUcamPro 3 (or earlier, widely used in amateur astronomy) whose correct name is SPC900NC/00. To achieve the best images, opt for the purchase of 3 colour filters (R, G and B) that will fit on your B&W camera. In this case, no need for a webcam with a color sensor!


And if you want to go further to increase the quality of your images...

1) You can switch your basic webcam to Raw mode (not for the B&W astro cameras, such as the DMK and Lumenera) to remove the image compression. The latter is due to the action of the internal software of your webcam. Without compression, images of planets are much better! To switch your webcam to Raw mode, go to the site of the french amateur astronomer Etienne Bonduelle, which describes how to change the internal software of your webcam.

2) Add an infrared filter (IR-UV cut 31.75mm) dedicated to astronomy on the webcam's adapter. Indeed, infrared rays emitted by planets degrade the images, that’s why it is convenient to eliminate them by the addition of this filter. I use the Baader Ir-cut filter, well known in the small world of amateur astronomy, but Astronomik filters are of better quality (they are unfortunately much more expensive).


And now, let's go!


First, download the Iris software from the website of Christian Buil. From now on, all stages of pre-processing and processing of your astro images will be done with Iris. The optional finishing touches in Photoshop are explained at the end of the tutorial.



1) Creating a working directory


First, you have to create a new working directory on your hard drive. For example, you can create it on drive "C" and call it « irismovie ».

Make sure you have several GB of free disk space on your hard drive before using Iris, as it will produce many files on your laptop. If you do not have such an area, you must rename the new sequences of images with the same nam, over-writing the previous image. Note, this prevents you from returning to a previous step if you are not satisfied with the result!

 

2) Setting the parameters for Iris


Go to the submenu "Settings..." on the menu "File".



A window appears...

If you have created the folder « irismovie », the path of the working directory is « c:\irismovie\ ».

When processing a color video, it is more convenient to choose the image format PIC. For a video acquired with a B&W camera, you have the choice between PIC format and FIT format. The other fields are not relevant in this case. Click OK...

 

3) Conversion of the avi file



Open the "AVI conversion" dialog from the File menu.



Indicate the location of the .avi file on your hard drive. For example: "C:\saturn.avi". If your video is B&W, check the option « Black&White » in the type of images exported. At the "Panchro band output file name" option, give the name "bw" to the video which will be produced, if you have a single black and white image of course (in the LRGB technique, the B&W image provides details). On the other hand, if you use the RGB technique (B&W camera + filters: 3 B&W videos generated, each representing a primary color), start by processing one of the 3 videos, such as the one created with the red filter, and give "red" as the generic name of the B&W file. Click "Convert".

Check the "Remove duplicated images" box so that Iris ignores identical images created by the computer when it can't absorb the high frame rate sent by the camera.



A confirmation window appears, click on "Yes"



After converting the images, Iris shows the number of final images in the output window. In this example there are 1199 images. When the B&W sequence is converted (name "bw1 -> bw1199"), write down on a paper the number of final images that were converted by Iris.



In Iris, most operations are done through a commands editor that contains the various commands used during the many stages of processing. Start by displaying the first image using the command window (this is the 11th Iris button from the left, which is like two small paragraphs).

You get this: This window is very important! You will use it during the entire processing!!!



>load bw1 (for convenience, all commands of the tutorial are black)


NB
 :

 

Next, determine the level "i" at the center of the Saturn's disk by launching the "stat" command and by clicking on the center of the globe:

>stat

In my case, I get i=231. Note this value returned by Iris on a piece of paper, it will be useful later!

The command window should look like this:



4) Cleaning dust AND/OR compensation of field rotation (Altaz software)


(If you don't require this step, go immediately to step 5!)

If you don't see spots in your images, continue the procedure (either by dealing with the field's rotation, or by normalizing the background of the sky (step 5) if you have an equatorial mount).

 

If on the other hand your images are affected by the presence of small spots, click here:

Dealing with dust

 

Moreover, if your telescope is in alt-azimuthal mode, you can compensate for the rotation of field that appears in the images (to increase the resolution of your final image).

To do this, click here:

Compensation of the rotation of field (soon available)




5) Make the sky's background uniform (normalization)

Skip this step if you process a video of the Moon.

Normalize the background of the sky planetary images (if it hasn't already be done in the chapter dealing with dust (flats)). If you are a courageous person who has applied the "virtual" flat technique in Iris, you can skip this step because you've already done it! The principle is to choose a reference area of the image by selecting a small square in the sky background using the mouse, setting up normalization in order for it to become well black. The idea is to avoid the alteration of the useful part of the image, IE. the planet.

Three methods are available. Look through all of them and choose the one you prefer!



Method 1

Go to the sub-menu "Offset normalization of a sequence" from the menu "Processing".

Enter the input generic name of the start sequence of images:

•  « bw» if you decided not to remove dust and not to compensate rotation of field.

•  « bwflat » if you have just made a real flat and have decided not to make a virtual flat with Iris.

•  «rotation » if you compensated for the rotation of field.


The normalization value is set to 0. The output generic name is "bwflat_offset_end" and the number of images is 1199 (value to adapt to your video). Check the box «selected area» (to do this, you had to previously draw a small square in the background of the sky).

 

Method 2

Start by drawing a small square in the background of the sky.

Then use the command "noffset3" from the command window of Iris. It is equivalent to the first method.

Syntax: noffset3 [input sequence] [output sequence] [normalization value set to 0] [number of images in the sequence]

Example:

>noffset3 rotation bwflat_offset_end 0 1199

 

From the outset sequence:

•  « bw» if you decided not to remove dust and not compensate rotation of field.

•  « bwflat » if you have just made a real flat and you have decided not to make a virtual flat with Iris.

•  «rotation » if you just compensate for the rotation of field.

 

Method 3

You can make a median offset to normalize the background of the sky. Once it's done, go to the submenu "Remove offset" from the menu "Preprocessing". Indicate according to your video:


Input generic name:

•  « bw» if you decided not to remove dust and not to compensate rotation of field.

•  « bwflat » if you have just made a real flat and have decided not to make a virtual flat with Iris.

•  «rotation » if you compensated for the rotation of field.

 

Offset frame: offset_median

Output generic name: bwflat_offset_end

Number: 1199



Example: the command line is:

>soust2 rotation offset_median bwflat_offset_end 0 1199

 

In these 3 cases, we get the sequence "bwflat_offset_end" with a normalized sky.


Then load the first image of the sequence:

>load bwflat_offset_end1

What should we do if the first image is of poor quality?

 

Are you for doing manual or automatic processing?
 

You have two options: you can process your sequences of images manually or automatically. Here are some advantages and disadvantages of these 2 methods:

 

In manual...
In automatic...
Advantages Disadvantages
  • Allows you to undo each step of processing if necessary (for example, when Iris doesn't provide good results with a method of processing) because the input and output generic names of the sequence files are different.
  • Allows you to customize and optimize the procedure for processing the images by trying new useful features with Iris.
  • Excellent for beginners who are learning about Iris. It allows you to learn Iris in depth before writing real scripts which process your images automatically!



  • Takes a lot longer to process than in automatic setup
  • Request more space on the hard disk

 



Advantages Disadvantages
  • Speed and ease of processing
  • Requires less space on the hard disk compared to the manual method.

 

 

  • If Iris is wrong at any stage of automatic data processing (for example, in the registration of images) you must start all over again: a waste of time.


 

 



 You can now continue the tutorial with one of these two methods of image processing. If you opt for the manual method, continue with the explanations given on this page.

 If it's the automatic procedure you want to follow, READ THIS.

 

You now have to sort the images to keep only the best of them!



6) Selection of the best images

  Two alternatives are available. If you have the time and want to maximize your video, choose the manual selection of images. Otherwise use the automatic method.


A) The manual method


First, let me make a suggestion. The manual method is the most efficient, so that you can sort the images and obtain very good results compared to the automatic procedure... but it's also the most daunting! In order to avoid seeing the planet move on the sensor when browsing through the sequence, it's convenient to realign all images in relation to each other. This is the stage of registration. Then the planet will stay in the same place when we select the best images. It will be easier to evaluate the quality of each image compared to the others. If you don't do the registration now, you will have to do it later anyway.

It is possible that you have already done a registration if you've eliminated rotation of the field...thus it isn't necessary to do a new registration!

To do the image registration, click here: Registration


Then open the dialog box "Select images" on the "View" menu.

Set the generic name of the input video "bwflat_offset_end". If you are just doing the registration, your sequence to sort out is "sequence_registered"!

Then choose the generic name of the output sequence. For example: "saturn_hand".



Then click on the >> button to load the first image of the sequence. If you want to save it, click on "Save". Otherwise, check the next image by clicking again on >>. To return to the previous image at any time, click on <<.


Have patience! It really pays off... If at any time you feel like a zombie, relax, take a break. Gently rub your eyes, it will go better!


- After the first pass, we can further refine the selection, taking the sequence previously produced as the input sequence (don't forget to use another name for the output sequence).

- After the 3rd-pass (yes, I'm crazy! ), I now have 211 images out of the original 1199 from the first video, stored in the sequence «saturn_hand» (I had to rename it with another name as mentioned previously, but it's skipped to make the rest of the tutorial easier). So I kept a little less than 20% of total input images, which is not much... you have to find a happy medium. Generally, we like to keep 30% of the total.

After doing the manual selection, you can be proud of all your effort! To check your results, load multiple images of the sequence, by varying the index:


> load saturn_hand1

Remember that you can always use the "Animate" window from the "View" menu.

 


B) The automatic method


This method uses commands "bestof" and "select".



Tips for telescopes in ALT/AZ setup
:

On his website, Christian Buil says that it's recommended to do the automatic selection before the registration.

So pay ATTENTION if you have compensated for rotation of the field by selecting the center of rotation in another spot as the center of field (because of a planet at the corner of the sensor in the video), because they have already been registered together! If this is the case, the sequence "bwflat_offset_end" has already been registered!

You should then undo the last sequence produced before registration (pregister, cregister,...). In other words, the input sequence from the beginning of the tutorial: "bw". The "bestof" command will apply to "bw" (to find the best images in the video), while the "select" applies to "bwflat_offset_end" (to reorder images according to their quality).


















When the image of the planet is low in contrast, it is possible to improve the effectiveness of "bestof" by first unsharp masking the sequence. This increases the contrast of the images. Go to "Unsharp masking of a sequence..." from the menu "Processing". The command "bestof" will be applied to this new video, and it's the input sequence (without unsharp masking) that will be sorted with "select", depending on the result of "bestof".

If the planet is small, you can use the mouse to define a rectangle around it to follow the movement of the planet in the video before launching "bestof". Iris performs its calculations inside this rectangle only, which reduces the duration of the operation and sometimes gives better results.

In simple terms :

Run:

> bestof bwflat_offset_end 211 (reminder for those who have compensated for the rotation of field: use the sequence "bw" from the very beginning!)

With 211 being the number of images you want to keep (you can change it, I used it because it corresponds to the number of images selected manually).

« bwflat_offset_end » is the name of the sequence you have acquired in step 5 (sky normalization)


Then sort the 479 images (example, different number in your video) selected by "bestof" in descending order of quality:

Syntax: select [input sequence][output sequence]

> select bwflat_offset_end    saturn_computer



7) Registration

If you haven't eliminated the rotation of field or completed the manual selection of images, you must now register them, adding them together so that the planet doesn't move during the entire sequence.

To register the images, click here : Registration

Then add the images! This is a very fast step but so exciting! You'll finally see whether your efforts have been rewarded!



8) Adding images together

Raw images of the video are often noisy, and useful information (details of the planet, ie the useful portion of the image) can be difficult to see. To improve the signal-to-noise ratio (S/N) it is necessary to add a large number of images together. Yes, BUT you realize that they are not all of the same quality, and you have a selection. It is now time to remove the undesireable images. To do this, load several successive images of the sequence by varying the index.

> load saturn_computer1 


Info : You've already sorted the images by the automatic or manual method. The name of your video is either "saturn_hand" or "saturn_computer".



Add the images together with "add_norm" [name of the input sequence][number of images to add]

> add_norm saturn_computer   479

Suspense... the resulting image appears on the screen! Oh no, it's really ugly! There is no point to continue on your computer , it’s useless!



If the image that appears after the addition is much too light, you have to adjust the threshold with this magic command:

> visu 32767 0

The "visu" command restores the intensity of pixels of the image between extreme values accepted by Iris, namely the thresholds 0 and 32767.
It's better, right?


Then, save the result:

> save saturn

You can also use the window setting thresholds display to balance the image.



The preprocessing ends here. Now we have to deal with processing of the image by wavelets! You will finally be able to have fun!!!

Info : Several types of processing can be used. One example is the unsharp mask or vancittert (effective with the Moon). I will only describe the processing by wavelets, which is the most powerful and most used in planetary imaging. Moreover, it is very easy to use unlike Vancittert which runs by the command box.

 

9) Processing with wavelets

TIP: As far as the Moon is concerned, the Vancittert processing often generates better results.


The main goal of wavelets is to break the image in several layers with different levels of detail and to apply an adapted processing on each layer. The "Finest" resolution level is the most popular because it contains the finer details of the image. Nevertheless, its handling leads to a significant increase in the level of noise. That's why it should be used on images taken with Black&White sensors. They are less noisy than their counterparts taken in color because they have a better signal to noise ratio. The "Fine" and "Medium" levels have details with lower resolution. These are the only 3 levels used in planetary imaging.

To process your image with the wavelets, go to the menu "Processing" > "Wavelet...".





















Select the "Auto verif." box and play with the sliders "Medium" and "Fine".

Since your web cam is in B&W, you can take advantage of this opportunity to test the "Finest" adjustment in addition to the "Fine", setting the "Medium" aside. The other levels are left to 1, it is not necessary to change the "Remain" and "Edge" settings.

Don't over-do the intensity of wavelet processing. The Cassini division on Saturn should remain fine and thin, as much as possible. It should not appear too thick because of excessive processing. Wavelets are used to bring out details that are already present in the image, nothing must be invented! Also, if the strength of processing is too high, artificial structures appear: they are artifacts.



The finest level enhances details but it increases the level of noise. The medium level has to be well balanced to avoid artifacts.



















A technique which seems to be effective is to do a first pass with wavelets, then click "OK" and again apply a more moderate pass.



When you are satisfied with the processing, click "OK".


Info :

If your image is too light, Iris displays the message "Overflow" in the wavelets's window. The solution is to reduce the "Remain" until this message disappears. You can also click on "Cancel" and then use the command "mult" followed by a ratio below 1.

> mult 0.8

In my case, the message "Overflow" is generated by the presence of saturated rings, while the globe is balanced. Saturn was photographed on the day before opposition, when the planet is aligned with the Sun and Earth, at the moment Saturn is closest to us. Its image is affected by the Heiligenschein effect. When Saturn is close to opposition, the brightness of the rings is much more pronounced than usual. Visually, Saturn's globe seems to be more dull than at other times, and that's what appears on my image as pixels saturated by light.

1st version 2nd version (no no, this is not the same!)
















At this stage, either you're delirious because you've got a good image in front of your eyes, or you're disappointed with the result . If you're in the first situation, then give yourself a pat on the back! Otherwise, I encourage you to persevere! Getting a good planetary image isn't easy: it takes a lot of rigor, motivation and you also have to be lucky...because you can't control the weather!


Remember to save the final image...

> save saturn_the_best

You can also save your image via the menu "File" -> "Save". Choose the bmp format (for example) to avoid degrading the image quality, and also make a copy in jpg format to publish on the Internet.


10) Finishing (optional)


If you see defects in your image (dust, etc.) you can retouch it in Photoshop, but only with the aim of doing something cosmetic. The link also describes how to adjust levels, contrast, brightness and image size.

Finishing with Photoshop

 

You have now reached the end of processing the B&W video! Congratulations! !



You still need to process the video in color, to create a very beautiful image! To process color videos, click on this link:


For those who prefer the LRGB technique (soon available)

 

If you use a single camera equipped with a filter wheel for the planetary imaging, go here:


For those who prefer the RGB technique

 

une roue à filtres

 


It took a lot of hard work to create this tutorial and I hope the result lives up to your expectations. However, I'm convinced it can still be improved with your feedback. Don't hesitate to post a comment in order to suggest another way to proceed, or if an eror was found, or simply if you like this tutorial. Thank you!




Bibliography

Websites Christian Buil http://www.astrosurf.com/buil/us/iris/iris.htm
Philippe Cambre http://www.astrosurf.com/halfie/ (in French)
Joel Bavais http://olympus.umh.ac.be/ciel.htm (in French)
Jacques-André Regnier http://www.regnier-schmit.net/astronomie/faq/ (in French)
Books Thierry Legault Astrophotographie, Eyrolles Ed., 2006

Patrick Lecureuil Photographier le ciel en numérique, Vuibert Ed. , 2006
Magazines Astronomie Magazine Article about the levels & Photoshop - number 98, February 2008


Thanks

Jean-Pierre Richaume Thank him very much for his careful reading of the first version of the tutorial and his many useful tips :-) http://perso.orange.fr/sirius.jpr/astro/pages/0.html (in French)
Marc Delcroix A big thank you for his help on the rotation of field :-) http://astrosurf.com/delcroix/ (in French)
Yann Duchemin Thank him for his software Altaz :-) http://yann.duchemin.free.fr/ (in French)
Kevin Bozard Kevin edited numerous pages of this tutorial previously written in French to remove the mistakes. http://www.kevinbozard.com/
Tom Feuerstake Tom edited numerous pages of this tutorial previously written in French to remove the mistakes. Tom's website
Jean-Yves Beninger He translated in English the page of the scripts for Iris. They enable you to automatically process your videos of the planets. http://www.lesbeninger.com/jy.html

Top of the page

© 2024 Leboutte Sebastien - http://www.skyimaging.com -