Author Topic: DSLR HotPixel removal  (Read 5288 times)

Offline Cleon_Wells

  • PixInsight Addict
  • ***
  • Posts: 225
DSLR HotPixel removal
« on: 2011 April 12 10:08:04 »
I think I've got it figured out, maybe.
« Last Edit: 2011 April 12 10:25:07 by Cleon_Wells »
Cleon - GSO 10"RC/Canon T1i-Hap Mod, 100mmF6/2Ucam/MG, EQG/EQmod

Offline Simon Hicks

  • PixInsight Old Hand
  • ****
  • Posts: 333
Re: DSLR HotPixel removal
« Reply #1 on: 2011 April 12 10:23:17 »
If this is true, i.e. that a single hotpixel creates a group of four hotpixels automatically after the debayer, then is this a signature of a hotpixel in a debayered image, i.e. any group of exactly four pixels that are all significantly higher than their surrounding pixels? And if so, can we design a filter to only select out these groups of four pixels and replace them with their neighbouring values?

Offline Cleon_Wells

  • PixInsight Addict
  • ***
  • Posts: 225
Re: DSLR HotPixel removal
« Reply #2 on: 2011 April 12 10:34:33 »
Simon, I think the problem with your idea would be recognizing the extra four pixels that surround the actual HotPixel. The extra pixels created by the DeBayer process are around 25% of the actual HotPixel ADU level.
Cleon
Cleon - GSO 10"RC/Canon T1i-Hap Mod, 100mmF6/2Ucam/MG, EQG/EQmod

Offline Cleon_Wells

  • PixInsight Addict
  • ***
  • Posts: 225
Re: DSLR HotPixel removal
« Reply #3 on: 2011 April 12 10:46:50 »
And if anyone would like an explanation how the DeBayer magic happens.
Craig Stark has a great article here.
http://www.stark-labs.com/craig/articles/assets/Debayering_API.pdf
Cleon
Cleon - GSO 10"RC/Canon T1i-Hap Mod, 100mmF6/2Ucam/MG, EQG/EQmod

Offline Philip de Louraille

  • PixInsight Addict
  • ***
  • Posts: 289
Re: DSLR HotPixel removal
« Reply #4 on: 2011 April 12 11:15:57 »
I'd think you'd want to remove the hot pixels before debayering. Less noise that way.
Philip de Louraille

Offline Cleon_Wells

  • PixInsight Addict
  • ***
  • Posts: 225
Re: DSLR HotPixel removal
« Reply #5 on: 2011 April 12 12:07:51 »
Philip, yes you have to remove the HotPixel before the Debayer process or you will get a four leaf clover.
Cleon
Cleon - GSO 10"RC/Canon T1i-Hap Mod, 100mmF6/2Ucam/MG, EQG/EQmod

Offline Cleon_Wells

  • PixInsight Addict
  • ***
  • Posts: 225
Re: DSLR HotPixel removal
« Reply #6 on: 2011 April 13 13:41:15 »
I acquired 36 usable test subs of ngc2244 last night and used PI Integration with Winsorized Sigma Clipping and mount alignment errors to remove the HotPixels plus the Debayer artifacts. The HotPixels have ADU levels of 1.0 and the four surrounding Debayer artifacts have ADU levels of 0.25.
Cleon
« Last Edit: 2011 April 13 15:59:01 by Cleon_Wells »
Cleon - GSO 10"RC/Canon T1i-Hap Mod, 100mmF6/2Ucam/MG, EQG/EQmod

Offline Alejandro Tombolini

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1267
    • Próxima Sur
Re: DSLR HotPixel removal
« Reply #7 on: 2011 April 13 16:02:03 »
And if anyone would like an explanation how the DeBayer magic happens.
Craig Stark has a great article here.
http://www.stark-labs.com/craig/articles/assets/Debayering_API.pdf
Cleon


Hi Cleon, thank you for sharing this article.
I didn't know how the debayer process was working. I wonder which of all these methods is the one that is called Super Pixel in our BatchDeBayer tool

Hola Cleon, gracias por compartir éste artículo.
No sabía como trabajaba el proceso de debayerizado. Me pregunto cuál de estos métodos es el que se llama Super Pixel en nuestra herramienta para debayerizado (BatchDeBayer).

Saludos, Alejandro. 

Offline Cleon_Wells

  • PixInsight Addict
  • ***
  • Posts: 225
Re: DSLR HotPixel removal
« Reply #8 on: 2011 April 13 21:44:18 »
Alejandro, I’m glad Craig’s article helped you understand the DeBayer process. The process takes a Bayer matrix, ((which is created by placing a Color Filter Array (cfa) RGGB filter in front of each set of four pixels of the Camera’s monochrome CCD chip)) and creates four color pixels from four monochrome pixels. The sampling of 4 pixel levels, the four adjacent pixels next to this pixel,(nearest neighbor)  sets the color for the created pixel. I think this is Bilinear decoding, RGGB.
When you look at one of my Debayered HotPixels, note that the four pixels (the four leaf clover) connected to the HotPixel are being created by the DeBayer process, seeing one bright green pixel and three dark pixels (group of four) next to the pixel that is being created. These four created phantom pixels (the clover leaf) have a ADU level of 0.25 while the HotPixel in the middle has a ADU level of 1.0.

         A SuperPixel file can also be created with the BatchFormatConversion script and is 1/2 the pixel size of the original file, using the four RGBG pixels to create one pixel, but is not Debayered, this file can be Debayered. This gets very confusing..check this Web site out.....

http://www.licha.de/astro_article_ccd_camera_bayer_matrix.php

BatchFormatConversion uses settings from the Format Explorer tab and in the case of the DSLR_RAW files, uses settings in the RAW Format Preferences window to create the new file format.
When you Calibrate a DSLR raw file a FormatConversion happens and the conversion uses Raw Format Preference settings.
I hope this simplistic explanation helps, I still think there's some magic involved. LOL
Cleon
« Last Edit: 2011 April 14 05:09:48 by Cleon_Wells »
Cleon - GSO 10"RC/Canon T1i-Hap Mod, 100mmF6/2Ucam/MG, EQG/EQmod