create account

Basic astrophotography image processing with PixInsight - Part 1 by astrophoto.kevin

View this thread on: hive.blogpeakd.comecency.com
· @astrophoto.kevin · (edited)
$7.70
Basic astrophotography image processing with PixInsight - Part 1
## Introduction
This will be a series of how I'm processing my astrophotos using PixInsight. My goal is to bring the basics of image processing to everyone who has started new in PixInsight and is a little bit confuse about it. I will also describe the different type of frames that are used in astrophotography and what they are used for. 
If someone wants to work through this series with me, there is a free evaluation version of PixInsight. You have to register on their website and you will get a key to trying it for 45 days. But unfortunately, I can not guarantee that I will be finished in 45 days. :-)
You can register here for the evaluation key: [https://pixinsight.com/trial/index.html](https://pixinsight.com/trial/index.html)
You also find more information about PixInsight on their website. [http://pixinsight.com](http://pixinsight.com)

## Bias frames or offset frames
Bias frames are calibration frames. Calibration frames are used to reduce disturbances from the images that contain the photographed object and to improve the quality of it. Every CCD or CMOS sensor produces different types of noise. With the bias frames, we try to eliminate the noise that is produced by the electronics of the sensor and the camera. 
Bias frames are made with the lowest possible exposure time of your camera. For DSLR this will be something around 1/4000 or 1/8000 second. Especially for my QHYCCD247C, it is 50μs. They are taken with the lens cap on your telescope or lens so that no light can be detected from the sensor. The ISO or Gain setting must correspond your other images and frame types. For example, if you have photographed your target with ISO 1600 than you have to choose also ISO 1600. If your camera/sensor can be cooled like mine use also the same temperature as for your other frames.

[![Darks und Bias_0000_-20C_2018-05-06_002844_0008.jpg](https://cdn.steemitimages.com/DQmRztTm2KL3NUuFeb4wpqdfwhFJwiU5HSskqngkMqdFUgM/Darks%20und%20Bias_0000_-20C_2018-05-06_002844_0008.jpg)](https://cdn.steemitimages.com/DQmRztTm2KL3NUuFeb4wpqdfwhFJwiU5HSskqngkMqdFUgM/Darks%20und%20Bias_0000_-20C_2018-05-06_002844_0008.jpg)

This is a bias frame straight out of the camera. As you see, you will see nothing. Let's open the image in PixInsigth. To see the information in it we need to stretch it. We use the auto stretch feature of the ScreenTransferFunction (PROCESS -> IntensityTransformations -> ScreenTransferFunction). This is the little radioactive sign. The ScreenTransferFunction will not alter any data of the image. It only changes how the image is displayed on your screen.

[![Bias_autostrech.jpg](https://cdn.steemitimages.com/DQmSdaYCH2Y7Wor5DMcL39dH9wXAv6SJjc77gRP31r7etVp/Bias_autostrech.jpg)](https://cdn.steemitimages.com/DQmSdaYCH2Y7Wor5DMcL39dH9wXAv6SJjc77gRP31r7etVp/Bias_autostrech.jpg)

Now we have our first bias frame. But it contains not just the noise that comes from the electronics, it also contains random noise from other interference sources. This can be free electrons or even despite cooling, thermal noise. Because we only want the noise that the camera produces while reading the sensor and digitalizing the data we need to find a solution to get rid of the random noise.

## Master bias
To get rid of the random noise we need many images that will be stacked. By stacking, only the static information is preserved while the random ones are lost in the mass of images. This final stacked frame will be called the master bias. To get a good representable master bias we need as many single frames as possible. Due to the short exposure time and the fact that you do not need to make new ones every time, it will be no problem to get a bunch of bias frames to work with.

I have stacked my master bias out of 256 bias frames. Less will probably work but the result won't maybe be as good. So the more bias frames that better.
To stack the separate bias frames to one master bias we are using the ImageIntegration process (PROCESS -> ImageIntegration -> ImageIntegration).
At first, we need to add all of our bias frames by clicking "Add Files".

[![add_files.jpg](https://cdn.steemitimages.com/DQmZ1JZHhReXsHGgn88AA5X95quv8s2rHaAddSm9VisyEnx/add_files.jpg)](https://cdn.steemitimages.com/DQmZ1JZHhReXsHGgn88AA5X95quv8s2rHaAddSm9VisyEnx/add_files.jpg)

If you have added all your single frames go to the "Image Integration" tab. Here we need to make some settings. For a basic stack that will remove the random noise use the following settings.
- Combination: Average
- Normalization: No normalization
- Weights: Don't care (all weights = 1)
- Check "Generate integrated image"

[![image_integration_settings.jpg](https://cdn.steemitimages.com/DQmUBeLfnCRsGhNNvYDm9AkkTFG2aGBy6XY2aUqtsx6APfm/image_integration_settings.jpg)](https://cdn.steemitimages.com/DQmUBeLfnCRsGhNNvYDm9AkkTFG2aGBy6XY2aUqtsx6APfm/image_integration_settings.jpg)

If you have set up everything like in the screenshot, go to the "Pixel Rejection (1)" tab. Here we use the following settings.
- Rejection algorithm: Linear Fit Clipping
- Normalization: No normalization
- Check "Clip low pixels"
- Check "Clip high pixels"

As we are using so much bias frames we will choose "Linear Fit Clipping" as algorithm. As a small clue, you can use "Winsorized Sigma Clipping" <=20 images and "Linear Fit Clipping" if you have >20 images.

[![pixel_rejection.jpg](https://cdn.steemitimages.com/DQmQ5MaCWWmdWZT3BTocx8BSZLTRjR9qKaCUUvUSsBW9eEy/pixel_rejection.jpg)](https://cdn.steemitimages.com/DQmQ5MaCWWmdWZT3BTocx8BSZLTRjR9qKaCUUvUSsBW9eEy/pixel_rejection.jpg)

Have you everything set up? Then we go to the "Pixel Rejection (2)" tab. Here we will leave the default settings.

[![pixel_rejection_2.jpg](https://cdn.steemitimages.com/DQmZA1kwPQ8cbjbGzbBaBLm1qm6UtBVi7FXpTZhTschJbdu/pixel_rejection_2.jpg)](https://cdn.steemitimages.com/DQmZA1kwPQ8cbjbGzbBaBLm1qm6UtBVi7FXpTZhTschJbdu/pixel_rejection_2.jpg)

Once everything is set up and done, we click the small circle (Apply Global) at the bottom of the ImageIntegration window. This will start the stacking process. The process console will open and show you the actual status of the process. Stacking can take a while it depends on the hardware of your computer. So, drink a coffee or do something else while your master bias gets stacked. On my old Notebook, this took around 2 hours, my new one is ready in 20 minutes with it.

[![process_console.png](https://cdn.steemitimages.com/DQmXetfNZinHjzubFi3UZe48UyKCfjTdzyk3qKocTTq3FHo/process_console.png)](https://cdn.steemitimages.com/DQmXetfNZinHjzubFi3UZe48UyKCfjTdzyk3qKocTTq3FHo/process_console.png)

After the process is finished a new image is opened. First safe this as "masterbias". Make sure you use the PixInsight file format ".xisf".
After an auto stretch with the ScreenTransferFunktion you should see the data in the master bias. 

[![masterbias_autostretch.jpg](https://cdn.steemitimages.com/DQmTcC8V8AGwgRhTewT8Xt6e5Ws4Lt2JbtvViNph2y9RCRk/masterbias_autostretch.jpg)](https://cdn.steemitimages.com/DQmTcC8V8AGwgRhTewT8Xt6e5Ws4Lt2JbtvViNph2y9RCRk/masterbias_autostretch.jpg)

Let's compare a single bias frame with the stacked master bias.

[![compare_bias_masterbias.jpg](https://cdn.steemitimages.com/DQmWhHgwbY5CXj8MwhpA6CtHnVLioS5thuTVeJ1qpSWxYeC/compare_bias_masterbias.jpg)](https://cdn.steemitimages.com/DQmWhHgwbY5CXj8MwhpA6CtHnVLioS5thuTVeJ1qpSWxYeC/compare_bias_masterbias.jpg)

On the left is the single bias frame and on the right is the master bias. You see that the master bias has a significantly lower noise. The master bias has lost almost the most of the random noise. The noise that left is the noise that appears due to the sensor readout and the electronics.

## Conclusion
We now have the first type of calibration frame. With the master bias, we can subtract the disturbance caused by our camera and its electronics from our images. This will give us an improvement of quality in the final image. And we want to get the best possible quality in the final image. :-)


---

**Thank you very much for visiting and reading!**
I hope that this has been a useful article for you. If you have any questions or suggestions please don't be afraid to let me know of anything you thought about this post!


Yours, 
[@astrophoto.kevin](https://steemit.com/@astrophoto.kevin)
&nbsp;

---

&nbsp;
All images, otherwise clearly indicated, in this post are my own work.
You can use it for free if you credit them to [@astrophoto.kevin](https://steemit.com/@astrophoto.kevin)


&nbsp;
&nbsp;

![](https://i.imgur.com/dmbwP4E.png)
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 71 others
properties (23)
authorastrophoto.kevin
permlinkbasic-astrophotography-image-processing-with-pixinsight-part-1
categorysteemstem
json_metadata{"tags":["steemstem","science","astronomy","photography","photofeed"],"image":["https://cdn.steemitimages.com/DQmRztTm2KL3NUuFeb4wpqdfwhFJwiU5HSskqngkMqdFUgM/Darks%20und%20Bias_0000_-20C_2018-05-06_002844_0008.jpg","https://cdn.steemitimages.com/DQmSdaYCH2Y7Wor5DMcL39dH9wXAv6SJjc77gRP31r7etVp/Bias_autostrech.jpg","https://cdn.steemitimages.com/DQmZ1JZHhReXsHGgn88AA5X95quv8s2rHaAddSm9VisyEnx/add_files.jpg","https://cdn.steemitimages.com/DQmUBeLfnCRsGhNNvYDm9AkkTFG2aGBy6XY2aUqtsx6APfm/image_integration_settings.jpg","https://cdn.steemitimages.com/DQmQ5MaCWWmdWZT3BTocx8BSZLTRjR9qKaCUUvUSsBW9eEy/pixel_rejection.jpg","https://cdn.steemitimages.com/DQmZA1kwPQ8cbjbGzbBaBLm1qm6UtBVi7FXpTZhTschJbdu/pixel_rejection_2.jpg","https://cdn.steemitimages.com/DQmXetfNZinHjzubFi3UZe48UyKCfjTdzyk3qKocTTq3FHo/process_console.png","https://cdn.steemitimages.com/DQmTcC8V8AGwgRhTewT8Xt6e5Ws4Lt2JbtvViNph2y9RCRk/masterbias_autostretch.jpg","https://cdn.steemitimages.com/DQmWhHgwbY5CXj8MwhpA6CtHnVLioS5thuTVeJ1qpSWxYeC/compare_bias_masterbias.jpg","https://i.imgur.com/dmbwP4E.png"],"links":["https://pixinsight.com/trial/index.html","http://pixinsight.com","https://cdn.steemitimages.com/DQmRztTm2KL3NUuFeb4wpqdfwhFJwiU5HSskqngkMqdFUgM/Darks%20und%20Bias_0000_-20C_2018-05-06_002844_0008.jpg","https://cdn.steemitimages.com/DQmSdaYCH2Y7Wor5DMcL39dH9wXAv6SJjc77gRP31r7etVp/Bias_autostrech.jpg","https://cdn.steemitimages.com/DQmZ1JZHhReXsHGgn88AA5X95quv8s2rHaAddSm9VisyEnx/add_files.jpg","https://cdn.steemitimages.com/DQmUBeLfnCRsGhNNvYDm9AkkTFG2aGBy6XY2aUqtsx6APfm/image_integration_settings.jpg","https://cdn.steemitimages.com/DQmQ5MaCWWmdWZT3BTocx8BSZLTRjR9qKaCUUvUSsBW9eEy/pixel_rejection.jpg","https://cdn.steemitimages.com/DQmZA1kwPQ8cbjbGzbBaBLm1qm6UtBVi7FXpTZhTschJbdu/pixel_rejection_2.jpg","https://cdn.steemitimages.com/DQmXetfNZinHjzubFi3UZe48UyKCfjTdzyk3qKocTTq3FHo/process_console.png","https://cdn.steemitimages.com/DQmTcC8V8AGwgRhTewT8Xt6e5Ws4Lt2JbtvViNph2y9RCRk/masterbias_autostretch.jpg","https://cdn.steemitimages.com/DQmWhHgwbY5CXj8MwhpA6CtHnVLioS5thuTVeJ1qpSWxYeC/compare_bias_masterbias.jpg","https://steemit.com/@astrophoto.kevin"],"app":"steemit/0.1","format":"markdown"}
created2018-05-31 12:48:18
last_update2018-05-31 15:54:15
depth0
children5
last_payout2018-06-07 12:48:18
cashout_time1969-12-31 23:59:59
total_payout_value6.033 HBD
curator_payout_value1.668 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length8,564
author_reputation86,277,108,443,159
root_title"Basic astrophotography image processing with PixInsight - Part 1"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id58,594,019
net_rshares2,024,115,605,322
author_curate_reward""
vote details (135)
@chris.geese ·
This is extremely impressive to say the least. I love to see such an enthusiast go through the grueling process to teach others. This post obviously took time and passion to put together and I thank you for that.
👍  
properties (23)
authorchris.geese
permlinkre-astrophotokevin-basic-astrophotography-image-processing-with-pixinsight-part-1-20180531t130810837z
categorysteemstem
json_metadata{"tags":["steemstem"],"app":"steemit/0.1"}
created2018-05-31 13:08:12
last_update2018-05-31 13:08:12
depth1
children1
last_payout2018-06-07 13:08:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length212
author_reputation36,677,280,275
root_title"Basic astrophotography image processing with PixInsight - Part 1"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id58,596,360
net_rshares2,323,401,931
author_curate_reward""
vote details (1)
@astrophoto.kevin ·
Thank you very much for your warm words @chris.geese :-)
I'm really happy that you liked it. It took time, that's right. But if only one person benefits it, it has been worth it. :-)
properties (22)
authorastrophoto.kevin
permlinkre-chrisgeese-re-astrophotokevin-basic-astrophotography-image-processing-with-pixinsight-part-1-20180531t154229020z
categorysteemstem
json_metadata{"tags":["steemstem"],"users":["chris.geese"],"app":"steemit/0.1"}
created2018-05-31 15:42:30
last_update2018-05-31 15:42:30
depth2
children0
last_payout2018-06-07 15:42:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length182
author_reputation86,277,108,443,159
root_title"Basic astrophotography image processing with PixInsight - Part 1"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id58,616,958
net_rshares0
@mathowl · (edited)
Nice post. 

Could you maybe add a link somewhere which leads to the PixInsight website? It is always nice to generate more traffic for other people :)
![DQmWPdXSwgcwQV5uuTRybUZH3vUZ6pTw4ESZmDT7Ey7DXbW_1680x8400.png](https://cdn.steemitimages.com/DQmecfRxRo8n2qbmdJcQi5L8YqiwnX7bfQJAgqwNSwmbK23/DQmWPdXSwgcwQV5uuTRybUZH3vUZ6pTw4ESZmDT7Ey7DXbW_1680x8400.png)
👍  
properties (23)
authormathowl
permlinkre-astrophotokevin-basic-astrophotography-image-processing-with-pixinsight-part-1-20180531t143544104z
categorysteemstem
json_metadata{"tags":["steemstem"],"image":["https://cdn.steemitimages.com/DQmecfRxRo8n2qbmdJcQi5L8YqiwnX7bfQJAgqwNSwmbK23/DQmWPdXSwgcwQV5uuTRybUZH3vUZ6pTw4ESZmDT7Ey7DXbW_1680x8400.png"],"app":"steemit/0.1"}
created2018-05-31 14:35:45
last_update2018-05-31 14:36:18
depth1
children1
last_payout2018-06-07 14:35:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length357
author_reputation44,993,635,814,620
root_title"Basic astrophotography image processing with PixInsight - Part 1"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id58,607,795
net_rshares2,274,488,206
author_curate_reward""
vote details (1)
@astrophoto.kevin · (edited)
Thank you very much for your feedback @mathowl
You won't believe me, but in the first version, I had the link to their website for registering the trial version. :-)
properties (22)
authorastrophoto.kevin
permlinkre-mathowl-re-astrophotokevin-basic-astrophotography-image-processing-with-pixinsight-part-1-20180531t155705070z
categorysteemstem
json_metadata{"tags":["steemstem"],"users":["mathowl"],"app":"steemit/0.1"}
created2018-05-31 15:57:06
last_update2018-05-31 15:57:48
depth2
children0
last_payout2018-06-07 15:57:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length165
author_reputation86,277,108,443,159
root_title"Basic astrophotography image processing with PixInsight - Part 1"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id58,619,078
net_rshares0
@steemitboard ·
Congratulations @astrophoto.kevin! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

[![](https://steemitimages.com/70x80/http://steemitboard.com/notifications/votes.png)](http://steemitboard.com/@astrophoto.kevin) Award for the number of upvotes

<sub>_Click on the badge to view your Board of Honor._</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>



> Do you like [SteemitBoard's project](https://steemit.com/@steemitboard)? Then **[Vote for its witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1)** and **get one more award**!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-astrophotokevin-20180603t180226000z
categorysteemstem
json_metadata{"image":["https://steemitboard.com/img/notify.png"]}
created2018-06-03 18:02:27
last_update2018-06-03 18:02:27
depth1
children0
last_payout2018-06-10 18:02:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length677
author_reputation38,975,615,169,260
root_title"Basic astrophotography image processing with PixInsight - Part 1"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id59,080,060
net_rshares0