{"id":6440,"date":"2021-10-30T15:08:29","date_gmt":"2021-10-30T15:08:29","guid":{"rendered":"https:\/\/www.star-gazing.co.uk\/WebPage\/?page_id=6440"},"modified":"2021-10-30T15:21:14","modified_gmt":"2021-10-30T15:21:14","slug":"imaging-dark-frames-flat-fields","status":"publish","type":"page","link":"https:\/\/www.star-gazing.co.uk\/WebPage\/guides\/imaging-dark-frames-flat-fields\/","title":{"rendered":"Imaging &#8211; Dark Frames &#038; Flat Fields"},"content":{"rendered":"<p>Imaging is always seen as a bit of a black art.<br \/>\nThere are those that seem to do it really easily, and those who really struggle with some of the concepts.<br \/>\nIt can be a very steep learning curve, so during my workshops and in my guides, I always try and explain these as fully as possible.<br \/>\nThis helps get folks over that seemingly huge hump and well on their way to producing some great images.<\/p>\n<p>When taking images, you will see that it is always good practise to take calibration frames.<br \/>\nThese can be used to improve images and include Dark Frames, Flat Fields, BIAS frames etc.<\/p>\n<p>I am not going to try and describe them all here, but the two most important ones that take a bit of getting your head around are <span style=\"color: #999999;\"><span style=\"color: #ffffff;\">Dark Frames and Flat Fields<\/span>.<\/span><br \/>\nUsing both of these can really help to make an image sparkle.<br \/>\nBUT THEY ARE NOT ALL GOOD!<br \/>\nIf they are not done properly, they can make an image worse than if they were not used.<br \/>\nSo use them with caution.<\/p>\n<p>If you are just starting out in astrophotography, do not get hung up about having to take and manage calibration frames.<br \/>\nJust get to grips with the basics first.<br \/>\nOnly go onto doing these once you have become a lot more confident with imaging and processing.<br \/>\nI have found that when using a DSLR, I have managed to produce some great images WITHOUT using either.<br \/>\nIn fact most of my DSLR Images are processed with no calibration frames.<\/p>\n<p>CCD&#8217;s and CMOS cameras are a lot different to DSLR&#8217;s.<br \/>\nThe way they are built and work, means that Dark frames and Flat Fields do become a lot more important when using them.<br \/>\nArtefacts show up a lot more easily when using these.<\/p>\n<p>Let&#8217;s look at these two calibration frames in turn.<\/p>\n<p><span style=\"color: #ffffff;\"><strong>Dark Frames.<\/strong><\/span><br \/>\nWhat is a Dark Frame?<br \/>\nWhen you take images, we are using the camera to expose a light sensitive chip to any incoming light, where it collects photons.<br \/>\nA pixel where starlight is focused onto it, lots of photons will be collected.<br \/>\nThere will be quite a high signal and the pixel will become bright, close towards white.<\/p>\n<p>Where there is dark sky, less photons will be collected.<br \/>\nIn this case, the pixel signal will be low and its brightness will be closer to black.<\/p>\n<p>All pixels across the imaging chip will receive a different amount of light.<br \/>\nSo there will be pixels at all different levels somewhere between black and white.<br \/>\nThese build up an image of the area of sky which is focused onto the surface of the cameras chip.<br \/>\nThe longer that the camera is exposed, the more photons are collected by the pixels.<br \/>\nThis will result in a brighter image.<\/p>\n<p>That sounds all well and good. But the way that the camera works frequently plots against us.<br \/>\nDepending on the chip used in the camera, there is quite often some amp glow within the camera.<br \/>\nThis can be seen as a brightening on the resulting image.<br \/>\nThere may also be bright &#8220;Hot&#8221; pixels and dead dark ones.<br \/>\nThese can create bright and dark speckles in the captured images.<br \/>\nThese can all ruin our final stacked image if we did not get rid of them.<\/p>\n<p>Here is a single sub taken of the Elephant Trunk Nebula.<\/p>\n<p>This image is a 900 second long exposure using a monochrome ZWO ASI183MM Camera.<br \/>\nThis is known as a light image (Or Sub-image if you are taking lots to stack later).<\/p>\n<p><a href=\"https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Exposure-Plus-Star-Light_IC1396A_900.0s_Bin1_H_-20.0C_0002.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-6447 alignnone\" src=\"https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Exposure-Plus-Star-Light_IC1396A_900.0s_Bin1_H_-20.0C_0002-1024x684.png\" alt=\"Exposure-Plus-Star-Light_IC1396A_900.0s_Bin1_H_-20.0C_0002\" width=\"519\" height=\"347\" srcset=\"https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Exposure-Plus-Star-Light_IC1396A_900.0s_Bin1_H_-20.0C_0002-1024x684.png 1024w, https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Exposure-Plus-Star-Light_IC1396A_900.0s_Bin1_H_-20.0C_0002-300x200.png 300w, https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Exposure-Plus-Star-Light_IC1396A_900.0s_Bin1_H_-20.0C_0002-768x513.png 768w, https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Exposure-Plus-Star-Light_IC1396A_900.0s_Bin1_H_-20.0C_0002-210x140.png 210w, https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Exposure-Plus-Star-Light_IC1396A_900.0s_Bin1_H_-20.0C_0002-600x401.png 600w, https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Exposure-Plus-Star-Light_IC1396A_900.0s_Bin1_H_-20.0C_0002.png 1500w\" sizes=\"auto, (max-width: 519px) 100vw, 519px\" \/><\/a><\/p>\n<p>Look on the right-hand side of this image.<br \/>\nThe chip used in this very popular camera produces a bright star shape coming in from middle of the right-hand side.<br \/>\nThe longer the exposure taken, the brighter this artefact becomes.<\/p>\n<p>Thankfully all these artefacts are extremely easy to remove in the stacking process.<br \/>\nAll that is needed is to take some dark frames.<\/p>\n<p>To do this, put the cap on the telescope to prevent any light getting in.<br \/>\nThen take a series of images at the same exposure and temperature that you are using to take the images.<\/p>\n<p>This will result in an &#8220;almost&#8221; black image which only contains the hot and dead pixels and, in this camera&#8217;s case, that star shape produced by the chip.<\/p>\n<p><a href=\"https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Dark_900.0s_Bin1_H_-20.0C_0007.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-6445 alignnone\" src=\"https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Dark_900.0s_Bin1_H_-20.0C_0007-1024x684.png\" alt=\"Dark_900.0s_Bin1_H_-20.0C_0007\" width=\"522\" height=\"349\" srcset=\"https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Dark_900.0s_Bin1_H_-20.0C_0007-1024x684.png 1024w, https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Dark_900.0s_Bin1_H_-20.0C_0007-300x200.png 300w, https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Dark_900.0s_Bin1_H_-20.0C_0007-768x513.png 768w, https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Dark_900.0s_Bin1_H_-20.0C_0007-210x140.png 210w, https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Dark_900.0s_Bin1_H_-20.0C_0007-600x401.png 600w, https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Dark_900.0s_Bin1_H_-20.0C_0007.png 1500w\" sizes=\"auto, (max-width: 522px) 100vw, 522px\" \/><\/a><br \/>\nThis is known as a dark frame.<br \/>\nIt is always best to take a number of dark frames to apply to your stacked image.<br \/>\nThese will be used later, so that you get an average dark frame image during the stacking process.<\/p>\n<p>Once you have captured both your light images and the darks, everything is now ready for stacking.<\/p>\n<p>In your stacking software, either Deep Sky Stacker, Affinity Photo, or other dedicated stacking software, you can load the light frames that need stacking.<br \/>\nThen select the dark frames that need to be used to remove the artefacts.<\/p>\n<p>During the stacking process, the dark frames will be deducted from the light frames (subs).<br \/>\nSo in this particular case, that star produced by the camera chip is effectively removed from the light subs.<br \/>\nAs a result you will no longer be able to see the artefacts produced by the camera in the final stacked image.<br \/>\nAn example of this can be seen below.<\/p>\n<p><a href=\"https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Elephant-Trunk-20211015-For-Web.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-6449 alignnone\" src=\"https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Elephant-Trunk-20211015-For-Web-1024x684.png\" alt=\"Elephant-Trunk-20211015-For-Web\" width=\"558\" height=\"373\" srcset=\"https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Elephant-Trunk-20211015-For-Web-1024x684.png 1024w, https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Elephant-Trunk-20211015-For-Web-300x200.png 300w, https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Elephant-Trunk-20211015-For-Web-768x513.png 768w, https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Elephant-Trunk-20211015-For-Web-210x140.png 210w, https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Elephant-Trunk-20211015-For-Web-600x401.png 600w, https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Elephant-Trunk-20211015-For-Web.png 1500w\" sizes=\"auto, (max-width: 558px) 100vw, 558px\" \/><\/a><\/p>\n<p>It is important to remember that the amount of amp glow, or noise in the resulting image will depend on the exposure used.<br \/>\nSo any dark frames used for the stacking process MUST be taken at the same temperature and exposure as the captured light frames (subs).<\/p>\n<p>If a longer exposure dark frame is used to stack shorter exposure images, there will be some over-correction and it will be too severe.<br \/>\nThis can result in a reduction in brightness where the artefacts were.<\/p>\n<p>An example of this can be seen below.<br \/>\n<a href=\"https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Over-Compensate-Dark.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-6452 alignnone\" src=\"https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Over-Compensate-Dark-1024x684.png\" alt=\"Over-Compensate-Dark\" width=\"562\" height=\"375\" srcset=\"https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Over-Compensate-Dark-1024x684.png 1024w, https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Over-Compensate-Dark-300x200.png 300w, https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Over-Compensate-Dark-768x513.png 768w, https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Over-Compensate-Dark-210x140.png 210w, https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Over-Compensate-Dark-600x401.png 600w, https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Over-Compensate-Dark.png 1500w\" sizes=\"auto, (max-width: 562px) 100vw, 562px\" \/><\/a><br \/>\nIn this image of M110, I took 120 second exposures for my light subs.<br \/>\nI then used dark frames of 900 seconds and used those to correct my image.<\/p>\n<p>The over-correction has resulted in the image now having a dark star shape that has been deducted from the image.<br \/>\nSo always make sure that the exposures for your dark frames are taken with the same conditions as your subs.<\/p>\n<p>So I hope that explains about dark frames.<\/p>\n<p>What&#8217;s different about Flat Fields then?<\/p>\n<p><span style=\"color: #ffffff;\">Flat Fields.<br \/>\n<\/span>When you are taking light images (Subs), there may be different parts of the imaging chip that are slightly less sensitive than others.<br \/>\nThis can be caused by manufacturing errors in the chip, or shadows created by dust lying in front of the camera.<br \/>\nThese latter shadows are known as &#8220;Dust Bunnies&#8221; and can be a real pain to get rid of.<br \/>\nThere may also be some shadowing around the edges of the image, caused by the restricted field of view created by the scope used.<br \/>\nThis is known as vignetting.<\/p>\n<p>The image below is of the dark Seahorse Nebula in Cepheus.<\/p>\n<p><a href=\"https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Seahorse-No-Flats-ForWeb.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-6451 alignnone\" src=\"https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Seahorse-No-Flats-ForWeb-1024x683.png\" alt=\"Seahorse-No-Flats-ForWeb\" width=\"536\" height=\"358\" srcset=\"https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Seahorse-No-Flats-ForWeb-1024x683.png 1024w, https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Seahorse-No-Flats-ForWeb-300x200.png 300w, https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Seahorse-No-Flats-ForWeb-768x513.png 768w, https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Seahorse-No-Flats-ForWeb-210x140.png 210w, https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Seahorse-No-Flats-ForWeb-600x400.png 600w, https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Seahorse-No-Flats-ForWeb.png 1500w\" sizes=\"auto, (max-width: 536px) 100vw, 536px\" \/><\/a><br \/>\nIt has had the dark frames subtracted from it, which has removed the star and any hot pixels, but it is still showing some problems.<\/p>\n<p>The dark nebula can be seen quite clearly, but there are also a couple of very large dust bunnies spoiling this image.<br \/>\nThe most prominent one is towards the top of the image left of centre.<br \/>\nThe other one towards the bottom of the image, just left of centre.<\/p>\n<p>These can be removed by using flat field images when the subs are stacked.<\/p>\n<p>A flat field is taken in almost the opposite way to the dark frames.<br \/>\nThis is normally done in the daytime.<\/p>\n<p>Here&#8217;s how I take mine.<br \/>\nRemove the cap off the end of the telescope.<br \/>\nDrape a white T-shirt over the end of the scope, making sure there are no creases that will create shadows.<\/p>\n<p>Take an image that gives you an exposure so the highest peak of the image histogram is about a third of the way up.<br \/>\nA flat field image taken for my setup can be seen below.<\/p>\n<p><a href=\"https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Flat_20.0ms_Bin1_L_gain111_20211026-084429_-20.0C_0001.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-6443 alignnone\" src=\"https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Flat_20.0ms_Bin1_L_gain111_20211026-084429_-20.0C_0001-1024x684.png\" alt=\"Flat_20.0ms_Bin1_L_gain111_20211026-084429_-20.0C_0001\" width=\"539\" height=\"360\" srcset=\"https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Flat_20.0ms_Bin1_L_gain111_20211026-084429_-20.0C_0001-1024x684.png 1024w, https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Flat_20.0ms_Bin1_L_gain111_20211026-084429_-20.0C_0001-300x200.png 300w, https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Flat_20.0ms_Bin1_L_gain111_20211026-084429_-20.0C_0001-768x513.png 768w, https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Flat_20.0ms_Bin1_L_gain111_20211026-084429_-20.0C_0001-210x140.png 210w, https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Flat_20.0ms_Bin1_L_gain111_20211026-084429_-20.0C_0001-600x401.png 600w, https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Flat_20.0ms_Bin1_L_gain111_20211026-084429_-20.0C_0001.png 1500w\" sizes=\"auto, (max-width: 539px) 100vw, 539px\" \/><\/a><\/p>\n<p>You can see there are a number of dust bunnies visible in the image, showing as dark circles.<br \/>\nThese correspond to the positions of the shadows seen in the stacked image<br \/>\nThe flat field image is also darker towards the bottom-right corner.<\/p>\n<p>When the subs are stacked and the flat field calibration image is used, these shadows are removed to give a much better image as seen below.<\/p>\n<p><a href=\"https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Seahorse-Flats-For-Web.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-6450 alignnone\" src=\"https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Seahorse-Flats-For-Web-1024x684.png\" alt=\"Seahorse-Flats-For-Web\" width=\"551\" height=\"368\" srcset=\"https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Seahorse-Flats-For-Web-1024x684.png 1024w, https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Seahorse-Flats-For-Web-300x200.png 300w, https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Seahorse-Flats-For-Web-768x513.png 768w, https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Seahorse-Flats-For-Web-210x140.png 210w, https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Seahorse-Flats-For-Web-600x401.png 600w, https:\/\/www.star-gazing.co.uk\/WebPage\/wp-content\/uploads\/Seahorse-Flats-For-Web.png 1500w\" sizes=\"auto, (max-width: 551px) 100vw, 551px\" \/><\/a><\/p>\n<p>Now, all we can see is the dark Seahorse Nebula and a fairly flat background.<\/p>\n<p>The flat field images that were applied in the stacking process has removed the artefacts we could see in the original image.<\/p>\n<p>A combination of both dark frames and flat fields will clean up images very nicely.<br \/>\nThis will get around many problems resulting from problems with the light sensitivity across the imaging chip and any shadowing created by dust in the light path or uneven illumination caused by the telescope setup.<\/p>\n<p>So once you do get very familiar with the astrophotography image processing technique, don&#8217;t forget to use dark frames and flat fields when stacking. These will greatly improve the appearance of your images if done with care.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Imaging is always seen as a bit of a black art. There are those that seem to do it really easily, and those who really struggle with some of the concepts. It can be a very steep learning curve, so during my workshops and in my guides, I always try and explain these as fully [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":120,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"slim_seo":{"description":"On this page I am going to describe Dark Frames and Flat Fields, showing why we use them and how they can improve astrophotography images when used correctly.","title":"Imaging - Dark Frames & Flat Fields - Star-Gazing"},"footnotes":""},"class_list":["post-6440","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.star-gazing.co.uk\/WebPage\/wp-json\/wp\/v2\/pages\/6440","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.star-gazing.co.uk\/WebPage\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.star-gazing.co.uk\/WebPage\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.star-gazing.co.uk\/WebPage\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.star-gazing.co.uk\/WebPage\/wp-json\/wp\/v2\/comments?post=6440"}],"version-history":[{"count":13,"href":"https:\/\/www.star-gazing.co.uk\/WebPage\/wp-json\/wp\/v2\/pages\/6440\/revisions"}],"predecessor-version":[{"id":6461,"href":"https:\/\/www.star-gazing.co.uk\/WebPage\/wp-json\/wp\/v2\/pages\/6440\/revisions\/6461"}],"up":[{"embeddable":true,"href":"https:\/\/www.star-gazing.co.uk\/WebPage\/wp-json\/wp\/v2\/pages\/120"}],"wp:attachment":[{"href":"https:\/\/www.star-gazing.co.uk\/WebPage\/wp-json\/wp\/v2\/media?parent=6440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}