Astrofriend's homepage

www.astrofriend.eu
Share: Twitter Reddit Facebook Gmail Gmail Email
Search Astrofriend's homepage:

Valid CSS!

All pages shall now have been validated

Info Cookies (Kakor) / GDPR

Navigation

Advertisement /
Annons:

Twitter @AstrofriendLars

Follow Astrofriend

Project News

Advertisement / Annons:

Tutorial:
An introduction to AstroImageJ


Content:

  1. Introduction
  2. Download and Installation
  3. My own downloadable macrosNew version 2020 !
  4. How to use macro 'Make master files from raw files'
  5. How to use macro 'Batch read raw files and calibrate'
  6. How to align rggb files
  7. How to stack rggb object files
  8. How to use included extra macros (During Work !)

Note:
I take no responsibility or liability for what are written here, you use the information at your own risk!


7, Stack rggb files:

Now we have come to the last part where we stack the sub images together.

AstroImageJ, AIJ: files to stack

Here are the test files I will use in this example.

Note:
There is twice as many green sub images compare to red and blue. After we align them we reduced the rggb images to rgb images. Both groups of greens sub images can now be stacked as a single group.


AstroImageJ, AIJ: open files to stack

For each color we import the sub images as an image sequence, a virtual stack.


AstroImageJ, AIJ: open files to stack

In my case they are stored under the map "align". Double click on the first file of your sub images.


AstroImageJ, AIJ: import files option

Here is all the twelve sub images, but we only want one of the three colors. If we start with the red color channel we can filter out the red sub images easy. Just type "Red" in the field "File name contain" as you can see above and then only the sub images that contains "Red" in filename will load to the virtual stack.


AstroImageJ, AIJ: files lodaed in a stack

The three red sub images loaded in the virtual stack.


AstroImageJ, AIJ: stack with Z-Project

Now we want to stack these three sub images. We do it with something that's called Z-projection (think in 3 dimension).


AstroImageJ, AIJ: stack parameter Median

Normally you add the sub images as Median. It will suppress outliers as satellites tracks, and also hot pixel, static pattern, etc if you have taken your images with dithering technique. You should at least have ten sub images of each color to get this to work properly.


AstroImageJ, AIJ: save stacked image

Save your MED stacked image "align" with a unique name that you can recognize as the red stacked image. Make also a new directory to the MED stacked images.

Note:
I normally use Fitswork to combine these three color images. Fitswork works much better if it works with the Fits file format from AIJ. It's something with the level scaling, maybe something in the TIFF header from AIJ that Fitswork misinterpret.


AstroImageJ, AIJ: save stacked image

Repeat import sequence for the green channels. It's a little bit different, you have two sets of green channels. But you have earlier aligned them and then you can stack them together. The stack will contain twice as many images for the green channel, and then we get a higher S/N ratio for this channel. The filter "Green" will load both Green1 and Green2. When finished, save it where you saved your red image.


AstroImageJ, AIJ: saved stacked images

After had repeated these for all three color channels it should look something like this.

What's left is to rgb combine them. I normally do this in the software Fitswork. But it's possible to do it in AIJ also or any other software that can do this. The images are stored as 32 bit floating point TIFF files. But you can store them in other formats if you prefer that. With less than 32 bit per pixel you will lose information. After you had combined them you have to crop your color image to get rid of the now unusable over scan border.

As you notice the end result is only one quarter of the pixel count compare to the DSLR cameras normally pixel count. A 20Mpix camera will only leave 5Mpix files of each color. But this is the true resolution. Later I will do test with Drizzling function to get true higher resolution from this images, not cheated interpolation files which we normally have to work with after debayering. Yes, as you maybe noticed, we didn't have to do a debayering to get this result!

Go Back to content

Go Back

Advertisement / Annons: