Author Topic: Debayerization needed  (Read 17223 times)

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Debayerization needed
« Reply #15 on: 2009 April 20 12:48:03 »
You'd have to ask Luc how DSS really works but I'm pretty sure pixel rejection happens before debayering. I've had mixed results with the hot pixel removal so I now do it before feeding the raw images to DSS.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline ManoloL

  • PixInsight Addict
  • ***
  • Posts: 220
Debayerization needed
« Reply #16 on: 2009 April 20 13:18:21 »
Hola:

Para intentar resolver estos problemas esta el Dithering, dentro de las técnicas a aplicar en la captura de imagenes.

Hi:
To try to solve these problems is the Dithering within the techniques to be applied to the adquiring images.
Saludos.

Manolo L.

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Debayerization needed
« Reply #17 on: 2009 April 20 13:47:08 »
Yes but only with a rejection stacking algorithm.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline ManoloL

  • PixInsight Addict
  • ***
  • Posts: 220
Debayerization needed
« Reply #18 on: 2009 April 20 13:59:43 »
Quote from: "Nocturnal"
Yes but only with a rejection stacking algorithm.

Hi:

Of course

Best regards
Saludos.

Manolo L.

Offline vicent_peris

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 988
    • http://www.astrofoto.es/
Debayerization needed
« Reply #19 on: 2009 April 20 14:14:59 »
I can't how you can do sigma rejection before debayerizing the image set, as you need a set of pixels at position p. This means that you must register all the image set.

Any ideas??



Vicent.[/i]

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Debayerization needed
« Reply #20 on: 2009 April 20 14:28:08 »
You are right Vicent that this can't be done before debayering. However sigma clip would still help get rid of hot pixels in that case if they are spread out due to dithering. Of course the averaging part of the debayering process smears out the pixel so the process isn't perfect. It's one of the reasons I prefer to remove the hot/cold pixels in my raw images before debayering. I still dither though.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Niall Saunders

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1456
  • We have cookies? Where ?
Debayerization needed
« Reply #21 on: 2009 April 20 14:29:15 »
There is a problem with DSS, I believe, in that it does NOT correctly deBayer Meade DSI OSC (CMYG) RAW images.

I hope to demonstrate this, and why, but I do not yet have 'proof positive' and I do NOT want to disparage DSS in ANY way whatsoever.

What I 'do' want to be able to demonstrate is HOW a DSI image SHOULD be deBayered. Thereafter, if my method does prove to be different from others, and if it shows a worthwhile improvement, I am hoping that anyone who offers a Meade DSI deBayering algorithm will be able to make use of my results - FOC, bar from mention.

Cheers, and back to the script . . . . .
Cheers,
Niall Saunders
Clinterty Observatories
Aberdeen, UK

Altair Astro GSO 10" f/8 Ritchey Chrétien CF OTA on EQ8 mount with homebrew 3D Balance and Pier
Moonfish ED80 APO & Celestron Omni XLT 120
QHY10 CCD & QHY5L-II Colour
9mm TS-OAG and Meade DSI-IIC

Offline Astrocava

  • PixInsight Addict
  • ***
  • Posts: 180
    • Astrocava.com
Debayerization needed
« Reply #22 on: 2009 April 21 05:46:03 »
Quote from: "ManoloL"
Hola:

Para intentar resolver estos problemas esta el Dithering, dentro de las técnicas a aplicar en la captura de imagenes.

Hi:
To try to solve these problems is the Dithering within the techniques to be applied to the adquiring images.


Of course :-), but I have problems with guiding and imaging with same program. :(

Quote from: "vicent_peris"
I can't how you can do sigma rejection before debayerizing the image set, as you need a set of pixels at position p. This means that you must register all the image set.

Any ideas??



Vicent.[/i]


I'm thinking about it, but no idea.  :evil:

Quote from: "Nocturnal"
It's one of the reasons I prefer to remove the hot/cold pixels in my raw images before debayering. I still dither though.


How do you do this? with a hot pixel map? what happens with the "holes"?

Sergio
Moonfish ED80 over a Meade LX200GPS 8"

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Debayerization needed
« Reply #23 on: 2009 April 21 05:52:48 »
Yes, with a hot pixel map. Various software can do this but I wrote my own utility.

http://www.tungstentech.com/Software/FixFITS/tabid/78/Default.aspx

I know Juan would like me to have written that in PCL but frankly I wanted something that I could share with others even if they didn't have PI.

Anyway, the hot/cold pixels are detected in a dark frame by calculating the stddev and then comparing pixel values to the mean +/- sigma*stddev. For an OSC frame each hot/cold pixel is replaced by the average of its neighbors two pixels away. For a mono frame the immediate neighbors are used. Simple.

Now that I've started dabbling in PCL I may turn this into a PI module but there is so much code required just to deal with parameters and GUI that it's a bit daunting.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Astrocava

  • PixInsight Addict
  • ***
  • Posts: 180
    • Astrocava.com
Debayerization needed
« Reply #24 on: 2009 April 24 07:37:30 »
Thanks (a bit late), Sander. I know the hot pixel map from astroart.   Will check what  DSS do with the hot pixel options. Only the random hot pixels left...

Sergio
Moonfish ED80 over a Meade LX200GPS 8"